background image

Index

A

Alarm processing, 43

B

Bit assignment, 45

C

Connection, 13

D

Data consistency, 38

when receiving data, 38

when sending data, 38

E

ET 200S 1SI application example, 39

ET 200S 1SI function blocks, 19

_ET200S_SIxx_flowRts, 32

_ET200S_SIxx_flowV24, 34

_ET200S_SIxx_flowXon, 30

_ET200S_SIxx_getV24Sig, 27

_ET200S_SIxx_receive, 23

_ET200S_SIxx_send, 19

_ET200S_SIxx_setV24Sig, 29

Call example, 36

F

Functionality, 12

I

I/O variable

Creating, 16

Insert the ET 200S 1SI into the project, 14

Integrating the function blocks, 15

P

Possible applications, 12

Product description, 11

R

Reading RS 232 C auxiliary signals, 27

Receiving data, 23

References, 4

S

Sending data, 19

Setting and resetting RS 232 C auxiliary signals, 29

Setup, 13

SIMATIC and SIMOTION Names, 47

Supplement to the ET 200S 1SI serial interface module

Function Manual, 01/2015, xxx

51

Summary of Contents for ET 200S 1SI

Page 1: ...t to the ET 200S 1SI serial interface module Function Manual 01 2015 xxx Preface Fundamental safety instructions 1 Description 2 Function blocks of the ET 200S 1SI serial interface module 3 Alarm processing 4 Appendix A ...

Page 2: ...rsonnel are those who based on their training and experience are capable of identifying risks and avoiding potential hazards when working with these products systems Proper use of Siemens products Note the following WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation If products and components from other manufacturers ...

Page 3: ...or communication between the SIMOTION system and the ET 200S 1Sl serial interface module are part of the program library of the SIMOTION SCOUT engineering system Sections in this manual The following sections of the manual describe the function blocks FBs used in a SIMOTION system General This section describes the similarities and differences in handling the ET 200S 1Sl serial interface module Fu...

Page 4: ...nd Internet addresses Additional information Click the following link to find information on the following topics Ordering documentation overview of documentation Additional links to download documents Using documentation online find and search manuals information http www siemens com motioncontrol docu My Documentation Manager Click the following link for information on how to compile documentati...

Page 5: ...nd in the Service Support pages in Product Support http support automation siemens com Technical support Country specific telephone numbers for technical support are provided on the Internet under Contact http www siemens com automation service support Preface Supplement to the ET 200S 1SI serial interface module Function Manual 01 2015 xxx 5 ...

Page 6: ...Preface Supplement to the ET 200S 1SI serial interface module 6 Function Manual 01 2015 xxx ...

Page 7: ...erview of function blocks 19 3 2 Function blocks _ET200S_SIxx_send 19 3 3 Function blocks _ET200S_SIxx_receive 23 3 4 Function blocks _ET200S_SIxx_getV24Sig 27 3 5 Function blocks _ET200S_SIxx_setV24Sig 29 3 6 Function blocks _ET200S_SIxx_flowXon 30 3 7 Function blocks _ET200S_SIxx_flowRts 32 3 8 Function blocks _ET200S_SIxx_flowV24 34 3 9 Calling function blocks 36 3 10 Data consistency 38 3 11 A...

Page 8: ...Table of contents Supplement to the ET 200S 1SI serial interface module 8 Function Manual 01 2015 xxx ...

Page 9: ...strial security Note Industrial security Siemens provides products and solutions with industrial security functions that support the secure operation of plants solutions machines equipment and or networks They are important components in a holistic industrial security concept With this in mind Siemens products and solutions undergo continuous development Siemens recommends strongly that you regula...

Page 10: ... and newsletters can be found at http support automation siemens com Incorporate the automation and drive components into a state of the art integrated industrial security concept for the installation or machine For more detailed information go to http www siemens com industrialsecurity Make sure that you include all installed products into the integrated industrial security concept Fundamental sa...

