Home
Premium and Atrium using Unity Pro
Contents
1. TSX PCX 1031 T FTX CB 1020 1050 TSX P ACC 01 PC slave 41 Terminal port and TSX P ACC 01 device Example of Illustration connecting a Premium PLC Premium master TSX RKY and an Atrium PLC TSX PCX 1031 A Atrium slave T FTX CB 1020 1050 PC slave TSX P ACC 01 Ae S1 ON S2 ON 42 Terminal port and TSX P ACC 01 device Inter device Uni Telway General Example The terminal port on Premium Atrium PLCs enables them to be connected to a Uni Telway bus in order to communicate with devices such as speed controllers sensor actuators or with other PLCs Connecting a Premium Atrium master or slave PLC to a Uni Telway bus requires the use of a TSX P ACC 01 See ntroduction to TSX P ACC 01 p 55 device Examples of connection PC slave Premium master
2. TSX 57 Bi A slave AE A E aao 6 TSX 37 Hz Y ii slave FEI aco 8 Transmission From module TSX SCY 21601 in position 0 of the slave rack and through the built in link the server of the master can be accessed READ VAR ADDR 0 2 0 0 SMW 0 5 MW50 4 MW20 5 277 Software implementation Uni Telway communication Slave to Slave exchanges Introduction The slave station makes exchanges with another slave station Transmitting slave Destination slave Processor Link Link Processor System Ado System 1 Ad1 Appli 2 Appli cation Ad2 cation Link Processor System Application Master Adi to Ado Exchange of slave Ad1 with slave Ado identified by address mark 1 allows the exchange sender slave application program to communicate with the destination slave system access to different objects etc Note In all cases the requests transit via the master in total transparency Exchange with Exchange of slave Ad1 with slave Ad2 identified by the address mark 2 is used to the application send messages from the sender slave application program to the destination slave application program 278 Software implementation Uni Telway communication Communic
3. Magelis slave 28 Terminal port and TSX P ACC 01 device Atrium station TSX RKY rack Magelis slave 29 30 Terminal port and TSX P ACC 01 device Uni Telway master slave communication General The default communication mode for the terminal port is master Uni Telway It is mainly used to link up a programming terminal and a slave man machine interface console Premium master Client Server I E PC Client Server Magelis Note When using an Atrium PLC or if the processor only has one terminal port this type of connection can be made by using a TSX P ACC 01 See Introduction to TSX P ACC 01 p 55 device Terminal port and TSX P ACC 01 device Character string communication
4. General This mode is used to connect up a printer or specialized console screen control table controller etc to the terminal port of a Premium or Atrium PLC Illustration Premium TSX RKY O iS Om 5 OF w oq 0 OF H le asin Jie toT Ind i j O o Atrium E or witb I o o 5 La Control screen Printer Printer 31 Terminal port and TSX P ACC 01 device 3 2 Connections At a Glance Aim of this This Section deals with the different connections of the Terminal port Section What s in this This section contains the following topics Section Topic Page Connections 33 Programming Adjustment terminal 34 Man machine interface console 35 Programming adjustment terminal and man machine interface console 36 Modem on terminal port 37 Master Uni Telway 39 Slave Uni Telway 40 Inter PLC Uni Telway 41 Inter device Uni Telway 43 Master PLC type TSX model 40 44 Character string 45 Summary table of terminal port connections 48 32 Terminal port and TSX P ACC 01 device Connections General Methods of connection The connector marked TER is used to connect any device which supports Uni Telway protocol in particular devices which do not have their own power supply RS 485 RS 232 connector cable converters TSX P ACC 01 See
5. On keaI 7 E E za chic Hl ee Lt sI U E master Slave AdO 6 Ad1 7 Slave Ad0 8 275 Software implementation Uni Telway communication Transmission Reception Send the identification request SEND_REQ ADDR 0 0 1 7 15 MW0 3 MW40 4 MW10 30 Parameters of the request Parameters Description ADDR 0 0 1 7 0 rack 0 module 1 channel 1 e 7 transmitting address Ad1 15 or 16 0F identification request MWO 16 FE 00 MW1 16 00 00 MW2 16 00 00 access to the Master system gate MW43 6 transmission of 3 words 6 bytes After the exchange Parameters Description MW40 16 11 00 MW41 16 3F 00 16 3F report gt 0 request code 16 30 MW42 16 00 00 MW43 16 00 14 reception of 14 bytes from MW10 276 Software implementation Uni Telway communication Example of a direct exchange from a slave to the Master system At a Glance The host channel of the TSX SCY 21601 module equipped with the PCMCIA card TSX SCP 111 112 114 enables you to use the READ VAR and WRITE VAR communication functions to communicate with the server of a master TSX 57 9 master
6. Section Topic Page 5 1 At a Glance 102 5 2 Description 104 5 3 Connecting the PCMCIA card reception channel 105 5 4 Connection of the TSX SCP 111 card 113 5 5 Connection of the TSX SCP 112 card 116 5 6 Connection of the TSX SCP 114 card 128 5 7 Summary of connection devices 137 5 8 Precautions when connecting PCMCIA cards 138 5 9 Consumption of PCMCIA cards 139 101 Implementation of PCMCIA cards 5 1 At a Glance At a Glance General Premium Atrium PLC stations connect to communication networks buses and links through PCMCIA communication cards The card to be connected is a metal device whose dimensions comply with PCMCIA extended type Ill PCMCIA cards are installed in the host slot of the processor and or TSX SCY 21601 module in PLCs from the Premium family PCMCIA cards can also be used in devices which have slots for type III cards such as FT 2100 terminals or PC compatible third party devices for example Illustration Ore gt Ol ZI U Oll gt Premium ENR r 7 x Premium Atrium Note It is prohibited to connect PCMCIA cards when the power is switched on PCMCIA cards are installed operated and maintained using Unity Pro programming and operation softw
7. 4 Select the function JBUS MODBUS LINK For TSX SCY 11601 the Modbus function is set by default Example E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD H TSX SCY 21601 E Channelo Function Modbus Jbus Link 7 Task MAST 185 Software implementation Modbus Communication How to access PCMCIA Modbus card parameters At a Glance How to access the link This operation describes how to access the configuration screen of a PCMCIA card Modbus link for Premium PLCs The following table shows the steps to follow in order to access the Modbus link Step Action 1 Open the hardware configuration editor 2 Double click on the PCMCIA card slot Result the card type selection window appears Add Replace a submodule Product reference Description Communication rf FCS SCP 111 RS232 OPEN PCMCIA CARD t FCS SCP 114 RS485 OPEN PCMCIA CARD E TSX FPP 20 FIPWAY PCMCIA CARD I j TSX FPP 200 FIPWAY PCMCIA CARD I Fk TSX J NP 112 BC J NET PCMCIA CARD TSXJNP 114 RS485 J NET PCMCIA CARD I r TSX SCP 111 RS232 MP PCMCIA CARD l TSX SCP 112 BC MP PCMCIA CARD f TSX SCP 114 RS485 MP PCMCIA CARD 3 From the menu click on one of the following PCMCIA cards then validate by clicking OK e TSX SCP 111 e TSX SCP 112 e TSX SCP 114 186 Software implementat
8. IS Qn B G 2 Y ID o p ICC a lt a oo i 4 II mF TSX P ACC 01 67 Terminal port and TSX P ACC 01 device Uni Telway master mode Example A TSX P ACC 01 device is connected to a Uni Telway link master PLC as in the example below Switches S1 and S2 must be positioned on OFF master mode Example on a Premium station PC slave Premium master S1 OFF S2 OFF Addresses 1 2 3 TSXPCX 1031 _ TSX SCA 6 TSX CSC 015 OL af Magelis slave TSX 17 20 slave Addresses 4 5 ATV 16 slave Address 6 Addresses 7 8 1000 meters maximum 68 Terminal port and TSX P ACC 01 device Example on an Atrium station TSX RKY Once T IO 0 1o H i PC slave Host PC 3 Atrium Master ies el Addresses 1 2 3 TSX P ACC 01 TSX SCA
9. TSX P ACC 01 ATV 16 slave The connected devices communicate with the PLC using UNI TE protocol Communication between the different components is allowed The programming terminal can directly access all these devices to carry out adjustments and diagnostics functions Note To install TSX SCA 50 and TSX SCA 62 devices consult the TSX DG UTW manual Uni Telway Bus communication 43 Terminal port and TSX P ACC 01 device Master PLC type TSX model 40 General A TSX PMX model 40 PLC can also be configured in master mode on a Uni Telway bus and can control slave Premium Atrium PLCs Example of connection PC slave TSX 107 40 master TSX SCA 62 Premium slave i Note To install TSX SCA 50 and TSX SCA 62 devices consult the TSX DG UTW manual Uni Telway Bus communication 44 Terminal port and TSX P ACC 01 device Character string General points The terminal port when configured in ch
10. ala lala This window displays the different counters in slave configuration The Reset Counters button resets these counters to zero Slave Bus counter or listen only mode e slave bus this counter is incremented by the slave when it receives a request from the master while in the process of processing another request This happens when the master sends a request It does not wait for a response from the slave and may send another request e Listen only mode this is the operating mode of a slave which is only in listen mode It never responds to frames sent by the master In this case this counter indicates the number of frames received by the slave 211 Software implementation Modbus Communication How to test a communication channel At a Glance This page describes the procedure for testing a communication channel from the debugging screen How to identify a The following procedure is used to identify a designated station station Step Actions 1 Select the address of the slave to be interrogated using the Slave field 2 Click on the Identification button Result the response appears in the Receive Response window Response reception fis TSX 57204 0 m E ASCII O Hex 212 Software implementation Modbus Communication
11. 48 Terminal port and TSX P ACC 01 device Configuring the TSX PCX 1031 and TSX PCX 1130 cables The two cables TSX PCX 1031 and TSX PCX 1130 convert RS 485 and RS 232 signals They allow the terminal port to be connected to RS 232 devices that do not handle RTS Both are equipped with a switch that enables the PLC to be set to either Master of Slave mode The switch is accessible internally by removing the metal cover containing the electronics The management of the switch is as follows Unity Pro Master Uni Telway configuration Unity Pro Slave Uni Telway configuration Unity Pro Character Mode configuration Switch position M Uni Telway Master with Unity Pro configuration Uni Telway Master with default configuration Uni Telway Master with default configuration Switch position S Uni Telway Slave with default configuration Uni Telway Slave with Unity Pro configuration Character Mode with Unity Pro configuration Illustration Master mode M Slave mode S 49 Terminal port and TSX P ACC 01 device Configuring the TSX PCX 3030 cable The TSX PCX 3030 cable is a USB RS 485 serial link converter It is used to connect a device with a USB port to a PLC s terminal or AUX port The TSX PCX 3030 cable is fitted with a switch that selects the communication mode The switch is used to set the PLC s communication mode as either Mast
12. 0 e eee 224 9 3 9 4 Chapter 10 10 1 10 2 10 3 Ata Glance 2 20c4an di eee asda dda da yaw JA Pe eee eee a How to access the Terminal Port parameters 0 eee eee How to access the parameters of the built in channel of the TSX SCY 21601 module in character mode 0 200ee ee eeees How to access the parameters of the PCMCIA cards in character mode Character mode configuration screen 0 0 cece e eee eee Accessible functions in character mode 20000ee cee ee eeee Transmission parameters in character mode 0 02000ee eee Message end parameters in character mode 2 0e00e eee Flow control parameters in character mode 00200000e ee Additional parameters 0 0 00 niinn Eaa KEE eee eee Character Mode communication programming 00000 eee Available communication functions 000200 0 eee eee eee Debugging of a communication using Character Mode Ata GlanGe rema dtd berate ler a GP le tated aaa Geataed eit dtue ai a oer Debugging screen in character mode 0000ec cee ences Debugging parameters in character mode 00000e eee eee How to test a communication channel 000000 eee eee eee Software implementation of Uni Telway communication 247 Ata Glance iee aie ean oe ee es oe ae Le ee General cineri iTi nnn S reas wie eh Me alee
13. At a Glance The Slave station carries out exchanges to the Master station Processor Link Link Processor System Ado System Applicati ania Application Exchangestothe An exchange from the Slave Ad1 to the Master as seen at point 1 in the diagram master station above is used for communication from the Slave application program to the Master system access to the different objects etc Exchangestothe An exchange from the Slave Ad1 to the Master as seen at point 2 in the diagram application above is used for sending messages from the Slave application program to the Master application program 272 Software implementation Uni Telway communication Communication function Usage of the SEND_R EQ function by a slave requires the introduction of a table of 6 bytes corresponding to the destination address at the beginning of the transmission buffer The first six bytes of the transmission buffer are coded as follows Byte 1 most significant Byte 0 least significant Word 1 station network Word 2 module number or selector gate number Word 3 reference if gate 8 channel number To send to the Master system identified by gate 0 Byte 1 most significant Byte 0 least significant Word 1 16 FE 16 00 Word 2 16 00 16 00 Word 3 16 00 16 00 To send to the Master application identified by
14. o 77 I 0000k O 0 O Q 2 x X D a TXD1 0 Common O Common 0 RXDO yo RXD1 SL O Common L40 RxD1 O 0 RXDO e D OJO N 15 14 Ge ae 16 This table shows the switch positions Switches Position on Device receiving power Other devices supply S1 4W 4w S2 OFF OFF 3 ON OFF S4 ON OFF S5 OFF OFF 162 TSX SCA 64 6 7 Adapting the Line End At a Glance Aim of this This section contains information on line end adaptations on TSX SCA 64 devices Section What s in this This section contains the following topics Section Topic Page Line End Adaptation 164 Signals on the JM and JS SUB D15 Pin Connectors 167 163 TSX SCA 64 Line End Adaptation At a Glance Illustration TSX SCA 64 Mounting Example Each end of the bus cable must have a line end jack adaptor This line end jack adapter can be plugged into free connectors on either JM master or JS slave on TSX SCA 64 devices located at the ends of the bus A TSX SCA 10 kit consisting of 2 SUB D 15 pin connectors plus accessories cover screws wiring etc enables the user to configure and set up the line end jacks This view shows a line end jack This example shows
15. Legend the rack 1 in the event that the power supply takes up 2 slots the processor is placed in slot 1 on 333 Language objects of communications 12 5 Language objects and IODDTs associated with Uni Telway communication At a Glance Subject of this This section presents the language objects and IODDTs associated with Uni Telway Section communication What s in this This section contains the following topics Section Topic Page Details of the implicit exchange objects of the T COM_UTW_M type lIODDT 335 for PCMCIA cards Details of the explicit exchange objects of the T_COM_UTW_M type lODDT 337 for PCMCIA cards Details concerning explicit exchange language objects for a master 340 Uni Telway function Details of language objects associated with configuration in master Uni Telway 341 mode Details of the implicit exchange objects of the T_COM_UTW_S type lIODDT for 343 PCMCIA cards Details of the explicit exchange objects of the T_COM_UTW_S type lIODDT for 344 PCMCIA cards Details of language objects associated with configuration in slave 346 Uni Telway mode 334 Language objects of communications Details of the implicit exchange objects of the T CCOM_UTW_M type IODDT for PCMCIA cards At a Glance The following tables present the implicit exchange objects of the IODDT of the T_COM_UTW_M type which apply to a Un
16. MW 102 16 00 00 received application data 282 Software implementation Uni Telway communication Example 2 of an exchange from a slave to a slave system At a Glance Transmission The slave address Ad1 7 reads a 5 word table using the function SEND_REQ in the slave PLC with the address AdO 9 The PLC sender generates a request with the code 16 0036 read objects SEND _REQ ADDR 0 0 1 7 16 0036 MW200 6 MW220 4 SMW210 6 Parameters of the request Parameters Description ADDR 0 0 1 7 0 rack 0 module 1 channel 1 7 transmitting address Ad1 16 0036 unsolicited data request MW200 16 FE 00 MW201 16 FE 05 MW202 16 00 09 destination slave address AdO 9 MW203 16 07 68 type of object 07 16 bit integer segment 68 internal words MW204 50 in decimal origin of the table of words to read MW223 12 transmission of 6 words 12 bytes Note Once the function has finished execution the length word in the report is MW223 11 reception of 11 bytes 10 5 words 1 object type 283 Software implementation Uni Telway communication Reception table Table of read words Byte 1 Byte 0 MW210 Least significant byte of first word 07 type of objects read MW211 Least significant byte of second word M
17. 2 ovl 3 ovl White D A l l Blue 5 DB t 61 Terminal port and TSX P ACC 01 device Connecting to Premium and Atrium PLCs General When the TSX P ACC 01 device has to be supplied it must be connected by its built in cable to the TER connector on the PLC processor The device can be connected and disconnected when the PLC is switched on Illustration Premium TSX RKY O NIC NIC O Y TE Y Bus X Log A fl a m ia m J mm 5 O O fe i O O i da OJ hnl Host PC _ Atrium o em OG Ooo TSX P ACC 01 TSX P ACC 01 Note Only one TSX P ACC 01 device can be connected to a Premium Atrium PLC 62 Terminal port and TSX P ACC 01 device Switch configuration General e Configuring line end adaptation Line ends are adapted by the S2 switch as indicated below e Configuring the operating mode The operating mode is selected by switch S1 as indicated below Illustration OFF LL r LL Z oa Oo eA E S2 S M Uni Telway end of line Uni Te
18. 175 Software implementation Modbus Communication 8 1 General At a Glance Subject of this This section presents the general points relating to Modbus communication and its Section services What s in this This section contains the following topics ion Section Topic Page About Modbus 177 Compatibilities 178 Compatibility between a Premium PLC and a series 1000 PLC 179 Performance 181 Operating Mode 182 176 Software implementation Modbus Communication About Modbus Introduction Communicating via Modbus allows the data exchange between all the devices which are connected on the bus The Modbus protocol is a protocol that creates a hierarchical structure one master and several slaves The master manages all exchanges according to two types of dialog e the master exchanges with the slave and awaits a response e the master exchanges with all the slaves without waiting for a response general broadcast 177 Software implementation Modbus Communication Compatibilities Hardware Software This type of communication is available for Premium PLCs via e the host slot of the processor and or the TSX SCY 21601 module with e aTSX SCP 111 PCMCIA card associated with the RS232 physical layer e aTSX SCP 112 PCMCIA card associated with 20 mA current loops e aTSX SCP 114 PCMCIA card associated with physical layers RS 422 and RS 485 e a Built
19. 37 Terminal port and TSX P ACC 01 device Examples Connecting to a Premium PLC TSX CTC 09 adapter if necessary TSX PCX 1130 Note Connection on an Atrium is identical e In Master Uni Telway mode with the terminal port connected to a modem telephone network in response mode this modem must have all the above characteristics 1 to 6 e In character string mode with the terminal port connected to a modem via a specialized line this modem must have the characteristics of 3 to 5 above Configuring the In Uni Telway mode the following parameters must be observed and set in the terminal port configuration in Unity Proware e The wait timeout must be between 100 and 250 ms e In master mode the number of configured slaves must correspond to the actual number of slaves present on the bus e In slave mode the number of addresses must correspond to those used 38 Terminal port and TSX P ACC 01 device Master Uni Telway General Important information This is the terminal port default operating mode It is principally used for e Connecting a programming adjustment terminal and a man machine interface console if a Premium PLC is used e Connecting a programming adjustment terminal or man machine interface console in the case of an Atrium PLC or Premium P57 554 56
20. Execution flags The table below shows the meaning of channel exchange control bits from channel of an explicit EXCH_STS MWr m c 0 exchange EXCH_STS Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status words in progress MWr m c 0 0 CMD_IN_PROGR BOOL R Current parameter exchange in progress MWr m c 0 1 ADJ_IN_PROGR BOOL R Adjustment parameter exchange in progress MWr m c 0 2 Explicit The table below presents the meaning of the exchange report bits EXCH RPT exchangereport MWr m c 1 EXCH_RPT Standard symbol Type Access Meaning Address STS_ERR BOOL R Reading error for channel status words MWr m c 1 0 CMD_ERR BOOL R Error during command parameter exchange MWr m c 1 1 ADJ_ERR BOOL R Error during adjustment parameter exchange MWr m c 1 2 337 Language objects of communications Standard The table below shows the meaning of the bits of the status word CH_FLT channel faults MWr m c 2 Reading is performed by a READ_STS IODDT_VAR1 CH_FLT Standard symbol Type Access Meaning Address NO_DEVICE BOOL R No device is working on the channel MWr m c 2 0 1_DEVICE_FLT BOOL R A device on the channel is faulty MWr m c 2 1 BLK BOOL R Terminal block fault not connected MWr m c 2 2 TO_ERR BOOL R Time out error defective wiring MWr m c 2 3 INTERNAL_FLT BOOL R Internal error
21. The table below shows the meanings of the PROTOCOL MWr m c 3 channel status word Reading can be done via a READ_STS lIODDT_VAR1 MWr m c 3 Standard symbol Type Access Meaning Address PROTOCOL INT R Byte 0 16 01 for the slave Uni Telway function MWr m c 3 Command The table below shows the meaning of the bits of the CONTROL word MWr m c 15 The command is made by a WRITE_CMD e g WRITE_CMD IODDT_VAR1 Standard symbol Type Access Meaning Address DTR_ON BOOL R W DTR signal Data Terminal Ready ON MWr m c 15 8 DTR_OFF BOOL R W DTR signal Data Terminal Ready OFF MWr m c 15 9 UTW_TO_CHAR BOOL R W Change from Uni Telway to character mode MWr m c 15 14 modem CHAR_TO_UTW BOOL R W Change from Character Mode modem to MWr m c 15 15 Uni Telway 345 Language objects of communications Details of language objects associated with configuration in slave Uni Telway mode At a Glance The following tables present all configuration language objects for communication in slave Uni Telway These objects are not integrated in the IODDTs and may be displayed by the application program Internal The table below shows the explicit exchange objects constants for Address Type Access Meanin PCMCIA cards yP 3 KWr m c 0 INT R Byte 0 16 06 for the slave Uni Telway function KWr m c 3 INT R Byte 0 value of sla
22. Application linked Modbus Parameters At a Glance Type Parameter After configuring the communication channel you need to enter the application parameters These are split into four windows e the Type window the Master window the Slave window and the Current loop PSR window This window looks like this Type mm It enables you to select the type of Modbus Protocol the module uses e Master selects Modbus Master where the station is master e Slave selects Modbus Slave where the station is slave e Immediate server allows UNI TE requests to be directed to the SERVER function and not to the processor s main server Note The Immediate server parameter requires the communication function to be programmed in Unity Pro SERVER See Unity Pro Communication Block Library Manual UNITE_SERVER function It is valid until the box is checked Type Slave lt IS Immediate server 191 Software implementation Modbus Communication Master Function Slave Function Current Loop Function This window is only accessible by selecting Master Master Number of retries 3 Response time 100 X 10 ms This allows you to enter e the Number of retries number of connection attempts made by the master before defining the slave as absent e the default value is 3 e possible values between 0
23. Reset counters This window displays the different counters in slave configuration The Reset Counters button resets these counters to zero This window looks like this Channel tes Response reception Slave i Identification e a fi Enter request ASCII O Hex This window enables you to test a communication channel by transmitting a request to one of the stations present on the bus For the integrated channel of the TSX SCY 11601 module the values of the slave number to be queried are between 1 and 247 For the other channels supporting Modbus master the values are between 1 and 98 210 Software implementation Modbus Communication Debug screen in Modbus slave type At a Glance Type Window Counters Window The specific part is divided into three windows e the Type window e the Counters window e the Channel test window this window cannot be used in this mode The window looks like this Type Slave It recalls the type of Modbus function configured slave The window looks like this Counters Received without CRC error Received with exception code Reception broadcast Slave Bus counter or listen 0 0 0 0 Received with CRC error Message for the CPU Sent with NACK Character error only mode Reset counters
24. This section deals with the hardware installation of TSX SCP 111 PCMCIA cards This section contains the following topics Topic Page Point to point connection in Character Mode DTE DTE 114 Uni Telway Modbus or Character Mode via Modem 115 113 Implementation of PCMCIA cards Point to point connection in Character Mode DTE DTE General The TSX SCP 111 RS 232 D physical support card is inserted either in the processor or in the TSX SCY 21601 module It is connected to the related device with the TSX SCP CD 1030 1100 cable The devices to be connected are DTE to DTE Data Terminal Equipment For example terminal printer etc Illustration TSX SCP 111 Printer TSX SCP CD 1030 length 3 m J2 or TSX SCP CD 1100 length 10 m Description of Illustration TSX SCP CD 1030 cable The PCMCIA 20 pin mini connector supports the signals 114 Implementation of PCMCIA cards Uni Telway Modbus or Character Mode via Modem General The PCMCIA card is connected to a Uni Telway Modbus or Character Mode bus via a modem and a telephone link DTE DCE type using a TSX SCP CC 1030 cable The connected devices are DCE type for example a modem or a converter Illustration TSX SCP 111 TSX SCP CC 1030 length 3 m J2 Description ofthe Illustration TSX SCP CC 1030 cable The PCMCIA 20 pin mini connector Connector supports the signals SUB
25. PCMCIA SCY 21601 PCMCIA SCY 21601 4800 10 190 210 2100 2200 4800 25 200 220 2166 2300 4800 50 200 230 2300 2400 9600 10 108 125 1120 1200 9600 25 118 135 1147 1230 9600 50 137 157 1148 1240 19200 10 62 90 604 700 19200 25 75 105 696 800 19200 50 100 120 698 810 221 Software implementation Communication using Character Mode Time with the Terminal Port Average duration according to the programmed cycle time and the transmission of 80 characters for Premium PLCs Speed in bits s T cycle in ms Average duration 1200 10 939 1200 20 945 1200 50 948 1200 100 1000 1200 255 1018 4800 10 242 4800 20 242 4800 50 249 4800 100 299 4800 255 455 9600 10 129 9600 20 139 9600 50 149 9600 100 199 9600 255 355 19200 10 65 19200 20 75 19200 50 105 19200 100 155 19200 255 285 222 Software implementation Communication using Character Mode Operating Mode At a Glance General chart Operation The following graphics show the operating modes in Character Mode for PCMCIA Modbus cards the built in link of the TSX SCY 21601 module and the Terminal Port The operating mode is as follows Power up Module stopped Module off Module configured Communication Module at self tes function stage Reset Module not configured Self tests OK Configuration After power up the module self tests Duri
26. How to send a The following procedure is used to send a request other than those provided by the request command buttons to a designated station The example deals with transmission of the Echo request function code 08 sub function code 00 data to be sent 1144 Step Action 1 Select the address of the slave to be interrogated using the Slave field 2 Click on the Enter Request button Result the following window appears Function code hexadecimal 03 Sub function and or data code Hexadecimal i i Cancel 3 Enter the function code coded in hexadecimal on one byte corresponding to the request that you want to send 4 Enter the sub function code coded in hexadecimal on one byte corresponding to the request that you want to send 5 Enter the data to be sent by encoding all the data in hexadecimal on 2 bytes 4 characters Enter the data continuously without any intervening spaces 6 Click on the Send button Result the response appears in the Receive Response window Channel tes Slave Response reception Identification a 0000 11 44 A a1 Enter request O ASCII Hex The response contains the function code on 2 bytes 08 00 the sub function code on 2 bytes 00 00 the data on 2 bytes 11 44 213 Software implementation Modbus Communication 214 Software implementation of communication using Character Mode At a Glance Subject of this Chapter Wha
27. Precautions to be taken when connecting PCMCIA card General CAUTION The PCMCIA card must be handled with the power switched off Failure to follow this precaution can result in injury or equipment damage When removing or inserting the card the unit is not guaranteed to be operational There is no procedure for a warm start between the PCMCIA card and the TSX SCY 21601 host device In the event that the operating environment does not allow the application to be stopped by switching off the PLC processor you are recommended to remove the TSX SCY 21601 module with the PCMCIA card The PCMCIA card must be equipped with a PLC version cover and be screwed into the TSX SCY 21601 host module before the unit is switched on Mechanical configuration See Mechanical configuration p 104 106 Implementation of PCMCIA cards Connection of PCMCIA cards General Series link cards Connecting PCMCIA cards requires specific cables and connection devices depending on the type of models Product references of cables and branch devices to be used with series link PCMCIA cards according to the different protocols PCMCIA card Uni Telway Modbus Character Mode TSX SCP 111 TSX SCP CD 1030 1100 in TSX SCP CD 1030 1100 in TSX SCP CD 1030 1100 RS 232 point to point mode point to point mode TSX SCP CC 1030 in TSX SCP CC 1030 in multidrop mode via a modem multidrop mode via
28. Recommended Cable Type Principle Illustration The two grounding tracks should be linked via the ground link 5 shown End devices differ in that they only have one cable Where this is the case the ground link 5 shown is not required as long as the cable is positioned in slot 20 shown in the diagram This diagram shows the principle for locally grounding the cable 14 16 18 20 Connecting several devices together TSX SCA 64 TSX SCA 64 TSXSCA64 E E a e t e 1 n Eg O 18 20 151 TSX SCA 64 Connecting the Shield to the Local Ground at One End of the Cable and to the Local Ground via a Surge Suppressor at the Other End Principle Only cable 16 shown is connected to the local ground cable 14 shown is connected to the local ground via a surge suppressor Note Ground link 5 shown is not used Illustration This diagram shows the principle for locally grounding the cable 20 Connecting several devices together TSX SCA 64 TSX SCA 64 ik D H o oso SH OI O O O OBS o jo CS lt 18 20 l 18 2 Y 152 TSX SCA 64 Connecting the Shielding to the Local Ground at One End and Isolating it From the Ground at the Other End Principle Illustration Only cable 16 shown is connected to the local ground cable shielding 14 shown is isolated from the grou
29. Step Action 4 Double click again on the PCMCIA card slot Result H 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD TSX SCP 112 fa Description 1 0 Object Channel 1 F 20 mA CL multi protocol PCMCIA card CHARACTERISTICS Type of bus Uni Telway Modbus Structure Physical interface 20mA CL Baud rate 0 3 19 2 Kb Services Uni Telway Select channel 1 6 Select the function UNI TELWAY LINK Example E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD T TSX SCP 112 B Channel Function Uni Telway link Ly Task MAS 259 Software implementation Uni Telway communication Configuration Screen of the Uni Telway link At a Glance This screen split into two areas is used to register the communication channel and to configure the necessary parameters for a Uni Telway link Illustration The diagram below shows a configuration screen 1 2 PCMCIA INRACK BOARD T gt 3 TSX SCY 21601 a HlConfi F B Channell li 9 a ie e aster 600 bi Uni Telway Link v Task Master Wait time rem i Event dat f Nalue in ms 130 V By default Number of slaves 731 f Value in s l x Slave r Data r Stop E G2bis C 2bts 1bit C 2bits Z Parity E c Even fe Odd Without 4 Current loop PSR ______________RTS STSlag C Multidroy G Point to point 10 x100 ms D
30. X X and an MMI console Terminal port See Modem on terminal port p 37 TSX SCY 21601 used to host PCMCIA communication cards and X X X module features a built in communication channel TSX SCY 21601 See Installing TSX SCY 11601 21601 modules p 73 TSX SCY 11601 features a built in communication channel X module TSX SCY 11601 See Installing TSX SCY 11601 21601 modules p 73 PCMCIA cards support the different communication protocols TSX X X X SCP 111 112 114 See Implementation of PCMCIA cards p 101 Key xX Yes No 21 Hardware installation for communications 22 Terminal port and TSX P ACC 01 device 3 At a Glance Subject of this Chapter What s in this Chapter This chapter introduces the functions of the terminal port and TSX P ACC 01 connection device of Premium and Atrium processors This chapter contains the following sections Section Topic Page 3 1 Introduction to the terminal port 24 3 2 Connections 32 3 3 Appendices 51 3 4 Introduction to TSX P ACC 01 55 3 5 Hardware installation 58 3 6 Example of topologies 65 23 Terminal port and TSX P ACC 01 device 3 1 Introduction to the terminal port At a Glance Aim of this This Section introduces the communication function from the Terminal port of a PLC Section What s in this This section contains the following topics
31. e 4 transactions at server address AdO e 4 transactions at server address Adi e 4 receptions at application address Ad2 For communication via a Terminal port the maximum frame size is 128 bytes per communication function PCMCIA cards and the link built into TSX SCY 21601 modules authorizes processing of e in Uni Telway master mode e 8 messages transmitted to the bus e 8 received messages e in Uni Telway slave mode e 6 transactions at server address AdO e 1 transaction at server address Ad1 e 8 receptions at application address Ad2 For communication via a PCMCIA card or built in link the maximum frame size is 240 bytes per communication function The READ_VAR communication function can read up to 1000 consecutive bits in any remote device To read in excess of 1000 bits the SEND_REQ communication function must be used Note Premium PLCs cannot send over 1000 bits following a read request 250 Software implementation Uni Telway communication Performance At a Glance Time with PCMCIA cards The following tables enable you to evaluate typical exchange times in Uni Telway mode for e PCMCIA cards and the built in link of the TSX SCY 21601 module e the Terminal Port The results displayed correspond to an average operation period of the RI function in ms EAD VAR Number of objects read 1 word Speed in bits s T cycle in ms Average duration Average duratio
32. Chapter This Chapter introduces the functions of the TSX SCA 64 connection device This chapter contains the following sections Section Topic Page 6 1 General Introduction 142 6 2 Physical Description 144 6 3 Dimensions and Mounting 146 6 4 Installation 148 6 5 Bus Cable Shield Cabling 149 6 6 Device Configuration and Transmission Pair Polarization 154 6 7 Adapting the Line End 163 141 TSX SCA 64 6 1 General Introduction General Introduction General Points The TSX SCA 64 unit is a cabling accessory which allows a 2 or 4 wire mode communication module to be connected to a Modbus Jbus or Jnet In 2 Wire Mode In this mode connectable communication interfaces are e The built in channel of the TSX SCY 11601 21601 modules via a TSX CM 6530 cable e The TSX SCP JNP 114 PCMCIA card via a TSX SCP CM 6530 cable Note Connection can be made to either the JM or the JS connector regardless of channel configuration master or slave Illustration This diagram shows the general principal for connecting in 2 wire mode for a TSX SCY 21601 1 JM connector 2 JS connector 142 TSX SCA 64 In 4 Wire Mode Illustration In this mode the connectable communication interface is e A PCMCIA TSX SCP JNP 114 card via a TSX SCP CM 4530 cable through a TSX SCP CM 6530 cable Connect the TSX SCP CM 6530 cable to the e JM connector
33. E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD fl TSX SCY 21601 B Channel Function Cs Task MAST v 257 Software implementation Uni Telway communication How to access the parameters of the PCMCIA Uni Telway cards At a Glance How to access the link This part describes how to access the configuration parameters of the Uni Telway link through PCMCIA cards for Premium PLCs The following table shows the steps to follow in order to access the Uni Telway link Step Action 1 Open the hardware configuration editor 2 Double click on the PCMCIA card slot Result the card type selection window appears Add Replace a submodule Product reference Description Communication I FCS SCP 111 RS232 OPEN PCMCIA CARD i FCS SCP 114 RS485 OPEN PCMCIA CARD r TSX FPP 20 FIPWAY PCMCIA CARD i TSX FPP 200 FIPWAY PCMCIA CARD i TSX J NP 112 BC J NET PCMCIA CARD i r TSX JNP 114 RS485JNET PCMCIA CARD i b TSX SCP 111 RS232 MP PCMCIA CARD la TSX SCP 112 BC MP PCMCIA CARD i TSX SCP 114 RS485 MP PCMCIA CARD 3 From the menu click on one of the following PCMCIA cards then validate by clicking OK e TSX SCP 111 e TSX SCP 112 e TSX SCP 114 258 Software implementation Uni Telway communication
34. General 0 00 e cece eee eee 150 Connecting the Shield to the Local Ground and to the Two Ends of the Cable Recommended Cable Type 00 c cece eee 151 Connecting the Shield to the Local Ground at One End of the Cable and to the Local Ground via a Surge Suppressor at the Other End 152 Connecting the Shielding to the Local Ground at One End and Isolating it From the Ground at the Other End 00 00 cece eee eee eee 153 Device Configuration and Transmission Pair Polarization 154 AtsasGlanCe uan kausen aa saree sh lat eel a Soc cate ane ata are Me Ata Ase et le 154 2 wire Configuration with Data Pair Polarization by a Station 155 2 Wire Configuration with Data Pair Polarization via a 5VDC External Power SUPDIV ode Sc ei oe bei Leda a ed a Lee Ste Si roe 157 4 wire Configuration with Polarization of One Pair by the Master Station and the Other by a Slave Station 0 0 0 00 cee eee 159 4 wire Configuration with 2 pair Polarization via 5VDC External Power Supply 162 Adapting the Line End 0 0 20 e eee ee eee ee 163 Ata Glance niri ee e e e pace faa e ee et eae en 163 Eine End Adaptations repade gates oe oye ala die ase depos eae ed aed le ck 164 Signals on the JM and JS SUB D15 Pin Connectors 25 167 Software implementation of Modbus Character Mode and Uni Telway communications 22200005 169 Ata Glance nus y eia tar et t
35. This enables Unsolicited Data 16 FC requests to be received from another device connected on the Uni Telway bus Addresses Ad1 and Ad2 are consecutive to the address AdO Ad1 AdO 1 and Ad2 Ad0 2 Example Uni Telway link address Logical entities Ad0 6 System responds to questions Adi 7 Client application sends questions to a Uni Telway server device Ad2 8 Listening receives the Unsolicited Data application request sent to the application Note when the Uni Telway master is an SCM series 7 PLCs the application contained in the master must use the destination slave address Premium increased by 100 16 0064 254 Software implementation Uni Telway communication 10 2 Uni Telway communication configuration At a Glance Subject of this Section What s in this Section This section describes the Configuration process used when implementing Uni Telway communication This section contains the following topics Topic Page How to access the Terminal Port parameters 256 How to access the parameters of the built in channel of the TSX SCY 21601 257 module How to access the parameters of the PCMCIA Uni Telway cards 258 Configuration Screen of the Uni Telway link 260 Accessible functions in Uni Telway 262 Application linked Uni Telway Parameters 263 Transmission linked Uni Telway Parameters 265 255 So
36. Word Value Description MW400 0 if action taken 1 if action not taken MW401 16 0001 Corresponds to the read function of n output bits byte 0 16 01 byte 1 if MW400 0 16 00 MW401 16 0007 Incorrect request parameters if MW400 1 16 0004 Incorrect question parameters 16 0681 Byte 0 16 80 function code 16 01 Byte 1 16 06 Modbus error code the slave is busy 16 01 Modbus error code the function is unknown 16 03 Modbus error code the data is invalid MW402 16 xx01 Contains the Modbus response data Byte 0 16 01 length received in bytes 1 byte Byte 1 16 xx value of the bits For example if bit 1 1 and bit 2 1 then byte 1 16 03 205 Software implementation Modbus Communication Example 3 READ_VAR function for reading bits General Example with READ_VAR Programming exchanges with Modbus slave devices is done with the help of the READ_VAR and WRITE_VAR communication functions only the SEND_REQ function is not supported on the TER port Description of the objects used in the example Object Description MWO 0 Transmission demand of the request M20 Request in progress MW100 10 Reception buffer MW200 203 Report zone MW200 Session and activity bit number X0 MW201 Error code MW202 Time out in units of 10 ms M30 Bit set to 1 after a successful exchange MW204 Coun
37. active send receive JBU0220 0250 multidrop JBU0220 0250 JBU0220 0250 a 19 19 GD o p 18 18 o o K 17 17 gt o o V V 15 15 Yy 14 14 10 10 Oo o a y V gt 1 6 16 Or Master active Slave 1 passive sending receiving j White Blue PWR 9 1 o 24V s White Green REC 19 aD Green White REC 1 White Orange EMI PAP 2 o aA Blue White PWR 20 o TSX SCP 112 Slave 2 passive 125 Implementation of PCMCIA cards Example 3 Multidrop master JBU0220 0250 active send receive slaves TSX SCP 112 TSX SCP 112 JBU0220 0250 White Blue ALIM ae a 19 24V White Green REC 19 o 18 Green White REC 17 Di 17 oO V 15 f 14 White Orange EMI PAP i a ar y T 1 i a 20 N 6 Blue White PWR fia amp D oa Slave 1 passive Master active i sending receiving g Th White Blue PWR 25 24V White Green RECs 19 O gt Green White REC w y White Orange EMI PAP 2 Blue White PWR 2 f oD TSX SCP 112 Slave 2 passive 126 Implementation of PCMCIA cards Example 4 Multidrop active master TSX SCP 112 TSX SCP 112 TSX SCP 112 9 PWR White Blue White Blue PWR 9 o f 1 O 19 REC White G 24v 24 i IG REC 19 en ite Green ite Gre
38. ion Section Taple Page Introduction to the terminal port 25 Communication with a programming adjustment terminal 27 Communicating with a man machine interface console 28 Uni Telway master slave communication 30 Character string communication 31 24 Terminal port and TSX P ACC 01 device Introduction to the terminal port At a Glance Premium PLCs The terminal port uses master Uni Telway slave Uni Telway and character string communication methods The terminal port on Premium processors is a non insulated RS 485 link made up of two 8 pin mini DIN connectors These two connectors function identically and are found on the processor They are marked with TER and AUX and are used to physically connect two pieces of equipment together at the same time such as a programming adjustment terminal and a man machine interface console The TER connector also allows power to be supplied to a device which does not have its own power supply RS 485 RS 232 connecting cable converter insulating device TSX P ACC 01 See ntroduction to TSX P ACC 01 p 55 etc The terminal port functions by default in master Uni Telway mode Via configuration it is possible to switch to Uni Telway slave or character mode Note The communication mode e g master Uni Telway Uni Telway slave or character mode is the same on both the TER and AUX connectors No
39. k a Oo o 8 eS a5 17 T t8 157 TSX SCA 64 Position of the This table shows the switch positions Switches Switches Position on Device receiving power Other devices supply S1 2W 2W S2 OFF OFF 3 OFF OFF S4 ON OFF S5 OFF OFF 158 TSX SCA 64 4 wire Configuration with Polarization of One Pair by the Master Station and the Other by a Slave Station Introduction Illustration Main cables 14 and 16 are 3 pair cables e One RXD1 RXDO pair e One TXD1 TXDO pair e One COMMON COMMON pair Green yellow wire 17 is connected to the module s ground terminal Note e Each pair must only be polarized once on the whole bus e These diagrams show a configuration with shielding connection at one end only This diagram shows a configuration with RXD1 RXDO pair polarization by the master station connected to JM Joon PooOUpo TD IN Nw QW JS s2 S3 S4 s5 ON ON ON onj OFF OFF g OFF opp m 6S a E 5 S S ERAEDRLSLADEADE EX RERR OOK RERREE oO S oO O L L L Ct ht 17 159 TSX SCA 64 Position of the This table shows the switch positions Switches Switches Positions on master station device S1 4w 2 ON 3 OFF
40. module General base link allow the following connection e Connection to the Modbus network via a TSX SCA 50 device by a TSX SCY CM 6030 cable or a TSX SCA 64 device by a TSX SCY CM 6530 cable Illustration TSX SCY CM 6030 Cable TSX SCA 50 RS 485 Built in Channel SS TSX SCY 11601 87 TSX SCY 11601 21601 TSX SCY 11601 module General Cabling accessories designed to connect the TSX SCY 21601 module s RS 485 base link allow the following connections e Connection to the Uni Telway network via a TSX SCA 50 device by a TSX SCY CU6030 cable or a TSX SCA 62 device by a TSX SCY CU 6530 cable e Connection to the Modbus network via a TSX SCA 50 device by a TSX SCY CM 6530 cable e Connection to standard RS 485 devices using a link adapted connector via the TSX SCY CU 6030 or TSX SCY CM 6030cable Illustration TSX SCY 21601 TSX SCY CU 6030 cable for Uni Telway TSX SCY CM 6030 cable for Jbus Modbus RS 485 Built in Channel TSX SCY CU 6530 Cable for Uni Telway TSX SCA 50 88 TSX SCY 11601 21601 Connection of TSX SCY 21601 to Uni Telway field bus General The module s built in communication channel is connected to the Uni Telway field bus by the TSX SCY CU 6030 connection cable via the TSX SCA 50 connection device Illustration 25 pin SUB D connector Uni Telway lead TSX SCY CU 60
41. 0 of the slave rack and through the built in link access to the server of slave 8 READ _ VAR ADDR 0 2 0 8 Transmission MW O 5 MW50 4 MW20 5 285 Software implementation Uni Telway communication Example of one slave setting another slave to Stop At a Glance PLC with address Ad1 7 setting slave PLC with address AdO 8 to STOP Master Transmission SEND REQ ADDR 0 0 1 7 16 0025 SMWO 3 MW40 4 MW10 1 Parameters of the request Parameters Description ADDR 0 0 1 7 0 rack e 0 module e 1 channel 1 e 7 transmitting address Ad1 16 0025 STOP request code MWO 16 FE 00 destination slave address AdO 8 MW1 16 FE 05 MW2 16 00 08 MW43 6 length of the data to transmit 3 words therefore 6 bytes 286 Software implementation Uni Telway communication Event data managed by the master Event data Event data is data that is transmitted to the master from a server slave station Operating The following table describes the processing phases in event data communication principles Phases Description 1 The slave station transmits event data to the PCMCIA card of the master station When the card receives the data a bit from words IW0 0 1 2 or IW0 0 1 3 is initialized Each bit of the input words is associated with a link address On detecting one of the bits the applicat
42. 18 17 A o 15 Vv o 2 EMIPAP White Orange 14 v O o l 10 K 20 PWR Blue White 16 Vv Master or slave active Passive master or slave Mixed terminal Illustration links TSX SCP 112 9 i A PWR White Blue JBU0220 0250 19 24V 19 as REC White Green GD 17 REC Green White 18 17 A V 15 2 EMIPAP_ White Orange 14 J ee V oD 20 PWR Blue White 16 gp Master or slave Master or slave passive receiving passive receiving active sending active sending 123 Implementation of PCMCIA cards Multidrop type The following examples describe the different wiring possibilities for card link TSX SCP 112 with modules JBU0220 0250 Note The 24 V supply of each TSX SCP 112 present on the loop must be connected whether passively or actively otherwise the link will not function These supplies must not have any shared potential point between them Do not connect the 24 V supply to the earth Example 1 Active master TSX SCP 112 multidrop TSX SCP 112 2 PWR White Blue JBU0220 0250 19 24V 19 ae TO 5 REC White Green CD Ve REC Green White 18 O O 17 l O 15 v 2 EMI PAP White Orange 14 5 O 10 K oen Vv 20 PWR Blue White 16 ii gt oG Master active Slave 1 passive 19 T oH 18 17 A O v 15 14 i 10 O V 1o E Slave 2 passive 124 Implementation of PCMCIA cards Example 2
43. 200 Example 1 SEND_REQ function with Echo request 201 Example 2 SEND_REQ function with word Read request 202 Example 3 SEND_REQ Function with Bit Read Request 204 Example 3 READ_VAR function for reading bits 206 196 Software implementation Modbus Communication Modbus master communication function At a Glance Exchange of data Example of reading words Diagnostics and maintenance This page describes the services available on master Premium stations of a Modbus linkGeneral functions See Unity Pro Communication services and architectures Reference manual Interoperability The following requests are addressed to the slave device with which you wish to carry out read or write operations of variables These requests use the READ VAR SEND REQ and WRITE_VAR communication functions See Unity Pro Communication Block Library Manual READ_VAR Reading variables and See Unity Pro Communication Block Library Manual WRITE_VAR Schreiben von Variablen Modbus request Function code Communication function Read bits 16 01 READ VAR Read words 16 03 READ VAR Writing a bit or n bits 16 05 or 16 0F WRITE_VAR Writing a word or n words 16 06 or 16 10 WRITE_VAR Input bits reading 16 02 SEND_REQ Read input words 16 04 SEND_REQ Note Write utilities can be sent in transmission In this case no response is returned to the transmitter It is therefore recommendable to
44. 485 Physical Interface General Specifications protocols A twisted double pair medium The TSX SCY 11601 includes Modbus protocol The TSX SCY 21601 includes Uni Telway Modbus and Character Mode Specifications of the built in link for the following 3 protocols Uni Telway 21601 Modbus Character Mode 21601 Type Master Slave Master Slave Half duplex Flow 9600 bits sec Parameters can be set from 1200 to 19200 bits sec 9600 bits sec Parameters can be set from 1200 to 19200 bits sec 9600 bits sec Parameters can be set from 1200 to 19200 bits sec Number of devices 28 32 Number of slave 98 98 for the 21601 addresses 247 for the 11601 Length of bus without 1000 m 1300 m 1000 m branching Message Size 240 bytes 256 bytes 4 Kb Utilities Message handling Master Slave Slave Slave UNI TE requests Read words bits Write words bits Diagnostics Send character strings Receive character strings 80 TSX SCY 11601 21601 4 4 TSX SCY 21601 module s host channel compatibility TSX SCY 21601 Host Channel Compatibility General The cards supported by the host channel are e PCMCIA cards TSX SCP 111 112 114 which communicate with Premium Atrium and Modicon PLCs and other Uni Telway Modbus and Character Mode compatible products PCMCIA cards are also Jbus Modbus compatible with 1000 Series PLCs e The
45. 50 AWA TSX CSC 015 aaa OF _ Se jrr S2 ATV 16 slave Magelis slave TSX 17 20 slave Address 6 Addresses 4 5 Addresses 7 8 1000 meters maximum 69 Terminal port and TSX P ACC 01 device Uni Telway slave mode Example A TSX P ACC 01 device is connected to a Uni Telway link slave PLC as in the example below Note for a PLC to be able to operate in slave mode it must be connected to a TSX P ACC 01 device by its built in cable Illustration oO x TSX 107 40 master oO iim CI A Fide le x E Ort TSX CSB 015 S1 ON S1 ON S2 ON Uni Telway bus Y TSX SCA 62 TSX P ACC 01 Premium f i Mn XBT Z 968 T MSO ml POs Atrium slave Magelis 1000 meters maximum 70 Terminal port and TSX P ACC 01 device Connection between two PLCs Reminders If the user wants to connect the terminal port of a second PLC on one of the ports of the TSX P ACC 01 device the AUX port must be used to avoid power supply conflicts in the two PLCs Note for a PLC to be able to operate in slave mode it must be connec
46. 68 internal words MW104 50 in decimal origin of the table of words to write MW105 05 in decimal number of words to write MW106 to MW110 content of words to write to the destination MW133 22 length of the data to transmit 11 words MW100 to MW110 therefore 22 bytes MW120 1 no response length 1 byte 281 Software implementation Uni Telway communication Example of an exchange from a slave to a slave application At a Glance The Slave transmits a communication function to the slave application Ad2 Transmission The PLC sender generates an unsolicited data request SEND _REQ ADDR 0 0 1 7 16 00FC MW100 10 MW130 4 MW120 1 Parameters of the request Parameters Description ADDR 0 0 1 7 0 rack 0 module e 1 channel 1 e 7 transmitting address Ad1 16 00FC unsolicited data request MW100 16 FE 00 destination slave address Ad2 11 MW101 16 FE 05 MW102 16 00 OB MW103 to MW109 application data to transmit Reception The PLC data receiver DATA EXCH ADDR 0 0 1 11 3 MW10 1 MW100 4 MW20 10 Parameters of the request Parameters Description ADDR 0 0 10 11 0 rack 0 module e 1 channel 1 e 11 address Ad2 3 receipt request MW20 16 FE 00 xx exchange number of the transmitter function MW21 16 FE xx PMW23 to YMW29
47. D 25M Sei C White orange rings Orangelwhite rings __ White green rings Green white ings C White brown rings __Brown white rings C Whte grayrings Graywhterns C 115 Implementation of PCMCIA cards 5 5 Connection of the TSX SCP 112 card At a Glance Subject of this This section deals with the hardware installation of TSX SCP 112 PCMCIA cards Section What s in this This section contains the following topics Section Topic Page Connection of the TSX SCP 112 card 117 Connecting in point to point mode 118 Multidrop connection 119 Dynamic performance 120 TSX SCP 112 connection with April 5000 7000 PLCs 122 116 Implementation of PCMCIA cards Connection of the TSX SCP 112 card General The PCMCIA TSX SCP 112 card is used to connect a Premium Atrium PLC station to a loop link with a current of 20 mA in point to point or multidrop Note In all cases the power supply is 24 V 20 external to the TSX SCP 112 card and must provide the current required for the current loop supply The TSX SCP CX 2030 cable is used for this type of connection length 3 m Description of the TSX SCP CX 2030 cable The PCMCIA 20 pin mini connector supports the signals J1 9 Alim ET White Blue 4 c13 EMI mip ye ae ra Orange White CO 19 REC VOR White Green Y c17 REC As r
48. Physical Non insulated RS 485 Non insulated RS 485 interface Transmission Protocol Master slave multidrop Without protocol Binary flow 19200 bits s by modifiable 9600 bits s by modifiable default of 1200 to 19200 bits s 7 or 8 data bits even parity odd parity or without parity with or without echo Binary digit rate for loading of a project TSX P57 1 2ee 5ee 19200 bits s TSX P57 3ee 4ee 115 000 bits s Configuration Number of devices Eight maximum eight addresses managed by the master In slave mode addresses 4 5 6 are selected by default In master mode the reserved addresses are 1 2 and 3 for the programming terminal e 4and 5 if a Magelis is present The other addresses are available A device point to point Length 10 meters maximum 10 meters maximum 52 Terminal port and TSX P ACC 01 device Uni Telway master or slave mode Character Mode Utilities UNI TE Requests in point to point with report of 128 octets maximum initiated by any connected device There is nothing broadcast from the master Character string 129 octets maximum Messages must end with R carriage return Other functions Transparency of communication with all devices in a network architecture via the master Safety A character check on each No error indication frame acknowledgment and repeat option Monitoring Table of b
49. S4 OFF S5 OFF Illustration This diagram shows a configuration with TXD1 and TXDO pair polarization by one of the slave stations connected to JS D I TN I OFF OFF X ex RXDO Commoni RXD1 C Common TXD1 TXDO 5VP OVP TXDO TXD1 Common RXDO C RXD1 Common pe Sere We a aa ere 7 TF ae a A y Lu JA Jc TD JIO NI I im im aam F a a a 14 __ 17 16 160 TSX SCA 64 Position of the Switches This table shows the switch positions Switches Positions on one of the slave stations other slave stations S1 4W 4w S2 OFF OFF 3 OFF OFF S4 OFF OFF S5 ON OFF 161 TSX SCA 64 4 wire Configuration with 2 pair Polarization via 5VDC External Power Supply Introduction Illustration Position of the Switches Main cables 14 and 16 are 3 pair cables e One RXD1 RXDO pair e One TXD1 TXDO pair e One COMMON COMMON pair Power supply cable 15 is linked to an external 5VDC power supply Green yellow wire 17 is connected to the module s ground terminal Note Each pair must only be polarized once on the whole bus This diagram shows a configuration with shielding connection at one end only
50. Suppressor at the Other End Connecting the Shielding to the Local Ground at One End and Isolating it From 153 the Ground at the Other End 149 TSX SCA 64 Local Grounding the Bus General Introduction Principle Illustration Cable Preparation Template Introduction The bus can be grounded in three different ways e connecting the shield to the local ground and to the two ends of the cable e connecting the shield to the local ground at one end and to the local ground via a surge suppressor at the other end e connecting the shielding to the local ground at one end and isolating it from the ground at the other end Opposite each main cable path a copper pad grounds the cable shields e The path shown 20 locally grounds the cable shielding e The path shown 18 locally grounds the cable shielding via a surge suppressor This diagram shows the principle for locally grounding the device as a whole TSX SCA 64 Certain precautions must be taken in order to ensure correct placement of the bus cables e following the stripping template e using the following cable ends e DZ5 CE005 for the main cables e DZ5 CE007 for the power supply cable This diagram shows the local grounding principle for the device as a whole 54mm 8 mm _ Shielding 150 TSX SCA 64 Connecting the Shield to the Local Ground and to the Two Ends of the Cable
51. TSX FPP 20 card is compatible with the following Fipway devices e Model 40 PLCs TSX 47 455 TSX 67 455 etc in versions later than 5 0 e TSX 17 PLCs e PC compatible devices connected with TSX FPC10 and TSX FPC 20 cards Note The TSX FPP 10 card is not supported by the host channel 81 TSX SCY 11601 21601 4 5 Installation Installation General The TSX SCY 11601 21601 modules are installed in a Premium Atrium PLC station rack These are included in an X Way network architecture based on 7 Series Micro Premium and Atrium PLCs The TSX SCY 11601 communication module adds the following features to a PLC station e A Modbus isolated mono protocol RS 485 communication channel The TSX SCY 21601 communication module adds the following features to a PLC station e A multi protocol isolated RS 485 communication channel e A standard PCMCIA communication card slot The TSX SCY 11601 21601 modules can be installed in any available slot ina Premium Atrium PLC station rack 82 TSX SCY 11601 21601 Maximum number Connection Disconnection A TSX SCY 11601 module supports a maximum of 1 discrete RS 485 type communication channel built into the module A TSX SCY 21601 module supports a maximum of 2 discrete communication channels e one RS 485 channel built into the module e one channel from PCMCIA card which can be integrated into the module Since the maximum number of discrete chan
52. Terminals with their own power supply FTX 417 FTX 517 can be connected to both TER and AUX connectors on Premium processors If a terminal does not have its own power supply it must be connected to the processor TER connector If the PLC is connected to a network architecture the transparency network enables the programming terminal to reach all the devices in the architecture The product reference for the different connection cables is given below Examples of connection Premium TSX RKY Ko gt 1O Jo TSX PCX 1031 RS 485 232 Host PC Programming adjustment OR TSX PCX 1031 2 z pol TSX FTX CBF 020 Programming adjustment TSX FTX CBF 020 o RS 485 Programming adjustment 34 Terminal port and TSX P ACC 01 device Man machine interface console General The man machine interface device uses UNI TE protocol to communicate with the local PLC and the other stations in the network architecture A man machine console with its own power supply on a Premium PLC must be connected to the AUX port except on T
53. a modem TSX SCP 112 TSX SCP CX 2030 TSX SCP CX 2030 TSX SCP CX 2030 Current Loop TSX SCP 114 TSX SCP CU 4030 and TSX SCP CM 4030 and TSX SCP CU 4030 and RS 422 RS 485 TSX SCA 50 TSX SCA 50 TSX SCP CM 4030 107 Implementation of PCMCIA cards Product references for PCMCIA cards and installation Installation Table showing options for installing PCMCIA cards in processor host channels and in the TSX SCY 21601 module Product references Processor host channel TSX SCY 21601 host channel TSX SCP 111 Yes Yes TSX SCP 112 Yes Yes TSX SCP 114 Yes Yes Application Table showing the number of application specific channels or network connections specific used by PCMCIA cards phannels and Product references Number of application specific channels network connections Card in the processor Card in the TSX SCY 21601 module TSX SCP 111 0 1 TSX SCP 112 0 1 TSX SCP 114 0 1 Maximum Number of application specific channels supported number of e Premium See Premium and Atrium using Unity Pro Manual Processors racks application and power supply modules Catalog of TSX 57 Processors specific e Atrium See Premium and Atrium using Unity Pro Manual Processors racks and channels per power supply modules Catalog of Atrium Processors processor type 108 Implementation of PCMCIA cards Mounting cards and cables Details about PCMCIA cards Illustra
54. cue eons iM hia wale OOo thd oto ements bine 4 196 Modbus master communication function 00000 eee eee eee 197 Modbus slave communication function 0 0 00 198 Using the SEND_REQ communication function 20055 200 Example 1 SEND_REQ function with Echo request 0 201 Example 2 SEND_REQ function with word Read request 202 Example 3 SEND_REQ Function with Bit Read Request 204 Example 3 READ_VAR function for reading bits 5 206 Debugging of a Modbus communication 020000 cee eee 207 At a Glance we Soi di sien wa ee eee Oe oN Ses Be 207 Modbus debugging Screen 0 eee teens 208 Modbus Master debugging screen 000 cece eee eee 210 Debug screen in Modbus slave type 0 e eee eee 211 How to test a communication channel 00002 eee eee eee 212 Software implementation of communication using Character Mod icira cee eal ite co a Oe ee 215 Atg GANE a ge Pg aa 215 General rers e n e ceo ven ee I ake Wy e ere BE 216 AtA GANGE a a er a a a a a aA a a a a a e 216 About Character Mode oi r orure ei ce a E a ah 217 Flow Control 0 0 0 0 ccc eee eee eee eee eens 218 Compatibilities sr s bee tie ie ea ee a ee Ee Be 220 Performante sa nya a n aa aa o Shatin dt a old oa a SP aMule ait 221 Operating Mode 0 45 apa hia be be ped ee D ie bed a Ae 223 Character Mode communication configuration
55. essential to use a TSX P ACC 01 connection device Examples of connection Premium master TSX SCP 114 PCMCIA communication card f L A TSX SCP CU 4030 cable S1 ON S1 ON S2 ON S2 ON a6 Uni Telway bus oo g Cy TSX P TSX TSX TSX TSX P ACC 01 SCA 50 SCA 50 SCA 62 ACC 01 TSX CSC 015 E E a lol QE J ol uo S 3 JE 4 i y TI I oF la it is TILITT TIT iT ir Titi it ih I a Premium ATV 16 TSX 17 20 Slave Slave Slave EE Slave A slave PLC manages up to three consecutive link addresses e AdO system address e Adi client application address e Ad2 listen application address 40 Terminal port and TSX P ACC 01 device Inter PLC Uni Telway General The terminal port on Premium processors allows two PLCs to be connected one the master and the other the slave For this connection to be possible it is essential to use a TSX P ACC 01 See Introduction to TSX P ACC 01 p 55 connection device The different options for connecting this device are given below Example of Illustration connecting two Premium PLCs Premium master Premium slave
56. gage Gh dria et deacon Slaves Ata Glance 2 322205 vedere ee va Pe ee ee eo E E E Pr sentation wise ced bi eh i ote alee eed Gets ie dt E N Compatibility c 3023464 cay oe ee ti Ky wed Sine head eee Lae he ead POrOrmance 3 5 gos aii are E Repeat a8 E EE EN pea aun ae des E EN Operating Mode 0 0 eee tee AE e Addresses of a slave PLC 2 eee Uni Telway communication configuration 0 00 e eee eee Ata Glace ziu aa eaten caterer aos tay das ENSE a alba ete aed A ale is a How to access the Terminal Port parameters 00 eee eee How to access the parameters of the built in channel of the TSX SCY 21601 module 0 0 eee How to access the parameters of the PCMCIA Uni Telway cards Configuration Screen of the Uni Telway link 00 cee e eee Accessible functions in Uni Telway sasaaa ee eee eee Application linked Uni Telway Parameters 0 000 cae eee eee Transmission linked Uni Telway Parameters 00 002 e eee eee Uni Telway communication programming 0e see eee eee AEN GIANCCr tei ocd ced co Sheehan skid aoe S a aR te aie Available communication functions 0 000 e eee eee Writing command words 0 00 e eects Master to Slave exchanges 00 cece eee cette teen ee Slave to Master exchanges usuau cece eee ete eens Example of an exchange from a slave to the Master system Example of a direct
57. implement specific protocols for physical supports RS232 or RS485 Unity Pro is used to configure and debug PCMCIA cards integrating specific protocols Contact your Schneider Electric sales office to obtain a list of companies accredited to develop the protocol to be implemented This type of communication is available for Premium PLCs via the host slot of the processor and or the TSX SCY 21601 module using e An FCS SCP 111 PCMCIA card associated with the RS232 physical layer e An FCS SCP 114 PCMCIA card associated with the RS485 physical layer 297 Software Implementation Specific Protocol Communication Operating Mode At a Glance General Chart Operation The following graph describes the operating modes of the FCS SCP 111 114 PCMCIA cards The operating mode is as follows Module stopped Power up Module off Communication Module at Module configured Pana Self iest stage Reset Module not configured Self tests OK Configuration After power up the module self tests During this stage the warning indicators flash If there is no Unity Pro application in the PLC the module awaits configuration If there is a Unity Pro application in the PLC the application s configuration is transmitted to the module and then the module starts up e When there is a power outage the PLC processor carries out a warm restart The module then restarts its self test procedures 298 Software Im
58. input words byte 0 16 04 byte 1 16 00 MW 11 16 0296 corresponds to the identification of the Modbus function MW12 0 reserved MW13 16 0A00 address of the first word to read 1 MW14 16 0400 number of words to read 1 MW103_ 10 bytes length of the data to be transmitted in bytes Key 1 the most significant bytes and the least significant bytes must be inverted 202 Software implementation Modbus Communication Response The slave response contained in the MW50 30 reception buffer is of type Value of MW50 Value of Description MW51 0 if action taken 16 0004 corresponds to the read function of n input words byte 0 16 04 byte 1 16 00 MW52 to MW79 contain the Modbus response data e MW52 PFo 0A e byte 0 16 0A length received in bytes 10 bytes e byte 1 PFo most significant byte of first word e MW53 PF pfo e byte 0 pfo least significant byte of first word e byte 1 PF most significant byte of second word e MW54 PFo pf e byte 0 pf least significant byte of second word e byte 1 PF gt most significant byte of third word 1 if action not taken 16 0007 incorrect request parameters 16 0004 incorrect question parameters 16 0688 byte 0 16 80 function code 16 08 for Echo byte 1 16 06 Modbus error code the slave is busy 16 0188 byte 0 16 80 function code 16 08 for Echo byte 1 16 01 Modbus e
59. of the first word 0 indicates that the exchange has been performed 1 indicates that the exchange has not been performed The transmission buffer should contain the following information first word e Byte 0 function code e Byte 1 sub function code second word Modbus function identifier which is always 16 0296 third word 0 reserved fourth word Modbus function parameters fifth word Modbus function parameters n th word Modbus function parameters Note This function is not available in Modbus master mode on the Terminal port 200 Software implementation Modbus Communication Example 1 SEND_REQ function with Echo request At a Glance The example deals with the Echo diagnostics function This function requests the interrogated slave to return the entire message sent by the master Question The communication function is as follows SEND _REQ ADDR 0 0 1 x 16 9F MW10 10 MW100 4 SMW50 30 Before sending the function it is necessary to initialize the following words Words Value of the Description words MW10 16 0008 corresponds to the Echo function byte 0 16 08 byte 1 16 00 MW 11 16 0296 corresponds to the identification of the Modbus function MW12 0 reserved MW13 16 1234 corresponds to the Echo function parameter For this example the slave must send return the value 16 1234 MW103 8 bytes le
60. off Module configured Communication Module at self tes function stage Reset Module not configured Self tests OK Configuration After power up the module self tests During this stage the warning indicators flash If there is no Unity Pro application in the PLC the module awaits configuration If there is a Unity Pro application in the PLC the application s configuration is transmitted to the module and then the module starts up e When there is a power outage the PLC processor carries out a hot restart The module then restarts its auto test procedures 253 Software implementation Uni Telway communication Addresses of a slave PLC At a Glance Address Ad0 Address Ad1 Address Ad2 Usage constraints A slave PLC can have up to three Uni Telway addresses e a server address AdO e a client application address Ad1 e a listening application address Ad2 A server address called AdO is obligatory and coded in the configuration It enables access to the PLC system for adjustment diagnostics or reading functions or writing variables program loading and unloading etc A client application address called Ad1 is supplied optionally by the slave module configuration This enables requests or messages requiring a response or not to be sent to another device connected on the Uni Telway bus A listening application address called Ad2 is supplied optionally by the slave module configuration
61. online mode e Diagnostics accessible only in online mode e Configuration Module zone Specifies the shortened name of the module Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel e To display the Symbol name of the channel defined by the user using the variable editor 4 General Shows the communication channel parameters parameters e Function shows the configured communication function zone This information cannot be modified e Task shows the configured MAST task This information cannot be modified 5 Display and is used to access the debugging parameters for a Uni Telway command link zone Note LEDs and commands not available appear grayed out 290 Software implementation Uni Telway communication Uni Telway debugging screen At a Glance Type Window Counters Window Channel Test window The specific part is divided into three windows e the Type window e the Counters window e the Channel test window This window looks like this Type Master It shows the type of Uni Telway function which is configured master or slave This window l
62. parameters These exchanges apply to a set of MW objets of the same type status commands or parameters that belong to a channel Note These objects provide information about the module e g type of channel fault etc can be used to command them e g switch command and to define their operating modes save and restore adjustment parameters in the process of application 311 Language objects of communications General principle for using explicit instructions Managing exchanges The diagram below shows the different types of explicit exchanges that can be made between the processor and module PLC processor Communication module Communication channel MWr m c objects or MWr m MOD r objects 1 Status parameters e READ_STS Status parameters Command parameters WRITEZOMO y Command parameters WRITE_PARAM gt Current adjustment READ_PARAM parameters ie SAVE_PARAM ty x a Current adjustment parameters iti i at Initial adjustment RESTORE_PARAM parameters gt 1 Only with READ_STS and WRITE_CMD instructions During an explicit exchange it is necessary to check its performance in order that data is only taken into account when the exchange has been correctly executed To do this two types of information is available e information concerning the exchange in progress See Execution in
63. q pal 4 o2 17 Y 17 17 oO o oO 2 GE 0 SoS 2 Lol SE oa Ses 5 Soz oo Elg oS LC Eec Zaca L Eaigs 92 92 Ta 2 812 1512 2 Sree S at ral S Karara ozz O E 24v 5 W t ET Junction block 1 Junction block 2 Junction block n Rc resistance of optional load p C Note the cable shielding must be connected at the shortest point in the junction blocks 119 Implementation of PCMCIA cards Dynamic performance General Point to point Multidrop The flow of a current loop link is limited by the cross section and the length or the cable used The user should refer to the two charts below to evaluate the performance which can be obtained using this application These curves are given for a shielded two pair cable send through one pair reception through the other while observing all the precautions of use speed in Kbps 20 cable 1 mm 4500 m max cable 0 64 mm 2500 m max cable 0 34 mm 1300 m max IS 200 500 1000 2000 3000 4000 5000 The chart below is given for a shielded cable with a conductor cross section of 0 34 mm The connection is made according to the parallel multidrop diagram below Using conductors with a larger cross section improves the quality of the
64. seta nse Wa hee ee tele bey 56 External appearance 2 cece eee 57 Hardware installation 0 2 0 cee tees 58 Ata GlanCe nen et aes ca ee he NE ee LI Tae ate ieS 58 Dimensions and mounting 2 c eee tees 59 Internal VieWe reihi rg nein bee eia dt ied eee tide deci a wd 60 Connection to Uni Telway BuseS 0 000 c cece tees 61 Connecting to Premium and Atrium PLCs 000 c ee eee eee 62 Switch configuration 0 0 0 0c cette eee 63 TSX P ACC 01 connector pin configuration 0 0 0 e eee eee 64 Example of topologieS 0 2 0 0 cece eens 65 Ata Glance si unane hetiek beets cee ie Od wrote wie eee 65 Connecting devices 0 0 0 cee cc teens 66 Uni Telway master mode 0 c eee eens 68 Uni Telway slave mode 2 2 cece teeta 70 Connection between two PLCS 0 0c eee eee tees 71 Installing TSX SCY 11601 21601 modules 73 Ata Glance e en cons Sia nnelie os ita tes Pian Renee aad Sh eke 73 At a Glance iiei ea A al ot ee ee 74 AtaiGlance giv dira are betan die cate ee ante ee de oat Rig Meee fag 74 Introduction seinen foun hee hie Tee et eee ad 75 Operating standards 0 cect teens 76 Descriptio Na 28 Aven eee ee hee Eee eee ioe ee ee 77 Description nissarda ae ea gay aa eh ha oy was Ra cane as 77 Built in Channel Specifications sussen eects 80 Built in Channel Specifications 0 06 eae 80 TSX SCY 216
65. signals transmitted Number of connected stations 16 4800 bps 2400 bps 1200 bps 600 bps 1000 1500 120 Implementation of PCMCIA cards Multidrop link performance is optimized when there are more connected stations The line is busier which improves the quality of the transmitted signal When the connection is made according to the diagram above See General p 119 the number of stations can be increased artificially to a maximum of 16 stations by loading the line at one of its ends This can be carried out by incorporating a load resistance This load resistance can be connected to any junction block providing it is between pins 17 and 19 of cards TSX SCP 112 The value of Lr resistance simulating the load of N stations is determined by the formula R in KQ U external supply voltage N station number to be simulated Example An installation is physically made up of 6 stations connected in multidrop with an external 24 V supply The performance of the line is that of 10 stations simulating the load of 4 additional stations by a resistance 24 Rc 4x20 0 3KQ Note The load resistance must not have an inductive effect or there is a risk that it will not operate Use a thick layer of resistance 121 Implementation of PCMCIA cards TSX SCP 112 connection with April 5000 7000 PLCs General PCMCIA card TSX SCP 112 20 mA current loop is u
66. strings e INPUT CHAR request character string read See Unity Pro Communication Block Library Manual INPUT_CHAR Receiving character strings e OUT_IN CHAR send a character string followed by a read request See Unity Pro Communication Block Library Manual OUT_IN_CHAR Senden Empfangen von Zeichenketten Note The use of these functions must be consistent with the configuration 239 Software implementation Communication using Character Mode Example A station at address 20 1 on a Fipway network wants to send then receive a character string to from a video terminal connected to the built in link of a station s TSX SCY 21601 module at address 20 3 Fipway it ond li NO iila Programming the communication function 13 8 MW170 0 OPERATE ir 4 1 OUT_IN_CHAR ADDR 20 3 0 0 0 SYS 1 Str_1 MW170 4 Str_2 The following table describes the function s different parameters Parameter Description ADDR 20 3 0 0 0 SYS Address of the message s destination device 1 Send receive Str_1 Content of the message received Variable of type STRING MW170 4 Exchange report length of the string sent then that of the string received Str_2 Content of the message to send Variable of type STRING Note Before each function launch the number of characters to be sent must be entered in the length parameter in by
67. this Section What s in this Section This section describes the Configuration process used when implementing Modbus communication This section contains the following topics Topic Page How to access the Modbus parameters of the built in channel of the 184 TSX SCY 11601 21601 modules How to access PCMCIA Modbus card parameters 186 Modbus Configuration Screen 188 Accessible Modbus Functions 190 Application linked Modbus Parameters 191 Transmission linked Modbus Parameters 193 183 Software implementation Modbus Communication How to access the Modbus parameters of the built in channel of the TSX SCY 11601 21601 modules At a Glance This operation describes how to access the configuration screen of the built in channel Modbus link channel 0 of modules TSX SCY 11601 21601 for Premium PLCs Note For TSX SCY 11601 given that there is only one channel Channel 0 and one link Modbus JBUS channel 0 is configured by default 184 Software implementation Modbus Communication How to access The following table shows the steps to follow in order to access the Modbus link henn Step Action 1 Open the hardware configuration editor 2 Double click on the TSX SCY 11601 or TSX SCY 21601 module 3 Select channel 0 Result E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD TSX SCY 21601 B Channelo Function None v
68. to TSX P ACC 01 p 55 device Terminal port and TSX P ACC 01 device Modem on terminal port General Modem characteristics The terminal port on Premium PLCs is compatible with a modem connection in all protocols Master Uni Telway Slave Uni Telway and Character string The modem which is to be connected must have the following characteristics 1 Support 10 or 11 bits per character if the terminal port is used in Uni Telway mode e 1 bit for Start e 8 bits of Data e 1 bit for Stop e Odd parity or without parity Operate without any data compression if the terminal port is used in Uni Telway Be able to be forced DTR signal configured for its RS 232 serial port if the modem is used in response mode as this signal is not connected by the cable Operate without flow control neither hardware RTS CTS or software XON XOFF for its RS 232 serial port as the cable to be used for the terminal port can only carry TX RX and GND signals Operate without data carrier check Warning this operating mode also uses RTS and CTS control signals Accept an incoming telephone call while characters arrive at its RS 232 serial port if a modem telephone network is used in response mode on a terminal port configured in master Uni Telway Note It is strongly recommended that you check with your dealer that the above mentioned characteristics are offered by the intended modem
69. 0 0 c eee 128 Atia Glante ieren eaa Pat ied seein ie ie eee 128 Connection to the Uni Telway network 00 00 aranana naaa 129 Connecting to the Modbus bus 0 0 0 e eee eee 132 Multi protocol asynchronous link connection RS 422 00 135 5 7 5 8 5 9 Chapter 6 6 1 6 2 6 3 6 4 6 5 6 6 6 7 Part IlI Chapter 7 Summary of connection devices 0 00 c eee eee eee 137 Summary of PCMCIA card connection devices 0 000000 137 Precautions when connecting PCMCIA cards 00 0c eee ee eee 138 Precautions for connecting PCMCIA cards 00 eee eee eee 138 Consumption of PCMCIA cards 0 0 0 cette eee 139 Consumption of PCMCIA cards 0 0 cette 139 TSX SCA 64 connection device 00e eee eeee 141 Ata Glacen ss ai ee Ae cas bye Ane bee Saka eda BON aera in 141 General Introduction 0 0 0 0 cect ete eee eee 142 General Introduction 20 0 c eect ete e eee e eee 142 Physical Description ea reta ree oea E eA teens 144 Physical Description soie giii pi aga eects 144 Dimensions and Mounting auauna 146 Dimensions and Mounting 0 c eee tees 146 Installation vsss n8 where ne Seed Se Gee Ee eee ee eS eee 148 Installation i224 sess bcs ate kite Ad Ae eee ed on eee cs clay 148 Bus Cable Shield Cabling 0 000 tees 149 Ata Glance csc erie aA a ie ee en a et 149 Local Grounding the Bus
70. 0 149 172 19200 cyclic 57 75 19200 10 60 90 19200 50 100 118 Exchange time Number of objects read 100 words tor 100 words Speed in bits s T cycle ms Average duration Average duration ms ms TSX SCY 11601 21601 TSX SCP 114 4800 cyclic 616 630 4800 10 637 650 4800 50 700 730 9600 cyclic 357 375 9600 10 367 390 9600 50 405 425 19200 cyclic 215 228 19200 10 216 239 19200 50 251 280 181 Software implementation Modbus Communication Operating Mode At a Glance General chart Operation The following graphics show operating modes for PCMCIA Modbus cards built in links in TSX SCY 11601 21601 modules and for the Terminal Port The operating mode is as follows Power up Module stopped Module off Module configured Communication Module at self test function stage Reset Module not configured Self tests OK Configuration After power up the module self tests During this stage the warning indicators flash If there is no Unity Pro application in the PLC the module awaits configuration If there is a Unity Pro application in the PLC the application s configuration is transmitted to the module and then the module starts up When there is a power outage the PLC processor carries out a hot restart The module then restarts its auto test procedures 182 Software implementation Modbus Communication 8 2 Modbus communication configuration At a Glance Subject of
71. 01 module s host channel compatibility 81 TSX SCY 21601 Host Channel Compatibility 000 81 Installation sirp ie he ethene wed Seat Sasha te eee eee wae 82 Installationy 4 2 see a a e a UB ay ee ay 82 Operation is sede ethos ha wine es pli de Masha th othe Was amp 84 4 7 4 8 Chapter 5 5 1 5 2 5 3 5 4 5 5 5 6 Operation 2 60 ek eee Ok Ss he che a ee tine de 84 Module Visual Diagnostics 0 0 0 ett tees 85 Visual module diagnostics 0 0 cece eee 85 Built in Channel Connection 0 00 c ett e ee 86 Ata Glance 3 5 bined tans duentd tee a aana hehe webs dd dee idaho 86 Ata Glaces anan sa cane K EE aaa e i a AEE Herta at eee a eS 87 Connection of TSX SCY 21601 to Uni Telway field bus 89 Reminder on adapting RS 485 distributed line for the TSX SCY 21601 91 Example of Uni Telway architecture 0 00 eee ees 93 Connection of TSX SCY 11601 21601 modules to the Modbus field bus 94 Reminder on single line polarization in RS 485 0 0 c eee eee 95 Example of Modbus architecture 0 0 00 e eee ees 97 Connecting the TSX SCA 50 unit 0 0 0 eee eee 98 Character Mode connection for TSX SCY 21601 0 0 0 c eee eee 99 Consumption of TSX SCY 11601 21601 modules 005 100 Implementation of PCMCIA cards 000e scenes 101 Ata Glance c 2 20 kita M tal usin debe ddd dop
72. 1 4 1 At a Glance At a Glance Aim of this This section introduces the TSX SCY 11601 21601 modules Section What s in this This section contains the following topics Section Topic Page Introduction 75 Operating standards 76 74 TSX SCY 11601 21601 Introduction TSX SCY 11601 General TSX SCY 21601 General Notes for the two modules The TSX SCY11601 communication module allows communication via a Modbus link It consists of a communication channel channel 0 mono protocol RS485 isolated asynchronous serial link supporting the Modbus protocol The TSX SCY 21601 module can take PCMCIA communication cards It has two communication channels e A multi protocol built in channel channel 0 RS485 isolated asynchronous serial link supporting Uni Telway Modbus or Character Mode protocols e A PCMCIA host channel channel 1 which supports the following protocols e Uni Telway Modbus and Character Mode on an RS 232 D Current Loop or RS 485 link corresponding to cards TSX SCP 111 112 and 114 e Fipway cell network corresponding to the TSX FPP 20card Note The built in channel on TSX SCY 11601 21601 modules is only compatible with a two wire RS 485 link 75 TSX SCY 11601 21601 Operating standards General The TSX SCY 11601 21601 modules and PCMCIA communication cards comply with the following international norms and standar
73. 1 cable connected to the Uni telway bus at one end and unconnected at the other 56 Terminal port and TSX P ACC 01 device External appearance General This device is made from zamak and of the same type as Uni Telway branching or connection devices TSX SCA 50 and TSX SCA 62 It is designed to be mounted in a cabinet Its protection index is IP20 Illustration Terminal ports Connection cable to TER port for Premium PLC length 1 m TER AUX JLH LE 57 Terminal port and TSX P ACC 01 device 3 5 Hardware installation At a Glance Aim of this This Section deals with installing hardware for connection devices TSX P ACC 01 Section What s in this This section contains the following topics ion Section Topic Page Dimensions and mounting 59 Internal view 60 Connection to Uni Telway Buses 61 Connecting to Premium and Atrium PLCs 62 Switch configuration 63 TSX P ACC 01 connector pin configuration 64 58 Terminal port and TSX P ACC 01 device Dimensions and mounting General The TSX P ACC 01 device is installed on a AM1 PAeee perforated board or ona DIN rail with a LA9 D09976 mounting plate Illustration SSSeeceSssesssss fod Yo if SSSoeoseos
74. 30 Uni Telway lead TSX SCY CU 6530 TSX SCA 62 89 TSX SCY 11601 21601 Description of leads Lead TSX SCY CU 6030 pemean TSX SCA 50 Device Connection E A White Dp oe T o OOO O e Li 524 l lt i ee AORE A 8 J ov Cersa 3 4 7 KQ Lead TSX SCY CU 6530 econ TSX SCA 62 connection unit sy 47 ko eg 13 OV coy OVL ay 25 ov ee B Ov aN TEGA l I wan D A 71 DA 4s 319 D B Tg D B ie 6 i 424 a j l ie a ra 7 15 pin SUB D connector ov 4 7 KQ 90 TSX SCY 11601 21601 Reminder on adapting RS 485 distributed line for the TSX SCY 21601 General This adaptation is used for Uni Telway networks Diagram of normal Uni Telway network architecture LK 5V 5V 5V 5V Rx Tx Fe Rp Rp Rp L Ze Zc VIAN JA VIN Connection of The network is made up of one shielded twisted pair The connection of the network units network s different units is carried out as follows STEP INSTRUCTION 1 Link all outputs labeled Tx Rx to the network wire labeled L 2 Link all outputs labeled Tx Rx to the network wire labeled L Adapt the network s impedance using two adaptation nodes Zc located on the two end stations of the network 4 For of distributed polarization of the network li
75. 34 PLCs with only one terminal port Examples of connection Premium master T FTX CBF 020 XBT Z 968 Client Client Server slave PC Client Server Magelis Note When using an Atrium station where the processor only has one terminal port this type of connection can be made by using a TSX P ACC 01 device The master can scan up to eight link addresses e Link addresses 1 2 and 3 are reserved for the programming terminal e The five other addresses are available for connecting a device such as a man machine interface slave PLC sensors actuators or any other slave device which supports UNI TE protocol Addresses 4 and 5 are reserved for a man machine interface console it one is used addresses are forced by using a XBT Z 968 cable This functioning mode is immediately operational Within the limits of the default configuration no installation phase is required to connect a device to this type of link 39 Terminal port and TSX P ACC 01 device Slave Uni Telway General The Uni Telway slave protocol of the terminal port is used to build a slave Premium or Atrium PLC into a Uni Telway bus managed by a Premium or Atrium PLC PCMCIA communication card or terminal port For this connection to be possible it is
76. 349 Index Connection Character Mode 99 TSX SCA 50 98 TSX SCP 111 113 TSX SCP 112 116 TSX SCP 114 128 Connection devices TSX SCP 111 137 TSX SCP 112 137 TSX SCP 114 137 Connection precautions PCMCIA cards 106 Connection to the field bus TSX SCY 11601 94 TSX SCY 21601 94 Connection to the TSX SCA 64 unit 2 wire mode 142 Connection to TSX SCA 64 unit 4 wire mode 143 Consumption TSX SCP 111 139 TSX SCP 112 139 TSX SCP 114 139 TSX SCY 11601 100 TSX SCY 21601 100 D Debug parameters Modbus 211 Debug screen Specific protocols 304 Debugging Parameters Modbus 210 Debugging parameters Character mode 244 Uni Telway 291 Debugging screen Character mode 242 Modbus 208 Uni Telway 289 Description PCMCIA cards 104 TSX SCY 11601 77 TSX SCY 21601 77 F FCS SCP 111 295 FCS SCP 114 295 Flow Control 218 H Host Channel Compatibility TSX SCY 21601 81 Identification Uni Telway 293 INPUT_CHAR 239 Installation Overview 171 TSX SCY 11601 82 TSX SCY 21601 82 Introduction TSX SCY 11601 75 TSX SCY 21601 75 IODDT Character Mode 327 Communication 317 Modbus 321 Module 348 Uni Telway 334 L Language Objects Implicit Exchange 310 Language objects Explicit exchange 311 319 323 329 337 344 Implicit exchange 318 322 328 335 343 Management of exchanges 313 Specific protocols 347 M Mirror Uni Telway 293 350 Index Modbus Compatibil
77. 35006178 01 a brand of Schneider Electric Premium and Atrium using Unity Pro Asynchronous serial link User manual eng September 2004 Telemecanique Table of Contents Part Chapter 1 Part Il Chapter 2 Chapter 3 3 1 3 2 Safety Information 000 e eee eee eee eee 11 About the Books siciscci sees bie es a AN a ae 13 Introduction to Modbus Character Mode and Uni telway communications 0000e eee ee 15 Alia Glance o t285 he ited ko en pie Veh ee eee os Soe as oh 15 Introduction to Modbus Character Mode and Uni telway COMMUNICATIONS iv A Rete Phi aed Catt Ow ea Ras 17 Introduction to communications 0 00 ccc eee eens 17 Hardware installation for Modbus Character Mode and Uni Telway communications 19 Ata Glance nanna ea aloe eine argon dodas hh wikia Gaede Berd eth ee 19 Introduction to hardware installation 00 005 21 Communication function devices s sssaaa cece eee eee 21 Terminal port and TSX P ACC 01 device 23 At a Glance eco ene eth eee A ee vias Gd Sedan etna pee Pe 23 Introduction to the terminal port 0 0 2 0 cece eee 24 At a Glance 22 260 aca Siew Wie we ea OE a ew ee 24 Introduction to the terminal port 0 2 0 cece eee 25 Communication with a programming adjustment terminal 27 Communicating with a man machine interface console 28 Uni Telway m
78. 68 Software implementation Uni Telway communication Writing command words At a Glance Syntax Recommen dations for use The instruction WRITE CMD is used for explicit writing in the module or the communication channel or in the built in interface of the associated command words For a Uni Telway link this instruction will mainly be used for communication with an external modem Example switching from Uni Telway mode to character mode for the dialing phase The syntax of the instruction is as follows WRITE CMD IODDT_VAR1 where IODDT_VAR1 is type T COM_STS_GEN Before executing a WRITE_CMD test whether an exchange is currently underway using the language object MWr m c 0 To do this you must perform a READ STS to read the word You then need to modify the value of the command language object in order to perform the required command For a Uni Telway link the language object is the internal word MWr m c 15 Example To switch from Uni Telway mode to character mode MWr m c 15 is also set to 16 4000 MWr m c 15 6 1 Note A single command bit must then be switched from 0 to 1 before transmitting a WRITE CMD Finally a WRITE _CMD must be executed to acknowledge the command 269 Software implementation Uni Telway communication Master to Slave exchanges At a Glance The Master station carrie
79. AUX port and the connected device must handle the RTS signal To use the TSX PCX 1031 cord one of the following TER port configurations must be used e 7 data bits 1 or 2 stop bits 1 parity bit e 7 data bits 2 stop bits e 8 data bits 1 stop bit O or 1 parity bit e 8 data bits 2 stop bits The TSX PCX 1031 and TSX PCX 1130 cables should only be connected to the PLC s TER port in order to supply power to the RS 485 RS 232 conversion device To avoid signal conflicts no devices should be connected to the PLC s AUX port 47 Terminal port and TSX P ACC 01 device Summary table of terminal port connections General The table below can be used to define which cable links the terminal port connectors of a Premium Atrium PLC to peripheral devices Connection cable TER AUX Example of connected devices Port Port TSX CB 1020 X TSX P ACC 01 TSX CB 1050 T FTX CBF 020 X X FTX 517 FTX 417 TSX PCX 1031 X FT 2100 RS 232 programming and adjustment terminals Graphics terminals and printers managing RTS signal Devices not handling DTE lt gt DTE type RTS signals RS 232 programming terminals printers XBT Z938 X X Magelis TSX P ACC 01 X Connection to Uni Telway TSX PCX 1130 X Devices not handling DTE lt gt DCE type RTS signals Modem TSX PCX 3030 X X Programming and adjustment terminals with a USB port Key X Available Not available
80. CTS Delay ___ Te Multidrop Pointto point BEW 188 Software implementation Modbus Communication Description The following table shows the different elements of the configuration screen and their functions Address Element Function 1 Tabs The tab to the front indicates which mode is currently in use Config in this example Each mode can be selected by the corresponding tab The modes available are e Configuration e Debugging accessible only in online mode e Diagnostic only accessible in online mode 2 Module zone Uses LEDs to provide a reminder of the module and module status in online mode 3 Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel e To display the Symbol name of the channel defined by the user using the variable editor 4 General Enables you to choose the general parameters associated with parameters the channel zone e Function according to the channel the available functions are Modbus Character mode and Uni Telway By default No function is configured Task defines the MAST task in whi
81. Data field is used to fill in the type of coding used to communicate in Modbus This field must be set according to the other devices e RTU mode e the characters are coded over 8 bits e the beginning and end of the frame are detected by a silence of at least 3 5 characters e the integrity of the frame is checked using the CRC checksum contained within the frame e ASCII mode e the characters are coded over 7 bits e the beginning of the frame is detected by the reception of characters or by a silence greater than the delay between characters The end of the frame is detected by CR and LF carriage return and line feed or by a silence greater than the delay between characters Note The value 1000 in ASCII mode corresponds to an infinite delay between characters 194 Software implementation Modbus Communication Stop Parity RTS CTS delay This window looks like this sp 1bit O 2bits The Stop field allows you to fill in the number of stop bits used for communication in Modbus The possible values are 1 or 2 stop bits This field is set according to the other devices Note The default value is 1 stop bit This window looks like this Parity even OO0dd ONone This field is used to set whether a parity bit is added or not as well as its type The possible values are Even Odd or none Even by default This field
82. Mode ss s a aad aah tee RN hd Adobe een ee 298 Configuration of Specific Protocol Communication 299 Ata Glate eect tice 2 pacar doo he eae aa ew Hoek seek reer ae he ae ere 299 How to Access the Parameters of Specific Protocol PCMCIA Cards 300 Configuration Screen for the Generic Protocol Function 302 Debugging a Specific Protocol Communication 0 5 304 Debug Screen for the Generic Protocol Function 5 304 Language objects of Modbus Character Mode and Uni Telway communications 2000eeeeeeee 307 Ata Glance no ncas saa ee ee ee ew wasn Ss Wk se 307 Language objects and IODDTs of Modbus Character Mode and Uni Telway communications 12 0 4 y 20h ees ee lee Vac neta Ka a e a 308 Atia Glane saa fondo basen edn htc Sk Gwe E NG mot Beco Gag ENE E nn ees 308 Presentation of the language objects for Modbus Character Mode and Uni Telway communications 0 0 00 e eee 309 Implicit Exchange Language Objects Associated with the Application Specific FUNCHOMN 2 open bees panei akties ig Ase HLA aa dain apes InP Sees esau eid 310 Explicit exchange language objects associated with the application specific function 0 2 0 eee 311 Management of exchanges and reports with explicit objects 313 General language objects and IODDTs for all communication protocols 317 Ata Glance 2s Sete a s wet nd bates Wows bets ates ghee i wha eh h
83. Mounting Dimensions This diagram shows the dimensions of the TSX SCA 64 connection device 24mm 1 Tt E E a E E N E S A eae 2 34 mm Mounting Fixing The device can be mounted either e ona board or panel secured with 2 M4 screws min length 20mm e onaDIN profile Refs AM1 DP 200 or AM1 DE 200 Schneider catalog references 146 TSX SCA 64 Drilling Template This diagram shows the plan for mounting on a board or panel 1 Screw hole diameter must be suitable for M4 screw 60 mm 25mm 147 TSX SCA 64 6 4 Installation Installation Required Hardware Procedure Installing the TSX SCA 64 device requires e a2 5mm wide flat tipped screwdriver e across tipped screwdriver PZ01 The labels in the text below correspond with those found in the description of the device Step Action 1 Unscrew screw 1 with a PZ01 screwdriver open cover 2 2 Fix device connection base to its support e either a DIN AM1 DP200 or AM1 DE 200 profile ora board or panel and secure with 2 M4 screws min length 20mm 3 Prepare main cables 14 and 16 according to the connection type selected as indicated on the following pages Position the ground clamps 4 onto the cables Position the ground link 5 if necessary according to the type of connection selected as indicated on the following pages 6 Connect th
84. OD 1 0 MOD_FLT INT R Internal error word of the module MWr m MOD 2 MOD_FAIL BOOL R Internal error module failure MWr m MOD 2 0 CH_FLT BOOL R Faulty channel s MWr m MOD 2 1 BLK BOOL R Terminal block fault MWr m MOD 2 2 CONF_FLT BOOL R Hardware or software configuration fault MWr m MOD 2 5 NO_MOD BOOL R Module missing or off MWr m MOD 2 6 348 Index A Accessible Functions Character mode 231 Modbus 190 Accessible functions Uni Telway 262 Address Uni Telway 254 Built in Channel Specifications TSX SCY 11601 80 TSX SCY 21601 80 C Characteristics Terminal port 52 Communication Character string 31 Man machine interface console 28 Uni Telway master slave 30 With terminal 27 Communication channel test Modbus 212 Uni Telway 292 Communication function Modbus 197 198 Compatibilities Character Mode 220 Compatibility Uni Telway 250 Configuration Character Mode 224 Modbus 183 Specific protocols 299 Uni Telway 255 Configuration Access Character mode 225 226 227 Modbus 184 186 Specific protocols 300 Uni Telway 256 257 258 Configuration objects 346 Character Mode 332 Modbus 326 Uni Telway 341 Configuration Parameters Modbus 191 193 Uni Telway 263 265 Configuration parameters Character mode 232 234 236 237 Configuration Screen Character mode 229 Modbus 188 Uni Telway 260 Configuration screen Specific protocols 302
85. OL R Current parameter exchange in progress MWr m c 0 1 ADJ_IN_PROGR BOOL R Adjustment parameter exchange in progress MWr m c 0 2 Explicit The table below presents the meaning of the exchange report bits EXCH RPT exchange report MWr m c 1 EXCH_RPT Standard symbol Type Access Meaning Address STS_ERR BOOL R Reading error for channel status words MWr m c 1 0 CMD_ERR BOOL R Error during command parameter exchange MWr m c 1 1 ADJ_ERR BOOL R Error during adjustment parameter exchange MWr m c 1 2 344 Language objects of communications Standard The table below shows the meaning of the bits of the status word CH_FLT channel faults MWr m c 2 Reading is carried out by a READ_STS lIODDT_VAR1 CH_FLT Standard symbol Type Access Meaning Address NO_DEVICE BOOL R No device is working on the channel MWr m c 2 0 1_DEVICE_FLT BOOL R A device on the channel is faulty MWr m c 2 1 BLK BOOL R Terminal block fault not connected MWr m c 2 2 TO_ERR BOOL R Time out error defective wiring MWr m c 2 3 INTERNAL_FLT BOOL R Internal error or channel self testing MWr m c 2 4 CONF_FLT BOOL R Different hardware and software configurations MWr m c 2 5 COM_FLT BOOL R Problem communicating with the PLC MWr m c 2 6 APPLI_FLT BOOL R Application error adjustment or configuration error MWr m c 2 7 Specific channel status
86. P 111 RS232 MP PCMCIA CARD i m TSX SCP 112 BC MP PCMCIA CARD l TSX SCP 114 RS485 MP PCMCIA CARD i 3 From the menu click on one of the following PCMCIA cards then validate by clicking OK e FCS SCP 111 e FCS SCP 114 300 Software Implementation Specific Protocol Communication Step Action 4 Double click again on the PCMCIA card slot Result H 0 2 Slot B FCS SCP 114 OPEN RS485 PCMCIA CARD FCS SCP 114 Description 1 0 Object Channel 1 Open RS485 PCMCIA card PROPERTIES Type of bus General protocol Structure Physical interface RS 485 VISUAL INDICATORS Select channel 1 6 Select the GENERIC PROTOCOL function Example E 0 2 Slot B FCS SCP 114 OPEN RS485 PCMCIA CARD Al FCS SCP 114 L Channel Function GENERIC PROTOCOL 7 301 Software Implementation Specific Protocol Communication Configuration Screen for the Generic Protocol Function General Points The configuration screen is used to set up the necessary parameters for the Generic Protocol function Illustration The figure below represents a configuration screen 1 2 OPEN RS485 PCMCIA CARD v 3 FCS SCP 114 z Confi ai Channel 1 i J Function Base GENERIC PROTOCOL w Decimal v Task Parameter Symbol Value K
87. Parity _ ______ even 0Odd ONone This field is used to set whether a parity bit is added or not as well as its type The possible values are Even Odd or none Odd by default You are advised to adjust the parity according to the remote device in use This window looks like this RTS CTS delay 0 Jx 100m Carrier DCD Before a character string is transmitted the module activates the RTS Request To Send signal and waits for the CTS Clear To Send signal to be activated This allows you to enter e the maximum waiting time between the two signals When this value is timed out the request is not transmitted on the bus e the value is expressed in hundreds of milliseconds the default value is 0 ms the value is between 0 and 10s the value 0 specifies an absence of delay management between the two signals e data carrier management DCD signal Data Carrier Detected is only used for communication with a modem with a controlled data carrier e lf the option is selected the characters are only valid on reception if the DCD signal is detected e lf the option is not selected all characters received are taken into account 233 Software implementation Communication using Character Mode Message end parameters in character mode At a Glance Condition of use After configuring the communication channel you need to enter the message end detection parameters I
88. R window This window looks like this Type Master It enables you to select the type of Uni Telway Protocol the module uses e Master selects the Uni Telway master e Slave selects the Uni Telway slave This window is only accessible by selectingMaster Master Event data 0 bytes 4 Number of slaves 31 This allows you to enter e the Event data used to select the number of bytes for the Event Data e the default value is O bytes e the possible values are 0 4 or 8 bytes e the Number of slaves used to select the number of slaves the master PLC will have to scan e fora PCMCIA card and the built in link the possible values are 0 to 98 e forthe Terminal Port the possible values are 3 to 8 e the default value depends on the communication channel 31 for a PCMCIA card and built in link and 3 for the Terminal Port 263 Software implementation Uni Telway communication Slave Function This window is only accessible by selecting Slave Slave Server Address ADO E Number of addresses 41 This allows you to enter e the Server address ADO used to select the server address AdO of the device e the possible values are between 1 and 98 e the Number of addresses used to assign up to three slave addresses to the same device This option is offered for example to PLCs that can have Server AdO Clie
89. ROGR BOOL R Adjust parameters exchange MWr m c 0 2 in progress RECONF_IN_PROGR BOOL R Reconfiguration of the module MWr m c 0 15 in progress The table below shows the report bits EXCH_RPT MWr m c 1 Standard symbol Type Access Meaning Address STS_ERR BOOL R Error reading channel status MWr m c 1 0 words 1 failure CMD_ERR BOOL R Error during a command MWr m c 1 1 parameter exchange 1 failure ADJ_ERR BOOL R Error during an adjust MWr m c 1 2 parameter exchange 1 failure RECONF_ERR BOOL R Error during reconfiguration of MWr m c 1 15 the channel 1 failure 316 Language objects of communications 12 2 General language objects and IODDTs for all communication protocols At a Glance Subject of this Section What s in this Section This section presents the general language objects and IODDTs that apply to all communication protocols This section contains the following topics Topic Page Details of IODDT implicit exchange objects of type T COM_STS_GEN 318 Details of IODDT explicit exchange objects of type T COM_STS_GEN 319 317 Language objects of communications Details of IODDT implicit exchange objects of type T CCOM_STS_GEN At a Glance The following table presents the IODDT implicit exchange objects of type T_COM_STS_GEN applicable to all communica
90. S TXD1 transmission from master from slave PR1 For RXD1 polarization 15 Device PT1 For TXD1 polarization by device by device 167 TSX SCA 64 168 Software implementation of Modbus Character Mode and Uni Telway communications At a Glance In This Chapter What s in this Part This part presents the software implementation of Modbus Character Mode and Uni Telway communications with Unity Pro This part contains the following chapters Chapter Chapter Name Page 7 Installation methodology 171 8 Software implementation of Modbus communication 175 9 Software implementation of communication using Character 215 Mode 10 Software implementation of Uni Telway communication 247 11 Software Implementation of Specific Protocol Communication 295 FCS SCP 111 114 cards 12 Language objects of Modbus Character Mode and Uni Telway 307 communications 169 Software implementation 170 Installation methodology Overview Introduction The software installation of the application specific modules is carried out from the various Unity Pro editors e in offline mode e in online mode If you do not have a processor to connect to Unity Pro allows you to carry out an initial test using the simulator In this case the installation See Implementation phases with simulator p 173 is different The following order
91. SX P57 554 5634 in order to leave the TER port free for a terminal which needs a power supply FTX 117 Adjust for example The product references for connector cables between the terminal port and a Magelis man machine interface console are given below Examples of connection Premium TSX RKY XBT Z968 Cy OF LA Host PC Magelis MMI console 35 Terminal port and TSX P ACC 01 device Programming adjustment terminal and man machine interface console General The terminal port on a Premium processor can manage two devices in multidrop the programming adjustment terminal and an man machine interface console Each of the two connectors on the processor can receive one of these devices Examples of connection T FTX CBF 020 7 XBT Z 968 Magelis MMI console Note Each connected terminal can be disconnected without disrupting the operation of the other When using an Atrium PLC or if the processor only has one terminal port this type of connection can be made by using a TSX P ACC 01 See Introduction
92. TS receiver signal and vice versa The transmitter is authorized to transmit data when it receives the RTS receiver signal on its CTS input Here the control signals are RTS DCD signals This Flow Control mode is not widely used It can however be used for communication with a lower performance printer The Tx transmitter output is connected to the Rx receiver input and vice versa The DCD transmitter signal is connected to the DTR receiver signal and the RTS transmitter signal is connected to the CTS receiver signal The transmitter is authorized to transmit data when it receives the RTS receiver signal on its CTS input In the case this flow control is performed using software with the Xon Xoff characters In this case the devices are only connected by two wires The Tx transmitter output is connected to the Rx receiver input and vice versa The transmitter is authorized to transmit data when it receives the Xon character on its Rx input and must stop transmission when it receives the Xoff character on its Rx input 219 Software implementation Communication using Character Mode Compatibilities Hardware Software This type of communication is available for Premium PLCs e Via the Terminal Port associated with the RS485 physical layer e Via the host channel of the processor or TSX SCY 21601 module with e aPCMCIA TSX SCP 111 card associated with the RS232 physical layer e aTSX SCP 112 PCMCIA ca
93. TSX P ACC 01 device 3 4 Introduction to TSX P ACC 01 At a Glance Subject of this Section What s in this Section This section describes the general characteristics of the TSX P ACC 01 device This section contains the following topics Topic Page Functionalities 56 External appearance 57 55 Terminal port and TSX P ACC 01 device Functionalities General The TSX P ACC 01 unit is a cabling accessory that connects to the TER connector of the Premium Atrium PLC processor via an integral cable fitted with a mini DIN connector at one end This is used to e Connect several devices to the terminal port of Premium Atrium PLCs For this purpose it is fitted with two mini DIN connectors marked TER and AUX which are functionally identical to the TER and AUX connectors of the Premium PLC processors e Isolate Uni Telway signals in order to extend Premium PLC terminal port links to over 10 meters for the purpose of connecting the PLC to a Uni Telway bus e Adapt the bus when the unit is connected to one of the ends of the Uni Telway bus e Set the operating mode of the terminal port e Uni Telway master e Uni Telway slave or Character Mode Note The TER and AUX ports of the TSX P ACC 01 unit are not isolated from one another nor from the TER port of the supplying PLC Note We strongly recommend that after use you do not leave a TSX PCU 103 or TSX PCX 103
94. TS_ERR BOOL R Reading error for channel status words MWr m c 1 0 CMD_ERR BOOL R Error during command parameter exchange MWr m c 1 1 ADJ_ERR BOOL R Error during adjustment parameter exchange MWr m c 1 2 323 Language objects of communications Standard The table below shows the meanings of the bits of the CH_ FLT MWr m c 2 status channel errors word Reading can be done via a READ_STS IODDT_VAR1 CH_FLT Standard symbol Type Access Meaning Address NO_DEVICE BOOL R No device is working on the channel MWr m c 2 0 1_DEVICE_FLT BOOL R A device on the channel is faulty MWr m c 2 1 BLK BOOL R Terminal block fault not connected MWr m c 2 2 TO_ERR BOOL R Time out error defective wiring MWr m c 2 3 INTERNAL_FLT BOOL R Internal error or channel self testing MWr m c 2 4 CONF_FLT BOOL R Different hardware and software configurations MWr m c 2 5 COM_FLT BOOL R Problem communicating with the PLC MWr m c 2 6 APPLI_FLT BOOL R Application error adjustment or configuration error MWr m c 2 7 Specific channel status The table below introduces the meanings of the PROTOCOL MWr m c 3 channel status word Reading can be done via a READ_STS IODDT_VAR1 MWr m c 3 Standard symbol Type Access Meaning Address PROTOCOL INT R Byte 0 16 06 for Modbus master function MWr m c 3 PROTOCOL INT R Byte 0 16 07 for Modbus
95. W PO MW0 0 1 9 SJololafajalo r Channel test Request transmission Request response Destination 98 A address z gt Enter request ASCII C Hex r O 304 Software Implementation Specific Protocol Communication Description The table below shows the various elements of the debug screen and their functions Number Element Function 1 Tabs The tab in the foreground indicates the mode in progress Debug in this example Each mode can be selected using the respective tab The available modes are Debug which can be accessed only in online mode Fault which can be accessed only in online mode e Configuration Module area Specifies the abbreviated heading of the module Channel area Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select a channel e To display the Symbol name of the channel defined by the user using the variable editor General parameters area Shows the communication channel parameters e Function provides a reminder of the configured c
96. W0 0 1 KW0 0 1 1 KW0 0 1 2 KW0 0 1 3 KWO0 0 1 4 KWO 0 1 5 KWO0 0 1 6 KWO 0 1 7 KWO 0 1 8 L ololo ol olol o olo O O N OD on o jr 302 Software Implementation Specific Protocol Communication Description The following table shows the various elements of the configuration screen and their functions Number Element Function 1 Tabs The tab in the foreground indicates which mode is currently in use Config in this example Select each mode by clicking on the corresponding tab The available modes are e Configuration Debug which can be accessed only in online mode Fault which can be accessed only in online mode Module area Uses LEDs to provide a reminder of the module and module status in online mode Channel area Is used e By clicking on the device reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel you wish to configure e To display the Symbol name of the channel defined by the user using the variable editor General parameters area Enables you to choose the general parameters assoc
97. Wr m c 0 to INT R Input signals Wr m c 7 QWr m c 0 to INT R Output signals QWr m c 7 The table below shows the explicit exchange objects Number Type Access Meaning MWr m c 2 INT R Channel standard status MWr m c 3 to INT R Specific channel or counter status MWr m c 15 MWr m c 16 INT R Command The table below shows the configuration objects Number Type Access Meaning KWr m c 0 to KWr m c 15 INT R Parameters 347 Language objects of communications 12 7 The IODDT type T_GEN_MOD applicable to all modules Details of the Language Objects of the IODDT of type T_ GEN_MOD At a Glance Notes List of objects All the modules of Premium PLCs have an associated IODDT of type T GEN_MOD e The meaning of a bit is generally given for the status of the bit when set to 1 In specific cases an explanation is given for each status of the bit e Not all bits are used The table below shows the objects of the IODDT Standard symbol Type Access Meaning Number MOD_ERROR BOOL R Module error bit lr m MOD ERR EXCH_STS INT R Module exchange control word MWr m MOD O STS_IN_PROGR BOOL R Reading of status words of the module in MWr m MOD 0 0 progress EXCH_RPT INT R Exchange report word MWr m MOD 1 STS_ERR BOOL R Fault when reading module status words MWr m M
98. Y 11601 module General TSX SCY 21601 General The TSX SCY 11601 module manages a communication channel channel 0 e channel 0 Modbus protocol on an RS 485 half duplex isolated standardized physical link with a speed limited to 19200 bits per second The TSX SCY 21601 module manages two independent communication channels which each have their own functions e Channel 0 deals with Uni Telway Modbus and Character Mode protocols on an isolated physical link and with standardized RS 485 half duplex with a speed limited to 19200 bits per second e Channel 1 receives one of the following PCMCIA communication cards e Field Bus TSX SCP 111 RS232 TSX SCP 112 current loop TSX SCP 114 RS 422 RS 485 Uni Telway Modbus and Character mode cards e Cell network TSX FPP 20 Fipway card The choice of PCMCIA card and protocol is made when the TSX SCY 21601 module s communication channels are configured using Unity Proware 84 TSX SCY 11601 21601 4 7 Module Visual Diagnostics Visual module diagnostics General Three LEDs are located on the front panel of TSX SCY 11601 21601 modules These LEDs display information on the module s operating status and on the communication status of the built in serial link RUN green ERR red CHO yellow The host channel s communication status is set by the ERR and COM LEDs in the PCMCIA cards See Visual diagnostics of PCMCIA cards p 112 on the serial o
99. _MOD applicable to all modules 348 307 Language objects of communications 12 1 Language objects and lIODDTs of Modbus Character Mode and Uni Telway communications At a Glance Subject of this Section What s in this Section This section presents the general points relating to language objects and IODDTs of Modbus Character Mode and Uni Telway communications This section contains the following topics Topic Page Presentation of the language objects for Modbus Character Mode and Uni 309 Telway communications Implicit Exchange Language Objects Associated with the Application Specific 310 Function Explicit exchange language objects associated with the application specific 311 function Management of exchanges and reports with explicit objects 313 308 Language objects of communications Presentation of the language objects for Modbus Character Mode and Uni Telway communications General Types of language objects IODDTs are predefined by the manufacturer and contain input output language objects belonging to an application specific module Modbus Character Mode and Uni Telway communications have five associated IODDTs T_COM_STS_GEN which applies to all communication protocols T_COM_MB which is specific to Modbus communication T_COM_CHAR which is specific to Character Mode communication T_COM_UTW_M which is specific to Uni Telway
100. _VAR1 CH_FLT Standard symbol Type Access Meaning Address NO_DEVICE BOOL R No device is working on the channel MWr m c 2 0 1_DEVICE_FLT BOOL R A device on the channel is faulty MWr m c 2 1 BLK BOOL R Terminal block fault not connected MWr m c 2 2 TO_ERR BOOL R Time out error defective wiring MWr m c 2 3 INTERNAL_FLT BOOL R Internal error or channel self testing MWr m c 2 4 CONF_FLT BOOL R Different hardware and software configurations MWr m c 2 5 COM_FLT BOOL R Problem communicating with the PLC MWr m c 2 6 APPLI_FLT BOOL R Application error adjustment or configuration error MWr m c 2 7 Specific channel status The table below shows the meanings of the PROTOCOL MWr m c 3 channel status word Reading can be done via a READ_STS IODDT_VAR1 MWr m c 3 Standard symbol Type Access Meaning Address PROTOCOL INT R Byte 0 16 03 for Character Mode function MWr m c 3 Command The table below shows the meaning of the bits of the CONTROL word MWr m c 15 The command is made by a WRITE_CMD e g WRITE_CMD lIODDT_VAR1 Standard symbol Type Access Meaning Address BOOL R W Reset counter MWr m c 15 0 DTR_ON BOOL R W DTR signal Data Terminal Ready ON MWr m c 15 8 DTR_OFF BOOL R W DTR signal Data Terminal Ready OFF MWr m c 15 9 330 Language objects of communications Details concerning explicit exchang
101. a communication bus with 4 TSX SCA 64 connection devices To TSX SCY 21601 modules Line end jack TSX SCA 64 TSX SCA 64 TSX SCA 64 TSX SCA 64 164 TSX SCA 64 Installing Line End Jacks At a Glance Mounting Procedure The configuration is attained by plugging each SUB D 15 pin 2 wire connector supplied into the sockets enabling line adaptation This diagram shows the configuration RXD1 RXDO pair Cabling view 1 Resistance and series capacity type adaptation TXD1 TXDO pair Installation Status Action 1 Plug the wires supplied into the SUB D 15 pin connectors as shown above 2 Put the connector into place in one of the half covers the connector can be either way up Attach the latch screw Put the sleeve into place Cover it all with the other half cover taking care not to damage the wires Screw in or clip on the two half covers depending upon the type included NIOJ AJIO Use the blank labels provided to show utilization Note Cable clamps and or other accessories should not be used 165 TSX SCA 64 Connecting an The JM or JS connectors on the TSX SCA 64 device can support a frame analyzer Analyzer which is connected by a SUB D 15 male pin connector Signals relating to each pair are available on the device connectors as indicated in the diagram below This diagram shows the con
102. ackspace management Uncheck this box if the card is connected to an operator dialog terminal 237 Software implementation Communication using Character Mode Backspace management Full Duplex RS 422 Checking Backspace management enables you not to store each backspace character received and cancel the preceding character Moreover if the echo option On reception is enabled the PLC transmits three characters in the following order e Backspace 16 08 e Space 16 20 e Backspace 16 08 If the box is unchecked all backspace characters received are stored like any other character Checking this box enables you to carry out Full Duplex communication otherwise communication is Half Duplex The activation of this function depends on the type of remote device in use Full Duplex RS 422 238 Software implementation Communication using Character Mode 9 3 Character Mode communication programming Available communication functions At a Glance This page describes the communication functions available in character mode and gives an example of communication between two stations Micro and Premium Available Three specific communication functions are defined to send and receive data to a functions communication channel in character mode e PRINT CHAR send a character string See Unity Pro Communication Block Library Manual PRINT_CHAR Sending character
103. allation on an Atrium Removable cover with wings Screws are provided to fix it to the Atrium processor marked 2 on illustration compatible device Installation onto a PC Removable cover marked 1 on illustration Note The covers with wings mounted on PCMCIA cards prevent any accidental removal when switched on and guarantee that the card remains in good working order The two covers 1 and 3 are provided with the PCMCIA card Cover 2 is provided with the Atrium processor Connection to the network is achieved by connecting the link cable to the front of the card A guidance system is used to prevent anything being mounted incorrectly The product reference label informs the user of the type of physical layer supported by the card 104 Implementation of PCMCIA cards 5 3 Connecting the PCMCIA card reception channel At a Glance Aim of this This Section describes the installation of PCMCIA cards in the reception channel of Section the TSX SCY 21601 module What s in this This section contains the following topics ion Section Topic Page Precautions to be taken when connecting PCMCIA card 106 Connection of PCMCIA cards 107 Product references for PCMCIA cards and installation 108 Mounting cards and cables 109 PCMCIA card operation display 111 Visual diagnostics of PCMCIA cards 112 105 Implementation of PCMCIA cards
104. an Green White EMI pap White Orange 5 Sa i N i lt 20 Alim 7 S Pe Blue White Note A screw terminal block needs to be installed to connect the TSX SCP 112 card 117 Implementation of PCMCIA cards Connecting in point to point mode General The diagram below describes the wiring principles for TSX SCP 112 loop current PCMCIA cards in point to point Point to point is only carried out according to 20 mA mode when idle Illustration Station 1 Station 2 SCP 112 SCP 112 o2 o9 LA TIN 1 Cb ep o v 25 X w 25 ses f EE S oL22 G x Sree K LEE 7 Occ 20 oss 620 oss J 2 zs A ht 2 _s e O 2 3 2 Z Subs F l a oa i g Junction block 1 Junction block 2 Note Important the cable shielding must be connected at the shortest point in the junction blocks 118 Implementation of PCMCIA cards Multidrop connection Multidrop is only carried out in 0 mA idle mode The send cable and receive cable General are set in parallel The master is set by the software Example of connection of n TSX SCP 112 cards Station 1 Station 2 Station 3 TSX SCP 112 TSX SCP 112 TSX SCP 112 9 9 9 K o VY B 7 E aS ol K 013 4 19
105. and 15 e value 0 indicates no retries by the Master e the Response time time elapsed between the request made by the Master and a repeat attempt if the slave does not respond It corresponds with the maximum time between the transmission of the last character of the Master s request and receipt of the first character of the request sent back by the slave e the default value is 1s 100 10ms e possible values between 10ms and 10s This window is only accessible by selecting Slave Slave Slave Number E This allows you to fill in the Slave number of the device e TSX SCY 21601 e the default value is 98 e possible values lie between 1 and 98 e TSX SCY 11601 e the default value is 247 e possible values lie between 1 and 247 This window looks like this urrent loop PSR O Multidrop Point to P oint It allows you to select a e Multidrop Current Loop communication e Point to point Current Loop communication 192 Software implementation Modbus Communication Transmission linked Modbus Parameters At a Glance Transmission speed Delay between characters After configuring the communication channel you need to enter the transmission parameters These are split into six windows e the Transmission speed window the Delay between characters window the windows specific to Data and Stop the Parity window the RTS CTS delay window This wi
106. ape button or if a message is received 244 Software implementation Communication using Character Mode Message Sent window Message Received window This window looks like this Message Sent prm a character string i This window is used to enter a message to be sent during a communication test using the Send and Send Receive buttons This window looks like this Message Received Number of characters received ASCII Hex This window is used to read a received message as a result of a communication test by using the Receive and Send Receive buttons The ASCII and Hex buttons are used to display the text in ASCII or in hexadecimal 245 Software implementation Communication using Character Mode How to test a communication channel Introduction How to senda character string How to receive a character string This page describes the procedure for testing a communication channel from the debugging screen The following procedure is used to send a character string with a remote device Step Actions 1 Enter the character string to be sent in the Message sent window Note Special characters can also be sent They must begin with the character example using carriage return character 0D 2 Click on the Send button Result If the exchange is correct a window specifying that the exchange is correct
107. appears On the remote device display check whether the string has been transmitted The following procedure is used to receive a character string with a remote device For efficient operation you must remember that this test requires stop on reception to be configured either via a special character or via a silence Step Action 1 Click on the Receive button 2 Send the character string with the frame end character from the remote device Note In this example stop on reception is performed after a carriage return character 16 0D 3 Display the number of characters and the character string received in the Message received window 246 Software implementation of Uni Telway communication 10 At a Glance Subject of this Chapter What s in this Chapter This chapter presents the software implementation of Uni Telway communication This chapter contains the following sections Section Topic Page 10 1 General 248 10 2 Uni Telway communication configuration 255 10 3 Uni Telway communication programming 267 10 4 Debugging of a Uni Telway communication 288 247 Software implementation Uni Telway communication 10 1 General At a Glance Subject of this This section presents the general points relating to Uni Telway communication and Section its services What s in this This section contains the foll
108. aracter mode can be used to connect a device such as a printer display screen or a specialized console table controller for example 45 Terminal port and TSX P ACC 01 device Examples of connection Premium TSX RKY O Alc f z O pE 4 i F i Ald Bus X OF B lt I Mic i ol A iO RS485 RS 232 converter cable TSX PCX 1031 o e Control screen not handling OR the RTS signal Converter cable RS485 RS 232 TSX PCX 1031 RS485 RS 232 converter cable Control G gt TSX PCX 1031 screen not handling the RTS Controller signal OR RS485 RS 232 RS485 RS 232 converter cable converter cable TSX PCX 1031 TSX PCX 1031 Printer Controller RS485 RS 232 converter cable TSX PCX 1031 Printer Note To allow all types of connection the TSX PCX 1130 cable is delivered with a TSX CTC 09 adapter converter 9 pin male to 25 pin male 46 Terminal port and TSX P ACC 01 device Precautions for use The TSX PCX 1031 cable allows RS 485 RS 232 conversion and provides peripheral slave information for the printer It does not work on the
109. are for all PLCs in the Premium family 102 Implementation of PCMCIA cards TSX SCP 11 cards Series link PCMCIA cards Each TSX SCP 111 112 114 PCMCIA card supports a different physical layer This family comprises three products Product reference Physical layer Illustration TSX SCP 111 RS 232 D link TSX SCP 112 Current loop link 20 mA TSX SCP 114 RS 485 link RS 422 compatible All three cards TSX SCP 111 112 and 114 support the following communication protocols e Modbus protocol e Uni Telway protocol e Character Mode asynchronous link 103 Implementation of PCMCIA cards 5 2 Description Description General Mechanical configuration PCMCIA type III extended communication cards are built into a metal case with the following dimensions e Length 85 5 mm e Width 51 mm e Height 10 mm The front of the card is designed to display communication status and provides the physical connection to the network The mechanical configuration of the card must be adapted by mounting a removable cover depending on the type of installation desired Type of installation Configuration Illustration Installation on a Premium type processor or ona TSX SCY 21601 communication module on illustration Removable cover with wings Screws are provided to fix it to the host module marked 3 type processor Inst
110. are implementation Communication using Character Mode Additional parameters At a Glance Echo Beep Management When configuring a link in character mode it is necessary to configure the following four parameters e the Echo window e the Beep Management parameter e the Backspace management parameter e the Full Duplex RS 422 parameter This window enables you to select and configure echo management on reception Echo _ _ M On reception Restart from 1st chan CR gt CR LF Allcharacters received by the PLC are immediately retransmitted over the line as an echo thus enabling the remote device to perform a control To validate echo management check the On reception box If a write request is transmitted by the PLC during reception the reception echo is interrupted Once the write request is finished the echo is reset in two distinct ways e either from the first character received for this check Restart on 1st char e or from the last character before interruption for this uncheck Restart on 1st char By selecting CR gt CR LF it is possible on reception of the carriage return character CR 16 0D to send as part of the echo the carriage return character followed automatically by the line feed character LF 16 0A Checking Beep Management causes a beep to sound when the module s reception buffer is empty or full Beep Management B
111. aster slave communication 000e eee eee eee 30 Character string communication 0 0 000 e eee eee 31 Connections esain 326 es oa a oo bes Pathe bien AE iden Shey 32 Ata Glance ences ge ees Wh we es SO ee ee Wale ee 32 CONNECUONS errre piee et tered eit ei led AAA ied oe tare eh 33 Programming Adjustment terminal 0 0 0 0 cc eee eee 34 Man machine interface console 000 cece eee eee 35 Programming adjustment terminal and man machine interface console 36 3 3 3 4 3 5 3 6 Chapter 4 4 1 4 2 4 3 4 4 4 5 4 6 Modem on terminal port a s asana auauua 37 Master Uni Telway 00 0 eee eee eee 39 Slave Uni Telway icies eie sas ea ee ee ee eae SY ae Pee BY 40 Inter PLC Uni TelWay 0 0 0 cc cece ete ete nae 41 Inter device Uni Telway 00 0 cect tte 43 Master PLC type TSX model 40 0 eects 44 Character Strings irere tare a el lads ated ie ea ated chloe ee 45 Summary table of terminal port connections 00 cee e ee eee 48 APPOENCICES nko p ae eta abel h eaa Raw fea ee adele deena eta di 51 Ata Glance ous sienten t e E e a ea seat ola nonin eter 51 Characteristics of the terminal port 2 0 0 cee eee eee 52 Terminal port connector pin configuration saasaa eaea 54 Introduction to TSX P ACC 01 0 0 aaaeeeaa 55 Ata Glance svcveciet lave Ae ea en Ne eee ee ie ted 55 Functionalities 3 2 st dw enri
112. ata iIWr m c 2 3 EVT_STS_n EBOOL R 1 slave n has transmitted data lIWr m c 2 n EVT_STS_15 EBOOL R 1 slave 15 has transmitted data lWr m c 2 15 Status object for The following table presents the meaning of the bits of the EVT_STS_ 16 31 word event data lWr m c 2 For slaves 16 to 31 Standard symbol Type Access Meaning Address EVT_STS_16 EBOOL R 1 slave 16 has transmitted data IWr m c 3 0 EVT_STS_17 EBOOL R 1 slave 17 has transmitted data IWr m c 3 1 EVT_STS_18 EBOOL R 1 slave 18 has transmitted data IWr m c 3 2 EVT_STS_19 EBOOL R 1 slave 19 has transmitted data IWr m c 3 3 EVT_STS_n EBOOL R 1 slave n has transmitted data IWr m c 3 i EVT_STS_31 EBOOL R 1 slave 31 has transmitted data IWr m c 3 15 336 Language objects of communications Details of the explicit exchange objects of the T COM_UTW_M type IODDT for PCMCIA cards At a Glance This part presents the explicit exchange objects of the IODDT of the T_CoM_UTW_M type which apply to Uni Telway master communication with PCMCIA cards It includes the word type objects whose bits have a specific meaning These objects are described in detail below Sample Variable Declaration IODDT_VAR1 of type T_CoM_UTW_M Observations e In general the meaning of the bits is given for bit status 1 In specific cases an explanation is given for each status of the bit e Not all bits are used
113. ata carrier DCL 260 Software implementation Uni Telway communication Description The following table shows the different elements of the configuration screen and their functions Address Element Function 1 Tabs The tab to the front indicates which mode is currently in use Configuration inthis example Each mode can be selected by the corresponding tab The modes available are e Configuration e Debugging accessible only in Online mode e Diagnostics accessible only in Online mode 2 Module zone Provides an abbreviation as a reminder of the module and module status in online mode LEDs 3 Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel e To display the Symbol name of the channel defined by the user using the variable editor 4 General Enables you to choose the general parameters associated with parameters the channel zone e Function according to the channel the available functions are Modbus Character mode and Uni Telway By default No function is configured Task defines the MAST task in which the chan
114. ation function Use of the s1 END REQ function by the slave requires a 6 byte table to be placed at the start of the transmission buffer which corresponds to the destination address The first six bytes of the transmission buffer are coded as follows Byte 1 most significant Byte 0 least significant Word 1 16 FE 16 00 Word 2 16 FE 16 05 Word 3 16 00 number of destination slave AdO or Ad2 279 Software implementation Uni Telway communication Example of an exchange from a slave to a slave server At a Glance The Slave transmits a communication function to the slave server 3 es Uni Telway master TSX 37 slave Ad0 9 Ad1 10 Ad2 11 280 Software implementation Uni Telway communication Transmission Write a 5 word table in Slave 9 by slaves 6 7 8 using the word MW50 SEND REQ ADDR 0 0 1 7 16 0037 MW100 11 MW130 4 SMW120 1 Parameters of the request Parameters Description ADDR 0 0 1 7 0 rack 0 module 1 channel 1 7 transmitting address Ad1 16 0037 object write request MW100 16 FE 00 MW101 16 FE 05 MW 102 16 00 09 destination slave address AdO 9 MW103 16 07 68 type of object 07 16 bit integer segment
115. ayed out It is broken down into four types of information e application parameters message end detection parameters flow control parameters additional parameters 230 Software implementation Communication using Character Mode Accessible functions in character mode At a Glance Depending on the communication media chosen certain parameters cannot be modified These are grayed out Accessible The summary table below shows the various selections possible Functions Functions SCP 111 SCP 112 SCP 114 SCY 21601 Terminal Port Flow control e RTS CTS No No No No e RTS DCD e Xon Xoff e None Echo e On reception On reception No No On reception e Restart from e Restart from 1st char 1st char e CR gt CRLF e CR gt CRLF Current loop PSR No Yes No No No Stop on reception Yes Yes Yes Yes e CRILF with 1 Micro e Nowith 1 Premium Full duplex No No Yes No No Transmission speed Yes Yes Yes Yes Yes Stop on silence Yes Yes Yes Yes No Data Stop Yes Yes Yes Yes Yes Parity Yes Yes Yes Yes Yes RTS CTS delay Yes No No No No Carrier DCD Beep and Backspace management are accessible whatever the media type being used 231 Software implementation Communication using Character Mode Transmission parameters in character mode At a Glance Transmission speed Data After configuring the communication channel you need to ente
116. c 9 INT R Number of receipts with NACK MWr m c 10 INT R Number of master messages repeated MWr m c 11 INT R Number of character errors The table below shows the explicit exchange objects Address Type Access Meaning MWr m c 7 INT R Number of messages for the CPU MWr m c 8 INT R Number of receipts broadcast MWr m c 10 INT R Number of messages received during Slave busy or LOM 325 Language objects of communications Details of language objects associated with configuration Modbus mode At a Glance The following tables present all configuration language objects for communication Modbus mode These objects are not integrated in the IODDTs and may be displayed by the application program List of explicit The table below shows the explicit exchange objects exchange Address Type Access Meanin objects for yp 2 Master mode KWr m c 0 INT R Byte 0 16 06 for Modbus master function KWr m c 1 INT R Byte 0 speed 128 300 bits s 129 600 bits s TSX SCP 111 only e 00 1200 bits s 04 19200 bits s Byte 1 format bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management 1 with 0 without bit 10 Parity Type 1 odd 0 even bit 11 stop bit 1 1 bit 0 2 bits KWr m c 2 INT R Value in ms from 2 ms to 10000 ms KWr m c 3 INT R Wait Time in ms from 10 ms to 10000 ms KWr m c 4 INT R Byt
117. can be inserted into module General one of the slots on a Premium Atrium PLC station rack Note The X Bus remote is not authorized for this module Illustration Channel 0 built in channel Channel 1 host channel This module is made up of the following elements Number Description 1 Three indicator LEDs on the front of the module e RUN and ERR show the module s status e CHO displays the status of the built in serial link channel channel 0 communication 2 Built in channel has a 25 pin SUB D female connector half duplex mode channel 0 RS 485 base link e Uni Telway e Modbus e Character Mode 3 PCMCIA type III channel 1 host channel 78 TSX SCY 11601 21601 Insertable cards Different communication cards which can be built into the TSX SCY 21601 module s host channel Type Description Illustration TSX SCP 111 Multiprotocol card Uni Telway Modbus Character Mode RS 232 D 9 non isolated signals TSX SCP 112 Multiprotocol card Uni Telway Modbus Character Mode current loop BC 20 mA TSX SCP 114 Multiprotocol card Uni Telway Modbus Character Mode RS 485 RS 422 compatible isolated TSX FPP 20 Fipway network cards 79 TSX SCY 11601 21601 4 3 Built in Channel Specifications Built in Channel Specifications The built in channel of TSX SCY 11601 21601 modules includes An RS
118. cards It includes the word type objects whose bits have a specific meaning These objects are described in detail below Sample Variable Declaration IODDT_VAR1 of type T_COM_CHAR e In general the meaning of the bits is given for bit status 1 In specific cases an explanation is given for each status of the bit e Not all bits are used Explicit The following table presents the meanings of the exchange control bits of the exchange channel EXCH_STS MWr m c 0 execution flag EXCH_STS Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status words in progress MWr m c 0 0 CMD_IN_PROGR BOOL R Current parameter exchange in progress MWr m c 0 1 ADJ_IN_PROGR BOOL R Adjustment parameter exchange in progress MWr m c 0 2 Explicit The table below presents the meaning of the exchange report bits EXCH RPT exchangereport MWr m c 1 EXCH_RPT Standard symbol Type Access Meaning Address STS_ERR BOOL R Reading error for channel status words MWr m c 1 0 CMD_ERR BOOL R Error during command parameter exchange MWr m c 1 1 ADJ_ERR BOOL R Error during adjustment parameter exchange MWr m c 1 2 329 Language objects of communications Standard The following table presents the meanings of the bits of the CH_FLT status word channel faults MWr m c 2 The reading is performed by a READ_STS IODDT
119. ch the channel implicit exchange objects will be exchanged 5 Is used to configure the channel configuration parameters Some Configuration selections may be locked and appear grayed out zone It is broken down into two types of information application parameters transmission parameters 189 Software implementation Modbus Communication Accessible Modbus Functions At a Glance Depending on the communication media chosen certain parameters cannot be modified These are grayed out Accessible The summary table below shows the various selections possible Functions Functions SCP 111 SCP 112 SCP 114 SCY 11601 21601 Terminal Port Master Yes Yes Yes Yes No Slave Yes Yes Yes Yes Yes Current loop PSR No Yes No No No Transmission speed Yes Yes Yes Yes Yes Delay between characters Yes Yes Yes Yes Yes Data e ASCII e ASCII e ASCII e ASCII RTU only e RTU e RTU e RTU e RTU Stop ibit ibit ibit ibit ibit 2bits 2bits 2bits 2bits 2bits Parity e Odd e Odd e Odd e Odd Odd e Even e Even e Even e Even e Even e None e None e None e None e None RTS CTS delay Yes No No No No Data carrier management Yes No No No No DCD Specific Functions The additional Immediate server function is only available where a TSX SCP 114 card has been inserted into the TSX SCY 21601 module 190 Software implementation Modbus Communication
120. channel with requests 294 288 Software implementation Uni Telway communication Uni Telway debugging screen At a Glance This screen split into two zones is used to declare the communication channel and to configure the necessary parameters for a Uni Telway link Note This screen is not operational when connected remotely on a Uni Telway slave Illustration The figure below shows a sample debugging screen dedicated to Uni Telway communication 1 2 PCMCIA INRACK BOARD vy 3 Fay TSX SCY 21601 FConfig HH Debug Fault T Channel Type Local Error Counters Function T Messages sent and not acknowledged 0 Sentand refused Uni Telway Link v Received and not acknowledged Received and refused 0 Task Reset counters vesi Channel test om Identification Request Response 8 Enter request Q TSX 57453 0 a Mirror 4 ASCII Hex Slave 289 Software implementation Uni Telway communication Description The table below shows the various elements of the debugging screen and their functions Address Element Function 1 Tabs The front tab shows the current mode Debugging in this example Each mode can be selected by the corresponding tab The modes available are e Debugging accessible only in
121. character mode link through the Terminal Port How to access The following table shows the steps to follow in order to access the character mode the link link Step Action 1 Open the hardware configuration editor 2 Double click on the Terminal Port slot on the CPU 3 Select the function CHARACTER MODE LINK Example E 0 0 TerminalPort E TerminalP ort tB Channel0 Function CHARACTER MODE LINK T Task MAST F lt 225 Software implementation Communication using Character Mode How to access the parameters of the built in channel of the TSX SCY 21601 module in character mode At a Glance This part describes how to access the configuration parameters of the character mode link through a TSX SCY 21601 module for Premium PLCs How to access The following table shows the steps to follow in order to access the character mode link the link Step Action 1 Open the hardware configuration editor 2 Double click on the TSX SCY 21601 module 3 Select channel 0 Result PCMCIA INRACK BOARD TSX SCY 21601 A Channel 0 Function None v 4 Select the function CHARACTER MODE LINK Example E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD E TSX SCY 21601 tE Channel Function Character mode link T Task MAST F 226 Software
122. configure a time out to acknowledge the activity bit of the function The example applies to the reading of word 4 MW4 in the Modbus slave 3 READ VAR ADDR 0 0 1 3 MW 4 1 MW200 4 SMW100 1 The diagnostics and maintenance information of Modbus slaves uses the SEND_REQ communication function See Unity Pro Communication Block Library Manual SEND_REQ Sending requests Modbus request Function code Sub Communication function function code Exception status 16 07 SEND_REQ Diagnostics 16 08 16 xx SEND_REQ Event counter 16 0B SEND_REQ Connection event 16 0C SEND_REQ Slave identification 16 11 SEND_REQ 197 Software implementation Modbus Communication Modbus slave communication function Introduction This page describes the services managed by the slave modules for a Modbus link Data exchanges The slave module manages the following requests Modbus request Function code sub function code PLC object Read n output bits 16 01 M Read n input bits 16 02 M Read n output words 16 03 MW Read n input bits 16 04 MW Write an output bit 16 05 M Write an output word 16 06 MW Write n output bits 16 0F M Write n output words 16 10 MW 198 Software implementation Modbus Communication Diagnostics and maintenance The diagnostics and maintenance information which are accessible from a Modbu
123. cter mode command link See Debugging parameters in character mode p 244 zone Note LEDs and commands not available appear grayed out 243 Software implementation Communication using Character Mode Debugging parameters in character mode At a Glance Errors Window Request Transmission window The specific part is split into four windows the Errors window the Request transmission window the Message sent window the Message received window This window looks like this Errors Ontransmission 0 On reception 0 Reset Counters This window indicates the number of communication errors counted by the communication module e On transmission corresponds to the number of errors on transmission image of MWr m c 4 word e On reception corresponds to the number of errors on reception image of MWr m c 5 word The Reset Counters button resets these counters to zero This window looks like this m Send request Transmission Reception Send Receive This window is used to test a communication channel by transmission and or reception of a character string e The Send button transmits a character string e The Receive button is used to receive a character string e The Send Receive button is used to send a character string and wait for a reply Note Reception can be stopped by pressing the Esc
124. d in this manual are e The Modbus function e The Character Mode function e The Uni Telway function The three functions all require the installation of the following hardware devices e the module TSX SCY 21601 e the PCMCIA cards TSX SCP 111 112 114 The Modbus function is also provided by the TSX SCY 11601 module The section on software installation in this manual is identical to that for Premium and Atrium PLCs 17 Introduction 18 Hardware installation for Modbus Character Mode and Uni Telway communications At a Glance In This Chapter What s in this Part This part provides an introduction to hardware installation for Modbus Character Mode and Uni Telway communications This part contains the following chapters Chapter Chapter Name Page 2 Introduction to hardware installation 21 3 Terminal port and TSX P ACC 01 device 23 4 Installing TSX SCY 11601 21601 modules 73 5 Implementation of PCMCIA cards 101 6 TSX SCA 64 connection device 141 19 Hardware installation for communications 20 Introduction to hardware installation Communication function devices General The three communication functions Modbus Character Mode and Uni Telway use different devices Device Role Modbus Character Uni Telway Mode Terminal port used to connect a programming adjustment terminal
125. d thus to test the routing of information between two devices Step Action 1 Select the server address Ad0 of the slave to be interrogated using the Slave field 2 Click on the Mirror button Result the following window appears Mirror Request x Length of data to send L8 Enter the length of data to be sent maximum 80 characters Click on the Send button Result the response appears in the Receive Response window Request Response on a ASCII O Hex The response contains the character string ABCDEFGH that corresponds to the length of data sent 8 293 Software implementation Uni Telway communication How to test a channel with requests At a Glance This page indicates the procedure for testing a communication channel from the debugging screen using different requests How to send a The following procedure is used to send a request other than those provided by the request command buttons to a designated station Step Action 1 Select the address of the slave to be interrogated using the Slave field 2 Click on the Enter Request button Result the following window appears Request Code Hexadecimal m Data Hexadecimal B i Transmission Cancel The data sent in this example is coded on 3 bytes 3 Enter the function code coded in hexadecimal on one byte correspondin
126. dicators for an explicit exchange EXCH_STS p 316 e the exchange report See Explicit exchange report EXCH_RPT p 316 The following diagram describes the management principle for an exchange Execution of an Exchange in Boss gt y explicit exchange progress report Exchange 312 Language objects of communications Management of exchanges and reports with explicit objects At a Glance When data is exchanged between the PLC memory and the module the module may require several task cycles to acknowledge this information All IODDTs use two words to manage exchanges e EXCH STS MWr m c 0 exchange in progress EXCH RPT MWr m c 1 report Illustration The illustration below shows the different significant bits for managing exchanges Reconfiguration bit 15 Adjustment bit 2 Command bit 1 li Status bit 0 EXCH_RPT MWr m c 1 EXCH_STS MWr m c 0 Status parameters READ_STS Command parameters WRITE_CMD WRITE_PARAM Adjustment parameters READ_PARAM SAVE_PARAM RESTORE_PARAM 313 Language objects of communications Description of Each bit of the words EXCH_STS MWr m c 0 and EXCH_RPT MWr m c 1 is the significant associated with a type of parameter bits e Rank 0 bits are associated with the status parameters e the STS _IN_PROGR bit MWr m c 0 0 ind
127. ds US Standards UL508 IEC 1131 2 CANADA Standards CSA C22 2 1 42 Compliance with rule FCC B EC labeling PCMCIA mechanical standard type III E e PCMCIA 2 01 The link built into the TSX SCY 21601 module complies with communication standards e Uni Telway e Modbus e X Way The link built into the TSX SCY 11601 module complies with communication standards e Jbus Modbus e X Way TSX SCP 111 112 114 PCMCIA cards comply with communication standards e Uni Telway protocols Modbus e PCMCIA e X Way 76 TSX SCY 11601 21601 4 2 Description Description TSX SCY 11601 module General The TSX SCY 11601 module is a simple format module which can be inserted into one of the slots on a Premium Atrium PLC station rack Note The X Bus remote is not authorized for this module Illustration gt 2 Channel 0 built in channel This TSX SCY 11601 module is made up of the following components Number Description 1 Three indicator LEDs on the front of the module e RUN and ERR show the module s status e CHO displays the status of the built in serial link channel channel 0 communication 2 Built in channel Channel 0 has a 25 pin SUB D female connector half duplex mode channel 0 RS 485 base link Modbus 77 TSX SCY 11601 21601 TSX SCY 21601 The TSX SCY 21601 module is a simple format module which
128. e 0 number of retries default being 3 Byte 1 Signal Management bit 8 1 if PSR signal management TSX SCP 112 bit 10 1 if DCD Data Carrier management TSX SCP 111 KWr m c 5 INT R Delay time in hundreds of ms only for TSX SCP 111 default value 0 ms List of explicit The language objects for the Modbus slave function are identical to those of the exchange Modbus master function The only difference is for the following object objects for slave Address Type Access Meaning mode KWr m c 3 INT R Byte 0 slave number value 0 to 98 326 Language objects of communications 12 4 Language objects and lIODDTs associated with Character Mode communication At a Glance Subject of this Section What s in this Section This section presents the language objects and IODDTs associated with Character Mode communication This section contains the following topics Topic Page Details of the implicit exchange objects of the T COM_CHAR type IODDT for 328 PCMCIA cards Details of the explicit exchange objects of the T COM_CHAR type IODDT for 329 PCMCIA Details concerning explicit exchange language objects for communication in 331 Character Mode Details of language objects associated with configuration in Character Mode 332 327 Language objects of communications Details of the implicit exchange objec
129. e bus The value is expressed in milliseconds the default value is 0 ms the possible values are Os to 10s the value 0 specifies an absence of delay management between the two signals e data carrier management DCD signal for communication with a modem having a controlled data carrier e Ifthe option is selected the characters are only valid on reception if the DCD signal is detected e If the option is not selected all characters received are taken into account 266 Software implementation Uni Telway communication 10 3 Uni Telway communication programming At a Glance Subject of this Section What s in this Section This section describes the Programming process used when implementing Uni Telway communication This section contains the following topics Topic Page Available communication functions 268 Writing command words 269 Master to Slave exchanges 270 Slave to Master exchanges 272 Example of an exchange from a slave to the Master system 275 Example of a direct exchange from a slave to the Master system 277 Slave to Slave exchanges 278 Example of an exchange from a slave to a slave server 280 Example of an exchange from a slave to a slave application 282 Example 2 of an exchange from a slave to a slave system 283 Example of a direct exchange from a slave to a slave system 285 Example of one slave setting anot
130. e language objects for communication in Character Mode At a Glance The following tables present all configuration language objects for communication in Character Mode These objects are not integrated in the IODDTs List of explicit The table below shows the explicit exchange objects exchange y Address Type Access Meanin objects de g MWr m c 4 INT R Error in transmitted characters MWr m c 5 INT R Error in received characters 331 Language objects of communications Details of language objects associated with configuration in Character Mode At a Glance The following tables present all configuration language objects for communication in Character Mode These objects are not integrated in the IODDTs and may be displayed by the application program List of explicit The table below shows the explicit exchange objects exchange Address objects for Type Access Meaning PCMCIA cards KWr m c 0 INT R Byte 0 16 03 for Character Mode function KWr m c 1 INT R Byte 0 speed 00 1200 bits s 04 19200 bits s bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management bit 10 Parity Type 1 odd 0 even bit 11 stop bit 1 1 bit O 2 bits KWr m c 2 INT Value in ms 0 not active KWr m c 3 INT bit O 1 echo on reception bit 1 1 echo restart on first character 1 b
131. e main cables and the power supply cable if necessary to terminal 11 according to the type of connection selected as indicated on the following pages The cable wires should have DZ5 CE005 cable ends for the main cables and DZ5 CE007 cable ends for the power supply cable Use a 2 5mm wide flat tipped screwdriver Torque on terminal screw lt 0 25 N m 7 Screw on the ground clamps and link with the screws 3 using a cross tipped PZ01 screwdriver Connect the green yellow ground wire 17 to connection terminal 10 Secure the cables with nylon clips Attach the green yellow wire to the power supply cable if it is present 10 Set the micro switches 7 and 9 to the desired configuration see configurations on following pages 11 Break the scored tabs on the cover 2 to make way for the cables 12 Mount the cover 2 and secure it with the screw 1 using a cross tipped PZO1 screwdriver 148 TSX SCA 64 6 5 Bus Cable Shield Cabling At a Glance Aim of this This section describes the different local grounding principles for the bus Section What s in this This section contains the following topics ion Section Topic Page Local Grounding the Bus General 150 Connecting the Shield to the Local Ground and to the Two Ends of the Cable 151 Recommended Cable Type Connecting the Shield to the Local Ground at One End of the Cable and to the 152 Local Ground via a Surge
132. e ne ded 101 At a Glance 2a sac vi Sea ad ets Se er rd ee eee 102 Ata Glance r scien kee net ge ee ne eda Meee bei are 102 DGSCriIPION sede ae eee ee ee he en eee 104 De SGCHPUON z nesonora ae OE Rae ha Ee Ree EREDETE eee aoe es 104 Connecting the PCMCIA card reception channel 000000 105 Ata Glance s i s itive ster oa ireaes wae eg Aaa teh seh ge A eee ees 105 Precautions to be taken when connecting PCMCIA card 106 Connection of PCMCIA cards 0 0 ete 107 Product references for PCMCIA cards and installation 108 Mounting cards and cableS 2 0 cece tte 109 PCMCIA card operation display 0 0 0 c eee eee eee 111 Visual diagnostics of PCMCIA cards 1 0 0 0 cece eee 112 Connection of the TSX SCP 111 card 00 c eee ee 113 At aGlance 2 jon wot iy he inte E AN e E re 113 Point to point connection in Character Mode DTE DTE 114 Uni Telway Modbus or Character Mode via Modem 5 115 Connection of the TSX SCP 112 card 1 0 0 eee 116 Atia Glance eoe an ci eat be palin ge evel ads csr aie E ee here 116 Connection of the TSX SCP 112 card 0 0 cee ee eee 117 Connecting in point to point mode 0 eee 118 Multidrop connection 0 2 0 cette 119 Dynamic performance 0 0 eects 120 TSX SCP 112 connection with April 5000 7000 PLCs 122 Connection of the TSX SCP 114 card
133. ear throughout this documentation or on the equipment to warn of potential hazards or to call attention to information that clarifies or simplifies a procedure The addition of this symbol to a Danger or Warning safety label indicates A that an electrical hazard exists which will result in personal injury if the instructions are not followed This is the safety alert symbol It is used to alert you to potential personal injury hazards Obey all safety messages that follow this symbol to avoid possible injury or death A DANGER DANGER indicates an imminently hazardous situation which if not avoided will result in death serious injury or equipment damage A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death serious injury or equipment damage A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in injury or equipment damage 11 Safety Information PLEASE NOTE All pertinent state regional and local safety regulations must be observed when installing and using this product For reasons of safety and to ensure compliance with documented system data only the manufacturer should perform repairs to components When controllers are used for applications with technical safety requirements please follow the relevant instructions No responsibility is assumed by Schneider Electric for any c
134. en ory f 17 REC Green White Green White REC w 7 3 EMI PAP White Orange White Orange EMI PAP oe K 20 PWR Blue White Blue White PWR _ 20 aD o o GD Master active sending receiving Slave 1 passive 19 ji Q 18 O 17 a V 15 O 14 y am 10 O 16 Vis JBU0220 0250 Slave 2 passive 127 Implementation of PCMCIA cards 5 6 Connection of the TSX SCP 114 card At a Glance Subject of this This section deals with the hardware installation of TSX SCP 114 PCMCIA cards Section What s in this This section contains the following topics Section Topic Page Connection to the Uni Telway network 129 Connecting to the Modbus bus 132 Multi protocol asynchronous link connection RS 422 135 128 Implementation of PCMCIA cards Connection to the Uni Telway network General Type of connection The TSX SCP 114 RS 485 physical support card connects to the UNI TELWAY network by the TSX SCP CU 4030 cable via the TSX SCA 50 connection device or by the TSX SCP CU 4530 cable provided with SUB D 15 pin connector via device TSX SCA 62 The card is inserted in the processor or in the module TSX SCY 21601 The TSX SCA 50 is passive and made up of a printed circuit board fitted with 3 sets of screw terminal blocks It is used to connect a station by branching on the main section of a Uni Telway bus It ensures c
135. er or Slave It is accessible under the metal cover containing the electronics The following table shows how the switch operates Switch Function Link in Mode Position 0 Uni Telway PLC master communication Multi point 1 Other types of communication Multi point 2 Uni Telway PLC master communication according to PLC Point to point configuration 3 Other types of communication according to PLC configuration Point to point Note To program a PLC you must set the switch to position 0 or 2 Note You must install a See Communication Drivers Installation manual The drivers of the TSX PCX 3030 cable virtual COM driver to use the TSX PCX 3030 cable 50 Terminal port and TSX P ACC 01 device 3 3 Appendices At a Glance Aim of this This Section contains the appendices relating to the Terminal port Section What s in this This section contains the following topics ion Section Topic Page Characteristics of the terminal port 52 Terminal port connector pin configuration 54 51 Terminal port and TSX P ACC 01 device Characteristics of the terminal port General The characteristics of the terminal port are given in the table below Uni Telway master or slave mode Character Mode default of 1200 to 19200 bits s 1 start bit 8 data bits even parity odd parity or without parity 1 bit stop Structure
136. es 1000 PLC the index of the first rules object to read or write is the access address Example e Read the bit MO READ VAR ADDR 0 0 1 3 SM 16 A000 1 e Read the word MD25000 READ VAR ADDR 0 0 1 3 SMW 16 61A8 2 Furthermore these communication functions do not allow you to exchange double words or character strings using Modbus protocol Where necessary the transfer can be made in MW form Here the project is in charge of the direction of the word ranking The diagnostics functions can be accessed using the SEND_REQ function 179 Software implementation Modbus Communication Compatibility between a Premium PLC and a Quantum PLC or Micrologic device Descriptive table Premium Quantum Micrologic MO 00001 M1 Y MWO 40001 MW1 180 Software implementation Modbus Communication Performance At a Glance The following tables enable you to evaluate typical exchange times according to different criteria The results displayed correspond to an average operation period of the READ _VAR function in ms Exchange time Number of objects read 1 word tor 1 word Speed in bits s T cycle ms Average duration Average duration ms ms TSX SCY 11601 21601 TSX SCP 114 4800 cyclic 105 120 4800 10 133 140 4800 50 152 172 9600 cyclic 74 90 9600 10 86 110 9600 5
137. esymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel e To display the Symbol name of the channel defined by the user using the variable editor General parameters zone Shows the communication channel parameters e Function shows the configured communication function This information cannot be modified Task shows the configured MAST task This information cannot be modified Display and command zone Is used to access a Modbus link s debugging parameters It is different according to the type of Modbus function which is configured e either Modbus master e or Modbus slave Note LEDs and commands not available appear grayed out 209 Software implementation Modbus Communication Modbus Master debugging screen At a Glance Type Window Counters Window Channel Test window The specific part is divided into three windows e the Type window e the Counters window e the Channel test window This window looks like this Type Master It recalls the type of Modbus function configured master This window looks like this Counters Received withoutCRC error 0 Received with CRC error 0 Received with exception code 0 Sent without response 0 Sent in broadcast mode my Received with NACK 0 Retries 0 Character error 0
138. exchange from a slave to the Master system 10 4 Chapter 11 11 3 Chapter 12 12 1 12 2 Slave to Slave exchanges 0 0 c cece ete eee 278 Example of an exchange from a slave to a slave server 280 Example of an exchange from a slave to a slave application 282 Example 2 of an exchange from a slave toa slave system 283 Example of a direct exchange from a slave to a slave system 285 Example of one slave setting another slave to Stop 0 00 286 Event data managed by the master 0 e eee eee eee eee 287 Debugging of a Uni Telway communication 0000000 eee 288 Atha Glane ar Beets abd e e deg the pendants abe 288 Uni Telway debugging Screen 0 2 cee tes 289 Uni Telway debugging Screen 0 0 cece tees 291 Requests available for the communication channel test 292 How to test a channel with Identification and Mirror requests 293 How to test a channel with requests 0 00 0 eee 294 Software Implementation of Specific Protocol Communication FCS SCP 111 114 cards 00 cece eee eee 295 Atta GIANCG en eiai eget eed a eh eb ented dha dh Melt deed a a 295 General POINTS raneren ia sates dan Beds i EE ok bee 8 6S bee deans eS 296 Atta GlanGe ics ane eean yo meee ae es Ree eS 296 Presentation 2c scot tit et Se Se ia Se eine a Pa ee eae 297 Operating
139. f the Illustration TSX SCP CX 4030 cable The PCMCIA 20 pin mini connector supports the signals OOOH o 4709 GND a 4 10 ar EM 42 Green White S Ber p 4 NN we LT EMI 11 BOX ae White Green ic ia o 4709 veo TS B20 Le A White Orange l j ANS So i aN ue 4 os nee i 2 Pak Orange White 6 7 X j al ls e ADP Rec gt i L ADP 150r 6 G a B hit Si l 0 Viso 16 rown White oa 4 See also Character Mode connection for TSX SCY 21601 p 99 TSX SCY 21601 module integrated link 136 Implementation of PCMCIA cards 5 7 Summary of connection devices Summary of PCMCIA card connection devices TSX SCP 111 TSX SCP 112 TSX SCP 114 Type of cable Product reference Designation Modem cable TSX SCP CC 1030 Connection cable via Modem DTE DCE 9 signals RS 232D L 3 m Standard cable TSX SCP CD 1030 TSX SCP CD 1100 Connection cable DTE DTE RS 232D L 3mor10m Type of cable Product reference Designation Current loop cable TSX SCP CX 2030 Current loop cable 20 mA L 3m Type of cable Product reference Designation Universal cable TSX SCP CX 4030 Universal cable type RS 485 and RS 422A L 3 m Uni Telway cable TSX SCP CU 4030 Cable type RS 485 L 3 m Modbus cable TSX SCP CM 4030 Cable type RS 485 L 3 m C
140. ftware implementation Uni Telway communication How to access the Terminal Port parameters At a Glance How to access the link This part describes how to access the configuration parameters of the Uni Telway link through the Terminal Port of the Premium PLC The following table shows the steps to follow in order to access the Uni Telway link Step Action 1 Open the hardware configuration editor 2 Double click on the Terminal Port slot on the CPU 3 Select the function Uni Telway Example E 0 0 TerminalPort o TerminalP ort 2 Channel Function UNLTELWAY LINK J Task MAST v 256 Software implementation Uni Telway communication How to access the parameters of the built in channel of the TSX SCY 21601 module At a Glance This part describes how to access the configuration parameters of the Uni Telway link through the built in channel of a TSX SCY 21601 module for the Premium How to access The following table shows the steps to follow in order to access the Uni Telway link the link Step Action 1 Open the hardware configuration editor 2 Double click on the TSX SCY 21601 module 3 Select channel 0 Result E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD TSX SCY 21601 a E Channel 0 Function None yl 4 Select the function UNI TELWAY LINK Example
141. functions effectively 110 Implementation of PCMCIA cards PCMCIA card operation display General Two diagnostics LEDs are located on the front of the card They inform the user on how exchanges between the device supporting the PCMCIA card and the related device are functioning Illustration Number Description Diagram Error ERR LED normally off displays errors This is red The COM communication LED displays the line activity This LED is yellow on TSX SCP 111 112 114 cards 111 Implementation of PCMCIA cards Visual diagnostics of PCMCIA cards General Depending on their state LEDs of the PCMCIA card indicate the operating mode for communication as well as the card diagnostics TSX SCP 111 State of LEDs 112 114 cards ERR COM Meaning Corrective actions Device switched off No dialog Check the power supply O O Card not operational O O Operating normally e 1 Serious error Change the card Functional fault Check the configuration and the O connection to the communication bus O Functional fault Check the configuration Key O Off On O Flashing 1 Neutral status 112 Implementation of PCMCIA cards 5 4 Connection of the TSX SCP 111 card At a Glance Subject of this Section What s in this Section
142. g to the request that you want to send 4 Enter the data to be sent by coding all the data in hexadecimal Enter the data continuously without any intervening spaces 5 Click on the Send button Result the response appears in the Request Response window Request Response ao DB i O ASCIl Hex the response from the example has data on 3 bytes 12 43 DB 294 Software Implementation of Specific Protocol Communication FCS SCP 111 114 cards 11 At a Glance Subject of this Chapter What s in this Chapter This chapter describes software implementation for specific protocol communication using FCS SCP 111 114 PCMCIA cards This chapter contains the following sections Section Topic Page 11 1 General Points 296 11 2 Configuration of Specific Protocol Communication 299 11 3 Debugging a Specific Protocol Communication 304 295 Software Implementation Specific Protocol Communication 11 1 General Points At a Glance Subject of this This section presents the general points relating to specific protocol communication Section What s in this This section contains the following topics Section Topic Page Presentation 297 Operating Mode 298 296 Software Implementation Specific Protocol Communication Presentation At a Glance Protocols The FCS SCP111 114 PCMCIA cards enable third parties to
143. gate 16 Byte 1 most significant Byte 0 least significant Word 1 16 FE 16 00 Word 2 16 00 16 10 Word 3 16 00 16 00 Note For a TSX 47 10 master the gate number is 16 text block number To send to the system of a remote PLC network 2 station 3 Byte 1 most significant Byte 0 least significant Word 1 16 03 16 02 Word 2 16 00 16 00 Word 3 16 00 16 00 273 Software implementation Uni Telway communication Addressing When a slave uses the SEND_REQ function the syntax used is as follows SEND_REQ ADDR r m c x request number MW1 size The address of the function transmitter is type ADDR r m c x where Parameter Description r Rack number Module number m c Channel number x lt Ad1 client address of the transmitter MW1 size is a table of words containing the destination address structured as follows If access to Master system If access to Master application MW1 FE 00 MW1 FE 00 MWe2 00 00 MW2 00 10 MW3 00 00 MW3 00 00 MW4 request parameters MW4 request parameters SMW MW 274 Software implementation Uni Telway communication Example of an exchange from a slave to the Master system The slave transmits a communication function to the Master system TSX 57 At a Glance
144. her slave to Stop 286 Event data managed by the master 287 267 Software implementation Uni Telway communication Available communication functions At a Glance Available functions This page describes the available communication functions in Uni Telway mode Five specific communication functions are defined to send and receive data to a master or slave Uni Telway device READ VAR reading basic language objects words bits double words floating points constant words system bits and words timer monostable drum See Unity Pro Communication Block Library Manual READ_VAR Reading variables WRITE VAR writing basic language objects words bits double words floating points constant words system bits and words See Unity Pro Communication Block Library Manual WRITE_VAR Schreiben von Variablen SEND_REQ exchanging a UNI TE request See Unity Pro Communication Block Library Manual SEND_REQ Sending requests DATA EXCH sending and or receiving text type data See Unity Pro Communication Block Library Manual DATA_EXCH Exchanging data between applications e Dialog operator functions exchanging different specific communication functions in operator dialog Send_Msg Send_alarm Ask_Msg Ini_Buttons Control_Leds Command Note The availability of these functions varies with the type of exchanges and hardware versions see different exchange types 2
145. i Telway master communication with PCMCIA cards Error bit The following table presents the meaning of the error bit CH_ERROR lr m c ERR Standard symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR Signal objects on input The table below shows the meaning of the bits of the INPUT_SIGNALS word lWr m c 0 Standard symbol Type Access Meaning Address DCD BOOL R Data Carrier Detection signal Wr m c 0 0 RI BOOL R Ring indicator signal IWr m c 0 1 CTS BOOL R Ready to send signal IWr m c 0 2 DSR BOOL R Data ready signal IWr m c 0 3 General slave status object The following table presents the meaning of the bit of the SLAVES_ERR word IWr m c 1 Standard symbol Type Access Meaning Address SLAVES_ERR EBOOL R 1 if at least one slave does not respond lIWr m c 1 0 335 Language objects of communications Status object for The following table presents the meaning of the bits of the EVT_STS_0_15 word event data lWr m c 2 For slaves 0 to 15 Standard symbol Type Access Meaning Address EVT_STS_0 EBOOL R 1 slave 0 has transmitted data lWr m c 2 0 EVT_STS_1 EBOOL R 1 slave 1 has transmitted data lWr m c 2 1 EVT_STS_2 EBOOL R 1 slave 2 has transmitted data iIWr m c 2 2 EVT_STS_3 EBOOL R 1 slave 3 has transmitted d
146. iated with the channel e Function the Generic Protocol function is proposed By default No function is configured e Task defines the MAST task in which the channel implicit exchange objects will be exchanged Configuration area Is used to configure the channel configuration parameters KW Each value can be entered in decimal hexadecimal or binary format depending on the selection made in the Base window For information on the meaning of the KWs refer to the PCMCIA card supplier documentation 303 Software Implementation Specific Protocol Communication 11 3 Debugging a Specific Protocol Communication Debug Screen for the Generic Protocol Function At a Glance Illustration This screen divided into several areas is used to display the status and input output MWs and send requests The figure below shows an example of a debug screen for the Generic Protocol function OPEN RS485 PCMCIA CARD ee fl FCS SCP 114 Channel0 Config y fii Debug Fault Function Manufacturer Product Debug data Variables Base Decima v Status words v Reset counters Parameter MW0 0 1 2 Symbol MW0 0 1 3 Value MW0 0 1 4 MW0 0 1 5 MW0 0 1 6 MW0 0 1 7 MW0 0 1 8 SINIT AJ
147. icates whether a read request for the status words is in progress e the STS_ERR bit MWr m c 1 0 specifies whether a read request for the status words is accepted by the module channel e Rank 1 bits are associated with the command parameters e the CMD_IN_ PROGR bit MWr m c 0 1 indicates whether command parameters are being sent to the module channel e the CMD_ERR bit MWr m c 1 1 specifies whether the command parameters are accepted by the module channel e Rank 2 bits are associated with the adjustment parameters e the ADJ_IN_ PROGR bit MWr m c 0 2 indicates whether the adjustment parameters are being exchanged with the module channel via WRITE PARAM READ PARAM SAVE PARAM RESTORE PARAM e the ADJ_ERR bit MWr m c 1 2 specifies whether the adjustment parameters are accepted by the module If the exchange is correctly executed the bit is set to 0 e rank 15 bits indicate a reconfiguration on channel c of the module from the console modification of the configuration parameters cold start up of the channel Note r corresponds to the number of the rack and m to the position of the module in the rack while c corresponds to the channel number in the module Note Exchange and report words also exist at module level EXCH STS MWr m MOD and EXCH_RPT MWr m MOD 1 as per IODDT type T_GEN_MOD 314 Language objects of communications Example Phase 1 Sending data by using the WRITE_ PARAM instr
148. if the PCMCIA card channel is configured in master mode e JS connector if the PCMCIA card channel is configured in slave mode This diagram shows the general principal for connecting in 4 wire mode TSX SCP CM 4530 slave channel TSX SCA 64 TSX SCP JNP 114 master channel TSX SCP CM 4530 TSX SCA 64 1 JM connector 2 JS connector 143 TSX SCA 64 6 2 Physical Description Physical Description Illustration This diagram shows the assembly plan for the TSX SCA 64 connection device 14 15 16 13 18 17 19 20 144 TSX SCA 64 Nodes The following table describes the different nodes which make up the connection device No Description 1 Cover screws 2 Device cover 3 Screws fixing restart ground clamps 4 Restart ground clamps 5 Metallic part providing the ground link between the 2 cables 6 SUB D 15 pin female JM connector able to receive e In 2 wire mode the male connector of a TSX SCY CM 6530 or TSX SCP CM 4530 connection cable whether the channel is master or slave e In 4 wire mode the male connector of a TSX SCP CM 4530 connection cable if the channel is master Ora TSX SCA 10 line terminator if the device is located at the beginning or end of the line e Ora male analyzer connection cable connector 7 1 micro switch allowing c
149. ils of the implicit exchange objects of the T_ COM_UTW_M type IODDT for PCMCIA cards 0 00 c cee eee ete 335 Details of the explicit exchange objects of the T COM_UTW_M type IODDT for PCMCIA cards 2 00 0 cee cee eee eens 337 Details concerning explicit exchange language objects for a master Uni Telway function 0 0 2 0 eee ees 340 Details of language objects associated with configuration in master Uni Telway mode 1 2 0 2 0c ees 341 Details of the implicit exchange objects of the T COM_UTW_S type IODDT for PCMCIA cards 0 0 0 cee cette 343 Details of the explicit exchange objects of the T COM_UTW_S type IODDT for PCMCIA cards 0 00 c cece eee eens 344 Details of language objects associated with configuration in slave Uni Telway mode 0 0 eee tees 346 Language Objects Associated with the Specific Protocol 347 Details of the Language Objects Associated with Specific Protocols 347 The IODDT type T_ GEN_MOD applicable to all modules 348 Details of the Language Objects of the IODDT of type T GEN_MOD 348 betes teeta Bod casey foe aad etait Rated te os cues rae Bl can tenene 349 10 Safety Information Important Information NOTICE Read these instructions carefully and look at the equipment to become familiar with the device before trying to install operate or maintain it The following special messages may app
150. implementation Communication using Character Mode How to access the parameters of the PCMCIA cards in character mode At a Glance This part describes how to access the configuration parameters of the character mode link through PCMCIA cards How to access The following table shows the steps to follow in order to access the character mode the link link Step Action 1 Open the hardware configuration editor 2 Double click on the PCMCIA card slot Result the card type selection window appears Add Replace a submodule Product reference Description E Communication l FCS SCP 11 RS232 OPEN PCMCIA CARD i FCS SCP 114 RS485 OPEN PCMCIA CARD TSX FPP 20 FIPWAY PCMCIA CARD i _ TSX FPP 200 FIPWAY PCMCIA CARD i Ic TSX JNP 112 BC J NET PCMCIA CARD i TSX JNP 114 RS485 JNET PCMCIA CARD l 1 TSX SCP 111 RS232 MP PCMCIA CARD i TSXSCP 112 BC MP PCMCIA CARD i TSX SCP 114 RS485 MP PCMCIA CARD f 3 From the menu click on one of the following PCMCIA cards then validate by clicking OK e TSX SCP 111 e TSX SCP 112 e TSX SCP 114 227 Software implementation Communication using Character Mode Step Action 4 Double click again on the PCMCIA card slot Result H 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD TSX SCP 112 Description 1 0 Object Channel 1 20 mA CL multi protocol PCMCIA card CHARACTERISTICS T
151. in Link with a TSX SCY 11601 21601 module associated with the RS485 physical layer The maximum frame size is 256 bytes The PCMCIA cards and the built in link of the TSX SCY 11601 21601 can process 8 communication functions simultaneously in Modbus master The READ_VAR communication function can read up to 1000 consecutive bits in any remote device To read in excess of 1000 bits the SEND_REQ communication function must be used Note Premium PLCs cannot send over 1000 bits following a read request 178 Software implementation Modbus Communication Compatibility between a Premium PLC and a series 1000 PLC At a Glance Using READ VAR and WRITE_VAR functions enables you to read and write objects contained in series 1000 PLCs These can be words double words floating points or character strings Memory The address of the object in the series 1000 PLC memory determines the type of addressing object to be accessed This table presents the access addresses for an APRIL 5000 PLC from the series 1000 range with memory extension Variable type APRIL 5000 with extension PLC address Access address in hexa Internal bits M MO A000 M4095 AFFF Data words MW MWO 0 MW24999 61A7 Data words MD MD25000 61A8 MD26998 6976 Data words FD FD27000 6978 FD28998 7146 Data words CH CH29000 7148 CH43903 AB7F Programming When you want to access the objects of a seri
152. ion This section contains the following topics Topic Page Details of the implicit exchange objects of the T_ COM_MB type IODDT 322 Details of the explicit exchange objects of the T_ COM_MB type IODDT 323 Details concerning explicit exchange language objects for a Modbus function 325 Details of language objects associated with configuration Modbus mode 326 321 Language objects of communications Details of the implicit exchange objects of the T COM_MB type lIODDT At a Glance The following tables present the implicit exchange objects of the T_COM_MB type IODDT which apply to Modbus communication Error bit The following table presents the meaning of the error bit CH_ERROR lr m c ERR Standard symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR Word objects in Modbus master mode The table below shows the meaning of the bits of the INPUT_SIGNALS word lWr m c 0 Standard symbol Type Access Meaning Address DCD BOOL R Data carrier detection signal lWr m c 0 0 RI BOOL R Ring indicator signal IWr m c 0 1 CTS BOOL R Ready to send signal IWr m c 0 2 DSR BOOL R Data ready signal IWr m c 0 3 Word object in Modbus slave mode The language objects are identical to those of the Modbus master function Only the objects in the following table differ The table be
153. ion Modbus Communication Step Action 4 Double click again on the PCMCIA card slot Result H 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD fay TSX scp 112 E Description 1 0 Object l Channel 1 20 mA CL multi protocol PCMCIA card CHARACTERISTICS Type of bus Uni Telway Modbus Structure Physical interface 20mA CL Baud rate 0 3 19 2 Kb Services Uni Telway Select channel 1 6 Select the function MODBUS LINK Example E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD T TSX SCP 112 L Channeli Function Modbus Jbus link Tr Task 187 Software implementation Modbus Communication Modbus Configuration Screen General The configuration screen is used to configure the parameters required for a Modbus link Illustration The diagram below shows a configuration screen 1 2 BC MP PCMCIA CARD y 3 ml TSX SCP 112 Hcontig l Channel 1 mE Type m Transmission speed unction Master v 9 600 bits MODBUS J BUS LINK v Task Master Delay between characters Number of retries VY By default 14 ms La Data Stop Response time 100 x10 ms C ASCII 7 bits fe 1bit Slave fe RTU 8 bits A 2bits Parity MBE a Even Odd C Without 4 Current loop PSR
154. ion transmits a SEND_REQ communication function with code 16 32 to the PCMCIA card of the master station for the data to be read Communication The Uni Telway request 16 82 is used to read event data by accessing the function Uni Telway SEND REQ ADDR 0 0 1 SYS SMW50 30 PCMCIA server 16 0082 SMW20 10 MW100 4 The transmission buffer contains the following data Word Byte 1 most significant Byte 0 least significant MW21 16 31 16 06 MW22 16 01 16 00 MW23 Slave number 16 00 MW24 16 FF 16 00 MW25 16 00 Number of slaves The buffer corresponds to the following coding Parameters Size Value Segment number 1 byte 16 06 Family number 2 bytes 16 0031 Type number 2 bytes 16 0001 Address 1 byte Slave number Type of access 2 bytes 16 00FF Quantity 2 bytes 16 00 No of slaves 287 Software implementation Uni Telway communication 10 4 Debugging of a Uni Telway communication At a Glance Aim of this This sub section describes the Debugging process during set up of Uni Telway sub section communication What s in this This section contains the following topics ion Section T pic Page Uni Telway debugging screen 289 Uni Telway debugging screen 291 Requests available for the communication channel test 292 How to test a channel with Identification and Mirror requests 293 How to test a
155. is made by a WRITE_CMD e g WRITE_CMD IODDT_VAR1 Standard symbol Type Access Meaning Address BOOL R W Reset counter MWr m c 15 0 DTR_ON BOOL R W DTR signal Data Terminal Ready ON MWr m c 15 8 DTR_OFF BOOL R W DTR signal Data Terminal Ready OFF MWr m c 15 9 UTW_TO_CHAR BOOL R W Uni Telway change to character mode modem MWr m c 15 14 CHAR_TO_UTW BOOL R W Character Mode change to Uni Telway modem MWr m c 15 15 339 Language objects of communications Details concerning explicit exchange language objects for a master Uni Telway function At a Glance List of objects for PCMCIA cards List of objects for Terminal Port The following tables present the language objects for communication in master Uni Telway mode These objects are not integrated in the IODDTs The table below shows the explicit exchange objects Address Type Access Meaning MWr m c 4 INT R Number of messages sent and not acknowledged MWr m c 5 INT R Number of messages sent and refused MWr m c 6 INT R Number of messages received and not acknowledged MWr m c 7 INT R Number of messages received and refused The table below shows the explicit exchange objects Address Type Access Meaning MWO 0 0 4 INT R Status of slaves Each Xi word bit is dedicated to each slave If Xi 1 the slave from address i
156. is set according to the other devices This window looks like this RTS CTS delay 7 X100 ms Carrier DCD Before a character string is transmitted the module activates the RTS Request To Send signal and waits for the CTS Clear To Send signal to be activated This allows you to enter e the maximum waiting time between the two signals When this value is timed out the request is not transmitted on the bus e the value is expressed in hundreds of milliseconds the default value is 0 ms the possible values are Os to 10s the value 0 specifies an absence of delay management between the two signals e data carrier management DCD signal Data Carrier Detected is only used for communication with a modem with a controlled data carrier e if the option is selected the characters are only valid on reception if the DCD signal is detected e if the option is not selected all characters received are taken into account 195 Software implementation Modbus Communication 8 3 Modbus communication programming At a Glance Subject of this Section What s in this Section This section describes the Programming process used when implementing Modbus communication This section contains the following topics Topic Page Modbus master communication function 197 Modbus slave communication function 198 Using the SEND_REQ communication function
157. it 2 1 automatic transmission of L bit 3 1 back space management bit 4 1 Xon Xoff flow control active bit 5 1 RTS DCD flow control active bit 6 1 beep management bit 7 1 RTS CTS flow control active KWr m c 4 INT bit 0 7 reserved bit 8 1 if PSR signal management TSX SCP 112 bit 9 1 if Full Duplex management bit 10 1 if DCD Data Carrier management TSX SCP 111 KWr m c 5 INT Delay time in hundreds of ms default value 0 ms KWr m c 6 INT bit 0 1 end character 1 enabled bit 1 1 end character 1 included Byte 1 value of the end character in decimal KWr m c 7 INT bit 0 1 end character 2 enabled bit 1 1 end character 2 included Byte 1 value of the end character in decimal 332 Language objects of communications List of explicit exchange objects for Terminal Port The table below shows the explicit exchange objects KWO 1 0 1 1 Address Type Access Meaning KWO 0 0 0 or INT R Byte 0 16 03 for Character Mode function KWO 1 0 0 1 KWO 0 0 1 or INT R Byte 0 speed 00 1200 bits s 04 19200 bits s bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management bit 10 Parity Type 1 odd 0 even bit 11 stop bit 1 1 bit 0 2 bits bit 12 1 echo on reception bit 13 1 beep management bit 14 1 back space management
158. ities 178 Presentation 177 Mounting PCMCIA 109 O Operating Mode Character Mode 223 Modbus 182 Uni Telway 253 Operating mode Specific protocols 298 Operating standards TSX SCY 11601 76 TSX SCY 21601 76 Operation TSX SCY 11601 84 TSX SCY 21601 84 OUT_IN_CHAR 239 P Pair transmission configuration and polarization 2 wires with data pair polarization via a 5VDC external power supply 157 2 wires with polarization of M M pair by the master station or a slave station 155 4 wires with 2 pair polarization via external power supply 162 4 wires with one pair polarization by the master station the other by a slave station 159 PCMCIA cards 101 Connections 107 Visual diagnostics 112 Performance Character Mode 221 Modbus 181 Uni Telway 251 Physical description of TSX SCA 64 device 144 Polarization TSX SCY 11601 95 TSX SCY 21601 95 Presentation Character Mode 217 Specific Protocols 297 Uni Telway 249 PRINT_CHAR 239 Programming Character Mode 239 Modbus 196 Uni Telway 267 R Requests Uni Telway 294 S Serial communication Devices 21 Introduction 17 Simulator Overview 171 Specific Protocols Presentation 297 T T_COM_CHAR Explicit exchange 329 Implicit exchange 328 T_COM_MB 322 323 T_COM_STS_GEN 318 319 T_COM_UTW_M Explicit exchange 337 Implicit exchange 335 T_COM_UTW_S Explicit exchange 344 Implicit exchange 343 T_GEN_MOD 348 Terminal port Con
159. ization is the polarization used for Modbus type networks General architecture diagram of a RS 485 network v 3V Rx TX Rp L Re Re L Rp OV TX A The transmitters are symbolized by T gt Tx B Rx A The receivers are symbolized by a Rx B 95 TSX SCY 11601 21601 Connection of network units Integral Characteristics The network is made up of one shielded twisted pair The connection of the network s different units is carried out as follows STEP INSTRUCTION 1 Link all outputs labeled Tx Rx to the network wire labeled L Link all outputs labeled Tx Rx to the network wire labeled L Adapt the impedance of the network to the average of the two adaptation elements Rc located on the two end stations of the network Connect the wire L to 5 V and the wire L to 0 V via the two polarization resistors Rp 470 Q to achieve distributed polarization of the network This polarization continuously circulates a current in the network Adaptation can be anywhere on the network in practice it is generally done at master level There must be single polarization for the entire network whatever its range Integral characteristics are Up to 32 stations Maximum range about 1300 m Bus topology lt 15 m B
160. l A AS a ee A EEE 169 Installation methodology 000ee cece eee e eee 171 OVEIVIOW cA booed sical a Ae aa fe lan Sd te hd later Oey ct he eat in 171 Chapter 8 8 1 8 2 8 3 8 4 Chapter 9 9 1 9 2 Software implementation of Modbus communication 175 Ata GIANG sie Soar p Sia posites bebe Sa Oe MRL A Paes 175 General nren ia eee eee e be Oe ve ee Parle Sy Powe es 176 Ata GIANG O s jest cee ag Gs Gi Ga bas Bath Ee A te ete ee es 176 About Modbus esi srr nad e wera teat ie data ad 177 Compatibilities sis e eae Eea wie See eck en oe ge aaa eGo 178 Compatibility between a Premium PLC and a series 1000 PLC 179 PEMOMManCes 42 t ic scticate ts Ss ace e e sad tat ot ict eRe ais Mee Meu aoa 181 Operating Mode so ra ed net Pee A dat ie beetle edd ad 182 Modbus communication configuration 0 00 c eee eee eee 183 Ata Glance iu tethered a ye nae Poe SE GRA ee a S 183 How to access the Modbus parameters of the built in channel of the TSX SCY 11601 21601 modules 0 0 cece ee 184 How to access PCMCIA Modbus card parameters 0 000000 186 Modbus Configuration Screen 1 2 0 cet 188 Accessible Modbus Functions 0 00 c cece eee 190 Application linked Modbus Parameters 002 cee eee eee 191 Transmission linked Modbus Parameters 000s eee eee eee 193 Modbus communication programming 0 0 cence eee eee 196 Atta Glance a tiie
161. low shows the meaning of the bit of the INPUT_SIGNALS word lWr m c 0 Standard symbol Type Access Meaning Address LISTEN_ONLY BOOL R List mode only signal Wr m c 0 8 322 Language objects of communications Details of the explicit exchange objects of the T COM_MB type lIODDT At a Glance Observations This part presents the explicit exchange objects of the T_COM_MB type lIODDT which apply to Modbus communication It includes the word type objects whose bits have a specific meaning These objects are described in detail below Example of variable declaration IODDT_VAR1 of type T_COM_MB e In general the meaning of the bits is given for bit status 1 In specific cases each bit status is explained e Not all the bits are used Explicit The table below shows the meaning of channel exchange control bits from channel exchange EXCH_STS MWr m c 0 operation indicators EXCH_STS Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status words in progress MWr m c 0 0 CMD_IN_PROGR BOOL R Current parameter exchange in progress MWr m c 0 1 ADJ_IN_PROGR BOOL R Adjustment parameter exchange in progress MWr m c 0 2 Explicit The table below shows the meaning of report bits EXCH_RPT MWr m c 1 exchange report EXCH_RPT Standard symbol Type Access Meaning Address S
162. lway position slave or character mode OFF m pra Z o fo S2 S M Other positions Uni Telway master Note The operating mode selected only concerns the connection cable leading to the TER connector on the PLC processor 63 Terminal port and TSX P ACC 01 device TSX P ACC 01 connector pin configuration General The TSX P ACC 01 device has two parallel connectors marked TER and AUX The signals are given below TER 1 D B 1 D B 2 D A 2 D A 3 not connected 3 not connected 4 not connected 4 not connected 5 not connected 5 not connected 6 not connected 6 not connected 7 0V 7 not connected 8 5V 8 not connected 64 Terminal port and TSX P ACC 01 device 3 6 Example of topologies At a Glance Aim of this This Section introduces examples of how to use the TSX P ACC 01 device Section What s in this This section contains the following topics Section z Topic Page Connecting devices 66 Uni Telway master mode 68 Uni Telway slave mode 70 Connection between two PLCs 71 65 Terminal port and TSX P ACC 01 device Connecting devices General The two TER and AUX ports on the TSX P ACC 01 device have the same standard functions as the TER and AUX connectors on Premium Atrium PLC station processors e The TER connector on the device is used to connect any device which supports Uni Telway protocol and in particular link up devices
163. master communication T_COM_UTW_S which is specific to Uni Telway slave communication Note IODDT variables can be created in two different ways e Using the I O objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module tab e Data Editor See Unity Pro Operating Modes Manual Creation of an IODDT type data instance In each IODDT we find a set of language objects that enable us to control them and check their correct operation There are two types of language objects e implicit exchange objects which are automatically exchanged at each cycle of the task associated with the module e explicit exchange objects which are exchanged when requested to do so by the application using explicit exchange instructions The implicit exchanges concern module status communication signals slaves etc The explicit exchanges are used to set the module and perform diagnostics 309 Language objects of communications Implicit Exchange Language Objects Associated with the Application Specific Function At a Glance Reminders Figure An integrated application specific interface or the addition of a module automatically enhances the language objects application used to program this interface or module These objects correspond to the input output images and software data of the module or integrated application specific interface The module inputs l and IW are updated in the PLC mem
164. n TSX SCP 114 TSX SCY 21601 4800 cyclic 131 152 4800 10 160 172 4800 50 180 200 9600 cyclic 95 110 9600 10 107 120 9600 50 167 190 19200 cyclic 64 84 19200 10 67 87 19200 50 107 130 Number of objects read 100 words Speed in bits s T cycle in ms Average duration Average duration TSX SCP 114 TSX SCY 21601 4800 cyclic 620 638 4800 10 640 660 4800 50 710 730 9600 cyclic 363 387 9600 10 373 395 9600 50 402 428 19200 cyclic 213 230 19200 10 214 240 19200 50 249 272 251 Software implementation Uni Telway communication Time with the Exchange time for Premium PLCs Terminal Port Transmission speed 19200 bits s and number of objects read 40 words T cycle in ms Average duration 10 135 20 150 50 185 100 210 255 340 Recommen To improve connection phase performance when connecting a slave device to Uni dations for use Telway we recommend you configure the number of slaves according to the number of slaves present and select the addresses starting with 1 252 Software implementation Uni Telway communication Operating Mode At a Glance General chart Operation The following graphics show operating modes for PCMCIA Uni Telway cards built in links in TSX SCY 21601 modules and for the Terminal Port The operating mode is as follows Power up Module stopped Module
165. nd by a thermo retractable tube not included Note In this case ground link 5 shown is not used This diagram shows the principle for locally grounding the cable Thermo retractable amp 14 N N isol s AE ating tube l e Zg lt 14 _ wT oe 6mm 8 mm oS 20 Connecting several devices together TSXSCAGS TSX SCAG4 TSX SCA 64 Shielding isolated by thermo retractable tube 153 TSX SCA 64 6 6 Device Configuration and Transmission Pair Polarization At a Glance Aim of this This section contains the different configurations of the TSX SCA 64 device Section What s in this This section contains the following topics ion Section Topic Page 2 wire Configuration with Data Pair Polarization by a Station 155 2 Wire Configuration with Data Pair Polarization via a 5VDC External Power 157 Supply 4 wire Configuration with Polarization of One Pair by the Master Station and 159 the Other by a Slave Station 4 wire Configuration with 2 pair Polarization via 5VDC External Power Supply 162 154 TSX SCA 64 2 wire Configuration with Data Pair Polarization by a Station Introduction Illustration Main cables 14 and 16 are 2 pair cables e One RXD1 RXDO pair e One COMMON COMMON pair Green yellow wire 17 is connected to the module s ground terminal Note This pair is only polarized once
166. nd using this product For reasons of safety and to ensure compliance with documented system data only the manufacturer should perform repairs to components When controllers are used for applications with technical safety requirements please follow the relevant instructions Failure to observe this product related warning can result in injury or equipment damage We welcome your comments about this document You can reach us by e mail at TECHCOMM modicon com 14 Introduction to Modbus Character Mode and Uni telway communications At a Glance In This Chapter What s in this Part This part provides an introduction to Modbus Character Mode and Uni telway communications This part contains the following chapters Chapter Chapter Name Page 1 Introduction to Modbus Character Mode and Uni telway communications 17 Introduction to Modbus Character Mode and Uni Telway 16 Introduction to Modbus Character Mode and Uni telway 1 communications Introduction to communications At a Glance Type of communication Hardware installation Software installation The communication function is used to exchange data between all devices connected on a bus or network This function applies e to specific in rack mounted communication modules e to processors via the terminal port or via PCMCIA cards The communication functions covere
167. ndow looks like this Transmission Speed 9600 bits s v This enables you to select the transmission speed of the Modbus protocol used by the module This complies with the other devices e the default speed is 9600 bits s e other available speeds are 1200 2400 9600 and 19200 bits s e the speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 card This window looks like this Delay between characters lv By default FEY 4 ms This is the time taken to detect the end delimiter and the maximum time separating two characters on reception It is managed when the PLC master or slave is receiving messages You are advised to use default values for configurations without a modem or intermediary devices Otherwise greater values must be used Note The default value depends on the transmission speed Note A restriction is applied to the delay between characters value for channel 0 of modules TSX SCY 11601 21601 see table below 193 Software implementation Modbus Communication Data The table below shows the maximum delay between characters values according to transmission speed Speed bit s Max DBC ms Max DBC number of characters 1200 212 23 2400 106 23 4800 53 23 9600 26 23 19200 13 22 This window looks like this Data ASCII 7 bits RTU 8 bits The
168. necting to the Modbus bus General Type of connection The TSX SCP 114 PCMCIA card is connected to the Modbus bus using the TSX SCP CM 4030 link cable This cable is connected to the branching device TSX SCA 50 The cable of the PCMCIA card has bare wires at its ends which the user must connect to the terminal located inside the device Illustration TSX SCP 114 TSX SCP CM 4030 Note The length of the cable used 3 m makes it possible to link a device to a TSX SCA 50 connection device located within a 3 meter radius of the card This length ensures connection inside a standard cabinet 132 Implementation of PCMCIA cards Description of the TSX SCP CM 4030 cable Illustration The PCMCIA 20 pin mini connector supports the signals 10 o 12 EMI Green White E KEM EMI gt lt ee White Green 9 5y e20 Pup 470 Q Orange White ov 4208 18 Pdw 470 Q gt lt White Orange Pp rhe o2 513 ADP 150 Q 150 Q Brown White Note Important on a Modbus bus you must e Polarize the line in general in only one spot usually on the master device with 470 Q resistance Connect Rpull down to EMI D A and Routl up to EMI D B e Adapt the line on the two end devices with a resistance of 150 Q between EMI and EMI EMI is already connected internally by the card Importa
169. nections for different pairs of the analyzer cable TSX SCA 64 device 15 pin female SUB D connector Rx 166 TSX SCA 64 Signals on the JM and JS SUB D15 Pin Connectors At a Glance The table below presents the different signals for each of the connectors JM Sub D15 Master JS Sub D15 Slave Names Function Pin Interface Names Function modbus org modbus org RXD1 Master D1 bus signal 1 Bus RXD1 Master D1 bus signal to slaves to slaves LTO TXD pair RC 2 Bus LTO TXD pair RC terminator terminator LT1 TXD pair R terminator 3 Bus LT1 TXD pair R terminator not used not used RXDO Master DO bus signal 4 Bus RXDO Master DO bus signal to slaves to slaves TXD1 Slave D1 bus signal to 5 Bus TXD1 Slave D1 bus signal to master master RXDOM RXDO reception from 6 Device RXDOS RXDO reception from master slave TXDOM TXDO transmission 7 Device TXDOS TXDO transmission from master from slave Common Bus OV common Common Bus OV common LRO RXD pair RC Bus LRO RXD pair RC terminator terminator LR1 RXD pair R terminator 10 Bus LR1 RXD pair R terminator not used not used TXDO Slave DO bus signal to 11 Bus TXDO Slave DO bus signal to master master PRO For RXDO polarization 12 Device PTO For TXDO polarization by device by device RXD1M RXD1 reception from 13 Device RXD1S RXD1 reception from master slave TXD1M TXD1 transmission 14 Device TXD1
170. nector pin configuration 54 on Premium and Atrium 25 351 Index Terminal Port Connections Visual diagnostics Summary table 48 TSX SCY 11601 85 Terminal port connections 33 TSX SCY 21601 85 Character string 45 Inter device Uni Telway 43 Inter PLC Uni Telway 41 Man machine interface console 35 Master Uni Telway 39 Model 40 PLCs 44 Modem 37 Programming terminal 34 Slave Uni Telway 40 Testing a communication channel Character mode 246 TSX P ACC 01 55 Connecting devices 66 Connecting to Premium Atrium PLCs 62 Connection between 2 PLCs 71 Connector pin configuration 64 Dimensions 59 External appearance 57 Functionalities 56 Internal view 60 Master Uni Telway 68 Slave Uni Telway 70 Switches 63 Uni Telway Bus connection 61 TSX SCA 64 Cable Template 150 cabling principles 150 Dimensions 146 installation 148 Line end adaptation 164 Mounting Fixing 146 TSX SCA 64 connection device 141 TSX SCY 11601 73 TSX SCY 21601 73 Uni Telway bus Connection 89 V Various objects Character Mode 331 Modbus 325 Uni Telway 340 352
171. nel implicit exchange objects will be exchanged 5 Configuration Is used to configure the channel configuration parameters Some zone selections may be locked and appear grayed out It is broken down into two types of information application parameters transmission parameters 261 Software implementation Uni Telway communication Accessible functions in Uni Telway At a Glance Depending on the communication media chosen certain parameters cannot be modified These are grayed out Accessible The summary table below shows the various selections possible Functions Functions SCP 111 SCP 112 SCP 114 SCY 21601 Terminal Port Master Event data Yes Yes Yes No No Master Number of slaves Yes Yes Yes Yes Yes Slave Yes Yes Yes Yes Yes Boucle de courant PSR No Yes No No No Transmission speed Yes Yes Yes Yes Yes Wait Time Yes Yes Yes Yes Yes Data Stop Stop Stop Stop Stop No Parity Yes Yes Yes Yes Yes RTS CTS delay Yes No No No No Data carrier management DCD Yes No No No No 262 Software implementation Uni Telway communication Application linked Uni Telway Parameters At a Glance Type Parameter Master Function After configuring the communication channel you need to enter the application parameters These are split into four windows e the Type window the Master window the Slave window and the Current loop PS
172. nels managed by a PLC station is related to the type of processor installed the number of TSX SCY 11601 or TSX SCY 21601 modules in a station will therefore rely on e The type of processor installed e The number of discrete channels already used other than communication channels Consequently the user must perform a global memory usage on his her PLC station in order to know how many discrete channels are already in use and thus determine the number of TSX SCY 11601 or TSX SCY 21601 modules which may be used Note Discrete channel recognition is defined in the Premium See Premium and Atrium using Unity Pro Manual Processors racks and power supply modules Catalog of TSX 57 Processors Atrium See Premium and Atrium using Unity Pro Manual Processors racks and power supply modules Catalog of Atrium Processors PLC installation Manual TSX SCY 11601 21601 modules can be connected or disconnected whilst the power is on These devices do not have a memory save function When one of the two modules is disconnected from the rack its internal memory is wiped The module goes through an initialization phase once it is reconnected A TSX SCY 21601 module which has a PCMCIA card installed may be disconnected when the power is on Note Conversely PCMCIA cards used in TSX SCY 21601 may not be disconnected while the power is on 83 TSX SCY 11601 21601 4 6 Operation Operation TSX SC
173. ng Character Mode Flow Control At a Glance Flow Control enables you to manage exchanges on a serial link in this case a Character Mode link between two devices Data is transmitted by the Tx1 transmitter to the Rx2 receiver The data transmission is checked by Flow Control signals Scf1 and Scf2 Transmitte Receiver Tx1 is F Rx2 Scf1 ax gt Scf2 1 2 3 4 Scf1 pe hee a hj T T T l l l E ij l l l ra Scf2 oto Io l l l l l l p o s Txi l l l l Address Description 1 The transmitter activates its Scf1 signal to signify it is ready to send 2 The receiver activates its Scf2 signal to authorize the data transmission 3 Data transmission 4 The data transmission is finished the Scf1 and Scf2 control signals are disabled To perform the Flow Control there are two possible methods e either using hardware e RTS CTS e RTS DCD e or using software Xon Xoff Note Software Flow Control is more commonly used In the event that this control is not available the hardware control is performed 218 Software implementation Communication using Character Mode RTS CTS RTS DCD Xon Xoff Here the control signals are RTS CTS signals Of all the hardware flow controls this mode is the most commonly used The Tx transmitter output is connected to the Rx receiver input and vice versa The CTS transmitter signal is connected to the R
174. ng this stage the warning indicators flash If there is no Unity Pro application in the PLC the module awaits configuration If there is a Unity Pro application in the PLC the application s configuration is transmitted to the module and then the module starts up e When there is a power outage the PLC processor carries out a hot restart The module then restarts its auto test procedures 223 Software implementation Communication using Character Mode 9 2 Character Mode communication configuration At a Glance Subject of this This section describes the Configuration process used when implementing Section Character Mode communication What s in this This section contains the following topics Section Topic Page How to access the Terminal Port parameters 225 How to access the parameters of the built in channel of the TSX SCY 21601 226 module in character mode How to access the parameters of the PCMCIA cards in character mode 227 Character mode configuration screen 229 Accessible functions in character mode 231 Transmission parameters in character mode 232 Message end parameters in character mode 234 Flow control parameters in character mode 236 Additional parameters 237 224 Software implementation Communication using Character Mode How to access the Terminal Port parameters At a Glance This part describes how to access the configuration parameters of the
175. nge objects Address Type Access Meaning KWO 0 0 0 or INT R Byte 0 16 06 for the master Uni Telway KWO 1 0 0 1 function Byte 1 speed 16 00 1200 bits s 16 04 19200 bits s KWO 0 0 1 or INT R Wait Time in ms from 5 ms to 10000 ms KWO 1 0 1 1 KWO 0 0 2 or INT R Number of slaves value between 1 and 98 KWO 1 0 2 1 Legend 1 in the event that the power supply takes up 2 slots the processor is placed in slot 1 on the rack 342 Language objects of communications Details of the implicit exchange objects of the T_COM_UTW_S type IODDT for PCMCIA cards PCMCIA card The following tables present the implicit exchange objects of the T_COM_UTW_S type objects IODDT which apply to Uni Telway slave communication with PCMCIA cards Error bit The following table presents the meaning of the error bit CH_ERROR lr m c ERR Standard symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR Signal objects on input The table below shows the meaning of the bits of the INPUT_SIGNALS word lWr m c 0 Standard symbol Type Access Meaning Address DCD BOOL R Data Carrier Detection signal Wr m c 0 0 RI BOOL R Ring indicator signal IWr m c 0 1 CTS BOOL R Ready to send signal IWr m c 0 2 DSR BOOL R Data ready signal IWr m c 0 3 Address
176. ngth of the data to be transmitted in bytes Response The slave response contained in the MW50 30 reception buffer is of type Value of MW50 Value of Description MW51 0 if action taken 16 0008 corresponds to the Echo function byte 0 16 08 byte 1 16 00 MW52 to MW79 contain the Modbus response data For this example MW52 1234 1 if action not taken 16 0007 incorrect request parameters 16 0004 incorrect question parameters 16 0688 byte 0 16 80 function code 16 08 for Echo byte 1 16 06 Modbus error code the slave is busy 16 0188 byte 0 16 80 function code 16 08 for Echo byte 1 16 01 Modbus error code the function is unknown 16 0388 byte 0 16 80 function code 16 08 for Echo byte 1 16 03 Modbus error code the data is invalid 201 Software implementation Modbus Communication Example 2 SEND_REQ function with word Read request At a Glance The example deals with the read of 4 input words at address 10 of a third party device These words are then copied in MW52 5 Question The communication function is as follows SEND_REQ ADDR 0 0 1 x 16 9F MW10 10 MW100 4 SMW50 30 Before sending the function it is necessary to initialize the following words Words Value of the Description words MW10 16 0004 corresponds to the read function of n
177. nk the L 5 V wire to the L 0 V wire via two polarization resistors Pr 4 7 KQ Do this for each station This polarization will keep the network stable while not in use 91 TSX SCY 11601 21601 Integral Characteristics Integral characteristics are e Up to 32 stations e Maximum range about 1300 m e Bus Topology e lt 15 m Branching e 2 wire half duplex e Adapting the line end on end units e Adapting the Pr 4 7 KQ distributed line 92 TSX SCY 11601 21601 Example of Uni Telway architecture Example TSX SCY CU 6530 TSX SCY CU 6030 TSX SCA 62 TSX SCA 50 93 TSX SCY 11601 21601 Connection of TSX SCY 11601 21601 modules to the Modbus field bus The built in channel is linked to the bus via the TSX SCA 50 device through the TSX SCY CM 6030 connection cable Illustration of TSX SCY 21601 General Points Built in channel with 25 pin SUB D connector Modbus Jbus lead TSX SCY CM 6030 cet TSX SCA 50 Lead description Description of the TSX SCY CM 6030 cable 21 Green White of lt White Green 6 EMI i f __Orange White D A 124 EMI Pa gt lt White Orange D B S White Blue 423 gt lt lt Blue White oy 180 2 13 Brown White 94 TSX SCY 11601 21601 Reminder on single line polarization in RS 485 General Single line polar
178. nt Ad1 and Listening Application Ad2 addresses e the possible values are 1 to 3 1 for AdO only 2 for AdO and Ad1 2 for Ado Ad1 and Ad2 Current Loop This window looks like this Function Current loop PSR Multidrop Point to Point It allows you to select a e Multidrop Current Loop communication e Point to point Current Loop communication 264 Software implementation Uni Telway communication Transmission linked Uni Telway Parameters At a Glance Transmission speed Wait time After configuring the communication channel you need to enter the transmission parameters These are split into six windows e the Transmission speed window the Time wait window the windows specific to Data and Stop the Parity window the RTS CTS Delay window This window looks like this 9 600 bits q v Mir speed You can use it to select the transmission speed of the Uni Telway protocol used by the module e the default speed is 9600 bits s e other available speeds are 1200 2400 9600 and 19200 bits s e the speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 card This window looks like this Wait time Value in ms EJ 30 V By default f Value ins T v This parameter allows you to select the wait time in milliseconds timeout at the end of which the target station if it does not reply is considered absent e the
179. nt to connect TSX SCP 114 card to a PLC Series 1000 S1000 EMI must be connected to L 133 Implementation of PCMCIA cards Connecting Modbus to TSX SCA 50 device Connection with no line terminator TSX SCA 50 i 10 a ST Green White Bi i e E White Green pog 51D B EMI i 9 20 5V io 470 Q0 nc ov F Pdw 470 Q ne 470 Q 4 1 lt F o 5 ADP 150 Q ne Meor Connection of a SCA 50 with line terminator TSX SCA 50 D 10 x 2 i Green White na Ae 11 White Green gt lt a 51D 6 9 ey EMES Orange White ma 18 White Orange gt lt ov Pdw 470 Q TOU pec E lt p REC o2 r _ ADP 150 Qo 13 Brown White ear mesNaeey 134 Implementation of PCMCIA cards Multi protocol asynchronous link connection RS 422 General Connecting the TSX SCP 114 card in Character Mode does not require any specific accessories The product reference for the RS 485 RS 422 PCMCIA card linking cable is TSX SCP CX 4030 It is 3 meters in length Type of The TSX SCP 114 PCMCIA card is connected in point to point to an RS 422A connection standard device VAX station type Illustration TSX SCP 114 Industrial computer TSX SCP CX 4030 135 Implementation of PCMCIA cards Description o
180. ntroduction to TSX P ACC 01 p 55 isolation device etc The connector marked AUX only on Premium PLCs other than TSX P57 554 5634 only enables devices which have a power supply to be connected e g man machine interface console third party devices etc The terminal port has three function modes e Master Uni Telway default configuration e Slave Uni Telway e Character string Illustration Atrium Premium ooh p Oo L a a T q Note For Premium PLCs with two connectors TER and AUX the operating mode defined in configuration master Uni Telway slave Uni Telway character mode is the same for both connectors According to the operating mode selected in configuration the terminal port is used to connect e Premium PLC programming and adjustment terminals Man machine interface devices Another PLC using the TSX P ACC 01 connection device Uni Telway devices sensors actuators speed controller etc A printer or a control screen link in character string mode A modem Note Connecting a Premium Atrium PLC slave to a UNI TELWAY Bus requires the use of a TSX P ACC 01 device 33 Terminal port and TSX P ACC 01 device Programming Adjustment terminal General
181. o be sent to the designated slave e Enter request allows a UNI TE request other than those provided by the command buttons to be sent to the designated slave Selecting this function gives access to a screen that allows you to select the parameters that are specific to the request request code must be coded in hexadecimal e Mirror allows a mirror request to be sent to the designated slave Selecting this function gives access to a screen that allows you to select the length of the character string to be sent a maximum of 80 characters The PLC then sends this character string ABCD to the destination device The latter automatically sends the character string that was received back to the sender 292 Software implementation Uni Telway communication How to test a channel with Identification and Mirror requests At a Glance How to identify a station How to send the Mirror request This page indicates the procedure for testing a communication channel by means of Identification and Mirror requests The following procedure is used to identify a designated station Step Actions 1 Select the server address AdO of the slave to be interrogated using the Slave field 2 Click on the Identification button Result the response appears in the Receive Response window Request Response eae a ASCII Hex The following procedure is used to send the Mirror request an
182. oe ate 317 Details of IODDT implicit exchange objects of type T COM_STS_GEN 318 12 3 12 4 12 5 12 6 12 7 Details of IODDT explicit exchange objects of type T COM_STS_GEN 319 Language objects and IODDTs associated with Modbus communication 321 Ata Glance ini ees ei ol eae oa ew eee eed ee ee eS 321 Details of the implicit exchange objects of the T_COM_MB type IODDT 322 Details of the explicit exchange objects of the T_COM_MB type IODDT 323 Details concerning explicit exchange language objects for a Modbus function 325 Details of language objects associated with configuration Modbus mode 326 Language objects and lIODDTs associated with Character Mode communication 0000 cette eee 327 Ata Glance ia ene 3 a eh Wed eee Eee ee Wi PS 327 Details of the implicit exchange objects of the T COM_CHAR type IODDT for PCMCIA cards 2 0 264s eee Sree ee ea Ww De ee ee Pb 328 Details of the explicit exchange objects of the T COM_CHAR type IODDT for PCMCIA sitera a RE YRS ie aed Die Bare S Series eel Pe oE 329 Details concerning explicit exchange language objects for communication in Character Modes raent octet Aas Ble sete So Le del pA ee 331 Details of language objects associated with configuration in Character Mode 332 Language objects and IODDTs associated with Uni Telway communication 334 Ata GlanCes teie aci59 a2 tio E AE atpatiai ttn ech alee ee Maleiatimian amend 334 Deta
183. of installation phases is recommended but it is possible to change the order of certain phases for example starting with the configuration phase 171 Methodology Installation phases with processor The following table shows the various phases of installation with the processor Phase Description Mode Declaration of Declaration of IODDT type variables for the application Offline 1 variables specific modules and variables of the project Programming Project programming Offline 1 Configuration Declaration of modules Offline Module channel configuration Entry of configuration parameters Association Association of IODDTs with the channels configured Offline 1 variable editor Generation Project generation analysis and editing of links Offline Transfer Transfer project to PLC Online Adjustment Project debugging from debug screens animation tables Online Debugging Modifying the program and adjustment parameters Documentation Building documentation file and printing miscellaneous Online 1 information relating to the project Operation Displaying miscellaneous information necessary for Online Diagnostic supervisory control of the project Diagnostic of project and modules Key 1 These various phases can also be performed in the other mode 172 Methodology Implementation Note the simulator is only used for the discrete
184. ommunication function This heading is frozen Task shows the configured MAST task This heading is frozen Viewing and control area It is used to Select and display e Status words e Input words e Output words modifiable Set the card counter to zero with the Reset Counters button Send requests from the protocol managed by the card and display the responses according to an operating mode defined in the card documentation 305 Software Implementation Specific Protocol Communication 306 Language objects of Modbus Character Mode and Uni Telway communications 12 At a Glance Subject of this Chapter What s in this Chapter This chapter describes the language objects associated with Modbus Character Mode and Uni Telway communications and the different ways of using them This chapter contains the following sections Section Topic Page 12 1 Language objects and IODDTs of Modbus Character Mode 308 and Uni Telway communications 12 2 General language objects and IODDTs for all communication 317 protocols 12 3 Language objects and IODDTs associated with Modbus 321 communication 12 4 Language objects and IODDTs associated with Character 327 Mode communication 12 5 Language objects and IODDTs associated with Uni Telway 334 communication 12 6 Language Objects Associated with the Specific Protocol 347 12 7 The IODDT type T_GEN
185. on the whole bus This diagram shows a configuration with shielding connection at one end only JM 0 Common RXD1 ID K pam O O 7 14 p 16 155 TSX SCA 64 Position of the This table shows the switch positions Switches Switches Position on master station device slave stations S1 2W 2W S2 ON OFF 3 OFF OFF S4 OFF OFF S5 OFF OFF 156 TSX SCA 64 2 Wire Configuration with Data Pair Polarization via a 5VDC External Power Supply Introduction Main cables 14 and 16 are 2 pair cables e One RXD1 RXDO pair e One COMMON COMMON pair Power supply cable 15 is linked to an external 5VDC power supply Green yellow wire 17 is connected to the module s ground terminal Note The pair must only be polarized once on the whole bus Illustration This diagram shows a configuration with shielding connection at one end only s1 j 4w E 3 4 onj oe ON i ON OFF OFF OFF OFF 0006 500000 S S ersers PRSERGSSR OPEB FERRER ROR REaE 3 8 is ol JA J jC J3B ain HY S D I I I _
186. onfiguration in 2 or 4 wire operation SUB D 15 pin female JS connector able to receive In 2 wire mode the male connector of a TSX SCY CM 6530 or TSX SCP CM 4530 connection cable whether the channel is master or slave e In 4 wire mode the male connector of a TSX SCP CM 4530 connection cable if the channel is slave Ora TSX SCA 10 line terminator if the device is located at the beginning or end of the line e Ora male analyzer connection cable connector 9 4 micro switches allowing polarization mode to be configured 10 Terminal to connect green yellow ground wire 11 Connection terminals for the main connection cables providing bus continuity 12 Device Connection Base 13 Screw holes 4 diameter to fix the device to a board or panel 60mm apart 14 Main 2 or 3 pair cable providing bus continuity max 10 diameter for connection to JA 15 5VDC power supply cable for external polarization if required for connection to JC 16 Main 2 or 3 pair cable providing bus continuity max 10 diameter for connection to JB 17 Green yellow device grounding cable 18 Main cable with corresponding ground format connected to local ground via a surge suppressor 19 Power supply cable and green yellow ground wire 20 Main cable with corresponding ground format connected to local ground Note Nodes 14 and 16 are not included with the TSX SCA 64 device 145 TSX SCA 64 6 3 Dimensions and Mounting Dimensions and
187. onnection device TSX SCA 50 Connection device screwed to bus for RS 485 series link Connection device TSX SCA 62 Connection device via connector to bus for RS 485 series link Converter device TSX SCA 72 RS 232D RS 485 converter device 137 Implementation of PCMCIA cards 5 8 Precautions when connecting PCMCIA cards Precautions for connecting PCMCIA cards Important Cards must be connected or disconnected in the host device processor or TSX SCY 21601 when the device is switched off The ferule placed in direct contact with the PCMCIA card device is used to handle electrical interference carried by the link cable braids 138 Implementation of PCMCIA cards 5 9 Consumption of PCMCIA cards Consumption of PCMCIA cards TSC SCP 111 TSC SCP 112 TSC SCP 114 Table of consumption Voltage Typical Current Maximum Current Power dissipation 5 volts 140 mA 300 mA 1 5 W max Table of consumption Voltage Typical Current Maximum Current Power dissipation 5 volts 120 mA 300 mA 1 5 W max Table of consumption Voltage Typical Current Maximum Current Power dissipation 5 volts 150 mA 300 mA 1 5 W max 139 Implementation of PCMCIA cards 140 TSX SCA 64 connection device At a Glance Aim of this Chapter What s in this
188. onsequences arising out of the use of this material This document is not intended as an instruction manual for untrained persons Schneider Electric 2004 All rights reserved 12 About the Book At a Glance Document Scope This manual describes the principle for hardware and software implementation of Character Mode Modbus and Uni Telway communication for Premium and Atrium PLCs Validity Note The data and illustrations found in this documentation are not binding We reserve the right to modify our products in line with our policy of continuous product development The information in this document is subject to change without notice and should not be construed as a commitment by Schneider Electric Related Documents Title of Documentation Reference Number Communication architectures and services Included in the documentation CD ROM 13 About the Book Product Related Warnings User Comments Schneider Electric assumes no responsibility for any errors that may appear in this document If you have any suggestions for improvements or amendments or have found errors in this publication please notify us No part of this document may be reproduced in any form or by any means electronic or mechanical including photocopying without express written permission of Schneider Electric All pertinent state regional and local safety regulations must be observed when installing a
189. ontinuing operation of electrical signals shielding and end of line adaptation function The cable of the PCMCIA card has bare wires at its ends which the user must connect to the terminal located inside the device Illustration TSX SCP 114 TSX SCP CU 4030 Note The branching device configures the wiring system of the card anda branching type of connection system 129 Implementation of PCMCIA cards Description of Illustration TSX SCP CU 4030 The PCMCIA 20 pin mini connector cable supports the signals TSX SCA 50 device J1 4 7Q E L ov OV Red P ov pou ov White o 2 yo Rath uae D A White 4 ae ol DB gt lt gt lt Blue L os 5 4 7 E ov oe 7 Pp Oo lt x ne Connection viaa Illustration TSX SCA 62 device TSX SCP 114 TSX SCA 62 TSX SCP CU 4530 a4 130 Implementation of PCMCIA cards Description of TSX SCP CU 4530 cable Illustration The PCMCIA 20 pin mini connector supports the signals Jt TSX SCA 62 device 4 72 z pae g Red ad 6 ov O lt lt White ov ov D A White e e J5 ott D By gt lt Ble o ps Say 479 19 15 pin SUB D A TT EN 131 Implementation of PCMCIA cards Con
190. ooks like this Local Error Counters Messages sent and not acknowledged Sentand refused Received and not acknowledged 0 Received and refused o Reset Counters This window displays the communication module s different error counters The Reset Counters button resets these counters to zero This window looks like this Channel test 6 Identification Request Response 3 Enter request gr 22 0A 43 43 58 31 37 5F 33 30 4C 57 Mirror O ASCII Hex ave This window is used to test a communication channel by sending a UNI TE request to one of the stations on the bus 291 Software implementation Uni Telway communication Requests available for the communication channel test At a Glance Test conditions Available requests This page describes the different possibilities for testing a communication channel from the debugging screen Sending a request to an non server or unconnected slave address results in an error message When the module has been configured in Uni Telway master mode the debugging window can be used to send a UNI TE request to one of the slaves on the bus When the module has been configured Uni Telway slave mode the channel test is limited to the master device The Channel Test window allows the following requests e Identification prompts the Identification request t
191. or analog modules phases with simulator The following table shows the various phases of installation with the simulator Phase Description Mode Declaration of Declaration of IODDT type variables for the application Offline 1 variables specific modules and variables of the project Programming Project programming Offline 1 Configuration Declaration of modules Offline Module channel configuration Entry of configuration parameters Association Association of IODDTs with the modules configured Offline 1 variable editor Generation Project generation analysis and editing of links Offline Transfer Transfer project to simulator Online Simulation Program simulation without inputs outputs Online Adjustment Project debugging from debug screens animation tables Online Debugging Modifying the program and adjustment parameters Key 1 These various phases can also be performed in the other mode 173 Methodology 174 Software implementation of Modbus communication At a Glance Subject of this Chapter What s in this Chapter This chapter presents the software implementation of Modbus communication This chapter contains the following sections Section Topic Page 8 1 General 176 8 2 Modbus communication configuration 183 8 3 Modbus communication programming 196 8 4 Debugging of a Modbus communication 207
192. or channel self testing MWr m c 2 4 CONF_FLT BOOL R Different hardware and software configurations MWr m c 2 5 COM_FLT BOOL R Problem communicating with the PLC MWr m c 2 6 APPLI_FLT BOOL R Application error adjustment or configuration error MWr m c 2 7 Specific channel status The table below shows the meanings of the PROTOCOL MWr m c 3 channel status word Reading can be done via a READ_STS IODDT_VAR1 MWr m c 3 Standard symbol Type Access Meaning Address PROTOCOL INT R Byte 0 16 00 for the master Uni Telway function MWr m c 3 Status of slaves The table below presents the meanings of the slave status words Reading can be done via a READ_STS lIODDT_VAR1 For details on the bits of these status words follow the principle described in the table See Status of slaves p 339 Standard symbol Type Access Meaning Address SLAVE_STS_0_15 INT Status of slaves 0 to 15 MWr m c 8 SLAVE_STS_16_31 INT R Status of slaves 16 to 31 MWr m c 9 SLAVE_STS_32_47 INT R Status of slaves 32 to 47 MWr m c 10 SLAVE_STS_48_ 63 INT R Status of slaves 48 to 63 MWr m c 11 SLAVE_STS_64_79 INT R Status of slaves 64 to 79 MWr m c 12 SLAVE_STS_80_95 INT R Status of slaves 80 to 95 MWr m c 13 SLAVE_STS_96_111 INT R Status of slaves 96 to 111 MWr m c 14 338 Language objects of communications Status of
193. ort MWr m c 1 EXCH_RPT Standard symbol Type Access Meaning Address STS_ERR BOOL R Reading error for channel status words MWr m c 1 0 CMD_ERR BOOL R Error during command parameter exchange MWr m c 1 1 ADJ_ERR BOOL R Error during adjustment parameter exchange MWr m c 1 2 319 Language objects of communications Standard The table below shows the meaning of the bits of the status word CH_FLT channel faults MWr m c 2 Reading is performed by a READ_STS IODDT_VAR1 CH_FLT Standard symbol Type Access Meaning Address NO_DEVICE BOOL R No device is working on the channel MWr m c 2 0 1_DEVICE_FLT BOOL R A device on the channel is faulty MWr m c 2 1 BLK BOOL R Terminal block fault not connected MWr m c 2 2 TO_ERR BOOL R Time out error defective wiring MWr m c 2 3 INTERNAL_FLT BOOL R Internal error or channel self testing MWr m c 2 4 CONF_FLT BOOL R Different hardware and software configurations MWr m c 2 5 COM_FLT BOOL R Problem communicating with the PLC MWr m c 2 6 APPLI_FLT BOOL R Application error adjustment or configuration error MWr m c 2 7 320 Language objects of communications 12 3 Language objects and lIODDTs associated with Modbus communication At a Glance Subject of this Section What s in this Section This section presents the language objects and IODDTs associated with Modbus communicat
194. ory at the start of the task the PLC being in RUN or STOP mode The outputs Q and QW are updated at the end of the task only when the PLC is in RUN mode Note When the task occurs in STOP mode either of the following are possible depending on the configuration selected e Outputs are set to fallback position fallback mode e Outputs are maintained at their last value maintain mode The following diagram shows the operating cycle of a PLC task cyclical execution y Internal processing y Acquisition of inputs RUN STOP 1 y Execution of the program Update of outputs 310 Language objects of communications Explicit exchange language objects associated with the application specific function At a Glance Explicit exchanges are exchanges performed at the user program s request and using instructions READ_STS See Unity Pro I O Management Manual READ_STS read status words WRITE_CMD See Unity Pro I O Management Manual WRITE_CMD write command words WRITE_PARAM See Unity Pro I O Management Manual WRITE_PARAM write adjustment parameters READ_PARAM See Unity Pro I O Management Manual READ_PARAM read adjustment parameters SAVE_PARAM See Unity Pro I O Management Manual SAVE_PARAM save adjustment parameters RESTORE_PARAM See Unity Pro I O Management Manual RESTORE_PARA M restore adjustment
195. ost significant byte of first word MW212 Least significant byte of third word Most significant byte of second word MW213 Least significant byte of fourth word Most significant byte of third word MW214 Least significant byte of fifth word Most significant byte of fourth word MW215 not significant Most significant byte of fifth word The least significant byte of the first word read contains the type of objects read the reception table is thus shifted by 1 byte An additional word must therefore be provided in the reception table The data processing requires an algorithm for processing this shift For Premium PLCs this algorithm is provided by the function ROR1_ARB See Unity Pro Obsolete Block Library Manual RORI_ARB function 284 Software implementation Uni Telway communication Example of a direct exchange from a slave to a slave system At a Glance The host channels of processors TSX 37 V2 0 and module TSX SCY 21601 equipped with PCMCIA cards TSX SCP111 112 114 version 1 5 enable you to use the communication functions READ VAR and WRITE VAR froma slave of the same Uni Telway link TSX 57 Seea master Uni Telway TSX 57 a x 4 PRS Wes het ct i U R slave G y U I Aao 6 slave Ad0 8 From module SCY 21601 in position
196. owing topics ion Section Table Bags Presentation 249 Compatibility 250 Performance 251 Operating Mode 253 Addresses of a slave PLC 254 248 Software implementation Uni Telway communication Presentation Introduction Communicating via Uni Telway allows the exchange of data between all the devices which are connected on the bus The Uni Telway standard is a UNI TE protocol which creates a hierarchical structure one master and several slaves The master device is the bus manager Uni Telway enables equal communication and authorizes the sending of messages e from master to slave e from slave to master e from slave to slave 249 Software implementation Uni Telway communication Compatibility Hardware Software This type of communication is available for Premium PLCs e Via the Terminal Port associated with the RS485 physical layer e Via the host channel of the processor or TSX SCY 21601 module with e aTSX SCP 111 PCMCIA card associated with the RS232 physical layer e a TSX SCP 112 PCMCIA card associated with 20 mA current loops e aTSX SCP 114 PCMCIA card associated with physical layers RS422 and RS485 e Via the built in link of the TSX SCY 21601 module associated with the RS485 physical layer The Terminal Port of Premium processors allows processing e in Uni Telway master mode e 4 messages transmitted to the bus e 4received messages e in Uni Telway slave mode
197. ows a sample Modbus communication debugging screen PCMCIA INRACK BOARD ie y i po ony FiConfig Ti Debug 6 DE Type r Counters ae Function Master Received without CRC error Received with CRC error Modbus J bus Link v Received with exception code 0 Sent without response Task Sent in Broadcast mode 0 Received with NACK La pal Retries 0 Character error a Reset counters Channel test Response reception 4 Slave Identification 4198 lt X Enter request g ASCII Hex 208 Software implementation Modbus Communication Description The table below shows the various elements of the debugging screen and their functions Address Element Function 1 Tabs The front tab shows the current mode Debugging in this example Each mode can be selected by the corresponding tab The modes available are e Debugging accessible only in online mode e Diagnostics accessible only in online mode e Configuration Module zone Specifies the shortened name of the module Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to pr
198. plementation Specific Protocol Communication 11 2 Configuration of Specific Protocol Communication At a Glance Subject of this Section What s in this Section This section describes the Configuration process used when implementing Specific Protocol communication This section contains the following topics Topic Page How to Access the Parameters of Specific Protocol PCMCIA Cards 300 Configuration Screen for the Generic Protocol Function 302 299 Software Implementation Specific Protocol Communication How to Access the Parameters of Specific Protocol PCMCIA Cards Ata Glance This operation describes how to declare and define the type of function for FCS SCP 111 114 PCMCIA cards for Premium PLCs How to Define The following table shows the procedure for selecting the card and choosing the the Function generic protocol function Step Action 1 Open the hardware configuration editor 2 Double click on the PCMCIA card slot processor or TSX SCY 21601 module Result the card type selection window appears Add Replace Submodule Product reference Description Communication j FCS SCP 111 OPEN RS232 PCMCIA CARD j r FCS SCP 114 OPEN RS485 PCMCIA CARD 9 TSX FPP 20 FIPWAY PCMCIA CARD p Z TSX FPP 200 FIPWAY PCMCIA CARD i po TSX JNP 112 BC J NET PCMCIA CARD F TSX J NP 114 RS485JNET PCMCIA CARD f TSXSC
199. possible values are X to 255 ms for the Terminal Port or X to 10000 ms for a PCMCIA card and built in link X is the minimum value This depends on the set transmission speed e the default value is 30 ms For the Terminal Port you can choose the wait time in seconds The possible values are between X and 10 s 265 Software implementation Uni Telway communication Data Stop Parity RTS CTS Delay This window looks like this big f 8bits C 7bits The Data field is used to fill in the type of coding used to communicate in Uni Telway All characters are coded over 8 bits This window looks like this Sin lbit A 2 bits The Stop field allows you to fill in the number of stop bits used for communication in Uni Telway The possible values are 1 or 2 stop bits Note The default value is 1 stop bit This window looks like this Pain Even OO0dd OWithout This field is used to set whether a parity bit is added or not as well as its type The possible values are Even Odd or without Odd by default This window looks like this RTS CTS Delay ET J x00 ms Data carrier DCD Before a character string is transmitted the module activates the RTS signal and waits for the CTS signal to be activated This allows you to enter e the maximum waiting time between the two signals When this value is timed out the request is not transmitted on th
200. r Fipway link LED meaning RUN ERR CHO Comments O 1 1 Module powered down or module failure O O No communication on the built in channel O Communication on built in channel 2 e 1 Serious fault on built in channel e O O Configuration fault No device OK on the channel e O O Device fault on built in channel only for TSX SCY 21601 O Self tests running Key O Off O Flashing e 1 Neutral status On 2 Line activity display 85 TSX SCY 11601 21601 4 8 Built in Channel Connection At a Glance Aim of this This section describes the different ways to connect the built in channel of Section TSX SCY 11601 21601 modules What s in this This section contains the following topics Section Topic Page At a Glance 87 Connection of TSX SCY 21601 to Uni Telway field bus 89 Reminder on adapting RS 485 distributed line for the TSX SCY 21601 91 Example of Uni Telway architecture 93 Connection of TSX SCY 11601 21601 modules to the Modbus field bus 94 Reminder on single line polarization in RS 485 95 Example of Modbus architecture 97 Connecting the TSX SCA 50 unit 98 Character Mode connection for TSX SCY 21601 99 Consumption of TSX SCY 11601 21601 modules 100 86 TSX SCY 11601 21601 At a Glance TSX SCY 11601 Cabling accessories designed to connect the TSX SCY 11601 module s RS 485
201. r Message Received Number of characters received 0 fe ASCI P Hex 242 Software implementation Communication using Character Mode Description The table below shows the various elements of the debugging screen and their functions Address Element Function 1 Tabs The front tab shows the current mode Debugging in this example Each mode can be selected by the corresponding tab The modes available are e Debugging accessible only in online mode e Diagnostics default accessible only in online mode e Configuration 2 Module zone Specifies the shortened name of the module Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode To select the channel e To display the Symbol name of the channel defined by the user using the variable editor 4 General Shows the communication channel parameters parameters e Function shows the configured communication function zone This information cannot be modified Task shows the configured MAST task This information cannot be modified 5 Display and is used to access the debugging parameters of a chara
202. r the transmission parameters These are split into four windows the Transmission speed window the windows specific to Data and Stop the Parity window the Retard RTS CTS window This window looks like this Transmission Speed 9600 bits s v You can use it to select the transmission speed of the character mode protocol used by the module The default speed is 9600 bits s Other available speeds are 1200 2400 9600 and 19200 bits s The speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 card You are advised to adjust the transmission speed according to the remote device in use This window looks like this Data OTbits B bits The Data field specifies the size of the data exchanged over the line The possible values are 7 and 8 bits You are advised to adjust the number of data bits according to the remote device in use Note The default value is 8 bits 232 Software implementation Communication using Character Mode Stop Parity RTS CTS delay This window looks like this stop 1bit O2 bits The Stop field allows you to fill in the number of stop bits used for communication in character mode The possible values are 1 or 2 stop bits You are advised to adjust the number of stop bits according to the remote device in use Note The default value is 1 stop bit This window looks like this
203. ranching 2 wire half duplex Adapting the line end on end units Distributed line adaptation Rp 470 Q 96 TSX SCY 11601 21601 Example of Modbus architecture Example TSX SCY CM 6030 I oO a OL lt gt US fail MODBUS TSX SCA 50 97 TSX SCY 11601 21601 Connecting the TSX SCA 50 unit Important Modbus without line adaptation Note on a Modbus bus you must e Polarize the line in general in only one spot usually on the master device with 470 Q resistance Connect Rpull down to EMI D A and R pull up to EMI D B e Adapt the line on the two end devices with a resistance of 150 Q between EMI and EMI EMI is already connected internally by the card The following diagram shows the wiring of a slave in intermediate position to the Modbus network Ji TSX SCA 50 21 nc 1 z ne UNE 6 amp 6 EMI D A Orange White D A 4 124 EMI D B White Orange D B O al 1 nc 3 nc ov 150 Q 13 Brown White 2 Modbus with line OVL OVL The following diagram shows the wiring of a master placed at the end of the Modbus adaptation and network polarization J TSX SCY CM 6030 cable TSX SCA 50 ay 4709 Pe
204. rd associated to 20 mA current loops e aTSX SCP 114 PCMCIA card associated with physical layers RS422 and RS485 e Via the built in link of the TSX SCY 21601 module associated with the RS485 physical layer The Terminal port on Premium processors can only process one communication function of type e INPUT_CHAR e PRINT_CHAR e OUT_IN_CHAR For communication via a Terminal port the maximum frame size is 120 bytes per communication function The PCMCIA cards can process 8 communication functions simultaneously in Premium PLCs The built in link of the TSX SCY 21601 module can process 8 communication functions simultaneously For communication via a PCMCIA card or built in link the maximum frame size is 4K bytes per communication function 220 Software implementation Communication using Character Mode Performance At a Glance Time with PCMCIA cards The following tables enable you to evaluate typical exchange times in Character Mode for e PCMCIA cards and the built in link of the TSX SCY 21601 module e the Terminal Port The results displayed correspond to an average operation period of the PRINT_CHAR function in ms Average duration according to the programmed cycle time and the number of characters transmitted Message length 80 characters 960 characters Speed in bits s T cycle in ms Average duration Average duration
205. rent elements of the configuration screen and their functions Address Element Function 1 Tabs The tab to the front indicates which mode is currently in use Configuration in this example Each mode can be selected by the corresponding tab The modes available are e Configuration e Debugging accessible only in online mode e Diagnostic only accessible in online mode Module zone Provides an abbreviation as a reminder of the module and module status in online mode LEDs Channel field Is used e By clicking on the reference number to display the tabs e Description which gives the characteristics of the device e I O Objects See Unity Pro Operating Modes Manual I O Objects Tab for a Module which is used to presymbolize the input output objects e Fault which shows the device faults in online mode e To select the channel e To display the Symbol name of the channel defined by the user using the variable editor General parameters zone Enables you to choose the general parameters associated with the channel e Function according to the channel the available functions are Modbus Character mode and Uni Telway By default No function is configured e Task defines the MAST task in which the channel implicit exchange objects will be exchanged Configuration zone Is used to configure the channel configuration parameters Some selections may be locked and appear gr
206. responds 340 Language objects of communications Details of language objects associated with configuration in master Uni Telway mode At a Glance Internal constants for PCMCIA cards The following tables present all configuration language objects for communication in master Uni Telway These objects are not integrated in the IODDTs and may be displayed by the application program The table below shows the explicit exchange objects Address Type Access Meaning KWr m c 0 INT R Byte 0 16 06 for the master Uni Telway function KWr m c 1 INT R Byte 0 speed e 16 50 300 bits s 16 51 600 bits s TSX SCP 111 only e 16 00 1200 bits s 16 04 19200 bits s Byte 1 format bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management bit 10 Parity Type 1 odd 0 even bit 11 stop bit 1 1 bit 0 2 bits KWr m c 2 INT R Wait Time in ms from 5 ms to 10000 ms KWr m c 3 INT R Number of slaves value between 1 and 98 KWr m c 4 INT R Byte 0 values 0 4 or 8 bytes of event data Byte 1 Signal Management e bit 8 1 if PSR signal management TSX SCP 112 bit 10 1 if DCD Data Carrier management TSX SCP 111 KWr m c 5 INT R Delay time in hundreds of ms default value 0 ms 341 Language objects of communications Internal constants for Terminal Port The table below shows the explicit excha
207. rror code the function is unknown 16 0388 byte 0 16 80 function code 16 08 for Echo byte 1 16 03 Modbus error code the data is invalid Note To retrieve the read bits we use the ROR1_ARB See Unity Pro Obsolete Block Library Manual RORI_ARB function instruction 203 Software implementation Modbus Communication Example 3 SEND_REQ Function with Bit Read Request At a Glance The example shows the reading of 2 output bits from address 0 by a third party device whose slave address is 5 Question The communication function is as follows SEND_REQ ADDR 0 3 0 5 16 9F SMW300 50 3MW450 4 SMW400 50 Before sending the function it is necessary to initialize the following words Words Value of the Description words MW300_ 16 0001 Corresponds to the read function of n output bits byte 0 16 01 byte 1 16 00 MW301_ 16 0296 Corresponds to the identification of the Modbus function MW302 0 Reserved MW303 16 0000 Address of the first bit to read 1 MW304_ 16 0200 Number of bits to read 1 MW453_ 10 bytes Length of the data to be transmitted in bytes Legend 1 The most significant bytes and the least significant bytes must be inverted 204 Software implementation Modbus Communication Response The slave response contained in the MW400 50 reception buffer is of type
208. s link are shown below Designation Function code sub function code Read exception status 16 07 Echo 16 08 16 00 Initialize module 16 08 16 01 Read the diagnostic registers of the PLC 16 08 16 02 Change end of frame delimiter ASCII mode 16 08 16 03 Switch to listening mode 16 08 16 04 Reset counters 16 08 16 0A Number of messages received without CRC error 16 08 16 0B Number of frames received with CRC error 16 08 16 0C Number of exceptional responses 16 08 16 0D Number of messages addressed to the PLC 16 08 16 0E Number of broadcast messages received 16 08 16 0F Number of correct responses 16 08 16 10 Number of messages received in listening mode 16 08 16 11 Number of invalid characters received 16 08 16 12 Read event counter 16 0B Read connection event 16 0C Read identification 16 11 199 Software implementation Modbus Communication Using the SEND_REQ communication function At a Glance The UNI TE Action object request request code 16 9F is used to transmit all Modbus functions See Unity Pro Communication Block Library Manual SEND_REQ Sending requests After executing this request the report is always 16 CF00 To check the exchange it is also necessary to test the content of the first word in the reception table Possible values
209. s different from the CR or LF characters Possible values are e 0 to 255 if data is coded on 8 bits e Oto 127 if data is coded on 7 bits e Character included check this box if you want to include the message end character s in the reception table of the Unity Pro PLC application This window looks like this Stop on silence _ iz Stop l ms This parameter allows you to detect the end of a message on reception by the absence of message end characters over a given time Stop on silence is validated by checking the Stop box The duration of the silence expressed in milliseconds is set using the data entry field Note The possible values are 1 ms to 10000 ms 235 Software implementation Communication using Character Mode Flow control parameters in character mode At a Glance After configuring the communication channel you need to enter the Flow Control See Flow Control p 218 parameters Flow control This window looks like this window Flow control ORTSICTS hardware RTS DCD Hardware O Xon Xoff ONone The control flow is selected according to the remote device in use e RTS CTS Hardware if the device manages this flow control e RTS DCD Hardware if the device manages this flow control e Xon Xoff if the device manages this flow control e None if the device does not manage flow control 236 Softw
210. s out exchanges to the Slave station Processor Link Link Processor System Ado System a Ad1 Application Application Ad2 2 L Exchange to An exchange from the Master to AdO as seen at point 1 in the diagram above is address Ad0 used for communication from the Master application program to the Slave system access to the different objects etc The functions READ_VAR WRITE VAR and SEND_REQcan be used to communicate to Ado The function address is type ADDR r m c x where Parameters Description r Rack number m Module number c Channel number x AdO Slave address Example ADDR 0 0 1 Adqd0 for a slave connected to a PCMCIA card in the Master PLC 270 Software implementation Uni Telway communication An exchange from the Master to Ad2 as seen at point 2 in the diagram above is used for sending messages from the Master application program to the Slave application program Exchange to address Ad2 The functions SEND_REQ and DATA_EXCH can be used to communicate to Ad2 The function address is type ADDR r m c x where Parameter Description r Rack number m Module number c Channel number x Ad2 Slave address Example SEND REQ ADDR 0 0 1 Ad2 16 FC SMW Here use of the request code 16 FC unsolicited data 271 Software implementation Uni Telway communication Slave to Master exchanges
211. sed to connect April communication modules JBU0220 and JBU0250 The multidrop connection of PCMCIA card TSX SCP 112 to modules JBU0220 and JBU0250 is carried out in series mode To connect April modules refer to reference manual TEM60000F Note Important You must configure card TSX SCP 112 in point to point mode in the Unity Pro configuration screen for both the point to point or the multidrop series Note The current loop authorizes a current of 20 mA when idle in point to point as well as in multidrop mode If a slave is switched off the sender of this slave become active and the line is available If the loop supply is offset on one of the slaves switching this slave off will cause communication to be interrupted Point to point Illustration link Module TSX SCP 112 JBU0220 or 9 active JBU0250 5 PWR White Blue IF JBU0220 0250 24V 26 O 19 REC White Green 19 GE Z 17 REC Green White 185 17 g o V 15 r Z 2 EMI PAP White Orange 14 K 10 4 3 aD 20 PWR Blue White 16 OD Passive master or slave Master or slave active 122 Implementation of PCMCIA cards Point to point Illustration link active TSX SCP 112 TSX SCP 112 9 card Conte Oe 1g JBU0220 0250 a REC i 24v 19 White Green 19 ye 17 REC Green White
212. slave function MWr m c 3 Command The table below shows the meaning of the bits of the CONTROL word MWr m c 15 The command is made by a WRITE_CMD e g WRITE_CMD lIODDT_VAR1 Standard symbol Type Access Meaning Address BOOL R W Reset counter MWr m c 15 0 DTR_ON BOOL R W DTR signal Data Terminal Ready ON MWr m c 15 8 DTR_OFF BOOL R W DTR signal Data Terminal Ready OFF MWr m c 15 9 MB_TO_CHAR BOOL R W Modbus change to character mode modem MWr m c 15 14 CHAR_TO_MB BOOL R W Character mode modem change to Modbus MWr m c 15 15 324 Language objects of communications Details concerning explicit exchange language objects for a Modbus function At a Glance List of explicit exchange objects for Master mode List of explicit exchange objects for slave mode The following tables present the language objects for communication in master and slave Modbus mode These objects are not integrated in the IODDTs The table below shows the explicit exchange objects Address Type Access Meaning MWr m c 4 INT R Number of responses received without CRC error MWr m c 5 INT R Number of responses received with CRC error MWr m c 6 INT R Number of responses received with an exception code MWr m c 7 INT R Number of master messages sent without response MWr m c 8 INT R Number of transmissions broadcast MWr m
213. slaves The table below presents the meanings of the status word bits for slaves SLAVE _STS_0_15 MWr m c 8 Reading can be done via a READ_STS IODDT_VAR1 Standard symbol Type Access Meaning Address SLAVE_STS_0 BOOL R 1 slave 0 is responding MWr m c 8 0 SLAVE_STS_1 BOOL R 1 slave 1 is responding MWr m c 8 1 SLAVE_STS_2 BOOL R 1 slave 2 is responding MWr m c 8 2 SLAVE_STS_3 BOOL R 1 slave 3 is responding MWr m c 8 3 SLAVE_STS_n BOOL R 1 slave n is responding MWr m c 8 n SLAVE_STS_15 BOOL R 1 slave 15 is responding MWr m c 8 15 Status of slaves The table below presents the meanings of the status word bits for slaves SLAVE _STS_16_ 31 MWr m c 9 Reading can be done via a READ_STS lIODDT_VAR1 Standard symbol Type Access Meaning Address SLAVE_STS_16 BOOL R 1 slave 16 is responding MWr m c 9 0 SLAVE_STS_17 BOOL R 1 slave 17 is responding MWr m c 9 1 SLAVE_STS_18 BOOL R 1 slave 18 is responding MWr m c 9 2 SLAVE_STS_19 BOOL R 1 slave 19 is responding MWr m c 9 3 SLAVE_STS_n BOOL R 1 slave n is responding MWr m c 9 i SLAVE_STS_31 BOOL R 1 slave 31 is responding MWr m c 9 15 Command The above principle also applies for slaves 32 to 111 with the corresponding status See Status of slaves p 338 words The table below shows the meaning of the bits of the CONTROL word MWr m c 15 The command
214. ssecoeoeseess ee x 4 JL IL I I IL IL I JL IL JL I JL I g JL IL I I I IL I JL I JL I IL IL JL IL IL IL IL IL IL IL IL JL IL JL IL JL IL I I I IL I JL IL JL I JL IL R N a a O 9 JL IL I I IL IL I JL IL JL I IL I o JL IL I I I IL I IL I JL I JL I JL IL I I I IL I JL IL JL I IL I JL IL IL IL IL IL IL JL IL JL IL JL IL IL IL IL IL IL IL IL JL IL JL I JL IL JL IL IL IL IL IL IL JL IL IL I IL I L I JE I I I JE JE IL JE IL I I I Ke 5 2 AM1 PA J i 2x 5 5 l AM1 DE DP RREN 50 pate 59 Terminal port and TSX P ACC 01 device Internal view Illustration dd sak iT SM _ JA N t JB H A wl oC He e olaa a r ml A RN o nm lt lt lt E I V A CY N a A i O XL w k W SS S A S1 Selects functioning mode master or slave S2 Adapts the line end JA and JB Connection terminals on the Uni Telway Bus 60 Terminal port and TSX P ACC 01 device Connection to Uni Telway Buses General The TSX P ACC 01 device is connected to the Uni Telway Bus using connection terminals JA and JB as shown below Illustration Shielding Insulating sleeve ite 7 oem a essential
215. station 5 Sey Atrium station Host PC programming adjustment terminal PC programming adjustment terminal Note When using an Atrium Station the programming terminal is generally the PC which accepts the PCI 57 processor However as for a Premium station the programming terminal can also be a PC type terminal connected to the processor port 27 Terminal port and TSX P ACC 01 device Communicating with a man machine interface console General Configured in master Uni Telway mode default function the terminal port makes it possible to manage man machine interface device The man machine interface device uses UNI TE protocol to communicate with the local PLC and the other stations on the network architecture When using a Premium PLC the man machine interface terminal should be connected to the AUX connector in order to free the TER connector for possible connection of a programming adjustment terminal Premium station Premium master ie 7 Tay pm iij N A
216. status The following table presents the meaning of the bits of the STS_ADDR word objects IWr m c 1 Standard Type Access Meaning Address symbol ADO_FLT EBOOL R 1 no polling of the master on the slave with an address ADO IWr m c 1 0 AD1_FLT EBOOL R 1 no polling of the master on the slave with an address AD1 lWr m c 1 1 AD2_FLT EBOOL R 1 no polling of the master on the slave with an address AD2 lWr m c 1 2 343 Language objects of communications Details of the explicit exchange objects of the T COM_UTW_S type IODDT for PCMCIA cards At a Glance Observations Execution flags of an explicit This part presents the explicit exchange objects of the IODDT of the T_comM_UTW_M type which apply to Uni Telway slave communication with PCMCIA cards It includes the word type objects whose bits have a specific meaning These objects are described in detail below Sample Variable Declaration IODDT_VAR1 of type T_COM_UTW_S e In general the meaning of the bits is given for bit status 1 In specific cases an explanation is given for each status of the bit e Not all bits are used The table below shows the meaning of channel exchange control bits from channel EXCH_STS MWr m c 0 exchange EXCH_STS Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status words in progress MWr m c 0 0 CMD_IN_PROGR BO
217. t Green White Vv 9 White Green e K sro S 6 EMI D A Orange White Aez 124 EMI D B White Orange LT N 11 White Blue 23 Blue White ov 150 Q 13 Brown White AREE OVL OVL 98 TSX SCY 11601 21601 Character Mode connection for TSX SCY 21601 General The TSX SCY CM 6030 cable should be used to connect the TSX SCY 21601 module with an RS 485 standard device Users should connect the Character Mode TSX SCY 21601 to a Half duplex RS 485 standard device using the TSX SCY CM 6030 connection cable adding a connector adapted for the intended device to the end of the cable and linking the necessary signals see lead connection in Connecting the TSX SCA 50 unit p 98 Illustration TSX SCY CM 6030 Cable Two wire RS 485 device 99 TSX SCY 11601 21601 Consumption of TSX SCY 11601 21601 modules Values This table shows the consumption of TSX SCY 11601 and TSX SCY 21601 modules without a PCMCIA card for 21601 or connection to the built in channel Voltage Typical Current Maximum Current Power dissipation 5 Volts 350 mA 420 mA 2 1 W max 100 Implementation of PCMCIA cards 5 At a Glance Aim of this Chapter What s in this Chapter This Chapter provides an overview of the hardware implementation for PCMCIA communication cards on Premium Atrium PLCs This chapter contains the following sections
218. t is split into two windows e the Stop on reception window stop on reception of a special character e the Stop on silence windows stop on reception of silence The activation of one of these conditions leads to the following e the communication function INPUT_CHAR does not allow you to read a defined number of characters The parameter Number of characters to be read must be 0 e the possibility of using the communication function OUT_IN_CHAR on reception Selecting stop on silence means that stop on reception is deselected Similarly selecting stop on reception deselects the stop on silence function 234 Software implementation Communication using Character Mode Stop on reception Stop on silence This window looks like this r Stop on reception r Character 1 lv Stop CRM LF F710 Characters included r Character 2 Stop CR LF E40 Characters included A reception request can be terminated once a specific character is received The following parameters allow you to define up to two message end characters Stop enables you to activate stop on reception by a message end character CR enables you to detect the end of the message by a carriage return LF enables you to detect the end of the message by a line feed a data entry field enables you to identify a message end character decimal value that i
219. t s in this Chapter This chapter presents the software implementation of communication using Character Mode This chapter contains the following sections Section Topic Page 9 1 General 216 9 2 Character Mode communication configuration 224 9 3 Character Mode communication programming 239 9 4 Debugging of a communication using Character Mode 241 215 Software implementation Communication using Character Mode 9 1 General At a Glance Subject of this This section presents the general points relating to communication using character Section mode and its services What s in this This section contains the following topics ion Section T pic Page About Character Mode 217 Flow Control 218 Compatibilities 220 Performance 221 Operating Mode 223 216 Software implementation Communication using Character Mode About Character Mode Introduction Communication via character mode enables dialog and communication functions to be carried out between the PLCs and their environment common peripherals printers keyboard screen workshop terminal specialized peripherals bar code readers link to a checking or production management calculator data transmission between heterogeneous devices numerical commands variable speed controllers etc e link to an external modem 217 Software implementation Communication usi
220. te TSX P57 554 and TSX P57 5634 processors do not have an AUX port Using a TSX P ACC 01 insulating device makes it possible to duplicate the terminal port in order to use two TER and AUX ports 25 Terminal port and TSX P ACC 01 device Atrium PLCs Atrium processors have one single TER terminal port which is identical in all respects to the TER terminal port on Premium PLCs This is a non insulated RS 485 link which is made up of a 8 pin mini DIN connector which is used to physically link up a device such as a programming adjustment terminal or a man machine interface console 7 oz EA J NTA i x This connector is used to supply power to a device which does not have its own power supply connecting cable converter RS 485 RS 232 insulating device TSX P ACC 01 See Introduction to TSX P ACC 01 p 55 etc The terminal port functions by default in master Uni Telway mode Via configuration it is possible to switch to Uni Telway slave or character mode Note Using a TSX P ACC 01 insulating device makes it possible to duplicate the terminal port in order to use two TER and AUX ports like on the Premium PLC processor 26 Terminal port and TSX P ACC 01 device Communication with a programming adjustment terminal General Configured in master Uni Telway default function the terminal port is used to connect a programming adjustment terminal Premium
221. ted to a TSX P ACC 01 device by its built in cable In the example given below the TSX P ACC 01 device must therefore be connected to the Uni Telway slave PLC by the device s integrated cable Its S1 switch must be positioned on ON If the device if not placed on a Uni Telway bus the position of the S2 switch does not matter Illustration Premium master Premium slave T FTX CB1 020 050 S1 ON S2 not significant TSX PCX1031 FRAKES TSX P ACC 01 71 Terminal port and TSX P ACC 01 device 72 Installing TSX SCY 11601 21601 modules 4 At a Glance Subject of this Chapter What s in this Chapter This chapter deals with the hardware installation of TSX SCY 11601 21601 modules This chapter contains the following sections Section Topic Page 4 1 At a Glance 74 4 2 Description 77 4 3 Built in Channel Specifications 80 4 4 TSX SCY 21601 module s host channel compatibility 81 4 5 Installation 82 4 6 Operation 84 4 7 Module Visual Diagnostics 85 4 8 Built in Channel Connection 86 73 TSX SCY 11601 2160
222. ter of requests sent MW205 Counter of good requests MW206 Counter of bad requests MW207 Error code of the last bad request Presentation of the program Read of the bits M0 to M8 from the Nano at address 37 F MW0 0 AND NOT M20 THEN MW200 4 0 MW202 50 SET M20 READ VAR ADDR 0 0 0 37 SM 0 8 MW200 4 MW100 10 8 bits M0 M7 are read in the slave 37 and placed in the MW100 word of the master END_IF H oe Analysis of the results IF M20 AND NOT MW200 0 THEN INC MW204 RESET M20 RESET MWO 0 IF MW201 0 THEN INC MW205 SET M30 ELSE INC MW206 MW207 MW201 RESET M30 END_IF 206 Software implementation Modbus Communication 8 4 Debugging of a Modbus communication At a Glance Aim of this sub section What s in this Section This sub section describes the Debugging process during set up of Modbus communication This section contains the following topics Topic Page Modbus debugging screen 208 Modbus Master debugging screen 210 Debug screen in Modbus slave type 211 How to test a communication channel 212 207 Software implementation Modbus Communication Modbus debugging screen At a Glance This screen which is split into various zones is used to choose the communication channel and to access the debugging parameters for a Modbus link Illustration The figure below sh
223. tes In the example MW173 10 At the end of the exchange this will contain the number of characters received in bytes The value 0 enables you to send the entire character string 240 Software implementation Communication using Character Mode 9 4 Debugging of a communication using Character Mode At a Glance Aim of this This sub section describes the Debugging process during set up of character mode sub section communication What s in this This section contains the following topics Section z Topic Page Debugging screen in character mode 242 Debugging parameters in character mode 244 How to test a communication channel 246 241 Software implementation Communication using Character Mode Debugging screen in character mode At a Glance This screen split into two zones is used to declare the communication channel and to configure the parameters required for a character mode link Illustration The figure below shows a sample debugging screen dedicated to character mode communication 1 RS232 MP PCMCIA CARD 2 3 TSX SCP 111 HiConfig EH Debug 6 Fault Channel 1 rew Send request Function On reception Transmission CHARACTER MODE LINK mw On transmission Reception Task Reset counters Send Receive MASI r Message Sent TTOOOP
224. tion PCMCIA cards are made up of the following elements Number Designation Comments 1 Equipped card Receives electronic components 2 Body made of zamac 3 PCMCIA connector Connector with 20 connection points 4 Upper cover Houses the product reference label which shows the type of PCMCIA card 5 Removable cover Ensures the card is displayed in its slot The names of the two LEDs are printed on the front of the removable cover This cover is also used to fix the PCMCIA card on the processor or on the TSX SCY 21601 module 6 Linking cable with ferule The ferule placed on the end of the PCMCIA card cable side prevents the cable being pinched by the removable cover This ferule also eliminates the risk of causing a bending radius which can damage the quality of the link 109 Implementation of PCMCIA cards Assembly To assemble the transmission support for the card first remove the cover which is screwed on the device then follow the instructions below Step Instruction Illustration 1 Connect the cable Host on processor 2 Place the appropriate cover SP or N TSX SCY 21601 on the device taking care to insert the ferule in the slot provided in order to fix the cable to the card Screw on the cover Insert the card in the slot provided in the host device 5 Screw in the card to stop it being moved when switched on and to ensure it
225. tion protocols except Fipio Error bit The table below presents the meaning of the error bit CH_ ERROR lr m c ERR Standard symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR 318 Language objects of communications Details of IODDT explicit exchange objects of type T_ COM_STS_GEN At a Glance Observations Execution flags of an explicit This section presents the T_COM_STS_GEN type IODDT explicit exchange objects applicable to all communication protocols except Fipio It includes the word type objects whose bits have a specific meaning These objects are presented in detail below Sample Variable Declaration IODDT_VAR1 of type T_COM_STS_GEN e In general the meaning of the bits is given for bit status 1 In specific cases an explanation is given for each status of the bit e Not all bits are used The table below shows the meaning of channel exchange control bits from channel EXCH_STS MWr m c 0 exchange EXCH_STS Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status words in progress MWr m c 0 0 CMD_IN_PROGR BOOL R Current parameter exchange in progress MWr m c 0 1 ADJ_IN_PROGR BOOL R Adjustment parameter exchange in progress MWr m c 0 2 Explicit The table below presents the meaning of the exchange report bits EXCH RPT exchange rep
226. ts of the T COM_CHAR type IODDT for PCMCIA cards At a Glance The tables below present the implicit exchange objects of the IODDT of the T_COM_CHAR type which apply to Character Mode communication with PCMCIA cards Error bit The following table presents the meaning of the error bit CH_ERROR lr m c ERR Standard symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR Signal objects on input The table below shows the meaning of the bits of the INPUT_SIGNALS word lWr m c 0 Standard symbol Type Access Meaning Address DCD BOOL R Data Carrier Detection signal Wr m c 0 0 RI BOOL R Ring indicator signal IWr m c 0 1 CTS BOOL R Ready to send signal IWr m c 0 2 DSR BOOL R Data ready signal IWr m c 0 3 Signal objects on output The following table presents the meaning of the bit of the STOP_EXCH word QWr m c 0 0 Standard symbol Type Access Meaning Address STOP_EXCH BOOL R rising edge at 1 all exchanges in progress are stopped QWr m c 0 0 328 Language objects of communications Details of the explicit exchange objects of the T COM_CHAR type IODDT for PCMCIA At a Glance Observations This part presents the explicit exchange objects of the IODDT of the T_COM_CHAR type which apply to Character Mode communication with PCMCIA
227. uction PLC memory I O module memory or integrated specific application function memory i 0 Status parameters Status parameters Command parameters Command parameters Adjustment parameters p Adjustment parameters When the instruction is scanned by the PLC processor the Exchange in progress bit is set to 1 in MWr m c Phase 2 Analysis of the data by the I O module and report PLC memory I O module memory or integrated specific application 0 function memory 1 Ne Status parameters Status parameters Command parameters Command parameters Adjustment parameters Adjustment parameters When the data is exchanged between the PLC memory and the module acknowledgement by the module is managed by the ADJ_ERR bit MWr m c 1 2 Report 0 correct exchange 1 faulty exchange Note There is no adjustment parameter at module level 315 Language objects of communications Execution indicators for an explicit exchange EXCH_STS Explicit exchange report EXCH_RPT The table below shows the control bits of the explicit exchanges EXCH_STS MWr m c 0 Standard symbol Type Access Meaning Address STS_IN_PROGR BOOL R Reading of channel status MWr m c 0 0 words in progress CMD_IN_PROGR BOOL R Command parameters MWr m c 0 1 exchange in progress ADJ_IN_P
228. us state status No flow monitoring of devices error counters can be accessed on the slaves Note Using a TSX P ACC 01 See ntroduction to TSX P ACC 01 p 55 connection device enables the RS 485 link to be used in remote mode 53 Terminal port and TSX P ACC 01 device Terminal port connector pin configuration General The terminal port connectors marked TER and AUX are 8 pin mini DIN which can be locked The signals are given below TER AUX 1 D B 1 D B 2 D A 2 D A 3 not connected 3 not connected 4 DE 4 DE 5 DTP 1 master 5 DTP 1 master 6 not connected 6 not connected 7 O volts 7 O volts 8 5 volts 8 not connected Note The operation of the terminal port depends on two parameters e Signal status DTP 0 or 1 fixed by cabling accessory TSX P ACC 01 cable e Software configuration of the terminal port defined in Unity Pro The table below defines the functioning mode of the terminal port according to these two parameters Unity Pro Signal DTP 0 Signal DTP 1 configuration Uni Telway master Terminal port in Uni Telway slave Terminal port in Uni Telway mode default master mode Slave Uni Telway Terminal port in Uni Telway slave Terminal port in Uni Telway mode master mode default Character mode Terminal port in character mode Terminal port in Uni Telway master mode default 54 Terminal port and
229. ve address AdO Byte 1 number of consecutive addresses from 1 to 3 KWr m c 4 INT R Byte 0 reserved Byte 1 Signal Management bit 8 1 if PSR signal management TSX SCP 112 Internal The table below shows the explicit exchange objects constants for Terminal Port Address Type Access Meaning KWO 0 0 0 INT R Byte 0 0 for the slave Uni Telway function Byte 1 speed 16 00 1200 bits s 16 04 19200 bits s KWO 0 0 1 INT R Wait Time in ms from 5 ms to 10000 ms KWO 0 0 2 INT R Byte 0 value of slave address Ado Byte 1 number of consecutive addresses from 1 to 3 346 Language objects of communications 12 6 Language Objects Associated with the Specific Protocol Details of the Language Objects Associated with Specific Protocols At a Glance List of Objects with Implicit Exchanges List of Objects with Explicit Exchanges List of Configuration Objects The following tables show the language objects associated with the FCS SCP 111 114 cards These objects are not integrated in the IODDTs Their precise meaning is given in the PCMCIA card documentation The T_COM_STS Gl specific protocols EN See General language objects and IODDTs for all communication protocols p 317 IODDT can also be applied to The table below shows the implicit exchange objects Number Type Access Meaning
230. without their own power supply RS 485 RS 232 cable converter etc e The AUX connector on the device is only used to connect devices with a power supply man machine interface console third party devices etc Note The TSX P ACC 01 device is supplied from the TER connector on the PLC to which is it connected As a result the TER connector on the device enables devices with their own power supply Magelis etc or without their own power supply RS 485 RS 232 cable converter etc to be supplied If the user wants to connect the terminal port of a second PLC to one of the ports on the TSX P ACC 01 device the AUX connectors on the device and PLC must be used to avoid power supply conflicts on the two PLCs Example 1 Premium master Premium slave O OJ Fan Fan r EE kotet A Tops OE 0 o O RI ym oie l Cy il miley m eli O 6 l Oll ofa Ol ofa e l l l l TSX P ACC 01 66 Terminal port and TSX P ACC 01 device Example 2 Premium master TSX RKY e O Bus X m a
231. ype of bus Uni Telway Modbus Structure Physical interface 20mA CL Baud rate 0 3 19 2 Kb Services Uni Telway Select channel 1 Select the function CHARACTER MODE LINK Example E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD imi TSX SCP 112 2 Channel 1 Function yCharacter mode link CHARACTERS Task 228 Software implementation Communication using Character Mode Character mode configuration screen At a Glance This screen is used to declare the communication channel and to configure the parameters needed for a character mode link Illustration The diagram below shows a configuration screen 1 2 PCMCIA INRACK BOARD v 3 E TSX SCY 21601 e Confi aj k Channel 0 te e PA Flow control Stop on reception Transmission speed yacuon R Character 1 9 600 bits Character mode link v E _ Stop on silence Task Stop HE me MAST v E bie Stop r Character 2 C 7 bits 1bit Stop 8 bits C 2bits CR LF Parity Character inc f Even Odd Without 4 7 Data carrier DCD 229 Software implementation Communication using Character Mode Description The following table shows the diffe
Download Pdf Manuals
Related Search
Related Contents
Samsung SPH-L710RWEVMU User's Manual Collection Tourbillon case - Elipse Software 園芸施設用 GEO_MAX カタログ Fondée en 1948 - Ecole Musique Nyon Je dis STOP! Un nouvel outil pour agir contre l`exploitation Greenway Home Products PIM9W User's Manual Designer Guide Pyle PWPBTA70 Copyright © All rights reserved.
Failed to retrieve file