Home

Sartorius Serial Profibus Interface YSPI3

image

Contents

1. DISPW LO pare DB_Send DB_Rec Fet_No DISP Timer_ 100 J Name Type Specification Function O_O POINTER Pointer send window 32 bytes O POINTER Pointer receive window 32 bytes DB Send POINTER Pointer send data DB_Rec POINTER Pointer receive data DISP BYTE Number of repeats in case of error Timer_l0O TIMER Timer for telegram monitoring Fct_No WORD Function number DISPW WORD Display word The function block is controlled via the display word Bit assignment display word Bit O Job running Bit 1 Job ended without errors Bit 2 Job ended with errors Bit 3 Start job Bit 4 Reset FB Bit 5 9 Free Bit 10 Function is not supported by the FB Bit 11 Telegram error Bit 12 Communication between YSPI3 and scale impaired Bit 13 15 Free Bits 3 and 4 are set by the user in the control program The reset bit has the higher priority and resets the FB The reset job should be carried out once during the start up of the CPU The start bit triggers a function reference During processing the O bit signals a running job If this is processed to a conclusion bits O and 3 are reset and the result is displayed using bits 1 2 and 10 12 A successful fun unction block ction reference the function reference cou Bits 10 12 mak if a response te f the scale does not respond to a function expiry of the ti
2. Receive stamp O indicates that user data has been requested or that the job is complete Output byte 2 contains At the start of the send job send stamp O information on the length of the user data Following that send stamp O user data Output bytes 3 7 contain At the start of the send job send stamp O no data Following that send stamp O user data user data fragments Output byte for send stamp O Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Ox00 Ox01 Ox06 Send Receive Length of stamp stamp user data Output byte for send stamp O Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Ox01 Ox01 a b c d e f Send Receive User data 6 bytes stamp stamp 38 Input byte O contains the send stamp Send stamp O indicates that the YSPI3 is ready for data exchange Send stamp O indicates that user data now follows or that the job is complete Input byte 1 contains the receive stamp Receive stamp O indicates that the YSPI3 is ready for data exchange Receive stamp O indicates that user data is being processed or that the job is complete Input byte 2 contains At the start of the data exchange receive mirror O information on the length of the user data Following that receive mirror O user data Input bytes 3 7 contain At the start of the dat
3. Central Processing Unit Data block Data channel Data speed Data word Diagnostics DP DP address DP standard Floating Fragment FREEZE Function block Function code 42 Special memory area in a PLC which is optimized for storing data it consists of a specified number of words or bytes of memory A logical channel for exchanging data with the YSPI3 The size of the data channel i e I O area is depen dent o larger Measurement for the rate of data n the YSPI3 configuration Ifa telegram is than the data channel it must be fragmented 4 ransfer specified here in bits per second 16 bit area of memory in a data block Detecti on localization classification and display of errors faults and messages Pro ibus ID number used to uniquely identify each bus node station in Profibus DP Bus protocol for Profibus DB which is specified in EN 50 170 Indicates that a component or circuit is not electrically connected to ground Part of a data a telegram which is transferred through channel Control command that a DP slave receives from the DP master lt causes the slave to store freeze the current states of its inputs and to transfer the frozen values cyclically to the master The slave starts to transfer the cyclically updated values to the master again only after i receives the UNFREEZE command Used to control the asynchron
4. Trebing amp Himstedt hex Ox0091 The settings of the other 5 bytes depend on your network configuration see EN 50 170 33 YSPI3 specific Parameters The following 14 bytes of the parameter telegram bytes 7 to 20 contain YSPI3 specitic parameters see table Note the hexadecimal value for slave response timeout must be specified in Motorola format high byte first Note If you use an RS 485 interface you must set the handshake mode to none Byte Parameter Value Hex code 7 9 Constant Cannot be changed Ox00 10 Constant Cannot be changed Ox05 1 Data transfer rate 110 bit s Ox00 300 bit s OxO 1 600 bit s Ox02 1 200 bit s 0x03 2 400 bit s 0x04 4 800 bit s 0x05 9 600 bit s Ox06 19 200 bit s 0x07 28 800 bit s 0x08 38 400 bit s 0x09 57 600 bit s OxOA 2 Handshake XON XOFF Ox00 RTS CTS OxO 1 none Ox02 3 XON ASCII code for XON character Ox1 4 XOFF ASCII code for XOFF character 0x13 5 Parity none Ox00 even 0x01 odd Ox02 mark 0x03 space 0x04 34 Byte Parameter Value Hex code 16 Datapacket frame 7 data bits OxO07 8 data bits Ox08 17 18 Max delay of slave Timeout in 10 ms Ox0000 response O 65535 x 10 ms to OxFFFF 19 SIO mode available ASCII driver Ox00 3964R checksum OxO 1 RK512 checksum Ox02 3964 no checksum 0x03 RK512 no checksum 0x04 20 Priority at 3964R low OxOO high OxO1 35 Creating Function Blocks The function blocks
5. against the penetration of solid objects with a diameter of more than 12 mm Active bus station that can send data to other bus stations and request data from other bus stations The input byte O of a data channel is called the mirror The YSPI3 mirrors returns a copy of the stamp q v to contirm the operation or when user data is being processed Mirror O indicates that the DP slave is ready for data exchange If mirror O input byte 2 contains information on the length of the followi user data Mirror O indicates that user data will now follow or that the operation has been completed CO 43 Modbus Module MSB Non floating Non isolated Output byte Parameter Parameter master Parameter setting Parameter telegram Parity PII Ger PAE RIE POI Ger PAA 44 Modbus RTU according to Reference Guide Modicon PFMBUS 300 Rev D Selecting a module during device configuration determines the configuration telegram and thus the size of the PLC I O area Most Significant Bit With non loating O devices the reference potentials of control circuits and power circuits are electrically interconnected and are not galvanically isolated With non isolated O devices the reference potentials of control circuits and power circuits are electrically interconnected PLC address area which contains data which the DP master sends to the DP slave Variable used to specify th
6. 57 600 Data frame Bit 7 8 Parity Even odd none mark space Pin assignment Sub D connector RS 232 RS 422 RS 485 5 Pin Shield Shield Shield Pin 2 TXD out Unused Unused CO000 Pin 3 RXD in REC P BUS P OOOO Pin 4 Unused TRANS P Unused 9 5 Pin GND GND GND Pind 5V 5V 5V Pin 7 CTS in Unused Unused Pin 8 RTS out RECN BUSN Pin9 Unused TRANS N Unused Other Certification CE Max number of field bus devices 32 RS 485 See label on the YSPI3 Depends on the protocol 32 Appendix Creating a Configuration Telegram Depending on the number and size of the inputs and outputs the configuration telegram contains one or more module codes The module codes are used to select the operating mode of the YSPI3 see Configuring the YSPI3 on page 11 The module codes in the configuration telegram should be specified as follows Module code for 2 word I O area OxC1C1C105 Module code for 2 word I O area OxC1C3C305 Creating a Parameter Telegram If you cannot or do not want to use a configurator for setting the YSPI3 parameters you will need to create a parameter telegram The parameter telegram contains both standardized bus related parameters and device specitic parameters for the YSPI3 Standardized Bus related Parameters The first 7 bytes bytes O 6 of the parameter telegram contain bus related parameters which are standardized in EN 50 170 Bytes 4 and 5 contain the vendor ID
7. net with unsigned Measurement block increased resolution 213 Change weighing platform unsigned string Status O Transparent function Request telegram Response telegram not incl checksum not incl checksum The input parameters mus compartment If two inpu also be stated from the first byte of the sen stated in the table in com 4 be filed beginn parameters ar plausibility of the transferred data ing in the first byte of the send required for one function they must d compartment and in the order plete form The function block does not check the 1 The second byte of the serial response telegram is filed in the receive compartment as a result 20 In the first 5 bytes the measurement block as a return value supplies the high resolution Float5 value By disregarding the last byte a floating point number capable of evaluation exists for control The units vector is filed in byte 7 The exact specification of the units vector and of bytes 6 and 8 must be taken from the protocol specification of the xBPI protocol In the error free case the status is one byte long and has the value zero In case of errors this value is one and a further byte follows with error information see xBPIstatus response in the xBPI protocol specification The function 30h supplies an 8 byte long string with scale status information The transparent function O offers the possibility of executing any x
8. BPI function To this end the corresponding serial telegram not including check sum must be entered into the send data area The response telegram is filed transparently not including checksum in the receive data area As an example of the application and control of FB 102 a table of variables VATS is attached to the project 3 SBI protocol The processing of the SBI protocol is carried out using FB 104 The function block is designed as follows FB 104 QG IN IN OUT DISPVW LO DB_Send DB_Rec Fet_No Name Type Specification Function OO POINTER Pointer send window 32 bytes LO POINTER Pointer receive window 32 bytes DB_Send POINTER Pointer send data DB_Rec POINTER Pointer receive data Fct_No WORD Function number DISPW WORD Display word The function block is controlled via the display word Bit assignment display word The answer code in the first byte of the serial Function block reference data block in FC 2 marker byte O or 40 CALL FB 104 DB 104 O_O P M40 0 ILO P MO O DB_Send P DB37 DBXO O DB_Rec P DB38 DBX0O 0 Fct_No MW 106 DISPWC MVV 100 In the example FB 104 is called absolutely usi Bit O Job running Bit 1 Job ended without errors Bit 2 Job ended with errors Bit 3 Start job Bit 4 Reset FB Bit5 9 Free Bit 10 Function is not supported by th
9. E 98647 002 63 Sartorius Serial Profibus Interface YSPI3 for Field Bus Interface Devices with Modbus Interfaces Version 1 2 Operating Instructions CMO AA AAT N sa ttori US Contents Page YSPI3 Engineering Considerations Connecting the YSPI3 7 Safety Information 7 Overview of the YSPI3 8 Connecting the YSPI3 9 Setting Up the YSPI3 Configuring the YSPI3 Setting Parameters for the YSPI3 2 Installing the Function Blocks 2 Checking the YSPI3 before Use 3 Checking the YSPI3 Power Supply 3 Checking the Profibus Communication 3 Checking the Serial Interface Communication 3 Data Transfer using the Simatic SZ Function Blocks 14 Parameters for Data Transfer 4 Transmitting Data 26 Receiving Data 27 Evaluating RK512 Telegrams 28 Error Diagnosis and Remedies 29 Specifications 32 Appendix 33 Creating a Configuration Telegram 33 Creating a Parameter Telegram 33 Creating Function Blocks 36 Glossary 4 Appendix Disk with Software 47 Dear Customer This users manual is designed to help you with engineering connecting configuring and setting parameters in the YSPI3 Please contact our Technical Support department if you have any questions SIMATIC is a registered trademark of Siemens AG Version 1 2 status March 1998 Introduction The YSPI3 Serial Profibus Interface 3 allows a Profibus DP master to communicate with a field bus device with a Modbus interface The YSPI3 allows the fiel
10. ED is lit 29 LED code Status Cause Remedy PB LED PB LED off Data speed could not be determined No Profibus master in the network Connect the DP master Chec the wiring PB LED short No DP master available A master is available but it Chec is not a DP master A master is available but communication is not through with Profibus DP Chec DP configuration of the master address setting on the YSPI3 parameters PB LED ncorrect parameter Parameter telegram faulty Check the DP parameter medium telegram use the correct GSD or type file PB LED long Incorrect configuration Configuration telegram Check the number faulty of modules Check the order of the modules PB LED on Data exchange OK Data exchange is currently YSPI3 working correctly taking place RUN LED RUN LED short Interface error Incorrect interface Check the parity setting you have selected no parity with 7 bits although parity is required with 7 bits RUN LED Transmit error Error during transmission Check the cabling medium Make sure the receiving station is ready this error can occur only when using the 3964 protocol or its derivatives RUN LED Receive error Error when receiving Check character format long and data speed of partner station RUN LED on Communication OK The MODBUS slave is Y
11. FBs on the supplied diskette are suitable only for Simatic controllers If you are not using a SIMATIC controller you will need to create new function blocks yourself Data is exchanged between the DP master and the YSPI3 in the form of telegrams or telegram fragments through a data channel the size of which can be contig ured to adapt it to the telegram length and the size of the PLC I O area The size of the data channel can be configured for 2 or 4 words The examples in this chapter are for a 4 word I O area For a 2 word I O area only bytes 2 and 3 are available for user data The I O buffer contains both control data and user data as follows Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Control data User data fragment User Data This contains the usable information in the form of telegrams or telegram fragments Control Data This controls the exchange of data between the DP master and the YSPI3 It is used to indicate new data control the exchange of telegrams which are larger than the configured data channel arrange flow control between the DP master and the YSPI3 Two bytes are available for the control data The command byte stamp is used to send commands to the YSPI3 The DP master uses it to indicate the start of a new telegram the start of user data the end of the job The status byte mirror is used to receive status info
12. SPI3 working correctly communicating correctly with the YSPI3 30 The Profibus diagnostics and error status indicators are reset when the error is no longer present or when the slave is reconfigured If errors occur during communication you can also activate the Profibus diagnostics function The device specific diagnostics data contains the following information 1 byte header for device related diagnostics Ox02 itO 1 rror no slave response itl 1 rror during transmission it2 rror during reception 1 byte bitmapped to indicate the error mv m yp m y Specifications Electrical data Nominal supply voltage VDC 24 Current consumption mA 200 Galvanic isolation Profibus interface VDC 500 Ambient conditions Operating temperature C 0 60 Case Protection class IP 20 Dimensions W x H x D mm 75x75x53 Profibus interface nterface type RS 485 Data speed Bit s 9 600 19 200 93 750 187 500 0 5M 1 5M 3M 6M 12M automatic detection of the data speed Pin assignment Sub D connector Pin 1 Shield Pin 2 Unused 5 1 Pin 3 Bline oo0oo0o0o0 Pin 4 Request to Send RTS OOOO Pin5 Ground for 5 V M5 9 6 Pind 5 V galvanically isolated P5 Pin 7 Unused Pin8 Arline Pin9 Unused Serial interface Interface type RS 232 RS 422 RS 485 Data transfer rate Bit s 110 300 600 1 200 2 400 4 800 9 600 19 200 28 800 38 400
13. YSPI3 only updates its Profibus address during a restart Set the Profibus address on the YSPI3 before switching on the power or turn off the power briefly after changing the Profibus address Note Profibus addresses OO to 02 are reserved You should use only addresses between 03 and 99 The Profibus address is set with the rotary switches Example In order to set the Profibus address 68 turn the rotary switch for the 10 s to 6 and the rotary switch for the units to 8 see Setting Up the YSPI3 In order to set up the YSPI3 you need to configure it set the parameters and install the function blocks When configuring the YSPI3 from the DP master using a commercially available Profibus contiguration program refer to the on line help for information on specifying the parameters Since there are a large number of different Profibus configuration programs on the market it is possible to give only a general overview of the process of configuration and parameter setting Start the configurator on the DP master Insert the diskette with the device database files GSD into the diskette drive of the programming device usually a PC In the configurator choose the GSD file THDPOO91 GSD or the type file THOO91 AX 200 Contigure the YSPI3 and set the parameters as described in the contigurator s omline help or user manual Note If you do not want to use a configuration program you need to create your own
14. a exchange receive mirror O no data Following that receive mirror O user data user data fragments nput byte for receive mirror O Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Ox0 1 Ox00 Ox06 Send Receive Length of stamp stamp user data nput byte for receive mirror O Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Ox01 Ox01 a b d e f Send Receive User data 6 bytes stamp stamp 39 The following flow charts illustrate the steps necessary for data transmission Send data OB2 Length of user data Send mirror Send stamp TH FDO05e OB2 OBn User data Send mirror Send stamp all data transferred set to compare with increment by 1 OB Output byte 40 Receive data Receive mirror Receive stamp yes IB2 Length of user data no TH FD006e Receive mirror Receive stamp IB2 IBn User data all data transferred set to compare with increment by 1 IB Input byte Glossary Address ANZW Bus connector Bus segment Bus station Byte Character timeout Command byte Configuration Configurator Control information CPU Station address 16 bit in out variable for sen an FB and receiving return values Abbreviation for binary dig ding commands to it the smallest unit i
15. age the device Make sure that the power feed is connected with correct polarity Connect the cables for 24 V power feed ground and protective ground to the corresponding screw terminals 24 V GND and PE Connection to the Serial Field Bus Device Note To ensure that the YSPI3 functions without errors you should use a shielded cable for connecting to the serial field bus device and ground the screen Ensure that the Sub D connector for the serial interface uses the pin assignments shown in Specifications on page 32 connect the cable shield to the case of the Sub D connector Connect the Sub D connector for the serial interface to the serial interface socket on the YSPI3 Connection of the Profibus Note You should use only commercially available Profibus connectors for connection to the bus VVe recommend connectors from ERNI and Siemens Note If the YSPI3 is installed at the beginning or end of the Profibus cable segment you should use Profibus connectors which contain an integrated terminating resistor VVe recommend connectors from ERNI and Siemens Note To ensure that the YSPI3 functions without errors you must ground the shielding of the Profibus cable Ensure that the Profibus connector uses the pin assignments shown in Specifications on page 32 Attach the Profibus connector to the Profibus interface socket on the YSPI3 Setting the Profibus Address Note The
16. alled the stamp Stamp O indicates that the master is ready for data exchange If stamp O output byte 2 contains information on the length of the following user data Stamp O indicates that user data now follows or that the operation is completed Address with which the DP master accesses the Profibus DP slave Mirror Programming language used for user programs for Simatic S5 controllers Programming language used for user programs for Simatic SZ controllers Tool for Step 7 which automates particular programming tasks Control command that a DP slave receives from the DP master It causes the slave to store freeze the current states of its outputs When following telegrams are received it stores the output data but the states of the outputs remain unchanged The outputs are only cyclically updated again after the slave receives the UNSYNC command A data flow which is sent or received through the serial interface SIO e g when you send a text to a text display or receive a bar code from a bar code scanner Part of a send or receive telegram A telegram must be fragmented if it is so large that it cannot be transferred within a single PLC cycle Used to stop electrical reflections and thus signal distortion at the end of the bus cable Terminating resistors are required at each end of the bus cable Software tool used to specify and change the parameters of a parameter block Ver
17. ata block for RK512 telegrams received x DBZ B Data block for RK512 telegrams to be transmitted x Parameters for Return Codes These contain information on the status or processing results of FBs also used to transfer commands e g reset to the FB Name Type Description Function FB200 FB201 FB203 ANZW W Display word for transmission status x x x ANZW shows the status of the transmission operation in progress ANZW is used to convey information on the status of the current data transfer operation Only bits O 1 and 4 are relevant for coordination of transmission and reception ANZW consists of 16 bits as follows BitO 1 FB200 FB201 Operation being executed FB203 Receiving telegram Bit FB200 Operation completed without errors FB201 Telegram received FB203 Transmitting telegram Bit4 Reset the operation Set bit 4 to 1 to cancel the operation Bit 4 is set to O again by the FB when the operation has been reset Note For internal calculations the FB203 for Simatic SZ uses the marker areas MW200 and MW202 Do not use these marker areas in your PLC program Configuring Data Block Size Data blocks for RK512 telegrams DB Q and DBZ must have a length of at least 78 data words to assure reliable reception of entire RK512 telegrams Note Make sure the data block reserved for reading or writing an RK512 telegram exists and has the required length otherwise the FB203 generates an erro
18. contiguration and or parameter telegram See Creating a Configuration Telegram on page 33 for more information Configuring the YSPI3 When configuring the YSPI3 with the Profibus configurator you are prompted to choose a module from the menu Two modules are available which differ in the size of the I O area Choose MODUL_C1C1C105 for a two word I O area Choose MODUL_C1C3C305 for a fourword I O area Atter configuring the YSPI3 you need to set the parameters This is described in Setting Parameters for the YSPI3 on page 12 You should configure only one module for each YSPI3 device Setting Parameters for the YSPI3 When you configure the YSPI3 with the Profibus configurator you can choose the required parameters from a menu You can set the following parameters Data speed Handshake mode ASCII code for XON only required for XON XOFF handshake ASCII code for XOFF only required for XOFF handshake Parity Character format Timeout for slave response Transmission mode Priority Choose the parameters according to your serial field bus devices If necessary refer to the descriptions of the parameters in this manual Installing the Function Blocks Note The function blocks FBs on the supplied diskette are only suitable for Simatic controllers If you want to use another type of controller you will need to create new function blocks yourself See Creating Fu
19. d bus device with a Modbus interface to function as a real Profibus station whereby the YSPI3 converts the data to be exchanged between the Profibus DP master and the field bus device into a format which is compatible with the other device The data channel consists of a transmit and a receive channel YSPI3 Engineering Considerations When designing your YSPI3 installation observe the general rules for Profibus components To ensure that the YSPI3 functions without errors you should also observe the following points Safety Regulations In order to avoid risk to personnel and damage to equipment you must observe 4 the regulations for handling electrical equipment according to VDE 0100 the applicable safety and accident prevention regulations the safety information on page 8 Assembly personne The YSPI3 must be installed or de installed only by qualified technical personnel with appropriate electrotechnical qualifications Profibus Specification Observe the guidelines in the Profibus Specification EN 50 170 Bus Cabling Use only shielded twisted pair Profibus cabling The high data speeds can be guaranteed only with the correct cable type Cable Lengths Refer to the manual for the DP master for information on maximum cable lengths for Profibus Terminating Resistors Terminating resistors must be used if the YSPI3 is installed at the beginning or end of the Profibus cable segment In th
20. e FB Bit 11 Telegram error Bit 12 Communication between YSPI3 and scale impaired Bit 13 No valid measurement Bit 14 15 Free The bit assignment of the display word corresponds up to bit 13 with that of the xBPI protocol In addition bit 13 signals that no valid measurement was received telegram was not N ng DB 104 as an instance The received data is filed in data block 38 beginning from data block byte O A send data compartment is not necessary T he O area of the YSPI3 begins from No Function specification Input parameters Output parameters O Transparent function Data of the telegram 1 Trigger single print Measurement block 2 Zero position tare combi command 22 4 When the command is executed withou block This consists of a 4 byte float value and a ended without errors Transparent function O ma SBI function To this end the telegram not includ and the final CR LF characters must be filed in the send compartment of the ue in the send compar data As most SBI functions by the YSPI3 the job is con ed in the tion block after the length statement The first va be the length statement of the following telegram no response after the data has been transmitted without errors Ifa function supplies data as a response this is not fi telegram is simply availab here are no defined respon receive compartment Received data response the dista
21. e behavior of a device When the system is booted the parameter master passes parameter information to the DP slave The parameter master can write to and read from the slave and change the configuration of the slave To set the behavior of a DP slave and its modules Contains all parameters which can be set for a DP slave Even parity The sum of all Is in a byte must be an even number Odd parity the sum of all 1s in a byte must be an odd number The parity bit which can be 1 or O is used to create an even or odd parity to allow detection of errors due to lost bits Process input image PII Programmable logic controller electronic controller whose control function is controlled by the program in its memory Process output image POI Potential equalization Profibus Protocol Receive Receive channel Remote peripheral Response monitoring Response timeout Segment Send Send channel Slave Electrical connection between conducting bodies to bring them to an identical or practically identical potential and thus prevent interfering or dangerous voltages between the bodies Process Field Bus is an open field bus system used to network Profibus compatible devices Profibus works with three different protocols Profibus DP Decentral Peripheral Profibus FMS field bus Message Specification and Profibus PA Process Automation Profibus is standardize A set of rule
22. fic on the bus must be checked there are fau justed platform di e function te tform has swi h e peri DB_Send P DB37 DBxO 0 DB_Rec P DB38 DBXO 0 Fet_No MVW 106 DISP B 16 1 Timer_100 T 1 DISPVWV MW 100 od of 500 ms Its on the Profibus delays may occur m Only in such a case should the ers from the other functions in the of approx 1s can occur The FB egram If no telegram repeat is ces the job can be completed with tched correctly but the response the example FB 102 is called absolutely using DB 102 as an instance data ing from data block byte O No Function specification Input parameters Output parameters 1E Read measurement net Measurement block 20 Read measurement gross Measurement block 22 Read measurement tare Measurement block 4 Trigger tare combi function a Status 5 Cancel tare combi function Status 3 Delete scale tare and unsigned Status applicative tares A Trigger applicative unsigned Status are function B Cancel applicative unsigned Status are function C Read applicative tare values unsigned Measurement block D Describe applicative unsigned 1 float5 Status tare values 28 Start adjustment and unsigned Status calibration function 29 Cancel adjustment Status calibration function 30 Read scale status block gt String8 1F Read measurement
23. function blocks refer to the section entitled Creating Function Blocks in the Appendix Data Transfer Parameters During an exchange of data the control data and user data is saved in a special region of the PLC call data blocks DB The DP master writes this data to the YSPI3 A data block consists of data words where words O through 4 are reserved for internal calculations Thus user data always begins at DW5 DWO internal use DWA4 internal use Start of user data DW5 User data DWX User data ends There are a number of parameters available for calling FBs as described in the following Parameters for Address Information These indicate the position of the address field of the YSPI3 in the PLC s address space Name Type _ Description Function FB200 FB201 FB203 AA KF Starting address for the transmission area x x x E A KF Starting address for receive area x x x Parameters for User Data These determine where received telegrams are stored and telegrams to be transmitted can be read Name Type Description Function FB200 FB201 FB203 DB B Source destination DB x x DW BY Length of telegram in bytes x x Parameters for Processing RK512 Telegrams These determine where received RK512 telegrams are stored and RK512 telegrams to be transmitted can be read Name Type Description Function FB200 FB201 FB203 DBQ B D
24. g telegram is 1 this signals that the FB201 has received all data To read the data copy it from the DB Reset the FB201 by setting bit 1 Receiving telegram to O The FB201 is now ready to receive yes Evaluate error code comparison 27 Evaluating RK512 Telegrams Proceed as follows to evaluate telegrams with the FB203 Configure DB Q and DB Z of sufficient size see page 16 Configuring Data Block Size for details Note Data blocks DB Q and DBZ are used only for internal processing by the FB Restart or reboot by setting bit 4 of the ANZW to 1 Call the FB203 cyclically The FB automatically processes any RK512 telegrams received Note The FB 203 functions only as a passive RK512 partner Sequence command telegrams cannot be processed 28 Error Diagnosis and Remedies If errors are detected the pattern of flashing of the PB and RUN LED s on the YSPI3 can be used for error diagnosis The LED s can flash with the following patterns this is called LED code in the tables LED off LED short LED medium LED long LED on m m m mmi A HEE EEEH LED is LED is LED is LED is LED is continuously off 4 off on Ys off on Ys off on continuously on Note If the PB LED Profibus is not lit the RUN LED is lit continuously and can no longer indicate an LED code Accordingly the RUN LED can only be used for diagnosis when the PB L
25. is case you should use Profibus connectors which contain an integrated terminating resistor We recommend using connectors from ERNI and Siemens If the bus is incorrectly terminated this can lead to errors in data transfer or to damage to other stations on the bus Bus Connectors You should use only commercially available Profibus connectors for connecting the bus We recommend using connectors from ERNI and Siemens Cable Shielding Shielded cables are less sensitive to interference caused by to electromagnetic fields With shielded cables the interference currents are led to ground through the shielding rail which is electrica y connected to the housing To ensure that the interference currents which flow through the shielding do not themselves interfere with other devices it is important to provide a low impedance connection to the protective ground Observe the following guidelines for shielding in Profibus cable and serial interface cable The braiding of the shielding should have a degree of coverage of more than 80 The shielding should include a braided shield and should not consist solely of foil shielding since the latter can be easily damaged by cable tension and pressure To ensure sufficient immunity to interference at high frequencies the shielding of the cable should be connected to the shielding rail at both ends of the cable Connecting the YSPI3 Safety Inf
26. ks must be used Example of the use of SFC 14 and SFC 15 The 32 byte inputs of the YSPI3 beginning from input byte O are copied into the marker area beginning from marker byte O SFC 14 CALL DPRD_DAT LADDR W 1 6 0 RET_VAL MVV90 RECORD P M 0 0 BYTE 32 NOP O The 32 byte outputs of the YSPI3 beginning from output byte O are copied into th marker area beginning from marker byte 40 SFC 15 CALL DPVVR_DAT LADDR VV 1 6 0 RECORD P M 40 0 BYTE 32 RET_VAL MVV92 NOP O 25 Transmitting Data Proceed as follows to write data with the FB 200 Copy the data to be written to the user data area data word DW5 to DVX of the source DB Call the FB repeatedly while bit O operation is being executed is 1 TH FD007e Send data in DB If the operation is completed without errors ANZW bit 1 1 the data has been written completely If the operation is completed with errors ANZW bit 2 1 valuate the error message and remedy the error When bit 1 1 job completed the data has been transmitted successtully comparison 26 Receiving Data TH FD012e Proceed as follows to receive data with the FB201 Set bit 1 Receive telegram to O and call the FB201 receive data When bit O ob in process is 1 the FB20 1 receives data and stores it in the specified data block DB When bit 1 Receivin
27. mer 500 ms an telegram repea and scale shoul time constan errors altho n D lock in FC 2 th b ts goes into tim d be checked no error can be determined h Where the bus design is large or in the transmission of the response to a telegra tin the FB 102 be ad Function 213h change weighing response time In this case delays in response therefore repeats if configured th contigured on FB 102 under these circumstan ugh the weighing pla telegram has not arrived in the control within t Function block reference Here the send data is in data block 37 beginn The received data is filed in data block 38 beginning from data block byte O The I O area of the YSPI3 begins from marker byte O or 40 In case of errors e telegram is repeated once The parameter Timer_100 provides the function ock with timer 1 for the time monitoring of the telegrams CALL FB 102 DB 102 O_O P M40 0 O P MO 0 clear more detailed indi a function was chosen by the u egram from the scale was not received co then the FB fo is signalled using bit d not be su cations as ser which reference d in accordance with to the cause is not supported by the FB If bit 2 was set by the ccessfully executed rrectly ch the number of eout In such a case bit 10 was set Bit 11 is set ecksum errors lowing the configured the cabling between YSPI3 ere the data traf
28. n the binary system it can have the value O or 1 Cable with two defined ends which is used for transmitting data between the connected bus stations Plug used to connect the bus stations Segment to the bus cable Device attached to the bus which can send data over the bus e g DP master receive data over the bus e g DP slave or amplify signals e g repeater n A byte consis s of eight bits an addressable unit of memory Used to detect the end of a telegram of an unstructured flow of ASCII data The telegram currently being received is con he time between ers is larger than the specified 4 pleted when Stamp Software for configurin ting parameters During configuration of the DP slave are assigned describes the modules in the slave The requi modules which should approach allows an in detected when the sys 4 4 he modules an The ac d is the smallest in the case sidered to be com two received charac charac 4 er timeout d the addresses tual configuration which are actually present red configurati be present in t em is booted g Profibus devi on describes the he slave This correct configuration to be ces and for set Used to synchronize and fragment the exchange of telegrams via Profibus DP Control information is always contained in the first byte byte O of the DP data channel
29. nce data block from data byte 30 Ast times in the SBI protocol the user must check the unction returns a meas byte units vector Function returns no value If the transmission has been carried out by the YSPI3 the job is kes possible the triggering of any ing the leading ESC character func must return cluded errors f content of the data careful urem men ein se y ent 2 As long as the value Oh is in data block 30 no data was received The length of the received data results from the protocol speci Important ication of the SBI protocol When using the SBI protocol only the 22 character format is supported This must be set in the scale 23 Coding of the units vector Value hex Symbol for unit 010 No unit 02 G 03 Kg 04 Ct 05 Lb 06 Oz O7 Ozt 08 Thh 09 Tls OA Tit OB Gr OC Dwt OD Mg OE b OF Tlc O Mom Kt 2 Tol 3 Bat 4 MS 5 T As an example of the application and control of FB 104 a table of variables VAT6 is attached to the project A Consistent data transmission via Profibus DP It must be ensured that th consistently In the exam functions 14 and 15 e 16 word I O data of the YSPI3 is transmitted ple shown this is done with a S7 315 DP using the system When using CP assemb 24 ies the appropriate organization bloc
30. nction Blocks on page 30 for details You must install the function blocks using the appropriate PLC programming software as follows Start the PLC programming software Use a text editor to read the readme eng file on the diskette supplied It contains information on the function blocks required for your particular YSPI3 configuration Refer to the user manual or on line help of your PLC programming software for information on installing the FB or FBs and on further installation steps which are required After installing the function blocks the YSPI3 is ready for use 12 Checking the YSPI3 Before Use Several checks should be made before using the YSPI3 to transfer data Checking the YSPI3 Power Feed At this stage do not attach either the Profibus interface or the serial interface Switch on the power feed for the YSPI3 The RUN LED should light continuously If this is not the case there is a fault in the 24 V power feed Refer to Error Diagnosis and Remedies on page 29 for details on locating the fault Checking Profibus Communication Connect the Profibus interface cable Switch on the power feed for the YSPI3 Start the DB master which has been configured previously as described above The PB LED should light continuously If this is not the case there is an error in th Profibus communication Refer to Error Diagnosis and Remedies on page 29 fo
31. ormation In order to avoid the risk of injury to personnel and damage to the YSPI3 an before connecting the YSPI3 with appropriate electrotech you must observe the regula to VDE 0100 The YSPI3 is designed as an interfaces and the Profibus d other equipment please read the fo The YSPI3 may be installed or de insta nical quali tions for ha ications Whe ndling electrica interface between field b Do not use the YSPI3 for a Extreme temperature differen site can result in the formatio ces between the storage n of condensation within t owing safety in ed only by qua ormation carefully ified technical personnel n connecting the YSPI3 equipment according us devices with serial ny other purpose ocation and installation he case of the YSPI3 f extreme temperature differences are encountered to prevent damage to the device you should wait at least 3 4 hours after installing the YSPI3 before switching on the power The manual uses the following keywords and symbols Danger Risk of injury to personnel due to electric shock E Warning Risk of damage to equipment Note Indicates useful tips Overview of the YSPI3 DOOOOOCOOO 00000 SERIAL PROFIBUS INTERFACE 3 O RUN 307 ae O PB OE 19 gt o q aolha e D lt S 38 R og ORX 2S 7 5 To 2 Po S
32. ous exchange of data between Profibus and a field bus device with serial interface via the YSPI3 Used to uniquely specify a function that can be executed in the con roller Galvanically isolated Ground GSD Handshake ID byte Input byte IP 20 Master Mirror When O devices are galvanically isolated the reference potentials of control circuits and power ircuits are not electrically interconnected O Conductive material e g ground wire with an electrical potential that is considered to be zero all interconnected inactive components of a device which cannot carry dangerous voltages even in the case of faults Device Data Base file DDB i e electronic device data sheet which describes the features of the Profibus device uniquely and completely in a clearly specified syntax A GSD file for the YSPI3 is provided on the supplied diskette and is required to set up the device Method used to synchronize data exchange For example data can only be exchanged between a master and slave after the master and the slave have agreed that the exchange should take place Configures the number and size of the bytes to be transferred in a module PLC address area which contains the data that the DP slave sends to the DP master Protection class specification to DIN 40 050 Components of the device which carry voltages are protected against touching with the fingers and
33. r details on locating the fault Checking the Serial Interface Communication Connect the Profibus interface cable and the serial interface cable Switch on the power feed for the YSPI3 Start the DB master which has been configured previously as described above Start the communication with the serial device The RUN LED should light continuously If this is not the case there is an error in the communication with the serial device Refer to Error Diagnosis and Remedies on page 29 for details on locating the fault n addition the TX LED should flash when data is being transmitted over the serial interface and the RX LED should flash when data is being received over the serial interface f no errors were detected the YSPI3 is ready for use Data Transfer Using the Simatic S7 Function Blocks Function Blocks FB regulate acyclical data exchange between a PLC and the YSPI3 The enclosed diskette contains a file with three FBs each of which has different tasks FB200 for transmitting PLC data to the YSPI3 FB201 for receiving PLC data from the YSPI3 FB203 for processing RK5 12 telegrams passive nodes received or transmitted over the YSPI3 Note The FBs on the enclosed diskette are suitable for use only with the Simatic SZ Control FBs Please read the readme txt file for further information If you do not use Simatic S7 Control you must create your own
34. r telegram S7 Function Blocks for Activating Sartorius Scale Technology Via YSPI3 To Profibus DP The design and commissioning of the YSPI3 must be undertaken as described in the documentation entitled YSPI3 Serial Profibus Interface for field devices with serial interface Data exchange via xBPI protocol is carried out using FB 102 and via SBI protocol using FB 104 1 Setting up the hardware under S7 The GSD file of the YSPI3 on the enclosed disk must be copied and integrated into the device master data register of the SZ software First the YSPI3 must be connected as a device to a projected Profibus DP file symbol Module CICFCFO 1 for 16 word I O must be inserted into the attribute side of the DP slave Both function blocks are designed only for this module The address area and the parameters of the serial interface of the YSPI3 can be set via the attributes of the module For both protocols the setting for the transmission mode must be made using free ASCII driver The setting Priority has no importance The settings baud rate handshake parity character frame and delay time must be co ordinated with the serially connected scale system The minimum Profibus baud rate must be not less than 93 75 kBit s A maximum of 12 Mbit s is possible 2 xBPI protocol The processing of the xBPI protocol is carried out using FB 102 The tunction block is designed as follows FB 102 O_O IN IN OUT
35. rmation from the YSPI3 The YSPI3 places a copy of the stamp in the mirror to indicate that it is ready for data exchange that the user data is being processed the end of the job 36 If it is required to transmit a telegram which is larger than the available data channel 2 or 4 words it must be split up and transferred in several parts fragments The data channel consist of a send and a receive channel The send channel consists of an input byte input byte OJ for the send mirror and 7 output bytes consisting of the send stamp output byte O and the user data output bytes 2 7 nput byte Byte O Send mirror Output bytes Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Send stamp User data The receive channel consists of an output byte for the receive stamp output byte 1 and 7 input bytes consisting of the receive mirror input byte 1 and the user data input bytes 2 7 Output byte Byte O Byte Receive stamp nput byte Byte O Byte Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 Byte 7 Receive User data mirror 37 Output byte O contains the send stamp Send stamp O indicates that the DP master is ready to send Send stamp O indicates that user data now follows or that the job is complete Output byte 1 contains the receive stamp Receive stamp O indicates that the DP master is ready to receive
36. s and regu din EN 50 170 ations which contro of information in a communication system protocol can refer to ei ther hardware or so the flow The term tware The field bus device receives a telegram from the DP master through or data An I O device which PLC CPU but i 4 Data channel a slave is no g timeout it switches y setting al som n MUS accessed the YSPI3 ed the same for both partner devices is Sec which the YSPI3 receives is not directly integrated in the s accessed remotely via the bus within the response monitor automatically to a safe status outputs to O The response monitoring meout is specified during parameter setting The duration of time within which the partner device respond The response timeout must be configur ion of the bus cable between two terminating resistors A bus segment can support up to 32 bus stations and several bus segments can be connected with RS 485 repeaters The DP master sends a telegram to a field bus device through the YSPI3 Data channel for data which is sent to the YSPI3 Bus station which is only allowed to exchange data with a master and only on request of the master 45 Stamp Station address 4 UN atus byte Step 5 Step 7 Step 7 tool SYNC Telegram Telegram fragment Terminating resistor ool 46 The output byte O of a data channel is c
37. sion code Word Xon Xoff t Indica es the version of a product and is always incremented when the hardware or software in the product is updated or modified The version code can be seen on the at the bottom left Data word With software indicates readi With software irst and second page of this manual flow control the XON control character ness to receive complement of XOFF flow control the XOFF control character indicates unreadiness to receive complement of XON 47 Sartorius AG lt 37070 Goettingen Germany Weender Landstrasse 94 108 37075 Goettingen Germany 49 551 308 0 F4 49 551 308 289 Internet http www sartorius com Copyright by Sartorius AG Goettingen Germany All rights reserved No part of this publication may be reprinted or translated in any form or by any means without the prior written permission of Sartorius AG The status of the information specifications and illustrations in this manual is indicated by the date given below Sartorius AG reserves the right to make changes to the technology features specifications and design of the equipment without notice Status July 1999 Sartorius AG Goettingen Germany Printed in Germany on paper that has been bleached without any use of chlorine W399 A00 Profibus YSPI3 KT Publication No WYS6055 e9907 1 sartorius
38. tation Ol lo OOOOOOO0OO0000000 Connections and Interfaces Power supply 24V Screw terminal for external 24 V power supply GND Signal ground terminal SE Protective ground terminal Profibus interface Serial interface Attachment Spring loaded clip to release the YSPI3 from the top hat rail Operating Elements Rotary switches for setting the Profibus address Switch for setting the tens value Switch for setting the units value Indicating Elements LEDs to indicate operating states see Error Diagnosis and Remedies on page 29 RUN lit continuously if supply voltage is present flashes in case of errors PB lights up if the YSPI3 has been configured by the master and is operational TX flashes if data is being sent over the serial interface RX _ flashes if data is being received over the serial interface 8 Connecting the YSPI3 Attaching the YSPI3 to the Top hat Rail Hook the YSPI3 onto the top hat rail and snap into place In order to remove the YSPI3 from the top hat rail pull out the orange locking clip with a suitable tool Connecting the Power Supply A Danger Incorrect grounding of the YSPI3 can injure personnel and damage equipment Make sure that the YSPI3 is correctly grounded Warning Although the YSPI3 is protected against polarity reversal connecting up the power feed with incorrect polarity for extended periods can dam

Download Pdf Manuals

image

Related Search

Related Contents

経緯度レベルのディファレンシャルGPS測位に関する研究  GRM Demo user manual  Home Decorators Collection 0995920280 Installation Guide  NETA Framework manual  Kongsberg XPA, User Manual - Product Documentation  

Copyright © All rights reserved.
Failed to retrieve file