Page 11: ...r higher SIMOTION Kernel V4 0 or higher SIMOTION technology packages V4 0 or higher 2 2 Product description The ET 200S 1SI serial interface module enables you to exchange data between your SIMOTION system and another communication partner You can select the mode of communication for data exchange in the hardware configuration of SIMOTION SCOUT The serial interface module is displayed in the hardw...

Page 12: ...l interface module in a SIMOTION system is the same as that in SIMATIC S7 The following ET 200S 1SI serial interface modules are not supported by the function blocks 1SI Modbus Master 4 8 32 bytes 1SI USS Master 4 8 32 bytes Possible applications You can use the ET 200S 1SI serial interface module without restrictions in a SIMOTION system For this to be possible the module must be operated as a di...

Page 13: ...he ET 200S distributed I O system complete with interface module IM and serial interface module 2 Set up the PROFIBUS connection between the ET 200S and the SIMOTION hardware platform 3 Set the PROFIBUS DP node address on the IM 4 Switch on the terminating resistor at the first and last bus node Note For steps 1 to 4 refer to the ET 200S Distributed I O System manual This documentation is included...

Page 14: ...e platform in the hardware configuration 2 You have configured a PROFIBUS subnet Note For information on creating a project and configuring a PROFIBUS subnet refer to the online help for SIMOTION SCOUT The following requirements must be met when with PROFINET 1 You have created a project in SIMOTION SCOUT and have inserted and configured a rack with a PROFINET compatible SIMOTION device in the har...

Page 15: ...propriate module for your application Use a drag and drop operation to place these modules in the ET 200S Note Diagnostic alarms are not enabled by default Activate the alarms for each module in the Properties dialog box 7 Save and compile your project 2 5 Integrating the function blocks in the user project Creating the FBs instance in the user project The function blocks are part of the program l...

Page 16: ...BYTE or ARRAY 0 31 of BYTE Assign the addresses set in the HW Config to them The names of the I O inputs must be transferred to the function blocks as call parameters periIn The prepared data for the I O outputs are provided by the FB as in out parameters periOut The in out parameter must be supplied with a variable of type ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE or ARRAY 0 31 of BYTE After the block ...

Page 17: ...Text programming manual SIMOTION MCC Motion Control Chart programming manual SIMOTION LAD FBD Ladder Diagram and Function Block Diagram programming manual These documents are included in the SIMOTION SCOUT scope of delivery as electronic documentation Description 2 6 Creating I O variables Supplement to the ET 200S 1SI serial interface module Function Manual 01 2015 xxx 17 ...

Page 18: ...Description 2 6 Creating I O variables Supplement to the ET 200S 1SI serial interface module 18 Function Manual 01 2015 xxx ...

Page 19: ...4Sig Page 29 Function blocks _ET200S_SIxx_flowXon Page 30 Function blocks _ET200S_SIxx_flowRts Page 32 Function blocks _ET200S_SIxx_flowV24 Page 34 Note xx stands for 04 08 and 32 e g Function block _ET200S_SI04_send Function block _ET200S_SI08_send Function block _ET200S_SI32_send The designation with _SIxx_ is retained in the following Note The SIMOTION identifiers have changed as of V4 0 A comp...

Page 20: ...r Actions per formed by block execute IN BOOL Initiates request on positive edge Entered Checked reset IN BOOL Aborts request Entered Checked dataOffset IN INT Offset of the first element to be sent Entered Checked dataLength IN INT Number of elements to be sent 1 dataLength 224 Entered Checked periIn IN ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Transfers I O inputs of the se rial int...

Page 21: ...y must be assigned to the I O variable for the I O outputs of the module See call example in Section Calling the function blocks 3 For error information refer to SIMATIC manuals ET 200S Distributed I O System Section Commissioning and Diagnostics and ET 200S 1SI Serial Interface Modules Assignment in the data area The data to be sent is transferred to _ET200S_SIxx_send in the data parameter VAR_IN...

