Home
User Manual - LUCKINSlive
Contents
1. Atrium station De J lonii 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 35006178 10 2013 29 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 q OU Ue fa
2. Magelis slave 30 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Atrium station TSX RKY rack Host PC Magelis slave 35006178 10 2013 31 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 i i mm 0 im i m m Client fal i Client Server Slave Slave PC Client Server Magelis NOTE When using an Atrium PLC or a processor with only one terminal port this type of connection can be made by using a TSX P ACC 01 see page 54 device 32 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Character String Communication 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 At
3. S2 iL wo JA me wo n sa oa r OL o py L J OJ S1 selects functioning mode master or slave S2 adapts the line end JA and JB connection terminals on the Uni Telway Bus 35006178 10 2013 59 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 tC essential 2 0 VL i 3 OVL White 4 D A i Blue 5 DB 60 35006178 10 2013 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 TSX RKY Premium TSX P ACC 01 TSX P ACC 01 Note Only one TSX P ACC 01 device can be connected to a Premium Atrium PLC 35006178 10 2013 61 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
4. 82 3 S4 ON ON ON ON ore or imal ore ovr eal O O Common RXD1 0 RXDD Common TXD1 gt O 35006178 10 2013 163 TSX SCA 64 Position of the Switches This table shows the switch positions Switches Position On Device Receiving Power Other Devices Supply S1 2W 2W S2 OFF OFF S3 OFF OFF S4 ON OFF S5 OFF OFF 164 35006178 10 2013 TSX SCA 64 4 Wire Configuration with Polarization of One Pair by the Master Station and the Other by a Slave Station Introduction 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 Illustration This diagram shows a configuration with RXD1 RXDO pair polarization by the master station connected to JM ds E es 52 3 S4 5 ON ON ON ON orr El jor il orm OFF POSSSG0999S999 Qe ora oewrVor G2 Eootoalttaaoegaa ER EERE SSE FERS E rs rx o o PLLA aL JA J Leo
5. Speed in Bits s T Cycle in ms Average Average Average Duration Duration Duration TSX SCP 114 TSX SCP 1114 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 38400 cyclic 84 38400 10 89 38400 50 100 57600 cyclic 64 57600 10 67 57600 50 100 Times with the Terminal Port Exchange times for Premium PLCs 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 Recommendations for Use To improve connection phase performance when connecting a slave device to Uni Telway we recommend you configure the number of slaves according to the number of slaves present and select the addresses starting with 1 262 35006178 10 2013 Software Implementation Uni Telway Communication Operating Mode At a Glance The following graphics show operating modes for PCMCIA Uni Telway cards built in links in TSX SCY 21601 modules and for the Terminal Port General Chart 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 Operation e After pow
6. White Orange EMI PAP 2 O Pi Blue White PWR 20 o ED TSX SCP 112 Slave 2 passive 35006178 10 2013 129 Example 3 multidrop master JBU0220 0250 active send receive slaves TSX SCP 112 TSX SCP 112 JBU0220 0250 ms White Blue ALIM_ 9 7 19 24V CED White Green REC 19 lane LE EA 18 Green White REC 17 lt 17 V 15 O Y iba White Orange EMI PAP 10 V lens Blue White PWR 20 Slave 1 passive Master active sending receiving if White Blue PWR 9 24V ite 19 White Green REC 9 ap Green White REC 17 f a O White Orange EMI PAP 2 e Blue White J PWR 20 E gt TSX SCP 112 Slave 2 passive 130 35006178 10 2013 Example 4 multidrop active master TSX SCP 112 TSX SCP 112 TSX SCP 112 9 PWR White Blue j Zaje White Blue PWR 9 O H o aeaa av QO 19 REC White Green White Green REC 19 CH 17 REC Green White Green White REC 17 Y 2 EMI PAP White Orange White Orange EMI PAP 2 K A 20 PWR Blue White Blue White PWR_ 20 SD GD Master active Slave passive sending receiving 19 a oY 18 17 a brd 15 14 bi o 10 oO 16 vit oF JBU0220 0250 Slave 2 passive 35006178 10 2013 131 Section 5 6 Connection of the TSX SCP 114 Card S
7. o Re age aaa T Junction block 1 Junction block 2 Junction block n Rc resistance of optional load NOTE The cable shielding must be connected at the shortest point in the junction blocks 35006178 10 2013 121 Dynamic Performance General 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 Point to Point 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 I 200 500 1000 2000 3000 4000 5000 122 35006178 10 2013 Multidrop 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 signals transmitted Number of connected stations 16 4800 bps 2400 bps 1200 bps 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 page 121
8. u RS485 RS 232 converter cable TSX PCX 1031 screen not handling the RTS J signal Converter cable RS485 RS485 RS 232 p converter cable Control TSX PCX 1031 screen not handling the RTS Controller signal 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 35006178 10 2013 47 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 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 0 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 48 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Summary Table of Terminal Port Connections General
9. Jn PC A Programming adjustment terminal 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 page 54 device 38 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Modem on Terminal Port General The terminal port on Premium PLCs is compatible with a modem connection in all protocols Master Uni Telway Slave Uni Telway and Character string Modem Characteristics The modem to be connected must have the following characteristics 1 5 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
10. S1 OFF S2 OFF TSX PCX 1031 Uni Telway bus TSX P ACC 01 TSX SCA 50 TSX SCA 62 XBT Z 968 m E TSX CSC 015 ahd ATV 16 slave Magelis slave TSX 17 20 slave Address 6 Addresses 4 5 Addresses 7 8 SS EE ADS 1000 meters maximum 68 35006178 10 2013 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 D Q x lt TSX 107 40 master O m j au j i x lt a B 2 x 0 H H DTI E g 0 S1 ON TSX CSB 015 S2 ON o Uni Telway bus STER A 0 TSX P ACC 01 TSX SCA 62 Premium mL XBT Z 968 ale a IERE OA PRS E ER 1 MFN j Magelis TSX P ACC 01 ea 1000 meters maximum 35006178 10 2013 69 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
11. 110 35006178 10 2013 Assembly for TSX P57 1 4 to TSX P57 5 4 Processors To assemble the transmission card for the processor or the TSX SCY 21601 first remove the cover which is screwed on the device and then follow the instructions below Step Action Illustration 1 Connect the cable Host slot on processor 2 Place the appropriate cover TSX P57 1 4 to TSX P57 4 94 on the device taking care to or insert the ferrule in the slot provided in order to fix the cable to the card Screw on the cover 4 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 functions effectively Assembly for TSX P57 5 4 Processors To assemble the card in TSX P57 5s4 type processors follow the instructions below Step Action Illustration 1 Connect the cable 2 Place the appropriate cover on the device taking care to insert the ferrule in the slot provided in order to fix the cable to the card 3 Screw on the cover 35006178 10 2013 111 Step Action Illustration Remove the plastic cover from the caddy Guide the card into the caddy from an oblique angle using the 2 locating devices a locating device Slide the card into the caddy until it stops The card is now firmly attached to the caddy Click Insert the
12. MW120 1 no response length 1 byte 35006178 10 2013 293 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 Parameters of the request SMW120 1 Parameters Description ADDR 0 0 1 7 0 rack e 0 module e 1 channel 1 e 7 transmitting address Ad1 16 00FC unsolicited data request MW100 16 FE 00 MW101 16 FE 05 MW102 16 00 0B destination slave address Ad2 11 MW103 to MW109 application data to transmit 294 35006178 10 2013 Software Implementation Uni Telway Communication Reception The PLC data receiver IF RE I0 3 4 AND NOT MW100 0 THEN initialization of the data to receive W103 0 oe communication function DATA EXCH ADDR 0 0 1 11 3 SMW110 1 SMW100 4 SMW120 10 END_IF Parameters of the request Parameters Description ADDR 0 0 1 11 0 rack 0 module e 1 channel 1 e 11 address Ad2 3 receive mode MW120 16 FE 00 xx exchange number of the transmitter function MW121 16 FE xx 35006178 10 2013 29
13. 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 PFy 0A e byte 0 16 0A length received in bytes 10 bytes byte 1 PF most significant byte of first word e MW53 PF pfo byte 0 pfo least significant byte of first word byte 1 PF most significant byte of second word e MW54 PF pf byte 0 pf4 least significant byte of second word byte 1 PF 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 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 NOTE To retrieve the read bits we use the ROR1_ARB see Unity Pro Obsolete Block Library instruction 35006178 10 2013 211 Software Implementation of 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
14. 3 Enter the function code coded in hexadecimal on one byte corresponding 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 the Send button Result The response appears in the Request Response window Request Response ee DB k ASCIl Hex The response from the example has data on 3 bytes 12 43 DB 308 35006178 10 2013 Chapter 11 Software Implementation of Specific Protocol Communication FCS SCP 111 114 cards Subject of this Chapter This chapter describes software implementation for specific protocol communication using FCS SCP 111 114 PCMCIA cards What Is in This Chapter This chapter contains the following sections Section Topic Page 11 1 General Points 310 11 2 Configuration of Specific Protocol Communication 313 11 3 Debugging a Specific Protocol Communication 318 35006178 10 2013 309 Software Implementation Specific Protocol Communication Section 11 1 General Points Subject of this Section This section presents the general points relating to specific protocol communication What Is in This Section This section contains the following topics Topic Page Presentation 311 Operating Mode 312 310 35006178 10 2013 Software Implementation Specific Protocol C
15. Topic Page Details of IODDT Implicit Exchange Objects of Type T_ COM_STS_GEN 332 Details of IODDT Explicit Exchange Objects of Type T_COM_STS_GEN 333 35006178 10 2013 331 Language Objects of Communications Details of IODDT Implicit Exchange Objects of Type T_COM_STS_GEN Introduction The following table presents the IODDT implicit exchange objects of type T COM STS GEN applicable to all communication protocols except Fipio and Ethernet Error Bit The table below presents the meaning of the detected error bit CH_ ERROR SIr m c ERR Standard Symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR 332 35006178 10 2013 Language Objects of Communications Details of IODDT Explicit Exchange Objects of Type T_ COM_STS_GEN Introduction This section presents the T COM STS GI EN 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_VARI1 of type T COM STS GEN 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 Execution Flags of an Explicit Exchange EXCH_STS The table
16. 230 35006178 10 2013 Software implementation Communication using Character Mode Operating Mode At a Glance 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 General Chart The operating mode is as follows Module stopped Power up Module off Module configured Communication Module at self tes function stage Reset Module not configured Self tests OK Configuration Operation e After power up the module self tests During this stage the warning indicators flash e If there is no Unity Pro application in the PLC the module awaits configuration e Ifthere 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 35006178 10 2013 231 Software implementation Communication using Character Mode Section 9 2 Character Mode Communication Configuration Subject of this Section This section describes the configuration process used when implementing Character Mode communication What Is in This Section This section contains the following topics Topic Page How to Access the Terminal Port Parameters 233 How to Access the Parameters of the Built in Channe
17. H o ie o 35006178 10 2013 165 TSX SCA 64 Position of the Switches This table shows the switch positions Switches Positions On Master Station Device S1 4w S2 ON S3 OFF 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 2 3 ON ON orr or al Q 166 35006178 10 2013 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 s3 OFF OFF S4 OFF OFF S5 ON OFF 35006178 10 2013 167 TSX SCA 64 4 Wire Configuration with 2 Pair Polarization via 5VDC External Power Supply Introduction 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 Illustration This diagram shows a configuration with shielding conne
18. TSX SCA 64 2 Wire Configuration with Data Pair Polarization by a Station Introduction 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 on the whole bus Illustration This diagram shows a configuration with shielding connection at one end only a a a 35006178 10 2013 161 TSX SCA 64 Position of the Switches This table shows the switch positions Switches Position On Master Station Device Slave Stations S1 2W 2W S2 ON OFF 3 OFF OFF S4 OFF OFF S5 OFF OFF 162 35006178 10 2013 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
19. List of Explicit Exchange Objects for Terminal Port The table below shows the explicit exchange objects Address Type Access Meaning KWO0 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 The byte 0 of this word corresponds to the KWO 1 0 1 1 transmission speed This byte can take several values e Value 0 0x00 corresponds to 1200 bits s e Value 1 0x01 corresponds to 2400 bits s e Value 2 0x02 corresponds to 4800 bits s e Value 3 0x03 corresponds to 9600 bits s default value e Value 4 0x04 corresponds to 19200 bits s The byte 1 of this word corresponds to the 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 bit 12 1 echo on reception bit 13 1 beep management bit 14 1 back space management Legend 1 In the event that the power supply takes up 2 slots the processor is placed in slot 1 on the rack 348 35006178 10 2013 Language Objects of Communications Section 12 5 Language Objects and IODDTs Associated with Uni Telway Communication Subject of this Section This section presents the language objects and IODDTs associated with Uni Telway communication What Is in This Section This section contains the following topics Topic Page Details of
20. NOTE This operating mode also uses RTS and CTS control signals 6 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 We strongly recommended that you check with your dealer that the above mentioned characteristics are offered by the intended modem 35006178 10 2013 39 Terminal Port and TSX P ACC 01 Device Examples Connecting to a Premium PLC JO Khe 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 Terminal Port In Uni Telway mode the following parameters must be observed and set in the 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 correspon
21. The communication functions covered in this manual are e Modbus e Character Mode e Uni Telway Hardware Installation The three functions all require the installation of the following hardware devices e TSX SCY 21601 module e TSX SCP 111 112 114 PCMCIA cards The Modbus function is also provided by the TSX SCY 11601 module Software Installation The section on software installation in this manual is identical to that for Premium and Atrium PLCs 35006178 10 2013 19 Introduction 20 35006178 10 2013 Part Il Hardware installation for Modbus Character Mode and Uni Telway communications In This Part This part provides an introduction to hardware installation for Modbus Character Mode and Uni Telway communications What Is in This Part This part contains the following chapters Chapter Chapter Name Page 2 Introduction to Hardware Installation 23 3 Terminal Port and TSX P ACC 01 Device 25 4 Installing TSX SCY 11601 21601 modules 74 5 Implementation of PCMCIA Cards 101 6 TSX SCA 64 Connection Device 145 35006178 10 2013 21 Hardware Installation for Communications 22 35006178 10 2013 Chapter 2 Introduction to Hardware Installation Communication Function Devices General The three communication functions Modbus Character Mode and Uni Telway use different devices Device Role Modbus Charact
22. bit 8 1 if PSR signal management TSX SCP 112 Internal Constants for Terminal Port The table below shows the explicit exchange objects Address Type Access Meaning KWO 0 0 0 INT R Byte 0 0 for the slave Uni Telway function Byte 1 speed 16 00 1 200 bits s 16 04 19 200 bits s KWO 0 0 1 INT R Wait Time in ms from 5 ms to 10 000 ms KWO 0 0 2 INT R Byte 0 value of slave address AdO Byte 1 number of consecutive addresses from 1 to 3 35006178 10 2013 361 Language Objects of Communications Section 12 6 Language Objects Associated with the Specific Protocol Details of the Language Objects Associated with Specific Protocols At a Glance 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 GEN IODDT see page 331 can also be applied to specific protocols List of Objects with Implicit Exchanges The table below shows the implicit exchange objects Number Type Access Meaning 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 List of Objects with Explicit Exchanges The table below shows the explicit exchange objects Number Type Access Meaning MWr m c 2 INT R Channel standard st
23. 35006178 10 2013 TSX SCY 11601 21601 Section 4 9 Consumption of TSX SCY 11601 21601 Modules 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 35006178 10 2013 99 TSX SCY 11601 21601 100 35006178 10 2013 Chapter 5 Implementation of PCMCIA Cards Aim of this Chapter This chapter provides an overview of the hardware implementation for PCMCIA communication cards on Premium Atrium PLCs What Is in This Chapter This chapter contains the following sections Section Topic Page 5 1 At a Glance 102 5 2 Description 104 5 3 Connecting the PCMCIA Card Reception Channel 106 5 4 Connection of the TSX SCP 111 card 115 5 5 Connection of the TSX SCP 112 Card 118 5 6 Connection of the TSX SCP 114 Card 132 5 7 Summary of Connection Devices 141 5 8 Precautions when Connecting PCMCIA Cards 142 5 9 Consumption of PCMCIA Cards 143 35006178 10 2013 101 Section 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
24. 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 220 35006178 10 2013 Software Implementation of Modbus Communication Debug Screen in Modbus Slave Type At a Glance The specific part is divided into three windows e Type window e Counters window e Channel test window this window cannot be used in this mode Type Window The window looks like this ype It recalls the type of Modbus function configured slave Counters Window The window looks like this Counters Received without CRC error 0 Received with CRC error Y Received with exceptioncode 0 Message for the CPU pes Reception broadcast y Sent with NACK y Slave Bus counter or listen y Character error 0 only mode Reset counters 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
25. Meaning Address 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 MWr m c 3 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 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 slave function MWr m c 3 PROTOCOL INT R Byte 1 16 02 for Standby CPU 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 338 35006178 10 2013 Language Objects of Communicatio
26. 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 Rete U U external supply voltage Nx 20 N station number to be simulated 35006178 10 2013 123 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 Re 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 124 35006178 10 2013 TSX SCP 112 Connection with April 5000 7000 PLCs General PCMCIA card TSX SCP 112 20 mA current loop is used 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 multidr
27. 3 Display the number of characters and the character string received in the Message received window 256 35006178 10 2013 Chapter 10 Software Implementation of Uni Telway Communication Subject of this Chapter This chapter presents the software implementation of Uni Telway communication What Is in This Chapter This chapter contains the following sections Section Topic Page 10 1 General 258 10 2 Uni Telway Communication Configuration 265 10 3 Uni Telway Communication Programming 279 10 4 Debugging of a Uni Telway Communication 301 35006178 10 2013 257 Software Implementation Uni Telway Communication Section 10 1 General Subject of this Section This section presents the general points relating to Uni Telway communication and its services What Is in This Section This section contains the following topics Topic Page Presentation 259 Compatibility 260 Performance 261 Operating Mode 263 Addresses of a Slave PLC 264 258 35006178 10 2013 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 communicati
28. MW20 5 298 35006178 10 2013 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 Slave AdO 6 Ad1 7 Transmission SEND REQ ADDR 0 0 1 7 16 0025 SMWO 3 SMW40 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 MW1 16 FE 05 MW2 16 00 08 destination slave address Ad0 8 A MW43 6 length of the data to transmit 3 words therefore 6 bytes 35006178 10 2013 299 Software Implementation Uni Telway Communication Event Data Managed by the Master Event Data Event d ata is data that is transmitted to the master from a slave station Operating Principles The following table describes the processing phases in event data communication Phases Description 1 The slave station transmits event data to the PCMCIA card of the master station 2 When the card receives the data a bit from words lWr m 1 2 or IWr m 1 3 is initialized Each bit of the input words is associated with a link address 3 On detecting one of the bits the application transmits a SEND_REQ communication function with code
29. Mode and Uni Telway Communications Subject of this Section This section presents the general points relating to language objects and IODDTs of Modbus Character Mode and Uni Telway communications What Is in This Section This section contains the following topics Topic Page Presentation of the Language Objects for Modbus Character Mode and Uni Telway 323 Communications Implicit Exchange Language Objects Associated with the Application Specific Function 324 Explicit Exchange Language Objects Associated with the Application Specific Function 325 Management of Exchanges and Reports with Explicit Objects 327 322 35006178 10 2013 Language Objects of Communications Presentation of the Language Objects for Modbus Character Mode and Uni Telway Communications General 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 I ODDTs T COM _STS_ GEN applies to communication protocols except Fipio and Ethernet T_COM MB specific to Modbus communication T_COM_ CHAR specific to Character Mode communication T COM _UTW M specific to Uni Telway master communication T COM _UTW_S specific to Uni Telway slave communication NOTE IODDT variables can be created in two different ways e Using the I O objects tab see Unity Pro Operating
30. 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 Mechanical Configuration 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 ona Premium type processor or ona TSX SCY 21601 communication module Removable cover with wings Screws are provided to fix it to the host module marked 3 on illustration Installation on an Atrium type processor Removable cover with wings Screws are provided to fix it to the Atrium processor marked 2 on illustration Installation onto a PC compatible device 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 104 35006178 10 2013 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 th
31. only for TSX SCP 111 default value 0 ms 340 35006178 10 2013 Language Objects of Communications List of Explicit Exchange Objects for Slave Mode The language objects for the Modbus slave function are identical to those of the Modbus master function The only difference is for the following object Address Type Access Meaning KWr m c 0 INT R Byte 0 16 07 for Modbus slave function KWr m c 3 INT R Byte 0 slave number value 0 to 98 35006178 10 2013 341 Language Objects of Communications Section 12 4 Language Objects and lODDTs Associated with Character Mode Communication Subject of this Section This section presents the language objects and IODDTs associated with Character Mode communication What Is in This Section This section contains the following topics Topic Page Details of the Implicit Exchange Objects of the T_COM_CHAR Type IODDT for PCMCIA Cards 343 Details of the Explicit Exchange Objects of the T COM_CHAR Type IODDT for PCMCIA 344 Details Concerning Explicit Exchange Language Objects for Communication in Character 346 Mode Details of Language Objects Associated with Configuration in Character Mode 347 342 35006178 10 2013 Language Objects of Communications Details of the Implicit Exchange Objects of the T_COM_CHAR Type IODDT for PCMCIA Cards At a Glance The tables below present the implicit e
32. 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 Addressing When a slave uses the SE ND R EQ 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 m Module number c Channel number x Ad1 client address of the transmitter 35006178 10 2013 285 Software Implementation Uni Telway Communication MW 1 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 MW2 00 00 MW2 00 10 MW3 00 00 MW3 00 00 MW4 request parameters MW4 request parameters AMW AMW 286 35006178 10 2013 Software Implementation Uni Telway Communication Example of an Exchange from a Slave to the Master System At a Glance The slave transmits a communication function to the Master system TSX 57 G i li master Un
33. 1050 PC slave TSX P ACC 01 ae S1 ON S2 ON 44 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Inter device Uni Telway General 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 page 54 device Example Example of connection PC slave Premium master 3 5 a z i i a il el S1 ON T FTX CBF 020 S2 ON Uni Telway bus Q TER AUK TSX P ACC 01 TSX SCA 50 TSX SCA 62 ade ive USE LOU ATV 16 slave Magelis 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 35006178 10 2013 45 Terminal Port and TSX P ACC 01 Device Master PLC Type TSX Model 40 Ge
34. 16 82 read_generic_object to the PCMCIA card of the master station for the data to be read Communication Function The Uni server Telway request 16 82 is used to read event data by accessing the Uni Telway PCMCIA SEND REQ ADDR 0 0 1 SYS 16 0082 MW20 10 MW100 4 MW50 30 The transmission buffer contains the following data Word Byte 1 most significant Byte 0 least significant MW20 16 31 16 06 MW21 16 01 16 00 MW22 Slave number 16 00 MW23 16 FF 16 00 MW24 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 Slave address 2 bytes 16 00 Slave addr Type of access 1 byte 16 FF Quantity 2 bytes 16 00 No objects NOTE The TSX 57 and TSX 37 PLCs cannot send event data 300 35006178 10 2013 Software Implementation Uni Telway Communication Section 10 4 Debugging of a Uni Telway Communication Aim of this Section This section describes the debugging process during set up of Uni Telway communication What Is in This Section This section contains the following topics Topic Page Uni Telway Debugging Screen 302 Uni Telway Debugging Screen 304 Requests Available for the Communication Channel Test 305 How to Test a Channel with Identification and Mirror R
35. 2 2 CONF_FLT BOOL R Hardware or software configuration fault MWr m MOD 2 5 NO_MOD BOOL R Module missing or inoperative MWr m MOD 2 6 EXT_MOD_FLT BOOL R Internal error word of the module Fipio MWr m MOD 2 7 extension only MOD_FAIL_EXT BOOL R Internal fault module unserviceable Fipio MWr m MOD 2 8 extension only CH_FLT_EXT BOOL R Faulty channel s Fipio extension only MWr m MOD 2 9 BLK_EXT BOOL R Terminal block fault Fipio extension only MWr m MOD 2 10 35006178 10 2013 363 Language Objects of Communications Standard symbol Type Access Meaning Address CONF_FLT_EXT BOOL R Hardware or software configuration fault Fipio MWr m MOD 2 13 extension only NO_MOD_EXT BOOL R Module missing or inoperative Fipio extension MWr m MOD 2 14 only 364 35006178 10 2013 Index A C channel data structure for all modules T_GEN_MOD 363 channel data structure for character mode communication T_COM_CHAR 343 344 channel data structure for communication protocols T_COM_STS_GEN 331 channel data structure for Modbus communi cation T_COM_MB 336 337 channel data structure for Unitelway commu nication T_COM_UTW_M 350 352 T_COM_UTW_S 358 359 character mode 223 configuring TSXSCA64 167 163 165 168 configuring character mode 232 233 234 236 configuring Modbus 188 189 191 configuring specific protocols 313 314 configuring Uni Telwa
36. 238 Accessible Functions in Character Mode 0000 eee 240 Transmission Parameters in Character Mode 241 Message End Parameters in Character Mode 244 Flow Control Parameters in Character Mode 246 Additional Parameters 0000000000 cece eee eee 247 9 3 Character Mode Communication Programming 249 Available Communication Functions 000 cee eee 249 9 4 Debugging of a Communication Using Character Mode 251 Debugging Screen in Character Mode 0000 ee eee 252 Debugging Parameters in Character Mode 4 254 How to Test a Communication Channel 0000 256 Chapter 10 Software Implementation of Uni Telway Communication 0000s 257 109 General scavet eek oh eau see ek eee Rie eee eee eee eee ee 258 Presentation 3 lt j24ne7 2408 seeb 2 oad eee dee eae ee ed 259 Compatibility c ecca o2e00bs eee ne bee eee babes Gabbe ewes 260 Performance 0 000 000 cece eee 261 Operating Mode oc cece ewe eee eee Fe ee eda ee 263 Addresses of a Slave PLC ees 264 10 2 Uni Telway Communication Configuration 4 265 How to Access the Terminal Port Parameters 266 How to Access the Parameters of the Built in Channel of the TSX SCY 21601 Module 0 eee eens 267 How to Access the Parameters of the PCMCIA Uni Telway Cards 269 Configuration S
37. 4 1 At a Glance 72 4 2 Description T9 4 3 Built in Channel Specifications 78 4 4 TSX SCY 21601 Module s Host Channel Compatibility 80 4 5 Installation 81 4 6 Operation 83 4 7 Module Visual Diagnostics 84 4 8 Built in Channel Connection 85 4 9 Consumption of TSX SCY 11601 21601 Modules 99 35006178 10 2013 71 TSX SCY 11601 21601 Section 4 1 At a Glance Aim of this Section This section introduces the TSX SCY 11601 21601 modules What Is in This Section This section contains the following topics Topic Page Introduction T3 Operating Standards 74 72 35006178 10 2013 TSX SCY 11601 21601 Introduction TSX SCY 11601 General The TSX SCY 11601 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 TSX SCY 21601 General The TSX SCY 21601 module can take PCMCIA communication cards It has two communication channels e multi protocol built in channel channel 0 RS485 isolated asynchronous serial link supporting Uni Telway Modbus or Character Mode protocols e APCMCIA host channel channel 1 which supports the following protocols e Uni Telway Modbus and Character Mode on an RS 232 Current Loop or RS 485 link corresponding to cards TSX SCP 111 112 and 114 e Fipway cell network corresponding to the TSX FPP 20 card Notes
38. 4 wire mode the male connector of a TSX SCP CM 4530 connection cable if the channel is slave TSX SCA 10 line terminator if the device is located at the beginning or end of the line 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 35006178 10 2013 149 TSX SCA 64 Section 6 3 Dimensions and Mounting Dimensions and Mounting Dimensions This diagram shows the dimensions of the RSX SCA 64 connection device 24 mm 118 mm i 71mm 7 som 7
39. BOARD TSX SCY 21601 26 Channel Function E Task MAST v 268 35006178 10 2013 Software Implementation Uni Telway Communication How to Access the Parameters of the PCMCIA Uni Telway Cards At a Glance This part describes how to access the configuration parameters of the Uni Telway link through PCMCIA cards for Premium PLCs How to Access the Link 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 the PCMCIA card slot Result The card type selection window appears Product reference Description 1 Communication f f FCS SCP 111 OPEN RS232 PCMCIA CARD E FCS SCP 114 OPEN RS485 PCMCIA CARD f TSX FPP 20 FIPWAY PCMCIA CARD TSX FPP 200 FIPWAY PCMCIA CARD tee TSX INP 112 BC JNET PCMCIA CARD TSX INP 114 RS485 JNET PCMCIA CARD f TSX SCP 111 RS232 MP PCMCIA CARD E TSX SCP 112 BC MP PCMCIA CARD bee TSX SCP 11471114 RS485 MP PCMCIA CARD 3 From the menu click one of the following PCMCIA cards then validate by clicking OK e TSX SCP 111 e TSX SCP 112 e TSX SCP 114 1114 35006178 10 2013 269 Software Implementation Uni Telway Communication Step Action 4 Double click the PCMCIA card slot Result E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD EJ
40. Data carrier OCD 35006178 10 2013 271 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 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 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 By clicking on the reference number to display the tabs e Description gives the characteristics of the device 1 O Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault 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 the parameters channel zone 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 5 Used t
41. Is in This Section This section contains the following topics Topic Page Connecting Devices 65 Uni Telway Master Mode 67 Uni Telway Slave Mode 69 Connection between Two PLCs 70 64 35006178 10 2013 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 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 TSX
42. 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 200 35006178 10 2013 Software Implementation of Modbus Communication Stop This window looks like this Stop 1bit 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 Parity This window looks like this ait DE Even OOdd 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 is set according to the other devices RTS CTS Delay This window looks like this RTS CTS delay ET 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 e This allows you to enter 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 e The default value is 0 ms e The possible values are Os to 10s e The value 0 specifies an absence of delay management between the two signals e Data
43. P ACC 01 35006178 10 2013 65 Terminal Port and TSX P ACC 01 Device Example 2 Premium master SPT Sake o 7e o ie lt P T FTX CB 1020 1050 o7 Mm TER AUX TSX P ACC 01 66 35006178 10 2013 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 v A BY D 0 mo J Q O S1 OFF fal ee S2 OFF TSX PCX 1031 Addresses 1 2 3 Uni Telway bus ER Tsx sche TSX PACC 01 TSX SCA 62 XBT Z 968 a B TSX CSC 015 Ea ATV 16 slave Magelis slave TSX 17 20 slave Address 6 Addresses 4 5 Addresses 7 8 1000 meters maximum 35006178 10 2013 67 Terminal Port and TSX P ACC 01 Device Example on an Atrium station TSX RKY i SS NG GSS PC slave
44. RS 485 distributed line for the TSX SCY 21601 90 Example of Uni Telway architecture 0 0000 92 35006178 10 2013 Connection of TSX SCY 11601 21601 Modules to the Modbus Field BUS orc ae kie pote ate feat eds aun cn eee moments he eee 93 Reminder on Single Line Polarization in RS 485 95 Example of Modbus architecture 2 0 auan 97 Character Mode Connection for TSX_SCY_21601 98 4 9 Consumption of TSX SCY 11601 21601 Modules 99 Consumption of TSX SCY 11601 21601 Modules 99 Chapter 5 Implementation of PCMCIA Cards 101 51 Ata Glac nei cd ee abe is Baek Chee ce a ae oe 102 Atva Glance 4222 2640 ead Sebo bh eb ohn hs keke wee ed NS 102 5 2 Description 0000 cee 104 DeSCHIPTION ir ereere alee Beebe ede bee deeded we E 104 5 3 Connecting the PCMCIA Card Reception Channel 106 Precautions to be Taken when Connecting PCMCIA Card 107 Connection of PCMCIA Cards 1 0 0 0 ccc ees 108 Product References for PCMCIA Cards and Installation 109 Mounting Cards and Cables 00000 0c eee 110 PCMCIA Card Operation Display 0 000 113 Visual Diagnostics of PCMCIA Cards 20005 114 5 4 Connection of the TSX SCP 111 card 0 00000 ee 115 Point to Point Connection in Character Mode DTE DTE 116 Uni Telway Modbus or Character Mode via
45. The table below can be used to define which cable links the terminal port connectors of a Premium Atrium PLC to peripheral devices Connection TER AUX Example of Connected Devices Cable Port Port TSX CB 1020 X TSX P ACC 01 TSX CB 1050 T FTX CBF 020 X X TSX PCX 1031 X FTX 517 FTX 417 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 TSX P ACC 01 TSX PCX 1130 X Magelis x Connection to Uni Telway 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 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 Uni Telway Master with Un
46. 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 MWr m c 3 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 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 IODDT_VAR71 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 35006178 10 2013 345 Language Objects of Communications Details Concerning Explicit Exchange Language Objects for Communication in Char
47. 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 Litt af l A We on OM hema il 35006178 10 2013 249 Software implementation Communication using Character Mode Programming the communication function l3 8 MW 170 0 OPERATE rar 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_2 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_1 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 bytes 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 250 35006178 10 2013 Software implementation Communication using Character Mode Section 9 4 Debugging of a Communication Using Character Mode Aim of this Section This section describes the debugging process during set up of Character Mod
48. assembly caddy and card in the slot provided in the host device Screw in the card to stop it being moved when switched on and to ensure it functions effectively 112 35006178 10 2013 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 1 Error ERR LED normally off displays errors This is red 2 The COM communication LED displays the line activity This LED is yellow on TSX SCP 111 112 114 cards 35006178 10 2013 113 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 112 114 Cards State of LEDs ERR COM Meaning Corrective actions Device switched off no dialog Check the power supply Card not operational Operating normally Serious error Change the card Functional fault Check the configuration and the connection to the communication bus O 0l 0 O Functional fault Check the configuration Key Off On Flashing 1 Neutral status 114 35006178 10 2013 Section 5 4 Connec
49. 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 connection The TSX SCP 114 PCMCIA card is connected in point to point to an RS 422A standard device VAX station type Illustration TSX SCP 114 Industrial computer St TSX SCP CX 4030 138 35006178 10 2013 Description of the TSX SCP CX 4030 cable Illustration The PCMCIA 20 pin mini connector supports the signals H ais 47091 a18 Green White _ _ EMI 612 ENI a White Green 9 i White Orange 2 X Orange White 100 Q gt Uv D D O f Brown White 100 Q See also Character Mode Connection for TSX_SCY_21601 page 98 TSX SCY 21601 module integrated link 35006178 10 2013 139 Connecting to Modbus Full Duplex in Premium Hot Standby Configuration General Two Premium PLCs in a Hot Standby configuration are connected in Full Duplex mode to the common target through TSX SCP 114 cards an a branching device TSX SCA 64 NOTE TSX SCP 114 card version must be V3 3 Wiring Connection Example The following drawing shows an example wiring connections for two Premium PLCs in a Hot Standby configuration to the Modbus bus in Full Duplex mo
50. avoid power supply conflicts in the two PLCs 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 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 M a M E A ae JE re iS HUP EF Bie 5 HIF E i Ne ii mm jam mm Ole i a ID iD T FTX CB1 XBT Z 968 020 050 1 S1 ON S2 not significant TSX PCX1031 A AUX TSX P ACC 01 Magelis 70 35006178 10 2013 Chapter 4 Installing TSX SCY 11601 21601 modules Subject of this Chapter This chapter deals with the hardware installation of TSX SCY 11601 21601 modules What Is in This Chapter This chapter contains the following sections Section Topic Page
51. below shows a configuration screen 2 PCMCIA INRACK BOARD 3 TSX SCY 21601 7 Confi 2j E Channel0 il 3 RT Flow control Stop on reception Transmission speed Function e RTSICTS hardware Chaeciri 9 600 bits s Character mode link lt R Har are Stop Stop on silence Tea fa None CR ELF Bo 0 C Stop ei ms MAST Character included Data Stop Character 2 7 bits fe 1 bit _ Stop Bbits C 2bits e eR LF e Parity Beep Management characterinoudea Even Odd Without Backspace management 4 C SR RTSISTS Lag ER f Pointto point Eo oms Data carrier DCD 5 238 35006178 10 2013 Software implementation Communication using Character Mode 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 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
52. below shows the meaning of channel exchange control bits from channel EXCH_ STS sMWr m c 0 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 Exchange Report EXCH_RPT The table below presents the meaning of the exchange report bits EXCH_RPT SMWr m c 1 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 35006178 10 2013 333 Language Objects of Communications Standard Channel Faults CH_FLT The table below shows the meaning of the bits of the status word CH_FLT SMWr m c 2 Reading is performed by aREAD STS IODDT_VAR1 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 M
53. 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 Ifthe option is not selected all characters received are taken into account 35006178 10 2013 201 Software Implementation of Modbus Communication Section 8 3 Modbus Communication Programming Subject of this Section This section describes the programming process used when implementing Modbus communication What Is in This Section This section contains the following topics Topic Page Available Communication Functions 203 Modbus Master Communication Function 204 Modbus Slave Communication Function 206 Using the SEND_REQ Communication Function 208 Example 1 SEND_REQ Function with Echo Request 209 Example 2 SEND_REQ Function with Word Read Request 210 Example 3 SEND_REQ Function with Bit Read Request 212 Example 4 READ_VAR Function for Reading Bits 214 202 35006178 10 2013 Software Implementation of Modbus Communication Available Communication Functions At a Glance This page describes the available communication functions in Modbus mode Available Functions Four specific communication functions are defined to send and receive data to a master or slave Modbus device e READ VAR reading basic language objects words bits doubl
54. comply with PCMCIA extended type Il 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 IIl cards such as FT 2100 terminals or PC compatible third party devices for example Illustration i Premium Premium giS tf i j ty 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 software for all PLCs in the Premium family 102 35006178 10 2013 TSX SCP 11XX 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 RS 485 link RS 422 compatible Illustration TSX SCP 111 RS 232 link TSX SCP 112 Current loop link 20 mA TSX SCP 114 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 35006178 10 2013 103 Section 5 2 Description Description General PCMCIA type III extended
55. 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 35006178 10 2013 213 Software Implementation of Modbus Communication Example 4 READ_VAR Function for Reading Bits General 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 Example with READ_VAR 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 100 ms M30 Bit set to 1 after a successful exchange MW204 Counter 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 SMO to M8 from the Nano at address 37 IF MW0 0 AND NOT M20 THEN W200 4 0 SMW202 50 SET M20 READ VAR ADDR 0 0 0 37 SM 0 8 3MW200 4 SMW100 10 ole 8 bits M0 M7 are read in the slave 37 and placed in the MW100 wor d of the master END_IF Analysis of the results IF M20 AND NOT SMW200 0 THEN 2
56. 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 1031 cable connected to the Uni telway bus at one end and unconnected at the other 35006178 10 2013 55 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 z TER AUX E S 56 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Section 3 5 Hardware installation Aim of this Section This Section deals with installing hardware for connection devices TSX P ACC 01 What Is in This Section This section contains the following topics Topic Page Dimensions and Mounting 58 Internal View 59 C
57. following table presents the meanings of the exchange control bits of the channel EXCH_STS MWr m c 0 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 Exchange Report EXCH_RPT The table below presents the meanings of the report bits 1 EXCH RPT MWr m c 1 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 Standard Channel Faults CH_FLT The following table presents the meanings of the bits of the CH_ FLT status word MWr m c 2 The reading is performed by a READ_STS lIODDT_VAR71 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 Not all of the devices providing the Modbus function MWr m c 2 1 manage this bit of the word BLK BOOL R Terminal block fault not connected MWr m c 2 2 35006178 10 2013 337 Language Objects of Communications Standard Symbol Type Access
58. 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 35006178 10 2013 209 Software Implementation of 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 SMW10 10 3MW100 4 3MW50 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 input words byte 0 16 04 byte 1 16 00 MW11 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 210 35006178 10 2013 Software Implementation of Modbus Communication Response The slave response contained in the MW50 30 reception buffer is of type Value of MW50 Value of MW51 Description
59. l 15 pin SUB D connector eet a Pe A o8 0 ra a 4 7kQ 35006178 10 2013 89 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 AX 5V 5V 5V 5V Rx Tx p Rp Rp Rp L ze Zc L VAVA TaT a Connection of network units 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 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 link 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 90 35006178 10 2013 TSX SCY 11601 21601 Integral Characteristics Integral characteristics are Up to 32 stations Maximum range about 1300 m Bus Topology lt 15 m Branching 2 wire half duplex Adapting the line end on end units Adapting the Pr 4 7 KQ distributed line 35006178 10 2013 91 TSX SCY 11601 21601 Example of Uni Telway architecture Ex
60. module adds the following features to a PLC station e Modbus isolated mono protocol RS 485 communication channel The TSX SCY 21601 communication module adds the following features to a PLC station e multi protocol isolated RS 485 communication channel e standard PCMCIA communication card slot The TSX SCY 11601 21601 modules can be installed in any available slot in a Premium Atrium PLC station rack Maximum Number 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 two discrete communication channels e one RS 485 channel built into the module e one channel from PCMCIA card that can be integrated into the module Since the maximum number of discrete channels 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 type of processor installed e 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 Processors racks and power supply modules Implementation manual Atrium
61. 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 page 329 e the exchange report see page 330 The following diagram describes the management principle for an exchange Execution of an Exchange in Exchange explicit exchange progress report NOTE In order to avoid several simultaneous explicit exchanges for the same channel it is necessary to test the value of the word EXCH_STS 3MWr m c 0 ofthe IODDT associated to the channel before calling any EF addressing this channel 326 35006178 10 2013 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 EXCH STS SMWr m c 0 exchange in progress EXCH RPT SMWr m c 1 report NOTE Depending on the localization of the module the management of the explicit exchanges sMWO 0 MOD 0 0 for example will not be detected by the application e For in rack modules explicit exchanges are done immediately on the local PLC Bus and are finished before the end of the execution task So the READ_STS for example is always finished when the MWO 0 mod 0 0 bit is checked by the applicati
62. polling of the master on the slave with an Wr m c 1 2 address AD2 358 35006178 10 2013 Language Objects of Communications Details of the Explicit Exchange Objects of the T COM_UTW_S Type IODDT for PCMCIA Cards At a Glance This part presents the explicit exchange objects of the IODDT of the T CoM _UTW_ 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 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 Execution Flags of an Explicit Exchange EXCH_STS The table below shows the meaning of channel exchange control bits from channel EXCH_ STS MWr m c 0 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 Exchange Report EXCH_RPT The table below presents the meaning of the exchange report bits 1 EXCH RPT MWr m c 1 Standard Symbol Type Access Meaning Address
63. port has three function modes e master Uni Telway default configuration e slave Uni Telway e character string Illustration Atrium Premium co oo JS e i pT wis i coe A F oc gt OU ey VO a i 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 Methods of Connection According to the operating mode selected in configuration the terminal port is used to connect the following 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 printer or control screen link in character string mode modem NOTE Connecting a Premium Atrium PLC slave to a UNI TELWAY Bus requires the use of a TSX P ACC 01 device 35006178 10 2013 35 Terminal Port and TSX P ACC 01 Device Programming Adjustment Terminal General 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 i
64. radius of the card This length ensures connection inside a standard cabinet Description of the TSX SCP CM 4030 Cable The 20 pin miniature PCMCIA connector supports the following signals Do Green White D1 White Green Pup Orange White Pdw White Orange ADP 150 Q Common Brown White White Blue il 136 35006178 10 2013 NOTE On a Modbus bus you must e Polarize the line in general in only one spot usually on the master device with 470 O resistors Connect Pdw to DO D A and Pup to D1 D B e Adapt the line on the two end devices with a 150 O resistor between DO and D1 D1 is already connected internally via the card To connect a TSX SCP 114 card to a PLC Series 1000 S1000 D1 must be connected to L Connecting Modbus to TSX SCA 50 Device Connection with no line terminator TSX SCA 50 1L DO Green White rq D A D1 White Green f5 D B 2 OVL Pup ne 13 oVL Pdw ne ADP ne Common _White Blue Connection of a SCA 50 with line terminator TSX SCA 50 1 L DO Green White fg D A D1 White Green f5 D B 2 OVL Pup Orange White d3 ove Pdw White Orange ADP Brown White Common _White Blue 35006178 10 2013 137 Multi protocol
65. s debugging parameters It is different according to the type of Modbus function which is configured e Modbus master e Modbus slave NOTE LEDs and commands not available appear grayed out 218 35006178 10 2013 Software Implementation of Modbus Communication Modbus Master Debugging Screen At a Glance The specific part is divided into three windows e Type window e Counters window e Channel test window Type Window This window looks like this ype Maste It recalls the type of Modbus function configured master Counters Window This window looks like this Counters Received without CRC error U__ Received with CRC error 0 Received with exception code 0 Sent without response O Sent in broadcast mode U Received with NACK y Retries u Character error lial Reset counters This window displays the different counters in slave configuration The Reset Counters button resets these counters to zero 35006178 10 2013 219 Software Implementation of Modbus Communication Channel Test window This window looks like this Channel tesi Slave Response reception Identification 1 E Enter request ASCII Hex This window enables you to test a communication channel by transmitting a request to one of the stations present on the bus
66. the CTS Clear To Send signal to be activated e This allows you to enter 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 e The default value is 0 ms e The value is between 0 and 10 s e The value 0 specifies an absence of delay management between the two signals 242 35006178 10 2013 Software implementation Communication using Character Mode e Data carrier management DCD signal Data Carrier Detected is used only 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 If the option is not selected all characters received are taken into account 35006178 10 2013 243 Software implementation Communication using Character Mode Message End Parameters in Character Mode At a Glance After configuring the communication channel you need to enter the message end detection parameters It is split into two windows e Stop on reception stop on reception of a special character e Stop on silence stop on reception of silence Condition of Use 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 possibilit
67. the Implicit Exchange Objects of the T COM_UTW_M Type IODDT for PCMCIA 350 Cards Details of the explicit exchange objects of the T_ COM_UTW_M type IODDT for PCMCIA cards 352 Details Concerning Explicit Exchange Language Objects for a Master Uni Telway Function 355 Details of Language Objects Associated with Configuration in Master Uni Telway Mode 356 Details of the Implicit Exchange Objects of the T COM_UTW_S Type IODDT for PCMCIA 358 Cards Details of the Explicit Exchange Objects of the T COM_UTW_S Type IODDT for PCMCIA 359 Cards Details of Language Objects Associated with Configuration in Slave Uni Telway Mode 361 35006178 10 2013 349 Language Objects of Communications Details of the Implicit Exchange Objects of the T_ COM_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 Mtype which apply to a Uni 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 Ir m c ERR Signal Objects on Input The table below shows the meaning of the bits of the INPUT_SIGNALS word IWr m c 0 Standard Symbol Type Access Meaning Address DCD BOOL R Data Carrier Detection signal Wr m c
68. the reference number to display the tabs e Description which gives the characteristics of the device e 1 0 Objects see Unity Pro Operating Modes which is used to presymbolize the input output objects 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 grayed out It is broken down into four types of information application parameters message end detection parameters e flow control parameters e additional parameters 35006178 10 2013 239 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 Functions The summary table below shows the various selections possible Functions SCP 11
69. the relevant instructions must be followed Failure to use Schneider Electric software or approved software with our hardware products may result in injury harm or improper operating results Failure to observe this information can result in injury or equipment damage 2013 Schneider Electric All rights reserved 35006178 10 2013 Table of Contents Safety Information 4 0 cccaweseadecneawwe sew ee wn 13 About the Book 0 0 15 Part Introduction to Modbus Character Mode and Uni telway Communications 17 Chapter 1 Introduction to Modbus Character Mode and Uni telway Communications 20005 19 Introduction to Communications 0 00000 c eee 19 Part Il Hardware installation for Modbus Character Mode and Uni Telway communications 21 Chapter 2 Introduction to Hardware Installation 23 Communication Function Devices 0 0c eee eee 23 Chapter 3 Terminal Port and TSX P ACC 01 Device 25 3 1 Introduction to the terminal port 000020 02s e ee 26 Introduction to the Terminal Port 0 00000 aee 27 Communication with a Programming Adjustment Terminal 29 Communicating with a Man Machine Interface Console 30 Uni Telway Master Slave Communication 32 Character String Communication 0202000e ees 33 3 2 Connections 0 0 0 ee eee eee 34 C
70. 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 SMW50 4 MW20 5 35006178 10 2013 289 Software Implementation Uni Telway Communication Slave to Slave Exchanges Introduction The slave station makes exchanges with another slave station Transmitting slave Destination slave System Applica tion Applica tion Processor System Application Ad1 to Ad0 Exchange Exchange of slave Ad1 with slave AdO identified by address mark 1 allows the 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 the Application Exchange of slave Ad1 with slave Ad2 identified by the address mark 2 is used to send messages from the sender slave application program to the destination slave application program 290 35006178 10 2013 Software Implementation Uni Telway Communication Communication Function Use of the SEND_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
71. 0 0 RI BOOL R Ring indicator signal Wr m c 0 1 CTS BOOL R Ready to send signal Wr m c 0 2 DSR BOOL R Data ready signal Wr 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 IWr m c 1 0 Status Object for Event Data The following table presents the meaning of the bits ofthe EVT_STS 0 15 word 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 Wr m c 2 0 EVT_STS_1 EBOOL R 1 slave 1 has transmitted data Wr m c 2 1 EVT_STS_2 EBOOL R 1 slave 2 has transmitted data IWr m c 2 2 EVT_STS_3 EBOOL R 1 slave 3 has transmitted data IWr m c 2 3 EVT_STS_n EBOOL R 1 slave n has transmitted data Wr m c 2 n EVT_STS_15 EBOOL R 1 slave 15 has transmitted data IWr m c 2 15 350 35006178 10 2013 Language Objects of Communications Status Object for Event Data The following table presents the meaning of the bits of the EVT_STS 16 31 word lIWr 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 Wr m c 3 0 EVT_STS_17 EBOOL R 1 slave 17 has transmi
72. 00 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 Xand 10s 276 35006178 10 2013 Software Implementation Uni Telway Communication Data This window looks like this Data f 8bits f 7 bits 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 Stop This window looks like this Stop fe bit 2bits 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 Parity This window looks like this Party Even OOdd 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 without Odd by default 35006178 10 2013 277 Software Implementation Uni Telway Communication RTS CTS Delay This window looks like this RTS 7 CTS delay FELL x100 ms Carrier DCD Before a character string is transmitted the module activates the RTS signal and waits for the CTS signal to be activated e This allows you to enter the maximum waiting time between the two signals When this value is timed out the request is not transmitted on the b
73. 006178 10 2013 Software Implementation of 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 How to Access the Link 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 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 L6 Channel0 Function None M 35006178 10 2013 189 Software Implementation of Modbus Communication Step Action 4 Select the function JBUS MODBUS LINK For TSX SCY 11601 the Modbus function is set by default Example PCMCIA INRACK BOARD o TSX SCY 21601 E Craneo Function odb b bd Task MAST v 190 35006178 10 2013 Software Implementation of Modbus Communication How to Access PCMCIA Modbus Card Parameters At a Glance This operation describes how to access the
74. 1 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 Onreception e On reception No No On reception e Restart from e Restart from 1st char ist 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 240 35006178 10 2013 Software implementation Communication using Character Mode Transmission Parameters in Character Mode At a Glance After configuring the communication channel you need to enter the transmission parameters These are split into four windows e Transmission speed window e windows specific to Data and Stop e Parity window e RTS CTS delay window Transmission Speed This window looks like this Transmission Speed 9 600 bits s You can use it to select the transmission speed of the character mode protocol used by the module e The default speed is 9600 bits s e Other available speeds are 300 600 1200 2400 4800 9600 19200 38400 and 57600 bits s e The speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 ca
75. 10 2013 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 page 54 connection device The different options for connecting this device are given below Example of Connecting Two Premium PLCs Illustration Premium master Premium slave AZN Een Kn TSX PCX 1031 a i L Oem E A PC slave T FTX CB 1020 1050 TSX PACC 01 fo TER AK S1 ON S2 ON 35006178 10 2013 43 Terminal Port and TSX P ACC 01 Device Example of Connecting a Premium PLC and an Atrium PLC Illustration Premium master TSX RKY rT is O O IES Ejo i J X Bus He Op ils j al F TSX PCX 1031 T FTX CB 1020
76. 114 OPEN RS485 PCMCIA CARD t TSX FPP 20 FIPWAY PCMCIA CARD TSX FPP 200 FIPWAY PCMCIA CARD bee TSX JNP 112 BC JNET PCMCIA CARD amp TSX NP 114 RS485 JNET PCMCIA CARD tees TSX SCP 111 RS232 MP PCMCIA CARD TSX SCP 112 BC MP PCMCIA CARD tees TSX SCP 114 1114 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 1114 236 35006178 10 2013 Software implementation Communication using Character Mode Step Action 4 Double click again on the PCMCIA card slot Result E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD E Tsxscp12 Description VO Object l 1 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 Select the function CHARACTER MODE LINK Example E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD E Tsxsop 112 E Channel Function Task MAST v 35006178 10 2013 237 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
77. 14 35006178 10 2013 Software Implementation of Modbus Communication INC MW204 RESET M20 RESET oe WO 0 IF SMW201 0 THEN INC 3MW205 SET M30 ELSE INC MW206 SMW207 MW201 RESET M30 END_IF 35006178 10 2013 215 Software Implementation of Modbus Communication Section 8 4 Debugging of a Modbus Communication Aim of this Section This section describes the debugging process during set up of Modbus communication What Is in This Section This section contains the following topics Topic Page Modbus Debugging Screen 247 Modbus Master Debugging Screen 219 Debug Screen in Modbus Slave Type 221 216 35006178 10 2013 Software Implementation of 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 shows a sample Modbus communication debugging screen PCMCIA INRACK BOARD N 3 TSX SCY 21601 Fil Config fffi Debug _ Faul T ChannelO Type Counties Function Received without CRC error 0 Received with CRC error 0 Modbus Jbus Received with exception code 0 Sent without response om Sent in Broadcast mode 0 Received with NACK o Retries 0 Character error om Reset
78. 2 Slot B TSX SCP 112 BC MP PCMCIA CARD fl TSX SCP 112 2B Channel Function f Modbus Jbus link Lx Task MAST v Select the function MODBUS LINK 192 35006178 10 2013 Software Implementation of 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 3 E TSxscP 112 2 5 Channel Functor Type Transmission speed i 9 600 bits s v MODBUS JBUS LINK Tek p Master _________________ Delay between characters Number of retries E73 vV By default H4 ms 7 Data Stop Response ime 7 ASCI bits ts bit Slave fe RTU bits 2bits Parity Slave number Ei a Even Odd c Without 4 Current loop PSR i Multidrop fe Pointto point Eo 100 ms Data carrier DCD RTSICTS Delay 35006178 10 2013 193 Software Implementation of 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
79. 329 Language Objects of Communications Explicit Exchange Report EXCH_RPT The table below shows the report bits EXCH_RPT SMWr 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 Counting Module Use The following table describes the steps realised between a Couting Module and the system after a power on Step Action 1 Power on 2 The system sends the configuration parameters 3 The system sends the adjust parameters by WRITE_PARAM method Note When the operation is finished the bit MWr m c 0 2 switches to 0 If in the begining of your application you use a WRITE_PARAM command you must wait until the bit MWr m c 0 2 switches to 0 330 35006178 10 2013 Language Objects of Communications Section 12 2 General Language Objects and IODDTs for Communication Protocols Subject of this Section This section presents the general language objects and IODDTs that apply to all communication protocols except Fipio and Ethernet What Is in This Section This section contains the following topics
80. 35006178 12 Premium and Atrium using Unity Pro Asynchronous Serial Link User Manual 10 2013 Schneider Electric www schneider electric com The information provided in this documentation contains general descriptions and or technical characteristics of the performance of the products contained herein This documentation is not intended as a substitute for and is not to be used for determining suitability or reliability of these products for specific user applications It is the duty of any such user or integrator to perform the appropriate and complete risk analysis evaluation and testing of the products with respect to the relevant specific application or use thereof Neither Schneider Electric nor any of its affiliates or subsidiaries shall be responsible or liable for misuse of the information contained herein 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 and using this product For reasons of safety and to help ensure compliance with documented system data only the manufacturer should perform repairs to components When devices are used for applications with technical safety requirements
81. 5 Software Implementation Uni Telway Communication Example 2 of an Exchange from a Slave to a Slave System At a Glance The slave address Ad1 7 reads a 5 word table using the function SEND REQ in the slave PLC with the address AdO 9 Transmission The PLC sender generates a request with the code 16 0036 read objects 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 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 e 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 SEND REQ ADDR 0 0 1 7 16 0036 MW200 6 MW220 4 MW210 6 296 35006178 10 2013 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 Most significant byte of first word MW212 Least significant b
82. 7mm A wo R 3 3 tr Mounting Fixing The device can be mounted on one of the following e board or panel secured with 2 M4 screws min length 20mm e DIN profile Refs AM1 DP 200 or AM1 DE 200 Schneider catalog references 150 35006178 10 2013 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 25 mm 151 35006178 10 2013 TSX SCA 64 Section 6 4 Installation Installation Required Hardware Installing the TSX SCA 64 device requires the following e 2 5mm wide flat tipped screwdriver cross tipped screwdriver PZ01 Procedure 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 one of the following device connection bases to its support e DIN AM1 DP200 or AM1 DE 200 profile 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 the main cables and the power supply cable if necessary to terminal 11 according to the type of connection selected a
83. ARD i bee TSX INP 112 BC JNET PCMCIA CARD tees TSX INP 114 RS485 JNET PCMCIA CARD r TSX SCP 111 RS232 MP PCMCIA CARD tes TSX SCP 112 BC MP PCMCIA CARD TSX SCP 114 RS485 MP PCMCIA CARD 3 From the menu click one of the following PCMCIA cards then validate by clicking OK e FCS SCP 111 e FCS SCP 114 314 35006178 10 2013 Software Implementation Specific Protocol Communication Step Action 4 Double click the PCMCIA card slot Result E 0 2 Slot B FCS SCP 114 OPEN RS485 PCMCIA CARD i Fesscr 114 42 Channel 1 Description VO Object l Open RS485 PCMCIA card PROPERTIES Type of bus General protocol Structure Physical interface RS 485 VISUAL INDICATORS Select channel 1 Select the GENERIC PROTOCOL function Example E 0 2 Slot B FCS SCP 114 OPEN RS485 PCMCIA CARD FCS SCP 114 2E Channel Function GENERIC PROTOCOL v 35006178 10 2013 315 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 OPEN RS485 PCMCIA CARD FCS SCP 114 2 Cranen e H Config Base Decimal v Parameter
84. Ad1 3 for AdO Ad1 and Ad2 Current Loop Function This window looks like this Current loop PSR Multidrop Pointto Point It allows you to select a e Multidrop Current Loop communication e Point to point Current Loop communication 35006178 10 2013 275 Software Implementation Uni Telway Communication Transmission Linked Uni Telway Parameters At a Glance After configuring the communication channel you need to enter the transmission parameters These are split into six windows e Transmission speed Time wait Data and Stop Parity RTS CTS delay Transmission Speed This window looks like this Transmission speed 9 600 bits s 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 Available speeds are 300 600 1200 2400 4800 9600 19200 38400 and 57600 bits s e The speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 card e The speeds 38400 and 57600 bits s are only available using the PCMCIA TSX SCP 1114 card Wait Time This window looks like this Wait time aNaueinms E130 __ V By defaut f Vaueins E 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 possible values are X to 255 ms for the terminal port or X to 100
85. CA 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 CU 6030 cable for Uni Telway TSX SCY CM 6030 cable for Jbus Modbus RS 485 TSX SCA 50 Built in Channel ae TSX SCY CU 6530 Cable TSX SCY 21601 for Uni Telway TSX SCA 62 35006178 10 2013 87 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 A 25 pin SUB D connector Uni Telway lead TSX SCY CU 6030 Uni Telway lead TSX SCY CU 6530 TSX SCA 62 Description of Leads Lead TSX SCY CU 6030 TSX SCA 50 Device Connection Ji 4 7 Q TBA sy i 20 4a ov Red 3 ov 251 ov White i 2 od ame 19 12 D A White 4 ee 19 D B gt lt gt lt Blue e UEA 24 z i i 1 E f 1 NS i 1 ot 8 Ov Rae 2 4 7 kQ 88 35006178 10 2013 TSX SCY 11601 21601 Lead TSX SCY CU 6530 _ ST TSX SCA 62 connection unit s y 4 7 ko Ba 5131 ov ia OVL 2 oV OVL oV E ee a8 l rnol D A D DA DS D B L314 DB 424 a l Pi Ia Vt
86. CP CM 4530 slave channel TSX SCA 64 TSX SCP INP 114 master channel TSX SCP CM 4530 Nor TSX SCA 64 1 JM connector 2 JS connector 35006178 10 2013 147 TSX SCA 64 Section 6 2 Physical Description Physical Description Illustration This diagram shows the assembly plan for the TSX SCA 64 connection device 148 35006178 10 2013 TSX SCA 64 Nodes The following table describes the different nodes which make up the connection device No Description Cover screws Device cover Screws fixing restart ground clamps Restart ground clamps Metallic part providing the ground link between the 2 cables DO oa AJ OJIN SUB D 15 pin female JM 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 in 4 wire mode the male connector of a TSX SCP CM 4530 connection cable if the channel is master e TSX SCA 10 line terminator if the device is located at the beginning or end of the line male analyzer connection cable connector 1 micro switch allowing configuration in 2 or 4 wire operation 8 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 in
87. Cards The table below shows the explicit exchange objects Address Type Access Meaning KWr m c 0 INT R Byte 0 16 00 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 1 200 bits s 16 06 57 600 bits s Byte 1 format e bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management e 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 10 000 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 e 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 356 35006178 10 2013 Language Objects of Communications Internal Constants for Terminal Port The table below shows the explicit exchange objects Address Type Access Meaning KWO 0 0 0 or INT R Byte 0 16 06 for the master Uni Telway function KWO 1 0 0 1 Byte 1 speed e 16 00 1 200 bits s 16 04 19 200 bits s KWO 0 0 1 or INT R Wait Time in ms from 5 ms to 10 000 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
88. D Master or slave Master or slave passive receiving passive receiving active sending active sending Multidrop Type Link The following examples describe the different wiring possibilities for card 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 35006178 10 2013 127 Example 1 active master TSX SCP 112 multidrop TSX SCP 112 EIR PWR White BI Ite Blue rs om li JBU0220 0250 amp D 19 REC White Green 19 gp iy REC Green White 18 17 p a les EMI PAP Whi 14 y A ite Orange 10 R ae v 20 PWR Blue White 16 T op ee oH Master active Slave 1 passive 19 T 18 17 r 4 15 14 y 10 ec vV o 16 ee Slave 2 passive 128 35006178 10 2013 Example 2 active send receive JBU0220 0250 multidrop JBU0220 0250 JBU0220 0250 Taan 19 T eA oY 18 18 s 17 17 P Q Vv v 15 15 o o T 14 14 iti 10 10 oO Vv v 16 laps epl Master active Slave 1 passive sending receiving j White Blue PWR 9 if 9 oy White Green REC 19 2 5 YY GreenWhite REC 17
89. Extension PLC Address Access Address in Hex 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 35006178 10 2013 183 Software Implementation of Modbus Communication Programming Rules When you want to access the objects of a series 1000 PLC the index of the first object to read or write is the access address Example e Read the bit MO READ VAR ADDR 0 0 1 3 e Read the word MD25000 READ VAR ADDR 0 0 1 3 SM 16 A000 1 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_R EQ function Compatibility between a Premium PLC and a Quantum PLC or Micrologic Device Descriptive table Premium Quantum Micrologic MO 00001 M1 MWO 40001 MW1 184 35006178 10 2013 Software Implementation of Modbus Communication Performance At a Glance The following tables enable you to evaluate typical exchange times according to different criteria The results displayed
90. Function Read bits 16 01 READ VAR Read words until 125 registers 16 03 READ VAR Writing a bit or n bits 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 until 124 registers 16 04 SEND _REQ NOTE WRITE VAR can be used in broadcast mode READ_VAR can t be used in broadcast mode In this case the PLC doesn t receive a response It is therefore recommendable to configure a time out to acknowledge the activity bit of the function Since TSX SCP V3 2 and TSX SCY es V2 8 the value returned in the second management word is 16 00FF Example of Reading Words The example applies to the reading of word 4 MWw4 in the Modbus slave 3 READ VAR ADDR 0 0 1 3 sMW 4 1 MW200 4 SMW100 1 204 35006178 10 2013 Software Implementation of Modbus Communication Diagnostics and Maintenance The diagnostics and maintenance information of Modbus slaves uses the SEND_REQ see Unity Pro Communication Block Library communication function Modbus Request Function Code Sub Function Code Communication Function 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 35006178 10 2013 205 Software Implementation of Modbus Communication Modbus Slave Communication Functi
91. MWr m c 3 channel status word Reading can be done via a READ_STS lIODDT_VAR1 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 page 354 Standard symbol Type Access Meaning Address SLAVE_STS_0_15 INT R 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 35006178 10 2013 353 Language Objects of Communications Status of 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 lIODDT_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 s
92. Modem 117 5 5 Connection of the TSX SCP 112 Card 0 0 2 0 ce eee 118 Connection of the TSX SCP 112 card 0 0 0 cc eee 119 Connecting in point to point mode 1 1 6 2 0 eee eee 120 Multidrop Connection 0 000 eee 121 Dynamic Performance 000020 0c eee eee eee eee 122 TSX SCP 112 Connection with April 5000 7000 PLCs 125 5 6 Connection of the TSX SCP 114 Card 0 0 00 0000 132 Connection to the Uni Telway Network 2 2 055 133 Connecting to the Modbus Bus 20000e eee eeee 136 Multi protocol asynchronous link connection RS 422 138 Connecting to Modbus Full Duplex in Premium Hot Standby Configuration enekes erronee eee ete ene n ees 140 5 7 Summary of Connection Devices 20000000 eee 141 Summary of PCMCIA Card Connection Devices 141 5 8 Precautions when Connecting PCMCIA Cards 142 Precautions for Connecting PCMCIA Cards 142 35006178 10 2013 5 5 9 Consumption of PCMCIA Cards 200000 eee eee 143 Consumption of PCMCIA Cards 0000 0c 143 Chapter 6 TSX SCA 64 Connection Device 145 6 1 General Introduction 0 0 0 0 eee 146 General Introduction 0 0 0 0 00 cc ce eee eee 146 6 2 Physical Description 0 00 00 148 Physical Description 00 00000 c eee eee 148 6 3 Dimensio
93. Modes e Data Editor see Unity Pro Operating Modes Types of Language Objects In each lODDT 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 35006178 10 2013 323 Language Objects of Communications Implicit Exchange Language Objects Associated with the Application Specific Function At a Glance 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 Reminders The module inputs 1 and IW are updated in the PLC memory at the start of the task the PLC being in RUN or STOP mode The outputs 30 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 selecte
94. ON Do not use wrong address parameters For instance e Do not set an address parameter that does not correspond to the targeted equipment e Do not use value higher than 98 in ADDR function field e for the equipment address when using CPU embedded serial port or TSXSCY21601 channel 0 or 1 Failure to follow these instructions can result in injury or equipment damage 35006178 10 2013 79 TSX SCY 11601 21601 Section 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 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 80 35006178 10 2013 TSX SCY 11601 21601 Section 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
95. ONNECHONS 24 bc ee ed Se bee toe eda Sed woke ew dee oa 35 Programming Adjustment Terminal 0000 ee eee eee 36 Man Machine Interface Console 0 000 cee eee 37 Programming Adjustment Terminal and Man Machine Interface Console auauua eee e eee eee eee e eee e ee ees 38 Modem on Terminal Port 0000 c ce eee ee eee 39 Master Uni Telway 0 000 cece eee 41 Slave Uni Telway 0 00000 cece eee eee eee 42 Inter PLC Uni Telway 0000 ccc eee eee 43 Inter device Uni Telway 00 00000 c eee 45 Master PLC Type TSX Model 40 0 0 0 0 eee eee eee 46 Character String 00 0 cece eee 47 Summary Table of Terminal Port Connections 49 3 3 Appendices 00 00 ccc tee 51 Characteristics of the Terminal Port 0 000 52 Terminal Port Connector Pin Configuration 53 35006178 10 2013 3 3 4 Introduction to TSX P ACC 01 2000 02 ee 54 FUNCHONAlINCS secrssccrsseTe See Reka EERE ROE ER EOL AD EEE 55 External Appearance 0 0 ee tee 56 3 5 Hardware installation 0 0 ccc eee 57 Dimensions and Mounting 02200 cece eee eee 58 Internal View 0 0 000 cts 59 Connection to Uni Telway Buses 0020000 eee eee 60 Connecting to Premium and Atrium PLCs 00 61 Switch Configuration 000 0c c eee 62 TSX P ACC 01 Conn
96. 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 35006178 10 2013 83 TSX SCY 11601 21601 Section 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 l CHO yellow The host channel s communication status is set by the ERR and COM LEDs in the PCMCIA cards see page 114 on the serial or Fipway link LED meaning RUN ERR CHO Comments C 1 1 Module powered down or module failure C C No communication on the built in channel Communication on built in channel 1 Serious fault on built in channel C Configuration fault No device OK on the channel Device fault on built in channel only for TSX SCY 21601 Self tests running Key C Off Flashing 1 Neutral status On 2 Line activity display 84 35006178 10 2013 TSX SCY 11601 21601 Section 4 8 Built in Channel Connection Aim of this Section This section describes the different ways t
97. 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 Standard Channel Faults CH_FLT The table below shows the meaning of the bits of the status word CH_ FLT MWr m c 2 Reading is carried out by a READ_STS lIODDT_VAR1 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 35006178 10 2013 359 Language Objects of Communications Standard Symbol Type Access Meaning Address 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 MWr m c 3 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 Standard Symbol Type Access Meaning Address PROTOCOL INT R Byte 0 16 01 for the slave Uni Telw
98. Symbol Value a AKOO _ KWO AKWO01 56K WO O KWNO 0 1 AKOO AKWO 0 SEK WO O AKWO 0 Function GENERIC PROTOCOL Task W e S Po Oo N OD Oa SY LO Ro AdC aoalo ajo la 316 35006178 10 2013 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 e Debug can be accessed only in online mode e Fault can be accessed only in online mode 2 Module area Uses LEDs to provide a reminder of the module and module status in online mode 3 Channel area Is used e By clicking on the device reference number to display the tabs e Description gives the characteristics of the device e I O Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault 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 4 General Enables you to choose the general parameters associated with parameters the c
99. These are grayed out Accessible Functions The summary table below shows the various selections possible DCD 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 e 1bit e 1bit 1bit e 1bit e 1bit 2bits 2 bits 2bits 2 bits 2bits Parity e Odd e Odd Odd e Odd e 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 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 35006178 10 2013 195 Software Implementation of Modbus Communication Application linked Modbus Parameters At a Glance After configuring the communication channel you need to enter the application parameters These are split into four windows e Type window Master window Slave window Current loop PSR window Type Parameter This window looks like this Type ma It enables you to select the type of Modbus Protocol the module uses e Master selects Modbus Master where the station is master e S
100. Tsxscp112 Channel 1 Description O Object l 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 Select the function UNI TELWAY LINK Example E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD TSX SCP 112 Channel Function funiteway ink AR Task MAST v 270 35006178 10 2013 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 2 PCMCIA INRACK BOARD ml TSX SCY 21601 Confi 4B Channel Hiconfig Eimin Type Transmission speed Master 9 600 bitsisf Uni Telway Link Task Master Wait time MAST Event data O byte v i E43 v By defaut Number of slaves 31 r Slave ae ee Server address A00 3 fe ibit C 2bits Number of addresses E Een fe Odd r Without 4 Current loop PSR ___________RIS STS Lag 3 aa Multidrop fe Pointto point Eom 100ms C
101. W BOOL R W Character Mode change to Uni Telway modem MWr m c 15 15 354 35006178 10 2013 Language Objects of Communications Details Concerning Explicit Exchange Language Objects for a Master Uni Telway Function At a Glance The following tables present the language objects for communication in master Uni Telway mode These objects are not integrated in the IODDTs List of Objects for PCMCIA Cards 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 List of Objects for Terminal Port The table below shows the explicit exchange objects Address Type Access Meaning MWO0 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 responds 35006178 10 2013 355 Language Objects of Communications Details of Language Objects Associated with Configuration in Master Uni Telway Mode At a Glance 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 Internal Constants for PCMCIA
102. White ase NOTE A screw terminal block needs to be installed to connect the TSX SCP 112 card 35006178 10 2013 119 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 sa o2 o2 EH EDH YW Z ole C aie g 5 2 O Uae 2 Ae ba 2 kee eo Bee 54 sas K cle K fics o Es 920 Oss 3 gt iz P y 24V Sai aa L es Et Le Ee Junction block 1 Junction block 2 NOTE Important the cable shielding must be connected at the shortest point in the junction blocks 120 35006178 10 2013 Multidrop Connection General Multidrop is only carried out in 0 mA idle mode The send cable and receive cable 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 13 13 Q O 19 19 A o EO T 17 17 20 20 eh White Green White White Blue White Green i I WY i Orahige White ak 4 G
103. Wr 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 334 35006178 10 2013 Language Objects of Communications Section 12 3 Language Objects and lIODDTs Associated with Modbus Communication Subject of this Section This section presents the language objects and IODDTs associated with Modbus communication What Is in This Section This section contains the following topics Topic Page Details of the Implicit Exchange Objects of the T_COM_MB Type lODDT 336 Details of the Explicit Exchange Objects of the T COM_MB Type IODDT 337 Details Concerning Explicit Exchange Language Objects for a Modbus Function 339 Details of Language Objects Associated with Configuration Modbus Mode 340 35006178 10 2013 335 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_1 ERROR lr m c ERR Standard Symbol Type Access Meaning Address CH_ERROR EBOOL R Communication channel error bit lr m c ERR W
104. acter 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 Exchange Objects The table below shows the explicit exchange objects Address Type Access Meaning MWr m c 4 INT R Error in transmitted characters MWr m c 5 INT R Error in received characters 346 35006178 10 2013 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 Exchange Objects for PCMCIA Cards The table below shows the explicit exchange objects Address Type Access Meaning KWr m c 0 INT R Byte 0 16 03 for Character Mode function KWr m c 1 INT R The byte 0 of this word corresponds to the transmission speed This byte can take several values Value 2 OxFE corresponds to 300 bits s Value 1 OxFF corresponds to 600 bits s Value 0 0x00 corresponds to 1200 bits s Value 1 0x01 corresponds to 2400 bits s Value 2 0x02 corresponds to 4800 bits s Value 3 0x03 corresponds to 9600 bits s default value e Value 4 0x04 corresponds to 19200 bits s The byte 1 of this word corresponds to the f
105. ample 440 UNI TELWAY BB TSX SCA 62 TSX SCA 50 92 35006178 10 2013 TSX SCY 11601 21601 Connection of TSX SCY 11601 21601 Modules to the Modbus Field Bus General Points 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 a Built in channel with 25 pin SUB D connector Modbus Jbus lead TSX SCY CM 6030 TSX SCA 50 Connecting the TSX SCA 50 Unit NOTE On a Modbus bus you must e polarize the line in general in only one spot usually on the master device with 470 O resistance Connect Roul down to EMI D A and Routi up to EMI D B e adapt the line on the two end devices with a resistance of 150 O between EMI and EMI EMI is already connected internally by the card Modbus without Line Adaptation The following diagram shows the wiring of a slave in intermediate position to the Modbus network Ji TSX SCY CM 6030 cable TSX SCA 50 4709 oY oS nc al 1 5V H o5 nc e 4700 6 EMI D A OrangeWhite D A 4 T 24 EMI DB White Orange __D B t 5 oH ne 3 OVL 23 Gn ov 1502 13 Brown White 2 OVL 35006178 10 2013 93 TSX SCY 11601 21601 Modbus with Line Adaptation and Polarization The following diag
106. and Isolating it From the Ground at 158 the Other End 153 TSX SCA 64 Local Grounding the Bus General Introduction The bus can be grounded in three different ways e Connect the shield to the local ground and to the two ends of the cable e Connect the shield to the local ground at one end and to the local ground via a surge suppressor at the other end e Connect the shielding to the local ground at one end and isolating it from the ground at the other end Principle Opposite each main cable path a copper pad grounds the cable shields e The path 20 in the following diagram locally grounds the cable shielding e The path 18 in the following diagram locally grounds the cable shielding via a surge suppressor Illustration This diagram shows the principle for locally grounding the device as a whole TSX SCA 64 Local ground 154 35006178 10 2013 TSX SCA 64 Cable Preparation Template Introduction Certain precautions must be taken in order to ensure correct placement of the bus cables e Follow the stripping template e Use 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 ja gt 8 mm 8 mm N Shielding 35006178 10 2013 155 TSX SCA 64 Connecting the Shield to the Local Ground and to the Two Ends of the Cabl
107. anical configuration see page 104 35006178 10 2013 107 Connection of PCMCIA Cards General Connecting PCMCIA cards requires specific cables and connection devices depending on the type of models Series Link Cards 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 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 TSX SCA TSX SCP CM 4030 TSX TSX SCP CU 4030 RS 422 RS 485 64 and TSX SCA 50 SCA 64 and TSX SCA 50 TSX SCP CM 4030 and TSX SCP CM 4530 108 35006178 10 2013 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 Processor Host Channel TSX SCY 21601 Host Channel References TSX SCP 111 Yes Yes TSX SCP 112 Yes Yes TSX SCP 114 Yes Yes Application specific Channels and Network Connections Table showing the number of application specific channels or network connections used by PCMCIA cards Prod
108. anned by the PLC processor the Exchange in progress bit is set to 1 in SMWr m c Phase 2 Analysis of the data by the I O module and report PLC memory VO module memory or integrated specific application 0 function memory 1 SF 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 SMWr m c 1 2 This bit makes the following reports e 0 correct exchange e 1 faulty exchange NOTE There is no adjustment parameter at module level Execution Indicators for an Explicit Exchange EXCH_STS The table below shows the control bits of the explicit exchanges EXCH_STS SMWr m c 0 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 Command parameters exchange in progress MWr m c 0 1 R ADJ_IN_PROGR BOOL R Adjust parameters exchange in progress MWr m c 0 2 RECONF_IN_PROGR BOOL R Reconfiguration of the module in progress MWr m c 0 15 NOTE If the module is not present or is disconnected explicit exchange objects READ _STS for example are not sent to the module STS_IN_ PROG MWr m c 0 0 0 but the words are refreshed 35006178 10 2013
109. 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 which is used to presymbolize the input output objects 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 e Task defines the MAST task in which 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 e application parameters e transmission parameters 194 35006178 10 2013 Software Implementation of Modbus Communication Accessible Modbus Functions At a Glance Depending on the communication media chosen certain parameters cannot be modified
110. as follows SEND REQ ADDR 0 3 0 5 16 9F 3MW300 50 SMW450 4 3MW400 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 212 35006178 10 2013 Software Implementation of Modbus Communication Response The slave response contained in the MW400 50 reception buffer is of type 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 YMW400 0 16 00 MW401 16 0007 Incorrect request parameters if AMWW400 1 16 0004 Incorrect question parameters 16 0681 Byte 0 16 80 function code 16 01 Byte 1 e 16 06 Modbus error code the slave is busy e 16 01 Modbus error code the function is unknown e 16 03 Modbus error code the data is invalid MW402 16 xx01 Contains the Modbus response
111. ation parameters of the Uni Telway link through the terminal port of the Premium PLC How to Access the Link 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 the terminal port slot on the CPU 3 Select the function Uni Telway Example E 0 0 TerminalPort im TerminalPort Channel Function LUNETE WAY LINK JR 266 35006178 10 2013 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 Link The following table shows the steps to follow in order to access the Uni Telway link Step Action ft 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 E tsxscy 21601 B Channel Funetion None X 35006178 10 2013 267 Software Implementation Uni Telway Communication Step Action 4 Select the function UNI TELWAY LINK Example E 0 2 TSX SCY 21601 PCMCIA INRACK
112. atus MWr m c 3 to INT R Specific channel or counter status MWr m c 15 MWr m c 16 INT R Command List of Configuration Objects The table below shows the configuration objects Number Type Access Meaning KWr m c 0 to INT R Parameters KWr m c 15 362 35006178 10 2013 Language Objects of Communications Section 12 7 The lODDT Type T_GEN_MOD Applicable to All Modules Details of the Language Objects of the T_GEN_MOD Type lIODDT At a Glance All the modules of Premium PLCs have an associated IODDT of type T_ GEN MOD 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 List of Objects The table below presents the objects of the IODDT Standard symbol Type Access Meaning Address MOD_ERROR BOOL R Module error bit lr m MOD ERR EXCH_STS INT R Module exchange control word MWr m MOD 0 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 MOD 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
113. atus words input words output words modifiable e 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 35006178 10 2013 319 Software Implementation Specific Protocol Communication 320 35006178 10 2013 Chapter 12 Language Objects of Modbus Character Mode and Uni Telway Communications Subject of this Chapter This chapter describes the language objects associated with Modbus Character Mode and Uni Telway communications and the different ways of using them What Is in This Chapter This chapter contains the following sections Section Topic Page 12 1 Language Objects and IODDTs of Modbus Character Mode and Uni Telway 322 Communications 12 2 General Language Objects and IODDTs for Communication Protocols 331 12 3 Language Objects and IODDTs Associated with Modbus Communication 335 12 4 Language Objects and IODDTs Associated with Character Mode 342 Communication 12 5 Language Objects and lIODDTs Associated with Uni Telway Communication 349 12 6 Language Objects Associated with the Specific Protocol 362 12 7 The IODDT Type T_GEN_MOD Applicable to All Modules 363 35006178 10 2013 321 Language Objects of Communications Section 12 1 Language Objects and lIODDTs of Modbus Character
114. ay 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 Telway 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 Uni MWr m c 15 15 360 35006178 10 2013 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 Constants for PCMCIA Cards The table below shows the explicit exchange objects Address Type Access Meaning KWr m c 0 INT R Byte 0 16 01 for the slave Uni Telway function KWr m c 1 INT R Byte 0 speed e 16 50 300bits s 16451 600bits s TSX SCP 111 only e 16 00 1 200 bits s 16 06 57 600 bits s KWr m c 2 INT R Wait time in ms KWr m c 3 INT R Byte 0 AdO Byte 1 number of slaves configured KWr m c 4 INT R Byte 0 reserved Byte 1 Signal Management
115. configuration screen of a PCMCIA card Modbus link for Premium PLCs How to Access the Link 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 the PCMCIA card slot Result The card type selection window appears Product reference Description Communication FCS SCP 111 OPEN RS232 PCMCIA CARD r FCS SCP 114 OPEN RS485 PCMCIA CARD t TSX FPP 20 FIPWAY PCMCIA CARD t TSX FPP 200 FIPWAY PCMCIA CARD 7 te TSX JNP 112 BC JNET PCMCIA CARD 4 pee TSX INP 114 RS485 JNET PCMCIA CARD E TSX SCP 111 RS232 MP PCMCIA CARD r TSX SCP 112 BC MP PCMCIA CARD eee TSX SCP 11411114 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 TSX SCP 114 1114 35006178 10 2013 191 Software Implementation of Modbus Communication Step Action 4 Result Double click the PCMCIA card slot E 0 2 Slot B TSX SCP 112 BC MP PCMCIA CARD E Tsxsop 12 4 Channel 1 Bi Description VO Object 20 mA CL mult protocol PCMCIA card CHARACTERISTICS Type of bus Uni Telway Modbus Structure Physical interface 20mA CL Baud rate 0319 2 Kb Services Uni Telway Select channel 1 Example E 0
116. correspond to an average operation period of the READ VAR function in ms Exchange Times for 1 Word Number of objects read 1 word Speed in Bits s T Cycle ms Average Average Average Duration ms Duration ms Duration ms TSX SCP 114 TSX SCP 1114 TSX SCY 11601 21601 4800 cyclic 105 120 4800 10 133 140 4800 50 152 172 9600 cyclic 74 90 9600 10 86 110 9600 50 149 172 19200 cyclic 57 75 19200 10 60 90 19200 50 100 118 38400 cyclic 16 38400 10 20 38400 50 50 57600 cyclic 18 57600 10 20 57600 50 50 35006178 10 2013 185 Software Implementation of Modbus Communication Exchange Times for 100 words Number of objects read 100 words Speed in Bits s T Cycle ms Average Average Average Duration ms Duration ms Duration ms TSX SCP 114 TSX SCP 1114 TSX SCY 11601 21601 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 38400 cyclic 75 38400 10 80 38400 50 100 57600 cyclic 54 57600 10 60 57600 50 100 186 35006178 10 2013 Software Implementation of Modbus Communication Operating Mode At a Glance The following graphics show operati
117. counters Channel test Response reception 4 Slave Identification _ E Es Enter request Ki fe ASCII Hex 35006178 10 2013 217 Software Implementation of 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 gives the characteristics of the device e 1 O Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault shows the device faults in online mode e to select the channel todisplay the Symbol the 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 e Task Shows the configured MAST task This information cannot be modified Display and command zone Used to access a Modbus link
118. creen of the Uni Telway Link 271 Accessible Functions in Uni Telway 00 20000005 273 Application Linked Uni Telway Parameters 274 Transmission Linked Uni Telway Parameters 276 10 3 Uni Telway Communication Programming 0005 279 Available Communication Functions 005 280 Writing Command Words 0 00 00 eee 281 Master to Slave Exchanges 0000 cee eee eee eee 282 35006178 10 2013 Slave to Master exchangeS 0 20 0c cee eee eee eee 284 Example of an Exchange from a Slave to the Master System 287 Example of a Direct Exchange from a Slave to the Master System 289 Slave to Slave Exchanges 2 000 cece eee eee eee 290 Example of an Exchange from a Slave to a Slave Server 292 Example of an Exchange from a Slave to a Slave Application 294 Example 2 of an Exchange from a Slave to a Slave System 296 Example of a Direct Exchange from a Slave to a Slave System 298 Example of One Slave Setting Another Slave to Stop 299 Event Data Managed by the Master 0 20055 300 10 4 Debugging of a Uni Telway Communication 301 Uni Telway Debugging Screen 0 eee ee 302 Uni Telway Debugging Screen 0 cee eee ee 304 Requests Available for the Communication Channel Test 305 How to Test a Cha
119. ct and configure echo management on reception eho S M On reception Restart fom 1st char CR gt CRLF All characters 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 select the On reception check 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 from the first character received for this select the Restart on 1st char check box e from the last character before interruption for this deselect the Restart on 1st char check box By selecting CR gt CR LF itis 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 Beep Management Checking Beep Management causes a beep to sound when the module s reception buffer is empty or full Beep Management Backspace management Deselect this check box if the card is connected to an operator dialog terminal 35006178 10 2013 247 Software implementation Communication using Character Mode Backspace Management Checking Backspace Management enables you not to store each backspace character received and cancel the preceding character Moreover if t
120. ction 3 3 Appendices Aim of this Section This Section contains the appendices relating to the Terminal port What Is in This Section This section contains the following topics Topic Page Characteristics of the Terminal Port 52 Terminal Port Connector Pin Configuration 53 35006178 10 2013 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 Structure Physical interface Non insulated RS 485 Non insulated RS 485 Transmission Protocol Master slave multidrop Without protocol Binary flow 19200 bits s by modifiable default 9600 bits s by modifiable of 1200 to 19200 bits s default of 1200 to 19200 bits s 1 start bit 8 data bits even parity 7 or 8 data bits even parity odd parity or without parity 1 bit odd parity or without parity stop with or without echo Binary digit rate for TSX P57 1 2 5 19200 bits s loading of a project TSX P57 3 4 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
121. ction at one end only D Si lal JM JS olo oke s2 53 84 s5 oN on on ON ball fea Fr ores ore 5 RXDO 0 RXD1 tO Common 168 35006178 10 2013 TSX SCA 64 Position of the Switches This table shows the switch positions Switches Position On Device Receiving Power Other Devices Supply S1 4w 4W S2 OFF OFF s3 ON OFF S4 ON OFF S5 OFF OFF 35006178 10 2013 169 TSX SCA 64 Section 6 7 Adapting the Line End Aim of this Section This section contains information on line end adaptations on TSX SCA 64 devices What Is in This Section This section contains the following topics Topic Page Line End Adaptation 171 Signals on the JM and JS SUB D15 Pin Connectors 174 170 35006178 10 2013 TSX SCA 64 Line End Adaptation At a Glance 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 Illustration This view shows a line
122. cts are described in detail below Sample Variable Declaration IODDT_VAR1 of type T_ COM CHAR 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 Explicit Exchange Execution Flag EXCH_STS The following table presents the meanings of the exchange control bits of the channel EXCH_STS Y MWr m c 0 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 Exchange Report EXCH_RPT The table below presents the meaning of the exchange report bits 1 EXCH RPT MWr m c 1 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 35006178 10 2013 Language Objects of Communications Standard Channel Faults CH_FLT The following table presents the meanings of the bits of the CH_FLT status word MWr m c 2 The reading is performed by a READ_STS lIODDT_VAR1 Standard Symbol
123. cutive to the address AdO Ad1 AdO 1 and Ad2 Ad0 2 Example Uni Telway Link Address Logical Entities AdO 6 System responds to questions Ad1 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 264 35006178 10 2013 Software Implementation Uni Telway Communication Section 10 2 Uni Telway Communication Configuration Subject of this Section This section describes the configuration process used when implementing Uni Telway communication What Is in This Section This section contains the following topics Topic Page How to Access the Terminal Port Parameters 266 How to Access the Parameters of the Built in Channel of the TSX SCY 21601 Module 267 How to Access the Parameters of the PCMCIA Uni Telway Cards 269 Configuration Screen of the Uni Telway Link 271 Accessible Functions in Uni Telway 273 Application Linked Uni Telway Parameters 274 Transmission Linked Uni Telway Parameters 276 35006178 10 2013 265 Software Implementation Uni Telway Communication How to Access the Terminal Port Parameters At a Glance This part describes how to access the configur
124. d e outputs are set to fallback position fallback mode e outputs are maintained at their last value maintain mode Figure The following diagram shows the operating cycle of a PLC task cyclical execution i Intemal processing Yy Acquisition of inputs RUN STOP Y Execution of the program Y Update of outputs 324 35006178 10 2013 Language Objects of Communications Explicit Exchange Language Objects Associated with the Application Specific Function Introduction Explicit exchanges are performed at the user program s request using these instructions READ_STS see Unity Pro I O Management Block Library read status words WRITE_CMD see Unity Pro I O Management Block Library write command words WRITE_PARAM see Unity Pro I O Management Block Library write adjustment parameters READ_PARAM see Unity Pro I O Management Block Library read adjustment parameters SAVE_PARAM see Unity Pro I O Management Block Library save adjustment parameters RESTORE_PARAM see Unity Pro I O Management Block Library restore adjustment parameters These exchanges apply to a set of MW objects of the same type status commands or parameters that belong to a channel These objects can e provide information about the module for example type of error detected in a channel e have command control of the module for example switch command e define
125. d to those used 35006178 10 2013 40 Terminal Port and TSX P ACC 01 Device Master Uni Telway General 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 5634 6634 PLCs with only one terminal port Examples of connection Premium master T FTX CBF 020 i 5 ee vE XBT Z 968 KO Client Server slave 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 Important Information 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 cabl
126. da dees Details of the Implicit Exchange Objects of the T_ COM_UTW_M Type IODDT for PCMCIA Cards 00 0c eee Details of the explicit exchange objects of the T COM_UTW_M type IODDT for PCMCIA cards 0 cece tee Details Concerning Explicit Exchange Language Objects for a Master Uni Telway Function 0 0 c eee tees Details of Language Objects Associated with Configuration in Master Uni Telway Mode 0 0 0 cect teens Details of the Implicit Exchange Objects of the T COM_UTW_S Type IODDT for PCMCIA Cards 0 0 cee Details of the Explicit Exchange Objects of the T_ COM_UTW_S Type IODDT for PCMCIA Cards 0 0 eee Details of Language Objects Associated with Configuration in Slave Uni Telway Mode cn 2 3 00 0e8 eee ee ee a Pee eee 331 332 333 335 336 337 339 340 342 343 344 346 347 349 350 352 355 356 358 359 361 10 35006178 10 2013 Language Objects Associated with the Specific Protocol Details of the Language Objects Associated with Specific Protocols The IODDT Type T_GEN_MOD Applicable to All Modules Details of the Language Objects of the T GEN_MOD Type IODDT 362 362 363 363 365 35006178 10 2013 11 12 35006178 10 2013 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 Th
127. dbus 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 SMW10 10 SMW100 4 3MW50 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 Length 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
128. de psy J H57 Ay 2600M_ 44M 21601 psy J H57 acy 2600M_ 44M 21601 JS S5 orri ortl OFF orr E OFF E orr TSX SCA 64 TSX SCA 64 TSX SCA 64 3 3 1 TSX SCA 10 End of line adaptor 2 Slave 3 Bus 4 TSX SCP CM 4530 140 35006178 10 2013 Section 5 7 Summary of Connection Devices Summary of PCMCIA Card Connection Devices TSX SCP 111 Type of Cable Product Reference Designation Modem cable TSX SCP CC 1030 Connection cable via Modem DTE DCE 9 signals RS 232C L 3m Standard cable TSX SCP CD 1030 TSX SCP CD 1100 Connection cable DTE DTE RS 232C L 3mori10m TSX SCP 112 Type of Cable Product Reference Designation Current loop cable TSX SCP CX 2030 Current loop cable 20 mA L 3 m TSX SCP 114 Type of Cable Product Reference Designation Universal cable TSX SCP CX 4030 Universal cable type RS 485 and RS 422 L 3m Uni Telway cable TSX SCP CU 4030 Cable type RS 485 L 3m Modbus cable TSX SCP CM 4030 Cable type RS 485 _L 3m Connection device TSX SCA 50 Connection device screwed to bus for RS 485 series link Connection device TSX SCA 62 Connection dev
129. e 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 35006178 10 2013 41 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 essential to use a TSX P ACC 01 connection device Examples of connection Premium master E E NIE a meee Ue ie TSX SCP 114 PCMCIA O 9 communication card al A TSX SCP CU 4030 cable S1 ON S1 ON S2 ON S2 ON oo Uni Telway bus oo g lt lt lt A T S B TSX P TSX TSX TSX TSX P ACC 01 SCA 50 SCA 50 SCA 62 ACC 01 S TSX CSC 015 1 oo F PE Premium ATV 16 TSX 17 20 Slave Slave Slave Atrium Slave A slave PLC manages up to three consecutive link addresses e AdO system address e Ad1 client application address e Ad2 listen application address 42 35006178
130. e Recommended Cable Type Principle 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 Illustration This diagram shows the principle for locally grounding the cable te 14 ee 4 16 A ie r Edo i A N oe X S v VAN SEA LEN Ne F SE Fa uar EN a G i pA 20 Connecting several devices together TSXSCA64 TSX SCA64 TSXSCA64 LOA LOA pAd O mo OO a o a Ol Sp aS Epes leer ere 1a 2 18 20 1s 20 156 35006178 10 2013 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 14 16 18 20 Connecting several devices together TSXSCA64 _ _ _ _ TSXSCA64 _ _ _ TSXSCA64 _ _ OH oO OW O Cc qe E eee 18 20 18 20 18 35006178 10 2013 157 TSX SCA 64 Con
131. e The ADJ IN PROGR bit SMWr 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 sMWr 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 e Ther mand c bits indicates the following elements e the r bit represents the rack number e The m bit represents the position of the module in the rack e The c bit represents the channel number in the module NOTE r represents the rack number m the position of the module in the rack while c represents the channel number in the module NOTE Exchange and report words also exist at module level EXCH_ STS SMWr m MOD and EXCH RPT SMWr m MOD 1 as per IODDT type T GEN MOD 328 35006178 10 2013 Language Objects of Communications Example Phase 1 Sending data by using the WRITE PARAM instruction PLC memory VO module memory or integrated specific application 1 function memory 0 Status parameters Status parameters Command parameters Command parameters Adjustment parameters c y Adjustment parameters When the instruction is sc
132. e communication What Is in This Section This section contains the following topics Topic Page Debugging Screen in Character Mode 252 Debugging Parameters in Character Mode 254 How to Test a Communication Channel 256 35006178 10 2013 251 Software implementation Communication using Character Mode Debugging Screen in Character Mode At a Glance Illustration This screen split into two zones is used to declare the communication channel and to configure the parameters required for a character mode link The figure below shows a sample debugging screen dedicated to character mode communication w N RS232 MP PCMCIA CARD TSX SCP 111 HConfig ffi Debug a Faut 7 Channel CEE EOS ies Send request don On reception 0 a CHARACTER MODE LINK On transmission 0 Reception TEE Reset counters Send Receive MAST r Message Sent TTOOOP E gt r Message Received Number ofcharacters received 0 fe ASCII E f Hex 252 35006178 10 2013 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 Th
133. e control is performed 226 35006178 10 2013 Software implementation Communication using Character Mode RTS CTS 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 RTS receiver signal and vice versa The transmitter is authorized to transmit data when it receives the RTS receiver signal on its CTS input RTS DCD 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 Xon Xoff 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 35006178 10 2013 227 So
134. e following special messages may appear 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 safety label indicates that an electrical hazard exists which will result in personal injury if the instructions are not followed 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 or serious injury This is the safety alert symbol It is used to alert you to potential personal injury A WARNING WARNING indicates a potentially hazardous situation which if not avoided can result in death or serious injury A CAUTION CAUTION indicates a potentially hazardous situation which if not avoided can result in minor or moderate injury NOTICE NOTICE is used to address practices not related to physical injury 35006178 10 2013 13 PLEASE NOTE Electrical equipment should be installed operated serviced and maintained only by qualified personnel No responsibility is assumed by Schneider Electric for any consequences arising out of the use of this material A qualified person is one who has skills and knowledge related to the construction and operation of electrical equipment and its installation and has received safety tra
135. e modes available are e Debugging accessible only in online mode e Diagnostics default 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 Description gives the characteristics of the device 1 O Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault 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 Used to access the debugging parameters of a character mode command link see page 254 zone NOTE LEDs and commands not available appear grayed out 35006178 10 2013 253 Software implementation Communication using Character Mode Debugging Parameters in Character Mode At a Glance The specific part is split into four windows e Errors e Request Transmission e Message Sent e Message Received Errors Window This window looks like this Errors On transmission 0 On reception 0 Reset Counters This window i
136. e user of the type of physical layer supported by the card 35006178 10 2013 105 Section 5 3 Connecting the PCMCIA Card Reception Channel Aim of this Section This section describes the installation of PCMCIA cards in the reception channel of the TSX SCY 21601 module What Is in This Section This section contains the following topics Topic Page Precautions to be Taken when Connecting PCMCIA Card 107 Connection of PCMCIA Cards 108 Product References for PCMCIA Cards and Installation 109 Mounting Cards and Cables 110 PCMCIA Card Operation Display 113 Visual Diagnostics of PCMCIA Cards 114 106 35006178 10 2013 Precautions to be Taken when Connecting PCMCIA Card General CAUTION UNEXPECTED EQUIPMENT OPERATION Power off the device before handling the PCMCIA card Failure to follow these instructions 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 mech
137. e words floating points constant words system bits and words timer monostable drum Unity Pro Communication Block Library e WRITE VAR writing basic language objects words bits double words floating points constant words system bits and words Unity Pro Communication Block Library e SEND REQ exchanging a Modbus request Unity Pro Communication Block Library 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 35006178 10 2013 203 Software Implementation of Modbus Communication Modbus Master Communication Function At a Glance This page describes the services available on master Premium stations of a Modbus link General functions see Modicon M340 Premium Atrium and Quantum Using Unity Pro Communication Services and Architectures Reference Manual Exchange of Data 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 see Unity Pro Communication Block Library SEND REQ and WRITE VAR see Unity Pro Communication Block Library communication functions Modbus Request Function Code Communication
138. ebugging of a Modbus Communication 216 35006178 10 2013 179 Software Implementation of Modbus Communication Section 8 1 General Subject of this Section This section presents the general points relating to Modbus communication and its services What Is in This Section This section contains the following topics Topic Page About Modbus 181 Compatibilities 182 Compatibility between a Premium PLC and a Series 1000 PLC 183 Performance 185 Operating Mode 187 180 35006178 10 2013 Software Implementation of 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 35006178 10 2013 181 Software Implementation of Modbus Communication Compatibilities Hardware This type of communication is available for Premium PLCs via e host slot of the processor and or the TSX SCY 21601 module with e TSX SCP 111 PCMCIA card associated with the RS232 physical layer e TSX SCP 112 PCMCIA card associated with 20 mA current loops e TSX SCP 114 PCMCIA card ass
139. ector Pin Configuration 63 3 6 Example of topologies 0 0 0c ee 64 Connecting DeviceS 0 00 ccc eee 65 Uni Telway Master Mode 0 e eee eee 67 Uni Telway Slave Mode 00000 cee eee eee 69 Connection between Two PLCS 0 0000 c cece eee eee 70 Chapter 4 Installing TSX SCY 11601 21601 modules 71 Al Ata GaN 25 Side ye dodanie e Sararieset E EE eee ees 72 Ta core 0 61 0 9 alee eee eee anea ana eaaa a e a iaa Ea 73 Operating Standards 0 0 cece ee 74 4 2 Description 0 000 eee 75 DESCHIPUON is tie siura eA gee Shree eh eR Re eee ee 75 4 3 Built in Channel Specifications 20000200 ee eee 78 Built in Channel Specifications 0 0 0 0 0 eee eee 78 4 4 TSX SCY 21601 Module s Host Channel Compatibility 80 TSX SCY 21601 Host Channel Compatibility 80 4 5 Installation cei capo eds wh etime te deste in ees pee eh dees 81 Installation 2 0 ee ees 81 4 6 Operation ce che Scie Sede he ee dae ba ee ee ba ae 83 Operati eceran nar eae Mee a deen Pea wR Eevee Rae Ss 83 4 7 Module Visual Diagnostics 0 0 0 0 ee ee 84 Visual Module Diagnostics 1 2 0 0 0 eee 84 4 8 Built in Channel Connection 0 00000 2c eee 85 Ata Glance zareen scat ae ce 46 foe beac e eae bees Gee 86 Connection of TSX SCY 21601 to Uni Telway Field Bus 88 Reminder on adapting
140. ed correspond to an average operation period of the PRINT CHAR function in ms Times with PCMCIA Cards Average duration according to the programmed cycle time and the number of characters transmitted Message Length 80 Characters 960 Characters Speed in T Cycle in ms Average Duration Average Duration Bits s 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 38400 10 30 320 38400 25 50 350 38400 50 50 450 57600 10 20 230 57600 25 25 250 57600 50 50 250 Legend 1 for TSX SCP 1114 card only 35006178 10 2013 229 Software implementation Communication using Character Mode Times 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
141. elway Protocol the module uses e Master selects the Uni Telway master e Slave selects the Uni Telway slave Master Function This window is only accessible by selecting Master Master Event data Obytes Number of slaves Fal 3 This allows you to enter the e Event data used to select the number of bytes for the Event Data e The default value is 0 bytes e The possible values are 0 4 or 8 bytes e 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 For the 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 274 35006178 10 2013 Software Implementation Uni Telway Communication Slave Function This window is only accessible by selecting Slave Slave Server Address ADO a1 Number of addresses 1 This allows you to enter the e Server address Ad0 used to select the server address AdO of the device e The possible values are between 1 and 98 e 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 Ad0 Client Ad1 and Listening Application Ad2 addresses e The possible values are 1 to 3 1 for AdO only 2 for AdO and
142. ementation Phases with Simulator The following table shows the various phases of installation with the simulator Phase Description Mode Declaration of variables Declaration of IODDT type variables for the application Offline 1 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 Debugging Project debugging from debug screens animation tables Online Modifying the program and adjustment parameters Key 1 These various phases can also be performed in the other mode NOTE The simulator is only used for the discrete or analog modules 178 35006178 10 2013 Chapter 8 Software Implementation of Modbus Communication Subject of this Chapter This chapter presents the software implementation of Modbus communication What Is in This Chapter This chapter contains the following sections Section Topic Page 8 1 General 180 8 2 Modbus Communication Configuration 188 8 3 Modbus Communication Programming 202 8 4 D
143. end jack SCA 64 Mounting Example This example shows a communication bus with 4 TSXx SCA 64 connection devices To TSX SCY 21601 modules s Line end jack TSX SCA 64 TSX SCA 64 TSX SCA 64 TSX SCA 64 35006178 10 2013 171 TSX SCA 64 Installing Line End Jacks At a Glance 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 Mounting Procedure Installation Status Action 1 Plug the wires supplied into the SUB D 15 pin connectors as shown above 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 NN OO oO AJ OJN Use the blank labels provided to show utilization Note Cable clamps and or other accessories should not be used 172 35006178 10 2013 TSX SCA 64 Connecting an Analyzer The JM or JS connectors on the TSX SCA 64 device can support a frame analyzer which is connected by a SUB D 15 male pin connector Signals relating to each pair are available on the dev
144. eption from 13 Device RXD1S RXD1 reception from master slave TXD1M TXD1 transmission 14 Device TXD1S TXD1 transmission from master from slave PR1 For RXD1 polarization 15 Device PT1 For TXD1 polarization by device by device 174 35006178 10 2013 Part Ill Software Implementation of Modbus Character Mode and Uni Telway Communications In this Part This part presents the software implementation of Modbus Character Mode and Uni Telway communications with Unity Pro What Is in This Part This part contains the following chapters Chapter Chapter Name Page 7 Installation methodology 177 8 Software Implementation of Modbus Communication 179 9 Software implementation of communication using Character Mode 223 10 Software Implementation of Uni Telway Communication 257 11 Software Implementation of Specific Protocol Communication FCS SCP 309 111 114 cards 12 Language Objects of Modbus Character Mode and Uni Telway 321 Communications 35006178 10 2013 175 Software Implementation 176 35006178 10 2013 Chapter 7 Installation methodology Introduction Installation Phase Overview 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 thi
145. equests 306 How to Test a Channel with Requests 308 35006178 10 2013 301 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 PCMCIA INRACK BOARD N 3 i TSX SCY 21601 HlConfig H Debug Fault Channel Type Local Error Counters Function Master Messages sent and not acknowledged 0 Sentand refused 0 Received and not acknowledged 0 Received and refused 0 Task Reset counters MAST Uni Telway Link r Channel test Identification Request Response 3 Enter request esa Mirror 4 f ASCII Hex Slave a 302 35006178 10 2013 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 a
146. er Uni Telway Mode Terminal port used to connect a programming adjustment X X terminal Terminal port see page 39 TSX SCY 21601 used to host PCMCIA communication cards X X X module and features a built in communication channel TSX SCY 21601 see page 71 TSX SCY 11601 features a built in communication channel X module TSX SCY 11601 see page 71 PCMCIA cards support the different communication protocols X X X TSX SCP 111 112 114 see page 101 Key X Yes No 35006178 10 2013 23 Hardware Installation for Communications 24 35006178 10 2013 Chapter 3 Terminal Port and TSX P ACC 01 Device Subject of this Chapter This chapter introduces the functions of the terminal port and TSX P ACC 01 connection device of Premium and Atrium processors What Is in This Chapter This chapter contains the following sections Section Topic Page 3 1 Introduction to the terminal port 26 3 2 Connections 34 3 3 Appendices 51 3 4 Introduction to TSX P ACC 01 54 3 5 Hardware installation 57 3 6 Example of topologies 64 35006178 10 2013 25 Terminal Port and TSX P ACC 01 Device Section 3 1 Introduction to the terminal port Aim of this Section This Section introduces the communication function from the Terminal port of a PLC What Is in This Section This section contains the following topics Topic Page Introduction to the T
147. er 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 35006178 10 2013 305 Software Implementation Uni Telway Communication How to Test a Channel with Identification and Mirror Requests At a Glance This page indicates the procedure for testing a communication channel by means of Identification and Mirror requests How to Identify a Station 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 the Identification button Result The response appears in the Receive Response window Request Response a 7_30LW a ASCII Hex How to Send the Mirror Request The following procedure is used to send the Mirror request and thus to test the routing of informati
148. er up the module self tests During this stage the warning indicators flash e If there is no Unity Pro application in the PLC the module awaits configuration e Ifthere 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 35006178 10 2013 263 Software Implementation Uni Telway Communication Addresses of a Slave PLC At a Glance A slave PLC can have up to three Uni Telway addresses e a server address Ad0 e a client application address Ad1 e a listening application address Ad2 Address Ad0 A server address called Ad0 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 Address Ad1 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 Address Ad2 A listening application address called Ad2 is supplied optionally by the slave module configuration This enables Unsolicited Data 16 FC requests to be received from another device connected on the Uni Telway bus Usage Constraints Addresses Ad1 and Ad2 are conse
149. erminal Port 27 Communication with a Programming Adjustment Terminal 29 Communicating with a Man Machine Interface Console 30 Uni Telway Master Slave Communication 32 Character String Communication 33 26 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Introduction to the Terminal Port At a Glance The terminal port uses master Uni Telway slave Uni Telway and character string communication methods Premium PLCs 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 page 54 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 NOTE TSX P57 554 TSX P57 5634 and TSX P57 6634 processors do not have an AUX port Using a TSX P ACC 01 insu
150. exchange report EXCH_RPT The table below presents the meaning of the exchange report bits EXCH_RPT YMWr m c 1 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 Standard channel faults CH_FLT The table below shows the meaning of the bits of the status word CH_FLT MWr m c 2 Reading is performed by a READ_STS IODDT_VAR1 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 352 35006178 10 2013 Language Objects of Communications Standard symbol Type Access Meaning Address 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 MWr m c 3 The table below shows the meanings of the PROTOCOL
151. figurations without a modem or intermediary devices Otherwise greater values must be used NOTE The default value depends on the transmission speed NOTE The delay between frames should be the Default value in order to be Modbus compliant In case a Slave is not conform the value can be changed and should be identical for the Master and all Slaves on the Bus 35006178 10 2013 199 Software Implementation of Modbus Communication NOTE A restriction is applied to the delay between frames value for channel 0 of modules TSX SCY 11601 21601 see table below The table below shows the maximum delay between frames values according to transmission speed Speed bit s Max DBF ms 1200 212 2400 106 4800 53 9600 26 19200 13 Data This window looks like this Daa 4 ASCII 7 bits RTU bits The 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 start of the frame is detected by receiving characters or by a silence greater than the delay between characters The end of the frame is detected by CR and
152. for the Two Modules NOTE The built in channel channel 0 on TSX SCY 11601 21601 modules is only compatible with a two wire RS 485 link 35006178 10 2013 73 TSX SCY 11601 21601 Operating Standards General The TSX SCY 11601 21601 modules and PCMCIA communication cards comply with the following international norms and standards 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 PCMCIA 2 01 The link built into the TSX SCY 21601 module complies with communication standards Uni Telway 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 Uni Telway protocols Modbus PCMCIA e X Way 74 35006178 10 2013 TSX SCY 11601 21601 Section 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 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 s
153. ftware implementation Communication using Character Mode Compatibilities Hardware 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 a TSX SCP 112 PCMCIA card associated to 20 mA current loops e a TSX 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 Software 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 228 35006178 10 2013 Software implementation Communication using Character Mode Performance At a Glance 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 display
154. hannel area 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 5 Configuration Used to configure the channel configuration parameters KW area 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 35006178 10 2013 317 Software Implementation Specific Protocol Communication Section 11 3 Debugging a Specific Protocol Communication Debug Screen for the Generic Protocol Function At a Glance This screen divided into several areas is used to display the status and input output MWs and send requests Illustration The figure below shows an example of a debug screen for the Generic Protocol function OPEN RS485 PCMCIA CARD 3 FCS SCP 114 Hl Config ti Debug Fault ChannelO Function Manufacturer Product Debug data Base Variables Reset Decimal M Status words v counters Parameter Symbol Value a AMWO0 1 2 By 4MIWO0 1 3 SAMO 0 1 4 SAMWN0 0 1 5 AMWO0 0 1 6 AMAO 0 1 7 AMAO 0 1 8 WMW00 1 9 5 99 9 99 S9 5 JNS n AWN Channel test Request tra
155. he Answer delay to be elapsed before sending other requests This feature is available on following modules e SCY21601 from firmware version 2 8 ie41 e SCY11601 from firmware version 1 2 ie06 e SCP111 from firmware version 3 2 ir21 e SCP114 from firmware version 3 2 ir21 e SCP1114 from firmware version 3 2 ir21 NOTE The Answer delay of the Master must be at least equal to the longest Answer delay of the Slaves present on the bus Slave Function This window is only accessible by selecting Slave Slave Number ald Slave 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 CAUTION UNEXPECTED BEHAVIOR OF APPLICATION Do not use wrong address parameters For instance e Do not set an address parameter that does not correspond to the targeted equipment e Do not use value higher than 98 in ADDR function field e for the equipment address when using CPU embedded serial port or TSXSCY21601 channel 0 or 1 Failure to follow these instructions can result in injury or equipment damage 35006178 10 2013 197 Software Implementation of Modbus Communication Current Loop Function This window looks like this Current loop PSR Multidrop Point to Point It allows you to select a e Multid
156. he 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 Full Duplex RS 422 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 248 35006178 10 2013 Software implementation Communication using Character Mode Section 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 Functions Three specific communication functions are defined to send and receive data to a communication channel in character mode e PRINT CHAR send a character string see Unity Pro Communication Block Library e INPUT CHAR request character string read see Unity Pro Communication Block Library e OUT IN CHAR send a character string followed by a read request see Unity Pro Communication Block Library NOTE The use of these functions must be consistent with the configuration Example A station at address 20 1 on a Fipway network wants to send then receive
157. i Telway TSX 37 Slave Ad0 6 Ad1 7 TSX 37 20 Slave Ado 8 Transmission 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 e 0 rack e 0 module e 1 channel 1 e 7 transmitting address Ad1 15 or 16 0F identification request MWO 16 FE 00 access to the Master system gate MW1 16 00 00 MW2 16 00 00 MW43 6 transmission of 3 words 6 bytes 35006178 10 2013 287 Software Implementation Uni Telway Communication Reception After the exchange Parameters Description MW4O0 16 11 00 MWA41 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 288 35006178 10 2013 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 5 MP master Uni Telway TSX 57 5 ig We slave Ado 6 Transmission From module TSX SCY 21601 in position 0 of
158. ice connectors as indicated in the diagram below This diagram shows the connections for different pairs of the analyzer cable TSX SCA 64 device 15 pin female SUB D connector Rx 35006178 10 2013 173 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 RXDO0 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 rec
159. ice via connector to bus for RS 485 series link Converter device TSX SCA 72 RS 232C RS 485 converter device 35006178 10 2013 141 Section 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 ferrule placed in direct contact with the PCMCIA card device is used to handle electrical interference carried by the link cable braids 142 35006178 10 2013 Section 5 9 Consumption of PCMCIA Cards Consumption of PCMCIA Cards TSC SCP 111 Table of consumption Voltage Typical Current Maximum Current Power Dissipation 5 volts 140 mA 300 mA 1 5 W max TSC SCP 112 Table of consumption Voltage Typical Current Maximum Current Power Dissipation 5 volts 120 mA 300 mA 1 5 W max TSC SCP 114 Table of consumption Voltage Typical Current Maximum Current Power Dissipation 5 volts 150 mA 300 mA 1 5 W max 35006178 10 2013 143 144 35006178 10 2013 Chapter 6 TSX SCA 64 Connection Device Aim of this Chapter This chapter introduces the functions of the TSX SCA 64 connection device What Is in This Chapter This chapter contains the following sections Section Topic Page 6 1 General Introduct
160. indicated below Illustration OFF Z E i Q 4 a Uni Telway end of line O position e z ei OFF ropaj es Ja HI Ee 4 o oo Z a Sg m a wT 9 O S2 OFF 7 S M Uni Telway slave or character mode 2 al oFF S Uni Telway master Other positions NOTE The operating mode selected only concerns the connection cable leading to the TER connector on the PLC processor 62 35006178 10 2013 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 es 5 4 35 543 le es Jj e 2 30 gt ey VY 7 TER AU 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 OV 7 not connected 8 5V 8 not connected 35006178 10 2013 63 Terminal Port and TSX P ACC 01 Device Section 3 6 Example of topologies Aim of this Section This Section introduces examples of how to use the TSX P ACC 01 device What
161. ining to recognize and avoid the hazards involved 14 35006178 10 2013 About the Book GY 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 This documentation is valid from Unity Pro V8 0 Product Related Information A WARNING UNINTENDED EQUIPMENT OPERATION The application of this product requires expertise in the design and programming of control systems Only persons with such expertise should be allowed to program install alter and apply this product Follow all local and national safety codes and standards Failure to follow these instructions can result in death serious injury or equipment damage 35006178 10 2013 15 16 35006178 10 2013 Part Introduction to Modbus Character Mode and Uni telway Communications 35006178 10 2013 17 Introduction to Modbus Character Mode and Uni Telway 18 35006178 10 2013 Chapter 1 Introduction to Modbus Character Mode and Uni telway Communications Introduction to Communications At a Glance The communication function is used to exchange data between all devices connected on a bus or network This function applies to e specific in rack mounted communication modules e processors via the terminal port or via PCMCIA cards Type of Communication
162. ion 146 6 2 Physical Description 148 6 3 Dimensions and Mounting 150 6 4 Installation 152 6 5 Bus Cable Shield Cabling 153 6 6 Device Configuration and Transmission Pair Polarization 160 6 7 Adapting the Line End 170 35006178 10 2013 145 TSX SCA 64 Section 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 built in channel of the TSX SCY 11601 21601 modules via a TSX CM 6530 cable e 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 146 35006178 10 2013 TSX SCA 64 In 4 Wire Mode In this mode the connectable communication interface is e 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 if the PCMCIA card channel is configured in master mode e JS connector if the PCMCIA card channel is configured in slave mode Illustration This diagram shows the general principal for connecting in 4 wire mode TSX S
163. ity Uni Telway Master with Uni Telway Master with position M Pro configuration default configuration default configuration Switch Uni Telway Slave with default Uni Telway Slave with Unity Character Mode with position S configuration Pro configuration Unity Pro configuration 35006178 10 2013 49 Terminal Port and TSX P ACC 01 Device Illustration Master mode M Slave mode S 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 Master 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 virtual COM driver to use the TSX PCX 3030 cable 50 Terminal Port and TSX P ACC 01 Device Se
164. k architecture A man machine console with its own power supply on a Premium PLC must be connected to the AUX port except on TSX P57 554 5634 6634 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 rT TE XBT Z968 Q G UE LC EL id i cml F a al ii EEDENI coor Magelis MMI console Magelis MMI console 35006178 10 2013 37 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 XBT Z 968
165. l of the TSX SCY 21601 Module in 234 Character Mode How to Access the Parameters of the PCMCIA Cards in Character Mode 236 Character Mode Configuration Screen 238 Accessible Functions in Character Mode 240 Transmission Parameters in Character Mode 241 Message End Parameters in Character Mode 244 Flow Control Parameters in Character Mode 246 Additional Parameters 247 232 35006178 10 2013 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 character mode link through the terminal port How to Access the Link The following table shows the steps to follow in order to access the character mode 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 TerminalPort 42 Channeld Function FCHARACTER MODE LINK JBA Task 35006178 10 2013 233 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 Link The followi
166. lating device makes it possible to duplicate the terminal port in order to use two TER and AUX ports 35006178 10 2013 27 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 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 page 54 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 28 35006178 10 2013 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 station fil PC programming adjustment terminal uc Cn Ca n a
167. lave selects Modbus Slave where the station is slave e Immediate server allows UNI TE requests to be directed to the SERVER see Unity Pro Communication Block Library function and not to the processor s main server NOTE The Immediate server parameter requires the communication function to be programmed in Unity Pro It is valid until the box is checked Type Slave Immediate server Master Function This window is only accessible by selecting Master Master Number of retries F443 Answer delay Fe1100__ X10 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 Default value is 3 e Possible values are between 0 and 15 e Value 0 indicates no retries by the Master 196 35006178 10 2013 Software Implementation of Modbus Communication e the Answer delay 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 are between 10ms and 10s When sending a Broadcast EF following EF requests will be delayed depending on the Answer delay value after a broadcast the Modbus master will wait for t
168. lave 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 SLAV MWr m c 9 Reading can be done via a READ_STS lIODDT_VAR1 E STS 16 31 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 The above principle also applies for slaves 32 to 111 with the corresponding status see page 353 words 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 UTW_TO_CHAR BOOL R W Uni Telway change to character mode modem MWr m c 15 14 CHAR_TO_UT
169. mA TSX SCP 114 Multiprotocol card Uni Telway Modbus Character Mode RS 485 RS 422 compatible isolated TSX FPP 20 Fipway network cards 35006178 10 2013 77 TSX SCY 11601 21601 Section 4 3 Built in Channel Specifications Built in Channel Specifications General The built in channel of TSX SCY 11601 21601 modules includes Specifications RS 485 physical interface twisted double pair medium TSX SCY 11601 includes Modbus protocol TSX SCY 21601 includes Uni Telway Modbus and Character Mode protocols Specifications of the built in link for the following three protocols Uni Telway 21601 Modbus Character Mode 21601 Type Master Slave Master Slave Half duplex Flow 9600 bits sec 9600 bits sec 9600 bits sec Parameters can be Parameters can be set from 1200 to 19200 bits sec Parameters can be set from 1200 to 19200 bits sec 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 Read words bits Send character strings Receive Master Slave Write words bits character strings Slave Slave UNI TE Diagnostics requests 78 35006178 10 2013 TSX SCY 11601 21601 CAUTION UNEXPECTED BEHAVIOR OF APPLICATI
170. n Unity Pro The table below defines the functioning mode of the terminal port according to these two parameters Unity Pro Configuration Signal DTP 0 Signal DTP 1 Uni Telway master Terminal port in Uni Telway slave mode default Terminal port in Uni Telway master mode Slave Uni Telway Terminal port in Uni Telway slave mode Terminal port in Uni Telway master mode default Character mode Terminal port in character mode Terminal port in Uni Telway master mode default 35006178 10 2013 53 Terminal Port and TSX P ACC 01 Device Section 3 4 Introduction to TSX P ACC 01 Subject of this Section This section describes the general characteristics of the TSX P ACC 01 device What Is in This Section This section contains the following topics Topic Page Functionalities 55 External Appearance 56 54 35006178 10 2013 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
171. nd JS SUB D15 Pin Connectors 174 Part Ill Software Implementation of Modbus Character Mode and Uni Telway Communications 175 Chapter 7 Installation methodology 0000eeeeeee 177 Installation Phase Overview 0000 00 eee eee 177 35006178 10 2013 Chapter 8 Software Implementation of Modbus Communication 179 0 1 General cic cust ans Reese kee ee ew eR eA 180 About Modbus 000000 cee eee eee eee 181 Compatibilities ceed eee oe ee eek eee eee ene 182 Compatibility between a Premium PLC and a Series 1000 PLC 183 Performance eses petet 00 acho od 28 a E R ds 185 Operating Mode 1 0 ects 187 8 2 Modbus Communication Configuration 00 188 How to Access the Modbus Parameters of the Built in Channel of the TSX SCY 11601 21601 Modules o nananana 189 How to Access PCMCIA Modbus Card Parameters 191 Modbus Configuration Screen assas aaaeeeaa 193 Accessible Modbus Functions nananana aaau 195 Application linked Modbus Parameters 0000000 196 Transmission Linked Modbus Parameters 000005 199 8 3 Modbus Communication Programming 0 0e eee 202 Available Communication Functions 20 203 Modbus Master Communication Function 0055 204 Modbus Slave Communication Function 0055 206 Using the SEND_REQ Communication Func
172. nd refused Received and not acknowledged 0 Received and refused 0 Reset Counters This window displays the communication module s different error counters The Reset Counters button resets these counters to zero Channel Test Window This window looks like this Channe test Identification Request Response 8 Enter request 42 0D 22 0A43 4358 31 37 5F 33 30 4C 57 Mirror OAS Slave This window is used to test a communication channel by sending a UNI TE request to one of the stations on the bus 304 35006178 10 2013 Software Implementation Uni Telway Communication Requests Available for the Communication Channel Test At a Glance This page describes the different possibilities for testing a communication channel from the debugging screen Test Conditions 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 Available Requests The Channel Test window allows the following requests e Identification Prompts the Identification request to be sent to the designated slave e Ent
173. ndicates 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 Request Transmission Window This window looks like this rm 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 Transmission 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 Escape button or if a message is received 254 35006178 10 2013 Software implementation Communication using Character Mode Message Sent Window This window looks like this Message Sent ua for sending a character string This window is used to enter a message to be sent during a communication test using the Send and Send Receive buttons Message Received Window This window looks like this 5l Message Received i Number of characters received ASCII Hex This window is used to read a received message as a re
174. necting the Shielding to the Local Ground at One End and Isolating it From the Ground at the Other End Principle Only cable 16 shown is connected to the local ground Cable shielding 14 shown is isolated from the ground by a thermo retractable tube not included NOTE In this case ground link 5 shown is not used Illustration This diagram shows the principle for locally grounding the cable 1 Thermo retractable 4 z z isolating tube ERREA EEA Ssesosed 3230s Sree SSSseed 20 158 35006178 10 2013 TSX SCA 64 Connecting several devices together TSX SCA 64 Ble ie ate TSX SCA 64 TSX SCA 64 ENE eR AY 18 20 Shielding isolated thermo retractable tube 35006178 10 2013 159 TSX SCA 64 Section 6 6 Device Configuration and Transmission Pair Polarization Aim of this Section This section contains the different configurations of the TSX SCA 64 device What Is in This Section This section contains the following topics Topic Page 2 Wire Configuration with Data Pair Polarization by a Station 161 2 Wire Configuration with Data Pair Polarization via a 5VDC External Power Supply 163 4 Wire Configuration with Polarization of One Pair by the Master Station and the Other by a 165 Slave Station 4 Wire Configuration with 2 Pair Polarization via 5VDC External Power Supply 168 160 35006178 10 2013
175. neral 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 Uni Telway bus PC slave TSX 107 40 master ry EF h A ci MEET Tair GI fll f ap tnrerereatsiz stelelstais s o TSX PCX1031 S1 ON TSX CSB 015 S2 ON oO ESTER AUK 0 TSX P ACC 01 TSX SCA 62 Premium slave O S 5 A A 9 9 C O z LH NOTE To install TSX SCA 50 and TSX SCA 62 devices consult the TSX DG UTW manual Uni JUE Telway Bus Communication 46 Terminal Port and TSX P ACC 01 Device Character String General Points The terminal port when configured in character mode can be used to connect a device such as a printer display screen or a specialized console table controller for example Example of connection Premium TSX RKY
176. neral Language Objects and IODDTs for Communication Protocols Details of IODDT Implicit Exchange Objects of Type T_COMASTS GEN peiie Ah eae hee a ete a ek dele Aileen ae ee Aen A Details of IODDT Explicit Exchange Objects of Type TCOM STS GEN 28 224 odd oad tee ie Eae aeaa eae Sees Language Objects and IODDTs Associated with Modbus COMMUNICATION roeie Fires eae eee ee ee eee ees Details of the Implicit Exchange Objects of the T_COM_MB Type IODDY 2 s c bapa bb hi ba bd eee Bbw bebe eed dete ee peed Details of the Explicit Exchange Objects of the T_ COM_MB Type IODDT cuni pepieta i eae oes deste ates etek Boe Details Concerning Explicit Exchange Language Objects for a Modbus FUNCHON sce ee oa bebe eae ed Sew pee ec eke Details of Language Objects Associated with Configuration Modbus Mode eraras ea a eta a Sead Meso aR ae a Oden Meenas Language Objects and IODDTs Associated with Character Mode COMMUNICANON oci aca be cede ae he eee en gored eon ES Rees Details of the Implicit Exchange Objects of the T COM_CHAR Type IODDT for PCMCIA Cards 1 2 0 ce eee Details of the Explicit Exchange Objects of the T COM_CHAR Type IODDT for PCMCIA 0 eee Details Concerning Explicit Exchange Language Objects for Communication in Character Mode 0 0 00 eee eee eee Details of Language Objects Associated with Configuration in Character Mode 0 ete Language Objects and IODDTs Associated with Uni Telway COMMUNICATION 2 soph eco Dade ead eae
177. ng modes for PCMCIA Modbus cards built in links in TSX SCY 11601 21601 modules and for the Terminal Port General chart The operating mode is as follows Module stopped Power up Module off Module configured Communication Module at self test function stage Reset Module not configured Self tests OK Configuration Operation e After power up the module self tests During this stage the warning indicators flash e If there is no Unity Pro application in the PLC the module awaits configuration e Ifthere 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 35006178 10 2013 187 Software Implementation of Modbus Communication Section 8 2 Modbus Communication Configuration Subject of this Section This section describes the configuration process used when implementing Modbus communication What Is in This Section This section contains the following topics Topic Page How to Access the Modbus Parameters of the Built in Channel of the TSX SCY 11601 21601 189 Modules How to Access PCMCIA Modbus Card Parameters 191 Modbus Configuration Screen 193 Accessible Modbus Functions 195 Application linked Modbus Parameters 196 Transmission Linked Modbus Parameters 199 188 35
178. ng table shows the steps to follow in order to access the character mode 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 E Tx scy 21601 B Cranmer Function one 234 35006178 10 2013 Software implementation Communication using Character Mode Step Action Select the function CHARACTER MODE LINK Example E 0 2 TSX SCY 21601 PCMCIA INRACK BOARD E TSX SCY 21601 B Channel Function Character mode link Tl Task MAST TA 4 35006178 10 2013 235 Software 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 Link The following table shows the steps to follow in order to access the character mode link Step Action 1 Open the hardware configuration editor 2 Double click on the PCMCIA card slot Result the card type selection window appears Product reference Description E Communication 1 fee FCS SCP 111 OPEN RS232 PCMCIA CARD z FCS SCP
179. nnector Connector supports the signals SUB D 25M W p j Blue white rings White orange rings Orange white rings White green rings Green white rings _ White brown rings Brown white rings White gray rings Gray white rings 35006178 10 2013 117 Section 5 5 Connection of the TSX SCP 112 Card Subject of this Section This section deals with the hardware installation of TSX SCP 112 PCMCIA cards What Is in This Section This section contains the following topics Topic Page Connection of the TSX SCP 112 card 119 Connecting in point to point mode 120 Multidrop Connection 121 Dynamic Performance 122 TSX SCP 112 Connection with April 5000 7000 PLCs 125 118 35006178 10 2013 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 p su Alim White Blue lt gt 43 EMI mip Orange White D o19 REC White Green 1 17 REC Green White 2 _ EMipap White Orange o20 Alim Blue
180. nnel with Identification and Mirror Requests 306 How to Test a Channel with Requests 200 308 Chapter 11 Software Implementation of Specific Protocol Communication FCS SCP 111 114 cards 309 11 1 General Points 0 0 000 eee 310 Presentation 0 0 ccc eee teens 311 Operating Mode 0000 cee eee 312 11 2 Configuration of Specific Protocol Communication 313 How to Access the Parameters of Specific Protocol PCMCIA Cards 314 Configuration Screen for the Generic Protocol Function 316 11 3 Debugging a Specific Protocol Communication 318 Debug Screen for the Generic Protocol Function 318 Chapter 12 Language Objects of Modbus Character Mode and Uni Telway Communications 321 12 1 Language Objects and IODDTs of Modbus Character Mode and Uni Telway Communications 0 000 000 cece eee ence eens 322 Presentation of the Language Objects for Modbus Character Mode and Uni Telway Communications 00 00000 cee eeeee 323 Implicit Exchange Language Objects Associated with the Application Specific Function 0 0 0 0 ccc ccc eee 324 Explicit Exchange Language Objects Associated with the Application Specific Function 22 0 0042 c 2e0 ce caee te cee deca te ceases 325 Management of Exchanges and Reports with Explicit Objects 327 35006178 10 2013 9 12 2 12 3 12 4 12 5 Ge
181. ns Details Concerning Explicit Exchange Language Objects for a Modbus Function At a Glance The following tables present the language objects for communication in master and slave Modbus mode These objects are not integrated in the IODDTs List of Explicit Exchange Objects for Master Mode 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 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 List of Explicit Exchange Objects for Slave Mode 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 35006178 10 2013 339 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 m
182. ns and Mounting 0000 cece eens 150 Dimensions and Mounting 020000 cece eee eee 150 6 4 Installation 2 cincc ce ck oie ee enira Pa a ee ee ee ee wa 152 INStAN ATOM Msc ds caessee nears Maen Hane eee a ema d ae S hayee eee s 152 6 5 Bus Cable Shield Cabling 0000 0000 eee eee 153 Local Grounding the Bus General 2 00000005 154 Connecting the Shield to the Local Ground and to the Two Ends of the Cable Recommended Cable Type 2000 0000 156 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 157 Connecting the Shielding to the Local Ground at One End and Isolating it From the Ground at the OtherEnd 000000 158 6 6 Device Configuration and Transmission Pair Polarization 160 2 Wire Configuration with Data Pair Polarization by a Station 161 2 Wire Configuration with Data Pair Polarization via a 5VDC External Power Supply ooo 0 0 00 c ccc cee cece narua 163 4 Wire Configuration with Polarization of One Pair by the Master Station and the Other by a Slave Station 0008 165 4 Wire Configuration with 2 Pair Polarization via 5VDC External Power SUDDIY seter od su coe aGhehaa dden Bex acai adie s Vaca Dona 168 6 7 Adapting the Line End 2 0000 eee 170 Line End Adaptation 00000 cee eee 171 Signals on the JM a
183. ns of the network 35006178 10 2013 95 TSX SCY 11601 21601 Step Instruction 4 Connect the wire L to 5 V and the wire L to 0 V via the two polarization resistors Rp 470 Q to achieve polarization of the network This polarization continuously circulates a current in the network Polarization 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 Integral characteristics are up to 32 stations maximum range about 1300 m bus topology 15 m branching 2 wire half duplex adapting the line end on end units polarization Rp 470 ohms 96 35006178 10 2013 TSX SCY 11601 21601 Example of Modbus architecture Example MODBUS TSX SCY CM 6030 TSX SCA 50 35006178 10 2013 97 TSX SCY 11601 21601 Character Mode Connection for TSX_SCY_21601 General The TSX SCY CM 6030 cable must be used to connect the TSX SCY 21601 module with an RS 485 standard device Users must 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 connections see page 93 Illustration Two wire TSX SCY CM 6030 Cable RS 485 device 98
184. nsmission pRequest response Destination a address 8 Ts Enter request a ASCII C Hex 318 35006178 10 2013 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 e Debug can be accessed only in online mode Fault 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 Description gives the characteristics of the device e 1 O Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault 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 communication function This heading is frozen e Task Shows the configured MAST task This heading is frozen Viewing and control area It is used to Select and display e st
185. o Stop 299 Event Data Managed by the Master 300 35006178 10 2013 279 Software Implementation Uni Telway Communication Available Communication Functions At a Glance This page describes the available communication functions in Uni Telway mode Available Functions Five specific communication functions are defined to send and receive data to a master or slave Uni Telway device READ VAR see Unity Pro Communication Block Library reading basic language objects words bits double words floating points constant words system bits and words timer monostable drum WRITE VAR see Unity Pro Communication Block Library writing basic language objects words bits double words floating points constant words system bits and words SEND REQ see Unity Pro Communication Block Library exchanging a UNI TE request DATA EXCH see Unity Pro Communication Block Library sending and or receiving text type data 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 280 35006178 10 2013 Software Implementation Uni Telway Communication Writing Command Words At a Glance The instruction WRITE CMD is used for explicit writing in the module
186. o 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 e transmission parameters 272 35006178 10 2013 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 Functions The summary table below shows the various selections possible 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 Current loop 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 35006178 10 2013 273 Software Implementation Uni Telway Communication Application Linked Uni Telway Parameters At a Glance After configuring the communication channel you need to enter the application parameters These are split into four windows e Type Master Slave Current loop PSR Type Parameter This window looks like this It enables you to select the type of Uni T
187. o connect the built in channel of TSX SCY 11601 21601modules What Is in This Section This section contains the following topics Topic Page At a Glance 86 Connection of TSX SCY 21601 to Uni Telway Field Bus 88 Reminder on adapting RS 485 distributed line for the TSX SCY 21601 90 Example of Uni Telway architecture 92 Connection of TSX SCY 11601 21601 Modules to the Modbus Field Bus 93 Reminder on Single Line Polarization in RS 485 95 Example of Modbus architecture 97 Character Mode Connection for TSX_SCY_21601 98 35006178 10 2013 85 TSX SCY 11601 21601 At a Glance TSX SCY 11601 Module General Cabling accessories designed to connect the TSX SCY 11601 module s RS 485 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 TSX SCY CM 6530 Cable RS 485 Built in Channel TSX SCY 11601 86 35006178 10 2013 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 CU 6030 cable or a TSX SCA 62 device by a TSX SCY CU 6530 cable e Connection to the Modbus network via a TSX S
188. ociated with physical layers RS 422 and RS 485 e built in link with a TSX SCY 11601 21601 module associated with the RS485 physical layer Software 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 NOTE Be careful that two masters on the same bus do not send requests simultaneously otherwise the requests are lost and each report will have a bad result which could be 16 0100 request could not be processed or 16 ODFF slave is not present 182 35006178 10 2013 Software Implementation of Modbus Communication Compatibility between a Premium PLC and a Series 1000 PLC At a Glance Using READ _VAR and WRIT series 1000 PLCs These can be words double words floating points or character strings Memory Addressing The address of the object in the series 1000 PLC memory determines the type of object to be accessed E VAR functions enables you to read and write objects contained in This table presents the access addresses for an APRIL 5000 PLC from the series 1000 range with memory extension Variable Type April 5000 with
189. ode These objects are not integrated in the IODDTs and may be displayed by the application program List of Explicit Exchange Objects for Master Mode The table below shows the explicit exchange objects Address Type Access Meaning KWr m c 0 INT R Byte 0 16 06 for Modbus master function KWr m c 1 INT R The byte 0 of this word corresponds to the transmission speed This byte can take several values e Value 2 OxFE corresponds to 300 bits s TSX SCP 111 only e Value 1 OxFF corresponds to 600 bits s TSX SCP 111 only Value 0 0x00 corresponds to 1200 bits s Value 1 0x01 corresponds to 2400 bits s Value 2 0x02 corresponds to 4800 bits s Value 3 0x03 corresponds to 9600 bits s The byte 1 of this word corresponds to the 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 O 2 bits KWr m c 2 INT R This word corresponds to the interframe delay value in ms from 2 ms to 10000 ms KWr m c 3 INT R This word corresponds to the answer delay value in ms from 10 ms to 10000 ms KWr m c 4 INT R Byte 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 This word corresponds to the delay time in hundreds of ms
190. of destination slave AdO or Ad2 35006178 10 2013 291 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 TSX 57 G a master Uni Telway TSX 37 slave Add 6 Ad1 7 Ad2 8 TSX 37 slave p Ad0 9 Adi 10 ALa Ad2 11 292 35006178 10 2013 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 SMW100 11 SMW130 4 MW120 1 Parameters of the request Parameters Description ADDR 0 0 1 7 e 0 rack e 0 module e 1 channel 1 e 7 transmitting address Ad1 16 0037 object write request MW100 16 FE 00 MW101 16 FE 05 MW102 16 00 09 destination slave address AdO 9 MW103 16 07 68 e type of object 07 16 bit integer e segment 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 MW 133 22 length of the data to transmit 11 words MW100 to MW110 therefore 22 bytes
191. of messages received in listening mode 16 08 16 11 Number of invalid characters received 16 08 16 12 Note The slave request response returns the same elements as the UNI TE identification request see the subchapter General Use Requests in the TSX DR NET manual Read event counter 16 0B Read connection event 16 0C Read identification 16 11 35006178 10 2013 207 Software Implementation of Modbus Communication Using the SEND_REQ Communication Function At a Glance The UNI TE Action object request code 16 9F is used to transmit all Modbus functions see Unity Pro Communication Block Library After executing this request the report is always 16 CFO00 To check the exchange it is also necessary to test the content of the first word in the reception table Possible values of the first word e 0 indicates that the exchange has been performed e 1 indicates that the exchange has not been performed The transmission buffer should contain the following information e 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 208 35006178 10 2013 Software Implementation of Mo
192. ommunication Presentation At a Glance The FCS SCP111 114 PCMCIA cards enable third parties to 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 Protocols 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 35006178 10 2013 311 Software Implementation Specific Protocol Communication Operating Mode At a Glance The following graph describes the operating modes of the FCS SCP 111 114 PCMCIA cards General Chart The operating mode is as follows Power up Module stopped Module off i Communication Module at Module configured function Reset Module not configured Self tests OK Configuration Operation e After power up the module self tests During this stage the warning indicators flash e fthere is no Unity Pro application in the PLC the module awaits configuration e Ifthere 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 ou
193. on At a Glance 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 words 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 206 35006178 10 2013 Software Implementation of Modbus Communication Diagnostics and Maintenance The diagnostics and maintenance information which are accessible from a Modbus 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
194. on e For remote bus Fipio for example explicit exchanges are not synchronous with the execution task so the detection is possible by the application Illustration The illustration below shows the different significant bits for managing exchanges Reconfiguration bit 15 Adjustment bit 2 Command bit 1 Y 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 35006178 10 2013 327 Language Objects of Communications Description of Significant Bits Each bit of the words EXCH_ STS SMWr m c 0 and EXCH RPT MWr m c 1 is associated with a type of parameter e Rank 0 bits are associated with the status parameters e The STS IN PROGR bit sMWr m c 0 0 indicates whether a read request for the status words is in progress e The STS ERR bit sMWr 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 sMWr m c 0 1 indicates whether command parameters are being sent to the module channel e The CMD ERR bit SMWr 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
195. on and authorizes the sending of messages e from master to slave e from slave to master e from slave to slave 35006178 10 2013 259 Software Implementation Uni Telway Communication Compatibility Hardware 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 a TSX SCP 111 PCMCIA card associated with the RS232 physical layer e a TSX SCP 112 PCMCIA card associated with 20 mA current loops e a TSX 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 Software The terminal port of Premium processors allows processing e in Uni Telway master mode 4 messages transmitted to the bus e 4 received messages e in Uni Telway slave mode e 4 transactions at server address AdO e 4 transactions at server address Ad1 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 1 transaction at server address Ad1 e 8 receptions at application address Ad2 Fo
196. on between two devices Step Action 1 Select the server address AdO of the slave to be interrogated using the Slave field 2 Click the Mirror button Result The following window appears Length of data to send 3 Enter the length of data to be sent maximum 80 characters 306 35006178 10 2013 Software Implementation Uni Telway Communication Step Action 4 Click the Send button Result The response appears in the Receive Response window Request Response ABCDEFGH ASC Hex The response contains the character string ABCDEFGH that corresponds to the length of data sent 8 35006178 10 2013 307 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 Request The following procedure is used to send a request other than those provided by the command buttons to a designated station Step Action 1 Select the address of the slave to be interrogated using the Slave field 2 Click the Enter Request button Result The following window appears Enter request Request Code Hexadecimal ffa Data Hexadecimal 1243db Transmission Cancel The data sent in this example is coded on 3 bytes
197. onnection to Uni Telway Buses 60 Connecting to Premium and Atrium PLCs 61 Switch Configuration 62 TSX P ACC 01 Connector Pin Configuration 63 35006178 10 2013 57 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 on a DIN rail with a LA9 D09976 mounting plate Illustration C I IC I I I it I I I I iL I I fa Ko a a t SOOO SoCo o SoS Ssos Od f A9 SSS aca JL JL JL JL JL JL I I I I I I I ji JL JL J IL 1 I I I I I I a j I IC I I I it IL I I I I i I L JL JL JL JL JL JL JL JL I IL JL JL JL in JL JL L JL JL JL IL JL I I JL JL I o ee a ee JL JL i a i j ome ee pes o C J C ji I it I I IL IC I JC I L J JL IL IL IL IL IL IL IL IL JL IL JL L If It JL IC JLC SSoSoososososssososs pe Bel AM1 PA o oO h u T t 2x 05 5 f AM1 DE DP h 50 oo le 58 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Internal View Illustration
198. ooks like this Stop 11 ms as on silence 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 35006178 10 2013 245 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 page 226 parameters Flow Control Window This window looks like this low control RISICTS hardware J RTS DCD Hardware XonXof ONone The control flow is selected according to the remote device in use RTS CTS hardware if the device manages this flow control RTS DCD hardware if the device manages this flow control Xon Xoff if the device manages this flow control None if the device does not manage flow control 246 35006178 10 2013 Software implementation Communication using Character Mode Additional Parameters At a Glance When configuring a link in character mode it is necessary to configure the following four parameters e Echo window Beep Management parameter Backspace Management parameter Full Duplex RS 422 parameter Echo This window enables you to sele
199. op 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 Link Module JBU0220 or Active JBU0250 Illustration TSX SCP 112 3 PWR White Blue JBU0220 0250 24V 19 REC White Green 19 EAO ES Y y REC Green White 18 17 k V 15 f Z 2 EMI PAP White Orange 14 10 Y o 20 PWR Blue White E eo Passive master or slave Master or slave active 35006178 10 2013 125 Point to Point Link Active TSX SCP 112 Card Illustration TSX SCP 112 9 PWR White Blue JBU0220 0250 k I I 19 REC White Green 24v 19 Go oH Z 17 _ REC Green White 18 17 gt o 15 v 2 EMIPAP White Orange 14 zZ 10 20 PWR Blue White 16 V Master or slave active Passive master or slave 126 35006178 10 2013 Mixed Terminal Links Illustration TSX SCP 112 9 i z a PWR White Blue af JBU0220 0250 24V m 9 REc wnite Green 19 Ep Yy 17 REC Green White 18 A 7o V 15 2 Z EMI PAP White Orange 14 10 20 Y7 A PWR Blue White 16 o
200. or communication from the Master application program to the Slave system access to the different objects etc The functions READ VAR WRITE_VAR and SEND_REQ can 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 Ad0 for a slave connected to a PCMCIA card in the Master PLC 282 35006178 10 2013 Software Implementation Uni Telway Communication Exchange to Address Ad2 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 In Unitelway master mode the only type of operation authorized is type 2 send 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 35006178 10 2013 283 Software Implementation Uni Telway Communication Slave to Master exchanges At a Glance The Slave station carries out exchanges to the Master station Slave Link Processo
201. 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 Syntax The syntax of the instruction is as follows WRITE CMD IODDT VAR1 where IODDT_VAR71 is type T_ COM_STS_GEN Recommendations for Use 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 14 1 NOTE A single command bit must then be switched from 0 to 1 before transmitting a WRITE CMD Finally aWRITE CMD must be executed to acknowledge the command 35006178 10 2013 281 Software Implementation Uni Telway Communication Master to Slave Exchanges At a Glance The Master station carries out exchanges to the Slave station Link Processor System Processor 1 Applicati on Applicati_ on Exchange to Address Ad0 An exchange from the Master to AdO as seen at point 1 in the diagram above is used f
202. ord Objects in Modbus Master Mode The table below shows the meaning of the bits of the INPUT_SIGNALS word IWr 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 Wr 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 below shows the meaning of the bit of the INPUT_ SIGNALS word IWr m c 0 Standard Symbol Type Access Meaning Address LISTEN_ONLY BOOL R List mode only signal Wr m c 0 8 336 35006178 10 2013 Language Objects of Communications Details of the Explicit Exchange Objects of the T COM_MB Type lIODDT At a Glance This part presents the explicit exchange objects of the T_ COM MB type IODDT which apply to Modbus communication 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 MB 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 Execution Flags of an Explicit Exchange EXCH_STS The
203. ormat bit 8 number of bits 1 8 bits 0 7 bits bit 9 1 parity management e bit 10 parity type 1 odd 0 even bit 11 stop bit 1 1 bit 0 2 bits KWr m c 2 INT R Entered value in ms of stop on silence depends on the transmission speed and format selected Value 0 means no silence detection KWr m c 3 INT R bit 0 1 echo on reception bit 1 1 echo restart on first character 1 bit 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 R bit 0 7 reserved bit8 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 35006178 10 2013 347 Language Objects of Communications Address Type Access Meaning KWr m c 5 INT R This word corresponds to RTS CTS delay time in hundreds of ms from 0 to 100 if RS232 is selected If RS485 is selected the default value is 0 KWr m c 6 INT R 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 R bit 0 1 end character 2 enabled bit 1 1 end character 2 included byte 1 value of the end character in decimal
204. point to point devices error counters can be accessed on the slaves Length 10 meters maximum 10 meters maximum Utilities UNI TE Requests in point to point with Character string 129 octets report of 128 octets maximum maximum Messages must end initiated by any connected device with R carriage return There is nothing broadcast from the master Other functions Transparency of communication with all devices in a network architecture via the master Safety A character check on each frame No error indication acknowledgment and repeat option Monitoring Table of bus state status of No flow monitoring NOTE Using a TSX P ACC 01 see page 54 connection device enables the RS 485 link to be used in remote mode 52 35006178 10 2013 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 1 D 2 D A 3 not connected 4 DE 5 DTP 1 master 6 not connected 7 O volts 8 5 volts NOTE 1 2 3 4 5 6 7 8 D B D A not connected DE DTP 1 master not connected 0 volts not connected 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 i
205. r System System 1 l Ad1 4 Applica g5 Applica tion 2 tion Exchanges to the master station An exchange from the Slave Ad1 to the Master as seen at point 1 in the diagram above is used for communication from the Slave application program to the Master system access to the different objects etc Exchanges to the application An exchange from the Slave Ad1 to the Master as seen at point 2 in the diagram above is used for sending messages from the Slave application program to the Master application program Communication function Usage of the SEND_REQ 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 284 35006178 10 2013 Software Implementation Uni Telway Communication 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 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
206. r communication via a PCMCIA card or built in link the maximum frame size is 210 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 s END R EQ communication function must be used NOTE Premium PLCs cannot send over 1000 bits following a read request 260 35006178 10 2013 Software Implementation Uni Telway Communication Performance At a Glance 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 READ VAR function in ms Times with PCMCIA Cards Number of objects read 1 word Speed in Bits s T Cycle in ms Average Average Average Duration Duration Duration TSX SCP 114 TSX SCP 1114 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 38400 cyclic 28 38400 10 33 38400 50 50 57600 cyclic 25 57600 10 31 57600 50 50 Number of objects read 100 words 35006178 10 2013 261 Software Implementation Uni Telway Communication
207. ram shows the wiring of a master placed at the end of the Modbus network TSX SCY CM 6030 cable i TSX SCA 50 470 Qf 21 Green White oV e 2 P 9 White Green a 4700 a 6 EMI D A Orange White m 4 D 224 EMI D B White Orange 5 lt F o1 White Blue 3 oVL p28 Blue White H ov 150 9 13 Brown White 2 OVL Eney 94 35006178 10 2013 TSX SCY 11601 21601 Reminder on Single Line Polarization in RS 485 General Single line polarization is the polarization used for Modbus type networks General architecture diagram of a RS 485 network _ S A 5V Rx Tx Rp L Re Re L Rp Sy Q EX VYA EX VA Tx A The transmitters are symbolized by 3 Tx B Rx A Rx B The receivers are symbolized by Connection of Network Units 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 2 Link all outputs labeled Tx Rx to the network wire labeled L 3 Adapt the impedance of the network to the average of the two adaptation elements Rc located on the two end statio
208. rd e The speeds 38400 and 57600 bits s are only available using the PCMCIA TSX SCP 1114 card e You are advised to adjust the transmission speed according to the remote device in use Data This window looks like this Data O7 aits 8 dits 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 35006178 10 2013 241 Software implementation Communication using Character Mode Stop Parity This window looks like this stop bit O72 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 Paii SS Oven Odd 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 without Odd by default You are advised to adjust the parity according to the remote device in use RTS CTS Delay This window looks like this RTS CTS delay FSO x 100 mg Carrier DCD Before a character string is transmitted the module activates the RTS Request To Send signal and waits for
209. ription of TSX SCP CU 4030 Cable Illustration The PCMCIA 20 pin mini connector supports the signals TSX SCA 50 device 1 3 J1 472 DRZ L 5V O 16 ov Red F OV Whit ov 6 Ite o8 ell D A White D gt D B Blue Connection via a TSX SCA 62 Device Illustration TSX SCP 114 fod TSX SCP CU 4530 j TSX SCA 62 134 35006178 10 2013 Description of TSX SCP CU 4530 Cable Illustration The PCMCIA 20 pin mini connector supports the signals J1 479 17 5V 16 OV TSX SCA 62 device Red ga gt _ White ov lt Bo Be oV White B Ds amn D By gt lt 9 479 19 0 2E E lt Ea Blue p 15 pin SUB D OVL OVL 35006178 10 2013 135 Connecting to the Modbus Bus General Points 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 Type of Connection 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 TSX SCA 50 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
210. rium PLC Illustration Premium TSX RKY 7 Ko p gt CD Ko fa mE ONE f tl q OU Je Printer Printer 35006178 10 2013 33 Terminal Port and TSX P ACC 01 Device Section 3 2 Connections Aim of this Section This Section deals with the different connections of the Terminal port What Is in This Section This section contains the following topics Topic Page Connections 35 Programming Adjustment Terminal 36 Man Machine Interface Console 37 Programming Adjustment Terminal and Man Machine Interface Console 38 Modem on Terminal Port 39 Master Uni Telway 41 Slave Uni Telway 42 Inter PLC Uni Telway 43 Inter device Uni Telway 45 Master PLC Type TSX Model 40 46 Character String 47 Summary Table of Terminal Port Connections 49 34 35006178 10 2013 Terminal Port and TSX P ACC 01 Device Connections General 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 page 54 isolation device etc The connector marked AUX only on Premium PLCs other than TSX P57 554 5634 6634 only enables devices which have a power supply to be connected e g man machine interface console third party devices etc The terminal
211. rop Current Loop communication e Point to point Current Loop communication 198 35006178 10 2013 Software Implementation of Modbus Communication Transmission Linked Modbus Parameters At a Glance After configuring the communication channel you need to enter the transmission parameters These are split into six windows e Transmission speed window Delay between characters window windows specific to Data and Stop Parity window RTS CTS delay window Transmission Speed This window looks like this Transmission Speed 9 600 bits s 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 Available speeds are 300 600 1200 2400 4800 9600 19200 38400 and 57600 bits s The speeds 300 and 600 bits s are only available using the PCMCIA TSX SCP 111 card The speeds 38400 and 57600 bits s are only available using the PCMCIA TSX SCP 1114 card Delay Between Frames This window looks like this Delay Between frames MiDefaut 2 4 ms This is the minimum time a slave will wait before sending the response to the master even if the response is ready the slave will wait this time before sending the response The Delay Between frames permits a minimum delay between all frames on the Modbus network You are advised to use default values for con
212. s case the installation see page 178 is different The following order of installation phases is recommended but it is possible to change the order of certain phases for example starting with the configuration phase Installation Phases with Processor The following table shows the various phases of installation with the processor control of the project Diagnostic of project and modules Phase Description Mode Declaration of variables Declaration of ODDT type variables for the application specific Offline 1 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 variable editor Offline 1 Generation Project generation analysis and editing of links Offline Transfer Transfer project to PLC Online Adjustment Debugging Project debugging from debug screens animation tables Online Modifying the program and adjustment parameters Documentation Building documentation file and printing miscellaneous information Online 1 relating to the project Operation Diagnostic Displaying miscellaneous information necessary for supervisory Online Key 1 These various phases can also be performed in the other mode 35006178 10 2013 177 Methodology Impl
213. s 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 PZ01 screwdriver 152 35006178 10 2013 TSX SCA 64 Section 6 5 Bus Cable Shield Cabling Aim of this Section This section describes the different local grounding principles for the bus What Is in This Section This section contains the following topics 35006178 10 2013 Topic Page Local Grounding the Bus General 154 Connecting the Shield to the Local Ground and to the Two Ends of the Cable Recommended 156 Cable Type Connecting the Shield to the Local Ground at One End of the Cable and to the Local Ground 157 via a Surge Suppressor at the Other End Connecting the Shielding to the Local Ground at One End
214. see Premium and Atrium using Unity Pro Processors racks and power supply modules Implementation manual PLC installation Manual 35006178 10 2013 81 TSX SCY 11601 21601 Connection Disconnection 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 82 35006178 10 2013 TSX SCY 11601 21601 Section 4 6 Operation Operation TSX SCY 11601 Module 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 TSX SCY 21601 General 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 also 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
215. 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 35006178 10 2013 221 Software Implementation of Modbus Communication 222 35006178 10 2013 Chapter 9 Software implementation of communication using Character Mode Subject of this Chapter This chapter presents the software implementation of communication using Character Mode What Is in This Chapter This chapter contains the following sections Section Topic Page 9 1 General 224 9 2 Character Mode Communication Configuration 232 9 3 Character Mode Communication Programming 249 9 4 Debugging of a Communication Using Character Mode 251 35006178 10 2013 223 Software implementation Communication using Character Mode Section 9 1 General Subject of this Section This section presents the general points relating to communication using character mode and its services What Is in This Section This section contains the following topics Topic Page About Character Mode 225 Flow Control 226 Compatibilities 228 Performance 229 Operating Mode 231 224 35006178 10 2013 Software implementation Communication using Character Mode About Character Mode Introduction Communication via character mode enables dialog and communication functions to be carried out bet
216. sult 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 35006178 10 2013 255 Software implementation Communication using Character Mode How to Test a Communication Channel Introduction This page describes the procedure for testing a communication channel from the debugging screen How to Send a Character String 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 the Send button Result If the exchange is correct a window specifying that the exchange is correct appears On the remote device display check whether the string has been transmitted How to Receive a Character String 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 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
217. t a warm restart The module then restarts its self test procedures 312 35006178 10 2013 Software Implementation Specific Protocol Communication Section 11 2 Configuration of Specific Protocol Communication Subject of this Section This section describes the configuration process used when implementing Specific Protocol communication What Is in This Section This section contains the following topics Topic Page How to Access the Parameters of Specific Protocol PCMCIA Cards 314 Configuration Screen for the Generic Protocol Function 316 35006178 10 2013 313 Software Implementation Specific Protocol Communication How to Access the Parameters of Specific Protocol PCMCIA Cards At a 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 Function The following table shows the procedure for selecting the card and choosing the generic protocol function Step Action 1 Open the hardware configuration editor 2 Double click the PCMCIA card slot processor or TSX SCY 21601 module Result The card type selection window appears Product reference Description E Communication b FCSSCP 111 OPEN RS232 PCMCIA CARD f FCS SCP 114 OPEN RS485 PCMCIA CARD t TSX FPP 20 FIPWAY PCMCIA CARD t TSX FPP 200 FIPWAY PCMCIA C
218. t 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 w 2 is i ts Fe a UE A ye cI O 6 PC TSX PCX 1031 RS 485 232 os D 0 Goo Programming adjustment TSX FTX CBF 020 69 D Programming adjustment TSX RKY 6 X Bus m A U m So Bll Er Atrium E I anbi s Host PC ise 2 x O a x w E Programming adjustment TSX FTX CBF 020 o RS 485 eee eee Programming adjustment RS 485 232 36 35006178 10 2013 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 networ
219. tatus 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 e Modbus 35006178 10 2013 75 TSX SCY 11601 21601 TSX SCY 21601 Module General The TSX SCY 21601 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 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 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 76 35006178 10 2013 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 9 non isolated signals TSX SCP 112 Multiprotocol card Uni Telway Modbus Character Mode current loop BC 20
220. that the power supply takes up 2 slots the processor is placed in slot 1 on the rack 35006178 10 2013 357 Language Objects of Communications Details of the Implicit Exchange Objects of the T_COM_UTW_S Type IODDT for PCMCIA Cards PCMCIA Card Objects The following tables present the implicit exchange objects of the T CoM _UTW_S type lODDT 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 IWr 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 Wr m c 0 2 DSR BOOL R Data ready signal Wr m c 0 3 Address Status Objects The following table presents the meaning of the bits of the STS ADDR word lWr m c 1 Standard Symbol Type Access Meaning Address ADO_FLT EBOOL R 1 no polling of the master on the slave with an Wr m c 1 0 address ADO AD1_FLT EBOOL R 1 no polling of the master on the slave with an Wr m c 1 1 address AD1 AD2_FLT EBOOL R 1 no
221. the module s operating modes save and restore adjustment parameters in the process of application NOTE To avoid several simultaneous explicit exchanges for the same channel it is necessary to test the value of the word EXCH_STS MWr m c 0 of the IODDT associated to the channel before calling any EF addressing this channel NOTE Explicit Exchanges are not supported when Modicon M340 Analog and Digital I O modules are configured behind a M340 Ethernet Remote I O adapter module in a Quantum EIO Ethernet Configuration As a consequence it is not possible to setup a module s parameters from the PLC application during operation 35006178 10 2013 325 Language Objects of Communications General Principle for Using Explicit Instructions The diagram below shows the different types of explicit exchanges that can be made between the application and module application BMX P34 20x0 BMX NOE 01x0l MWr m c objects or MWr m MOD r objects 1 Status parameters w READ_STS Status parameters Command parameters WRITE_CMD Command parameters WRITE_PARAM 5 Current adjustment ule READ_PARAM parameters SAVE PARAM let Current adjustment parameters Initial adjustment RESTORE PARAM parameters 1 Only with READ_STS and WRITE_CMbD instructions Managing Exchanges During an explicit exchange check performance to see that the data is
222. tion 208 Example 1 SEND_REQ Function with Echo Request 209 Example 2 SEND_REQ Function with Word Read Request 210 Example 3 SEND_REQ Function with Bit Read Request 212 Example 4 READ_VAR Function for Reading Bits 214 8 4 Debugging of a Modbus Communication 04 216 Modbus Debugging Screen 000 00 e eee eee 217 Modbus Master Debugging Screen 0c eee eee 219 Debug Screen in Modbus Slave Type 00 cee ee eee 221 Chapter9 Software implementation of communication using Character Mode 0 0c e eee eee 223 9 1 General iieri hednacn aye Bal alia ered wath saw ack Bites OMe a ahd 224 About Character Mode 0 ccc eee eee eee 225 Flow Control 0 cc cc eee eee teens 226 Compatibilities 0 0 00000 eee 228 Pe rmOnmanCe sina penran aaea Reba Sw ard arate Bi este a ethene E 229 Operating Mode 2 2 6 26200 cee ee eee ee dee ee eee ert ered 231 35006178 10 2013 7 9 2 Character Mode Communication Configuration 232 How to Access the Terminal Port Parameters 233 How to Access the Parameters of the Built in Channel of the TSX SCY 21601 Module in Character Mode 0000 cece eee eee 234 How to Access the Parameters of the PCMCIA Cards in Character MOC ee Fe ck ne een eee ee eam eee aes eee ee 236 Character Mode Configuration Screen 005
223. tion of the TSX SCP 111 card Subject of this Section This section deals with the hardware installation of TSX SCP 111 PCMCIA cards What Is in This Section This section contains the following topics Topic Page Point to Point Connection in Character Mode DTE DTE 116 Uni Telway Modbus or Character Mode via Modem 117 35006178 10 2013 115 Point to Point Connection in Character Mode DTE DTE General The TSX SCP 111 RS 232 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 4 i TSX SCP CD 1030 length 3 m s L E or TSX SCP CD 1100 length 10 m Description of TSX SCP CD 1030 Cable Illustration The PCMCIA 20 pin mini connector supports the signals 116 35006178 10 2013 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 Modem TSX SCP CC 1030 length 3 m J2 aeea Description of the TSX SCP CC 1030 cable Illustration The PCMCIA 20 pin mini co
224. tted 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 35006178 10 2013 351 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_ 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 Execution flags of an explicit exchange EXCH_STS The table below shows the meaning of channel exchange control bits from channel EXCH STS Y MWr m c 0 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
225. ubject of this Section This section deals with the hardware installation of TSX SCP 114 PCMCIA cards What Is in This Section This section contains the following topics Topic Page Connection to the Uni Telway Network 133 Connecting to the Modbus Bus 136 Multi protocol asynchronous link connection RS 422 138 Connecting to Modbus Full Duplex in Premium Hot Standby Configuration 140 132 35006178 10 2013 Connection to the Uni Telway Network General 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 continuing operation of electrical signals shielding and end of line adaptation function Type of Connection 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 and a branching type of connection system 35006178 10 2013 133 Desc
226. uct Number of Application specific Channels References Card in the Processor Card in the TSX SCY 21601 Module TSX SCP 111 0 1 TSX SCP 112 1 TSX SCP 114 1 Maximum Number of Application specific Channels per Processor Type Number of application specific channels supported e Premium see Premium and Atrium using Unity Pro Processors racks and power supply modules Implementation manual e Atrium see Premium and Atrium using Unity Pro Processors racks and power supply modules Implementation manual 35006178 10 2013 Mounting Cards and Cables PCMCIA Card Details Illustration 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 that 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
227. us e The value is expressed in milliseconds e The default value is 0 ms e The possible values are Os to 10s e 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 valid only on reception if the DCD signal is detected e If the option is not selected all characters received are taken into account 278 35006178 10 2013 Software Implementation Uni Telway Communication Section 10 3 Uni Telway Communication Programming Subject of this Section This section describes the programming process used when implementing Uni Telway communication What Is in This Section This section contains the following topics Topic Page Available Communication Functions 280 Writing Command Words 281 Master to Slave Exchanges 282 Slave to Master exchanges 284 Example of an Exchange from a Slave to the Master System 287 Example of a Direct Exchange from a Slave to the Master System 289 Slave to Slave Exchanges 290 Example of an Exchange from a Slave to a Slave Server 292 Example of an Exchange from a Slave to a Slave Application 294 Example 2 of an Exchange from a Slave to a Slave System 296 Example of a Direct Exchange from a Slave to a Slave System 298 Example of One Slave Setting Another Slave t
228. vailable are e Debugging accessible only in online mode e Diagnostics 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 gives the characteristics of the device e 1 0 Objects see Unity Pro Operating Modes used to presymbolize the input output objects e Fault 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 used to access the debugging parameters for a Uni Telway link command zone NOTE LEDs and commands not available appear grayed out 35006178 10 2013 303 Software Implementation Uni Telway Communication Uni Telway Debugging Screen At a Glance The specific part is divided into three windows e Type e Counters e Channel test Type Window This window looks like this Type Master It shows the type of Uni Telway function which is configured master or slave Counters Window This window looks like this Local Error Counters Messages sent and not acknowledged LO Sent a
229. ween the PLCs and their environment e common peripherals printers keyboard screen workshop terminal e specialized peripherals bar code readers e link to a checking or production management calculator e data transmission between heterogeneous devices numerical commands variable speed controllers etc e link to an external modem 35006178 10 2013 225 Software implementation Communication using 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 pe Rx2 Scf1 o be Scf2 1 2 3 4 Scf1 I 1 i i i T T T 1 i l gt Scf2 i we i i l i 1 fi Tx1 i l l i 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 use hardware e RTS CTS e RTS DCD e use software Xon Xoff NOTE Software Flow Control is more commonly used In the event that this control is not available the hardwar
230. xchange 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 IWr 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 Wr m c 0 1 CTS BOOL R Ready to send signal Wr m c 0 2 DSR BOOL R Data ready signal Wr m c 0 3 Signal Objects on Output The following table presents the meaning of the bit of the STOP 1 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 35006178 10 2013 343 Language Objects of Communications Details of the Explicit Exchange Objects of the T COM_CHAR Type IODDT for PCMCIA At a Glance This part presents the explicit exchange objects of the IODDT of the T_ COM CHAR type which apply to Character Mode communication with PCMCIA cards It includes the word type objects whose bits have a specific meaning These obje
231. y 265 266 267 269 connecting TSXFPP20 101 TSXSCP111 175 TSXSCP112 118 TSXSCP114 132 TSXSCY11601 93 TSXSCY21601 85 93 98 connection devices terminal ports 49 TSXSCPxx 141 D debugging character mode 257 debugging Modbus 216 debugging specific protocols 318 debugging Uni Telway 307 diagnostics 84 diagnostics for PCMCIA cards 114 F FCSSCP111 309 FCSSCP114 309 flow control character mode 226 INPUT_CHAR 249 Modbus 179 O OUT_IN_CHAR 249 P parameter settings 321 polarization TSXSCY11601 95 TSXSCY21601 95 PRINT_CHAR 249 programming character mode 249 programming Modbus 202 204 206 programming Uni Telway 279 R requests Uni Telway 308 S specific protocols 309 35006178 10 2013 365 Index standards TSXSCP111 74 TSXSCP112 74 TSXSCP114 74 TSXSCY11601 74 TSXSCY21601 74 T T_COM_CHAR 343 344 T_COM_MB 336 337 T_COM_UTW_M 350 352 T_COM_UTW_S 358 359 T_GEN_MOD 363 terminal ports 25 connectors 53 TFTXCBF020 49 TSXCB1020 49 TSXCB1050 49 TSXFPACC12 141 TSXFPACC4 141 TSXFPCG010 141 TSXFPCG030 141 TSXFPP20 141 TSXPACC01 49 54 TSXPCX1031 49 TSXPCX1130 49 TSXPCX3030 49 TSXSCA64 145 TSXSCY11601 77 consumption 99 TSXSCY21601 77 consumption 99 U Uni Telway 257 Uni Telway bus addresses 264 W wiring precautions 142 X XBT Z938 49 366 35006178 10 2013
232. y 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 Stop on Reception This window looks like this r Stop on reception r Character 1 7 Stop CRMILF F110 Characters include aracter Stop CR LFE Characters included Kec A reception request can be terminated once a specific character is received By checking the option Stop it is possible to activate and configure the stop on reception by a message end character e CR enables you to detect the end of the message by a carriage return e LF enables you to detect the end of the message by a line feed e data entry field enables you to identify a message end character decimal value that is different from the CR or LF characters Possible values are e 0 to 255 if data is coded on 8 bits e 0 to 127 if data is coded on 7 bits e Character included Check this box if you want to include the message end character in the reception table of the Unity Pro PLC application It is possible to configure two message reception end characters In the below window the reception end for a message is detected by an LF or CR character 244 35006178 10 2013 Software implementation Communication using Character Mode Stop on Silence This window l
233. yte 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 35006178 10 2013 297 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 from a slave of the same Uni Telway link TSX 57 l l master Uni Telway i slave Add 6 slave Add 8 Transmission From module SCY 21601 in position 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 SMW 0 5 SMW50 4
Download Pdf Manuals
Related Search
Related Contents
トレモロカリンバキット取扱説明書 2015/09/08 AMB-VANIR Website User Manual - Net Radio Controlled Daylight Projection Clock with A435XW-02T-2(PG) Manual do Utilizador Copyright © All rights reserved.
Failed to retrieve file