Page 22: ...be called cyclically in the BackgroundTask or the TimerInterruptTask Calling in the SystemInterruptTask is not permitted Calling the function block in the IPOSynchronousTask is not recommended for runtime reasons The SIMOTION device sends data to a communication partner The _ET200S_SIxx_send FB transfers a data block which is specified by the following parameters for the serial interface module da...

Page 23: ... the corresponding event class number is displayed in the errorID output parameter see table Parameter _ET200S_SIxx_send If no errors have occurred errorID has a value of 0 The parameters Done and error errorID are also displayed on reset of the _ET200S_SIxx_send FB Parameters done error and errorID are present for one block pass only 3 3 Function blocks _ET200S_SIxx_receive Task The _ET200S_SIxx_...

Page 24: ...ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Transfers I O inputs of the serial interface module to FB I O variable of the I O inputs of the serial module transferred to the FB Checked periOut IN OUT ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Prepared data of the FB for the I O outputs of the serial interface module 2 Checked and en tered on the I O vari able for the I O out ...

Page 25: ...the FB has been called this array must be assigned to the I O variable for the I O outputs of the module See call example in Section Calling the function blocks 3 For error information refer to SIMATIC manuals ET 200S Distributed I O System chapter Commissioning and Diagnostics and ET 200S 1SI Serial Interface Modules Assignment in the data area During the receive operation the data to be received...

Page 26: ... a communication partner The _ET200S_SIxx_receive FB transfers a data block which is specified by the data and dataOffset parameters from the serial interface module to a SIMOTION hardware platform The _ET200S_SIxx_receive FB must be called repeatedly by a program The receive request can only be executed by cyclically calling the receive FB Receiving of data is enabled with static signal state TRU...

Page 27: ...ed dataLength error and errorID are present for one block pass only 3 4 Function blocks _ET200S_SIxx_getV24Sig Task When an ASCII driver is specified the _ET200S_SIxx_getV24Sig reads the RS 232C secondary signals and provides them to the user as output parameters Depending on which data interface you have chosen in the hardware configuration you use the _ET200S_SI04_getV24Sig function block for th...

Page 28: ... Entered 1 Parameter types IN input parameter OUT output parameter IN OUT in out parameter 2 Note The periOut parameter must be provided with an array of type ARRAY 0 3 of BYTE or ARRAY 0 7 of BYTE Create a local or global array in your program under VAR do not create a temporary array under VAR_TEMP After the FB has been called this array must be assigned to the I O variable for the I O outputs o...

Page 29: ...r description Table 3 4 Parameter _ET200S_SIxx_setV24Sig Name P type 1 Data type Meaning Actions performed by user Actions per formed by block execute IN BOOL Initiates request on positive edge Entered Checked reset IN BOOL Aborts request Entered Checked sigDtr IN BOOL Data terminal ready Entered Checked sigRts IN BOOL Request to send Entered Checked periIn IN ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE A...

Page 30: ...on Commissioning and Diagnostics and ET 200S 1SI Serial Interface Modules Task integration call The _ET200S_SIxx_setV24Sig FB must be called cyclically in the BackgroundTask or the TimerInterruptTask Calling in the SystemInterruptTask is not permitted Calling the function block in the IPOSynchronousTask is not recommended for runtime reasons 3 6 Function blocks _ET200S_SIxx_flowXon Task The _ET200...

Page 31: ...rs Entered Checked waitForXon IN DINT Delay time for XON after XOFF Value range 20 ms waitForXon 655350 ms Entered Checked periIn IN ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Transfers I O inputs of the serial in terface module to FB I O variable of the I O inputs of the serial module transferred to the FB Checked periOut IN OUT ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE P...

Page 32: ...cs and ET 200S 1SI Serial Interface Modules Task integration call The _ET200S_SIxx_flowXon FB must be called cyclically in the BackgroundTask or the TimerInterruptTask Calling in the SystemInterruptTask is not permitted Calling the function block in the IPOSynchronousTask is not recommended for runtime reasons 3 7 Function blocks _ET200S_SIxx_flowRts Task The _ET200S_SIxx_flowRts function block en...

Page 33: ... Value range 20 ms waitForXon 655350 ms Entered Checked periIn IN ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Transfers I O inputs of the serial in terface module to FB I O variable of the I O inputs of the serial module transferred to the FB Checked periOut IN OUT ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Prepared data of the FB for the I O outputs of the serial interface ...

Page 34: ...0S 1SI Serial Interface Modules Task integration call The _ET200S_SIxx_flowRts FB must be called cyclically in the BackgroundTask or the TimerInterruptTask Calling in the SystemInterruptTask is not permitted Calling the function block in the IPOSynchronousTask is not recommended for runtime reasons 3 8 Function blocks _ET200S_SIxx_flowV24 Task The _ET200S_SIxx_flowV24 function block enables you to...

Page 35: ...tered Checked maxWaitTime IN DINT Wait time for CTS ON by part ner after RTS ON has been set Value range 0 maxWaitTime 655350 ms Entered Checked periIn IN ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE ARRAY 0 31 of BYTE Transfers I O inputs of the serial interface module to FB I O variable of the I O inputs of the serial module transferred to the FB Checked periOut IN OUT ARRAY 0 3 of BYTE ARRAY 0 7 of BYTE...

Page 36: ...mInterruptTask is not permitted Calling the function block in the IPOSynchronousTask is not recommended for runtime reasons 3 9 Calling function blocks In order to be able to work with the function blocks in your user program proceed as follows the numbers shown in the following program segment correspond to the steps below 1 Create the function block instance see the following program segment e g...

Page 37: ...ET200S_1 ARRAY 0 7 OF BYTE array for ET200S output data END_VAR 2 CALL FB INSTANCE TO SEND myInstET200S_SISend execute myExecSend trigger order 3 reset myAbortSend order cancellation dataOffset myDataOffsetSend data offset dataLength myDataLengthSend amount of data to be sent periIn myPeripheralInputET200s_1 I O variable of I O inputs periOut myOutputArrayET200S_1 output data array data mySendData...

Page 38: ...on to the static memory area of the FB data consistency cannot be guaranteed if the send receive data areas are accessed in a higher priority task When receiving data Once the receive request is complete the data are copied over to the receive buffer in a block from the static memory area of the receive FB This means that once the FB call has ended either all data are entered in the receive buffer...

Page 39: ...rameters Proceed as follows 1 Open your project in SIMOTION SCOUT 2 Open the hardware configuration in SIMOTION SCOUT 3 Configure your hardware station with the two ET 200S 1SI serial interface modules 8 byte data interface see chapter Integrating the ET 200S 1SI serial interface module into the SIMOTION project Page 14 4 The serial interface modules are located below the IM 151 1 PROFIBUS interfa...

Page 40: ...you can download the example to the SIMOTION device and switch to RUN mode Sequence of the application example Input icons used Table 3 8 Input icons used Symbol Data type Description mySelectPointToPoint BOOL Select point to point communication myExecSend BOOL Initiate send request mySendOrder1 BOOL Select send Request 1 mySendOrder2 BOOL Select send Request 2 myAbortSend BOOL Abort send request ...

Page 41: ... data offset is 0 If request 2 is enabled myReceiveOrder2 TRUE the data is stored in the receiveDataArray data array starting with the receiveDataArray 20 array element data offset is 20 If myNewDataReceived TRUE this indicates that new data has been received This signal is present for one cycle only If an error occurred during the transfer myReceiveError TRUE the error code is stored in the myRec...

Page 42: ... input myExecSend FALSE If the signal state at the myAbortSend or myAbortReceive input is TRUE the send request or receive request respectively is aborted If the signal state remains TRUE sending and receiving of data is disabled Function blocks of the ET 200S 1SI serial interface module 3 11 Application example for the ET 200S 1SI serial interface module Supplement to the ET 200S 1SI serial inter...

Page 43: ...gram the alarm processing sequence according to the principle presented below 3HULSKHUDO DXOW7DVN ODUP LQIRUPDWLRQ 76 GHWDLOV 7ULJJHULQJ PRGXOH 76 ORJ DVH GULQ 76 ORJ DVH GU2XW KLFK LQWHUUXSW 76 LQWHUUXSW ODUP HYHQW LDJQRVWLF LQWHUUXSW 76 LQWHUUXSW B6 B 1267 B 17 55837 Figure 4 1 Alarm processing for the serial interface module Alarm evaluation Alarms originating from the I O are evaluated in the ...

Page 44: ...ise _SC_INVALID_ADDRESS DWORD TSI details Detail information bit fields Definition of a diagnostic alarm If the user program is to respond to an internal or external error you can set the parameters for a diagnostic alarm that will interrupt the cyclical program of the SIMOTION device Events triggering a diagnostic alarm The criteria events that trigger diagnostic alarms in a SIMOTION system are t...

Page 45: ...he same way as in a SIMATIC system Note For a more detailed description refer to the SIMATIC manual ET 200S 1SI Serial Interface Module Diagnostics chapter Alarm processing Supplement to the ET 200S 1SI serial interface module Function Manual 01 2015 xxx 45 ...

Page 46: ...Alarm processing Supplement to the ET 200S 1SI serial interface module 46 Function Manual 01 2015 xxx ...

Page 47: ...periIn inputInterface periOut outputInterface data DB_NO data done DONE done error ERROR error errorID STATUS errorNumber _ET200S_SI04_receive _ET200S_SI08_receive _ET200S_SI32_receive FB P_RCV FB 2 _FB_ET200S_SI4_receive _FB_ET200S_SI8_receive enable EN_R enable reset R abort dataOffset DBB_NO dataOffset periIn inputInterface periOut outputInterface data DB_NO data newDataReceived NDR newDataRece...

Page 48: ...t sigDtr DTR signalDTR sigRts RTS signalRTS periIn inputInterface periOut outputInterface done DONE done error ERROR error errorID STATUS errorNumber _ET200S_SI04_flowXon _ET200S_SI08_flowXon _ET200S_SI32_flowXon FB F_XON FB 6 _FB_ET200S_SI4_FXON _FB_ET200S_SI8_FXON execute REQ request reset R abort sigXon XON signalXON sigXoff XOFF signalXOFF waitForXon WAIT_FOR_XON waitForXON periIn inputInterfa...

Page 49: ...imeRTSOff maxWaitTime DATA_WAIT_TIME maxWaitTime periIn inputInterface periOut outputInterface done DONE done error ERROR error errorID STATE errorNumber A 2 List of abbreviations Table A 2 Abbreviations Abbreviation Meaning DP Distributed I O FB Function block HW Hardware IM Interface Module SIMATIC S7 300 interface module IN Input parameter IN OUT In out parameter I O Input Output LAD Ladder Log...

Page 50: ...Appendix A 2 List of abbreviations Supplement to the ET 200S 1SI serial interface module 50 Function Manual 01 2015 xxx ...

Page 51: ...eceive 23 _ET200S_SIxx_send 19 _ET200S_SIxx_setV24Sig 29 Call example 36 F Functionality 12 I I O variable Creating 16 Insert the ET 200S 1SI into the project 14 Integrating the function blocks 15 P Possible applications 12 Product description 11 R Reading RS 232 C auxiliary signals 27 Receiving data 23 References 4 S Sending data 19 Setting and resetting RS 232 C auxiliary signals 29 Setup 13 SIM...

Page 52: ...Index Supplement to the ET 200S 1SI serial interface module 52 Function Manual 01 2015 xxx ...

Reviews: