Home
How To Configure Modbus TCP Slave with Unity Pro L
Contents
1. E Test F 88 Data Editor F Table LD I Modbus F Analyzing Test FAST 0 error s 0 warning s Generating Linking Process succeeded 0 Error s 0 Warning s 414 gt DI Rebuild All Project Importexport Search Replace OFFLINE mcPIP 10 10 12 233 BUILT Figure 18 The animation table To be able to monitor the variables the program needs to be transferred to the PLC Firstly the project needs to be compiled and saved Press the rebuild all button and then save the project After that open the PLC menu and select Transfer project to the PLC Press the transfer button Transfer Project to PLC FC Project Ovenwritten PLC Project Mama Station Mama MLSKBRRT Version 0 0 2 Varsinn 0 0 5 Last Build 6 12 2007 1 25 26 Ph Last Build ier eel 1 39 56 Ph PLC Run after Transfer Cancel Figure 19 Downloading the program Saved 2008 03 05 HMS Industrial Networks AB Page 15 25 Filename Application Note ModbusTCP doc 4A 44 Application Note ModbusTCP doc SCM 7032 025 Rev 1 03 5 Anybus configuration 5 1 IP settings Make sure each node on the network has a unique IP address The IP settings of the Anybus Modbus TCP modules can be configured in various ways It is recommended to use the Anybus IPconfig tool for configuring the IP settings The Anybus IPconfig tool can be used to configure the IP settings of all Anybus Mo
2. Example of Serial Network Ethernet Figure 1 Hardware connection overview Saved 2008 03 05 HMS Industrial Networks AB Page 5 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AMS i SCM 7032 025 Rev 1 03 4 Modbus TCP configuration To configure the PLC and the Modbus network the tool Unity Pro L is used Firstly the PLC needs to be configured and secondly the Modbus network Start the program and follow the steps below 4 1 The PLC configuration Start the Unity Pro L program and open the file menu and select new In the window seen below select the relevant PLC from the list in this case the TSX P571634 model New Project cl Premium Premium TSX P57 0244M 57 0 128Kb Program CANopen TSXP5 104M 57 1 224Kb Program Unitelway TSXP57 154M 57 1 224Kb Program Fipio Unitelwa Uds TARDE 2 00 57 1 224Kb Program Ethemet TCP IP Unitelway TSX P5 204M 57 2 768Kb Program Unitelway TSX P5 254M 57 2 b8Kb Program Fipio Unitelway oo TSX P5 2634M 57 2 766Kb Program Ethernet TCP IP Unitelway TSX P5 304M 57 3 1 75Mb Program Unitelway TSX P57 354M 57 3 1 75Mb Program Fipio Unitelway TSXP57 3634M 57 3 1 75Mb Program Ethernet TCP IP Unitelway TSXP5 454M 57 4 2Mb Program Fipio USB Unitelway TSX P5 4634M 57 4 2Mb Program Ethemet TCP IP USB Unitelway TSX P5 CA 0244M 57 0 128Kb Program Config 110 220 VAC TSXP5
3. amp Events CI Timer E vents From a server lO Events Animation Tables Ethernet configuration BOOTP Operator Screens p fe Ethernet Il 802 3 Figure8 The IP configuration Enable the I O scanning tab by selecting YES in the module utilities The I O scanning function uses the Modbus function 0x17 234 4 Read Write Multiple Registers to access the data from the nodes Using this function the user can configure data and transfer it between network nodes without specific programming To be able to scan both Input and Output data the Anybus module needs to be configured for Anybus mode The registers and coils can also be accessed in other ways by commands In each case the mapping is depending on what mode is selected For a more detailed description see the note below Note Anybus mode When the Anybus product is configured for Anybus mode both the Input and Output data can be accessed by the I O scanning function In Anybus mode it is also possible to access coils with the same memory location as of a register In other words it is possible to access individual bits of a register See the table below showing the Modbus addresses in Modbus and Anybus mode For a more detailed description see the Appendix Modbus addresses Modbus mode If the Modbus mode is used only the Output data can be accessed by the I O scanning function Anybus mode Register Register type Modbus mode Register Register type 1 1024 Inpu Hol ing
4. Address Address Test Connection 127 0 0 1 Media Cancel Communication Parameters Communication Parameters Help Figure 5 Configuring the IP settings of the PLC Enter the desired IP address and select TCPIP and press OK The IP address for the PLC is now configured Saved 2008 03 05 HMS Industrial Networks AB Page 7 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AMS i SCM 7032 025 Rev 1 03 4 2 The Modbus TCP network configuration The next step is to configure the Ethernet module Right click on Networks in the navigation list to the left and select add network Unity Pro L PLC Test FAST E File Edit View Services Tools Build PLC Debug Winc as M e o G e S 3E VE PESE OOO 4 9 Project Browser Ta Structural view Cy Station 2 Configuration XM 0 XBus 1 Derived Data Types g Derived FB Types 2 03 Variables amp FB instances 9 Elementary Variables e Derived Variables BM IO Derived Variables Elementary FB Instances 1E Derived FB Instances J Communication p New Network Wm Roti Program Add User Directory J E Task i a S Add Hyperlink a f zoom in 3 E m Out f Expand all oo 33 1 Collapse all ffs tO Events E Animation Tables ar Table LD Editor Test MAST 3 Operator Screens Documentation Figure 6 Addin
5. Note for the Anybus S Slave and Communicator DIP switches 1 8 set the last part of the IP address 192 168 0 xxx The switches will be found next to the indication LEDs on the Communicator and the Slave Interface The modules can also be configured by mailbox commands or by the ethcfg cfg configuration file Note for the X gateway The X gateway can be configured by the DIP switches as described above or by the ethcfg cfg configuration file Note for the Anybus PCI card The module can be configured by mailbox commands or by the ethcfg cfg configuration file Note for the Anybus IC For the Anybus IC for Modbus TCP the configuration is depending on the application The IP address is set by the IP configuration parameters if the NA bit is 1 or if mounted by switches if the NA bit is 0 The IP address can also be configured by the network via EtherNet IP via the TCP IP Interface Object Note for the Anybus CompactCom The Anybus CompactCom can be configured by the network configuration object For further instructions see the respective manual or appendix 5 2 I O configuration The Anybus product has to be configured for the same I O sizes as set up in the Modbus scanner configuration The configuration procedure is depending on the type of module See the notes below Note The I O sizes are depending on the application the configured I O sizes in this chapter are just examples Note for the Anybus S Slave Interface and the
6. 1 1024 1025 2048 Input Holding 1 1024 Holding Anybus mode Coil Coil type Modbus mode Coil Coil type 1 16384 Input Output 1 16384 16385 32768 Input Output 1 16384 Figure 9 Table showing the Modbus addresses used in Anybus and Modbus mode Note for the Anybus Communicator In the Communicator the registers 257 to 1024 are reserved For a more detailed description see the Communicator User Manual Saved 2008 03 05 HMS Industrial Networks AB Page 9 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AmS i VM SCM 7032 025 Rev 1 03 Note for the Anybus CompactCom Also note the Anybus and Modbus mode is not supported by the Anybus CompactCom The module has a complete different I O configuration and the maximum data exchange is 256 bytes in each direction refer to the CompactCom Software Design Guide Then open the I O scanning tile as shown below Unity Pro L PLC Modbus m File Edit View Services Tools Build PLC Debug Window Help amp wus 9 e o vz amp j m x e ma B smmqj w z iojms aemi tM Ameja Project Browser m Model Family m Module ress Module Utilities Ta st Model Famil Module Add Module Utiliti ructural view Back Modul Ch amp s TEPIP TOO F zm Se IND ves IO Scanning tation LEIP IWAUU Regular connection Y 0 1 0 H E Configuration NO M Global Data a E n Module IP Address NO X
7. Test MAST 3j Operator Screens Documentation Const4IN2 e ete ls slo le fola a olny 8 zi D en Gil F BB Data Editor Table LD Modbus E30 1 TSX Figure 14 Adding the ADD function Click on the Function Input Assistant button and then on the browse button to the right in the row called FFB type W Function Input Assistant FFB type Instance Prototype Entry field Browse button Add Pin Remove Fins Help On Type Special Assistant Cancel Help Figure 15 Browsing the Function library Double click on the Libset as seen below to expand the library Select the ADD INT function and press OK Then click with the mouse on the working space to the right Saved 2008 03 05 HMS Industrial Networks AB Page 13 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AHMIS i Vd SCM 7032 025 Rev 1 03 Function Input Assistant FFB Type Selection jelp On Tyg Function and Function Black types T Name f M EF vw EFB fv DFB a Type Comment E lt Libset gt Absolute value com H 0 Base Lib EF Absolute value com H O Communication Absolute value com 3 CONT CTL WE ABS REAL Absolute value com H Custom Lib H ABS UDI EF Absolute value com H E Diagnostics HM ABS LINT lt EF gt Absolute value com H E I O Management HE ACOS EF Arc cosine result be H E Motion HME ACOS RE lt EF gt Arc cosine
8. di Alli Application Note ModbusTCP doc SCM 7032 025 Rev 1 03 Process succeeded 0 Error s 0 Warning s Figure 11 Configuring the PLC Ethernet module Saved 2008 03 05 Filename Application Note ModbusTCP doc HMS Industrial Networks AB Page 11 25 44 Application Note ModbusTCP doc AMS i SCM 7032 025 Rev 1 03 4 3 The PLC program To test the communication between the slave and the master PLC a simple PLC program 1s used The first step is to define the variables Open the elementary variables and add the variables as seen below Unity Pro L PLC Data Editor L ex w Ele Edit View Services Tools Build PLC Debug Window Help 8 X a E mk eloojz eajm x Semet msmguojmsmasm ex Project Browser Variables DDT Types Function Blocks DFB Types Filter Name f v EDT DDT IODDT Ta Structural view C3 Station Configuration D X Bus fff 0 TSX RKY BEX P TSX PSY 2600M x 0 TSX P57 1634M B X TSX ETY PORT M 2 TSX DEY 16D2 B 3 TSXDSY 16T2 d 4 f Derived Data Types 3 Derived FB Types 2 Variables amp FB instances 4 Elementary Variables 9 Derived Variables RM 10 Derived Variables 3 Elementary FB Instances 3 Derived FB Instances C3 Communication Figure 12 Defining the variables The second step is to put together a PLC program The program is depending on the application in this case a test program is used Insert
9. result be H Obsolete Lib 3 O OS d ea Figure 16 Inserting the ADD function The start condition is controlled by the Boolean named Start To insert the start condition mark the EN connector and click on the normally open contact button the button is found in the top left corner See the window below The next step is to connect the defined variables to the ADD function Double click on the respective connector and select the variables as seen in the picture below The Out variable is connected to the INI connector and the constant to the IN2 connector The Out variable is also connected to the OUT connector Unity Pro L PLC Test FAST EX tel File Edit View Services Tools Build PLC Debug Window Help c x Jasus e leo 4 PS Gls eu SHB emo vTofm amp aam x REMAN OO SR OOM OO Lu ERE mo KA b RS s Project Browser Ta Structural view C3 Station 3 6 Configuration E D x Bus 3j Derived Data Types t Derived FB Types CC Variables amp FB instances Elementary Variables 3 4 EM Derived Variables B IO Derived Variables 3 Elementary FB Instances 3 Derived FB Instances Communication E B Networks Hl Modbus mp Routing Table Program 4 D Tasks Eg MAST 3j Sections np SR Sections J E FAST J Sections A Test Test2 p SR Sections E Events Timer Events p MO Events CC Animation Tables Qut4IN1 OUTFOut Const4IN2 ar Table LD Edito
10. CD 244M 57 0 128Kb Program Config 24 VDC TSXPCI5 204M 57 2 for PC 768Kb Program Unitelway i TSX PCI5 354M 57 3 for PC 1 75Mb Program Fipio Unitelway H Quantum Quantum Figure2 Configuring the type of PLC Press OK and the PLC with predefined modules is configured Double click on the X bus in the navigation list to the left and the window seen below will appear in a new window Unity Pro L No name File Edit View Services Tools Build PLN jaca ejeooj vz eajm x ess eAB szsmejvzo t Amala Project Browser Debug Window Help mass eR D Configuration EAR 0 X Bus fff 0 TSX AKY e Q Derived Data Types D y Derived FB Types Variables amp FB inst Elementary Variab Derived Variables t B IO Derived Variabl TM 8 Elementary FB Ins nir 8 Derived FB Instar H CMammunicatian lil a Hardware catalog Premium local drop Analog El Figure 3 Configuring the PLC modules Double click on the modules 2 3 etcetera for configuring additional modules In this case two discrete I O modules are used one for input and one for output data After double clicking on one of the extra modules the list seen below will be shown Saved 2008 03 05 HMS Industrial Networks AB Page 6 25 Filename Application Note
11. Derived Data Types t Derived FB Types Variables amp FB instances Elementary Variables 9 Derived Variables B lODerived Variables d Elementary FB Instances m temi Figure 28 Modifying the variables The constant used is set to five in other words the variable OUT is increased by five for each program scan cycle To start the program set the value of the Boolean Start to one The In variable will then obtain a new value as seen above To see the data being transmitted on the Modbus network the tool Modscan32 is used Open the connection menu and select connect as seen below Connection Details Connect Using Remote TCP IP Server IP Address 110 10 12 140 Service Port 502 po ontiguration Baud Rate utfar DSR fram slave Word Length B Delay iG me after ele z efore ismitting first character Parity MUS 7 Wwaittor CTS fram E Je Delay i ms ater last character Stop Bits S Arm Before releasing ATS Protocol Selections Figure 29 Configuring the connection Select Remote TCP IP Server and enter the IP address for the slave in this case 10 10 12 140 After pressing OK select 03 Holding Register and enter 401 in the address field as seen below Saved 2008 03 05 HMS Industrial Networks AB Page 22 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AmS P JA SCM 7032 025 Rev 1 03 Device Id
12. a new task of the FAST type and add a new section to the section folder This is done by right clicking the Tasks folder under the Program folder and select add new task Then right click on sections to add the program General Localization Condition Comment Mame fte st Language Protection LO None w Figure 13 Adding a new program The program is built in the ladder language and named test in this case An ADD function ADD INT is used in this case The easiest way to insert the function is to use the Function Input Assistant Saved 2008 03 05 HMS Industrial Networks AB Page 12 25 Filename Application Note ModbusTCP doc 7 Application Note ModbusTCP doc AMS P JA SCM 7032 025 Rev 1 03 Unity Pro L PLC Test FAST x EN File Edit View Services Tools Buld PLC Debug Window Help X 89a e o vc B esamARB zsmovcolme amp em tw RAN OOS 4 09 49 4 0 tr gr Ju eK j e d ov Project Browser CESTIT 0 MERE Jo 0 XBus unction Input Asisstent _ 3 Derived Data Types 3 Derived FB Types Cy Variables amp FB instances Elementary Variables 9 Derived Variables B IO Derived Variables 3 amp Elementary FB Instances Derived FB Instances Cy Communication C Networks f Routing Table 3 Program E Out4IN1 OUTrFOut B SR Sections Ce Events 3 Timer Events IO Events Cg Animation Tables at Table LD Editor
13. 1 Address iD Number of Polls 20653 HEX MODBUS Point Type Valid Slave Responses 18212 4 M T EE Length 03 HOLDING REGISTER Reseticirs Figure 30 Scanning the Holding register The Register 401 Hex is 1025 in decimal format in other words the register corresponds to the one written by the PLC The value seen is the same as of variable Out Note In ModScan32 the starting address is 1 and not 0 as in the PLC In the same way the variable In can be monitored by scanning the register numbered 1 Change the Modbus Point Type to 04 Input Register and enter 1 in the address field as seen below x 28x Device Id I Address oor Number of Polls 30694 HEX MODBUS Point Type Valid Slave Responses 28233 Length H 04 INPUT REGISTER d n eset C TFS Figure 31 Scanning the Input register Saved 2008 03 05 HMS Industrial Networks AB Page 23 25 Filename Application Note ModbusTCP doc 4A 41 Application Note ModbusTCP doc SCM 7032 025 Rev 1 03 Appendix Modbus TCP addresses The two tables below describe the Modbus TCP addresses when using respectively Modbus mode and Anybus mode HMS mode is analogue to Anybus mode as mentioned in the table below The tables shows the Register and Coil addresses register type but also the offset address in the area and the DPRAM address in the Anybus module Modbus TCP addresses when HMS mode is used Description Offset address DP
14. 2 025 Rev 1 03 USB HyperTerminal Ele Edit View Call Transfer Help Ethernet IP MBTCP WEB Slave Upper Input I 0 data Size bytes 8 Output I 0 data Size bytes 8 Offline option Clear Control word Status word Disabled Modbus Address Mode Disabled ModBus Plus Slave Lower Input Global data size bytes 8 Output Global data size bytes 8 Input Parameter data size bytes f Output Parameter data size bytes Offline option Clear Control word Status word Enabled Press ESC to continue Figure 27 The X gateway configuration Saved 2008 03 05 HMS Industrial Networks AB Page 21 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AMS i VM SCM 7032 025 Rev 1 03 6 Testing After the configuration the testing of the network can be done Open the PLC menu again and select the command connect Then press the run button in the top navigation list In the animation window the variables can now be monitored Open the animation table and press the modification button and modify the variables Unity Pro L PLC Table LD Editor Test MAST File Edit View Services Tools Build PLC Debug Window Help 8 x JE 2E B b Blea 45 AS IE nhia amp eB E me STOP G m s asm 2 h EE 470 IPL aN 4 Loy d Py th Ay y M pCO gt JL lt gt Sk o Project Browser Ta Structural view C3 Station 2C Configuration Ap 0 XBus t
15. Address Server E ae IP Address Santana uua E parena Address l os 0 TSX P57 1534M 1 TSX ETY PORT 2 TSX DEY 16D2 lf 3 TSXDSY t6T2 4 f Derived Data Types g Derived FB Types C Variables amp FB instances 9 Elementary Variables E Derived Variables B IO Derived Variables 12 Elementary FB Instances m Master ZMW zones Read Ref m Write Ref From o From 1o ES to Device Control Block fr m Scanned peripherals Last value WR WR WR De length Input ped Deis length S Derived FB Instances Hold last Z Mw 1024 1 C3 Communication C Networks Hl Modbus Lm Routing Table Program LE Tasks J E MAST Hp Sections p SR Sections J E FAST J Sections Test p SR Sections CR Events Hp Timer Events HO Events C63 Animation Tables er Table LD Editor Test MAST 9 Operator Screens Documentation Le Le Ie lel I le ln I ln Le QJ XBus Test F B Data Editor f Table LD Y Modbus m Process succeeded 0 Error s 0 Warning s l UATE TE Build Project A Imporiexport Search Replace EQUAL STOP UPLOAD INFO INVALID TCPIP 10 10 12 233 BUILT is start ModSca i Modbus f Applicat 4 Unity Pr Adobe EJ Inbox Read p Sv o EST MESS Ch Del EO Figure 10 Configuring the I O scanning In this case the PLC is reading the Slave i
16. Anybus PCI card The Anybus Slave Interface and the Anybus PCI card are configured by mailbox commands Refer to the respective Fieldbus Appendix for details Note for the Anybus CompactCom and the Anybus IC The Anybus CompactCom and the Anybus IC are configured by messages send by the application Refer to the respective Design Appendix for details Note for the Anybus Communicator and the Anybus X gateway The configuration of the Anybus Communicator and the Anybus X gateway is described in separate sections below Saved 2008 03 05 HMS Industrial Networks AB Page 17 25 Filename Application Note ModbusTCP doc 4 ae Application Note ModbusTCP doc AMIS id 41 SCM 7032 025 Rev 1 03 5 3 Communicator configuration To configure the Communicator start the ABC Config Tool and start a new project Select the field bus Modbus TCP and the desired I O data size 3 ABC Config Tool WMax1 users ThP Application_notes Modbus Modbus cfg File Fieldbus Tools View Help D a ed Ss X Ea X Ze S KS de M II CU Y x ABC Generic Data Mode Modbus T CP Configuration OX s c Fieldbus numm Categorized b af ABC Sub Netwark El Address mode ee New Node Modbus address made Disabled B ph Consume 1 H Ethernet TCP IP configuration DM Data TCP IP Settings Disabled p Produce 1 El Fieldbus Fieldbus Type Modbus TCP H IO Sizes IO Size In Dx IC Size Qut Dx 8 lO Sizes User defined Figure 22 Configuring the Field bus In
17. Communicator User Manual Anybus Communicator for Ethernet 2 01 User Manual Slave Field bus Appendix Anybus S Ethernet Field bus 1 42 Appendix IC Field bus Appendix Anybus IC Ethernet IP Field bus 1 52 Appendix PCI Interface Design Guide Anybus S Slave amp Master Parallel 2 0 Interface Design Guide CompactCom Network Interface Appendix CompactCom Modbus TCP Network 2 02 Interface Appendix Power supply 24VDC Configuration cables Saved 2008 03 05 HMS Industrial Networks AB Page 4 25 Filename Application Note ModbusTCP doc Null modem cable Supplied with the Anybus X gateway MA Application Note ModbusTCP doc AMIS id 44 SCM 7032 025 Rev 1 03 3 Solution overview This application note describes how to configure an Anybus Modbus TCP Slave product with a Schneider PLC Below you can find an overview of the system described in this document Other nodes may be attached to the network but are not necessary Note This document is valid for all Anybus Modbus TCP products however sections written in italics describe the configuration of a specific product The contents describe step by step how a configuration is done This document assumes the reader is familiar with industrial communication Modbus TCP networks and HMS Communicator and X gateway Le PLC Master Modbus TCP Modbus TCP Modbus Slave Modbus TCP Slave Anybus Communicator Anybus X gateway Other network i e Ethernet
18. Made Bitrate hits s 14200 eee Consume 1 Data hits B n E Data Parity None ji Produce 1 Physical standard RS232 stop bits I FH EndCharacter End character value Ox00 Lise End character Disabled EH StartCharacter Start character value Ox00 Lise Start character Disabled EH Timing Message delimiter 1 0us 1000 Figure 24 Configuring the sub network Right click on new node and add a consume and a produce transaction as shown above Change the Offline timeout time to 200 ms and leave the settings for the produce transaction at the defaults Right click on the produce and consume transaction respectively and select add data In this case 8 bytes of data is used Note The update time for the produce transaction is to be set to less than the offline timeout time for the consume transaction in this case the update time is set to 100 ms For a more detailed description see the Communicator user manual Saved 2008 03 05 HMS Industrial Networks AB Page 19 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc ASG BE VM SCM 7032 025 Rev 1 03 5 4 X gateway configuration Use the HyperTerminal on a PC and configure the X gateway Connect a serial cable between the PC and the config port on the X gateway Open the File menu and click on new choose the desired COM port and then click on OK The following window will appear p test HyperTerminal COM1 Properties Port Settings Bits p
19. ModbusTCP doc 44 i i New Device Address TSX DEY 32D3K 321 48 VDC SINK CONN TSX DEY 64D2K 64l 24 VDC SINK CONN TSXDMY 28FK 16124 VDC 120 24 VDC TSXDMY 28RFK 16124 VDC 12Q REFLEX TSXDsSY 06R4D 8G VDC RELAY TR BLK TSXDSY 08R5 8G 50 VA RELAY TR BLK TSXDSY 8R5A TSXDSY 0855 8G 100 VA RELAY TR BLK 8G TRIAC 48 240 VAC 2A TSXDSY 08T 2 Tsx Dsy 08122 TSXDSY 08T31 TSX DSY 16R5 TSX DSY 1684 TSX DSY 1655 8G 24 VDC 0 5A SRC TR BLK 8G 24 VDC 2A SRC TR BLK 8G 48 VDC 1A SRC TR BLK 160 50 VA RELAY TER BLK 16Q TRIAC 24 130 VAC1 A 16Q TRIAC 48 240 VAC 1 A Application Note ModbusTCP doc SCM 7032 025 Rev 1 03 16Q 24 VDC 0 5A SRC T BLK TSXDSY 16T3 160 48 VDC 0 254 TER BLK TSX DSY 32T2K 320 24 VDC 0 1A CONN TSX DSY B4T2K 640 24 VDC 0 1A CONN TSX PAY 262 EMERG STOP 12120 24 VDC Figure 4 Configuring the I O modules Select the desired module and click OK In this case the I O modules TSX DEY16D2 AND TSX DSY16T2 are added to the configuration To configure additional modules repeat the previous steps To configure the IP settings of the PLC open the PLC menu and select Set Address The IP address 1s the address to which the configuration is to be downloaded to if using TCP IP for the project transfer The following window will be visible Set Address Y PLC simulatar Bandwidth
20. RAM Address Input register Holding register Input coil Output coil inside the area if used MSB to LSB MSB to LSB 0x000 1 high byte 1 high byte 1to8 1to8 IN area data 1 0x001 1 low byte 1 low byte 9 to 16 9 to 16 available to ae aa pes pii m the DPRAM 510 Ox1FE 256 high byte 256 high byte 4081 to 4088 4081 to 4088 511 Ox1FF 256 low byte 256 low byte 4089 to 4096 4089 to 4096 512 257 high byte 257 high byte 4097 to 4104 4097 to 4104 513 257 low byte 257 low byte 4105 to 4112 4105 to 4112 IN area data available via mailbox messages i e extended memory 2046 1024 high byte 1024 high byte 16369 to 16376 16369 to 16376 2047 1024 low byte 1024 low byte 16377 to 16384 16377 to 16384 0 0x200 1025 high byte 1025 high byte 16385 to 16392 16385 to 16392 OUT area data 1 0x201 1025 low byte 1025 low byte 16393 to 16400 16393 to 16400 available to e as the DPRAM 510 Ox3FE 1280 high byte 1280 high byte 20456 to 20472 20456 to 20472 511 Ox3FF 1280 low byte 1280 low byte 20473 to 20480 20473 to 20480 512 1281 high byte 1281 high byte 20481 to 20488 20481 to 20488 513 1281 low byte 1281 low byte 20489 to 20496 20489 to 20496 OUT area data available via B mailbox messages i e extended memory 2046 2048 high byte 2048 high byte 32753 to 32760 32753 to 32760 2047 2048 low byte 2048 low byte 327611032768 32761 to 32768 Saved 2008 03 05 Filen
21. ame Application Note ModbusTCP doc HMS Industrial Networks AB Page 24 25 4A 41 Description Cyclic acyclic data in the IN area Note Input coils will only be available if requested with the MB SET COIL AREA _ SIZE mailbox command If not defined the first Input register will be mapped to the beginning of the IN area Cyclic acyclic data in the OUT area Note Output coils will only be available if requested with the MB SET COIL AREA SIZE mailbox command If not defined the first Holding register will be mapped to the beginning of the OUT area Saved 2008 03 05 Filename Application Note ModbusTCP doc Offset address inside the area QN osa x 3 x 2 x 1 WH Oo y1 Application Note ModbusTCP doc Modbus TCP addresses when Modbus mode is used Input register Holding register 1 high byte 1 low byte 2 high byte 2 low byte x 2 high byte E x 2 low byte x 1y2 high byte x 1 2 low byte 1 high byte 1 low byte 2 high byte 2 low byte x 2 high byte E x 2 low byte x 1 2 high byte x 1 2 low byte HMS Industrial Networks AB Input coil MSB to LSB 1to8 9 to 16 B y 1 to B y 1 8 8y to By 8 Output coi SCM 7032 025 Rev 1 03 MSB to LSB 1to8 9 to 16 B y 1 to 8 y 1 By to By 8 8 Page 25 25
22. dbus TCP modules The program can be downloaded at HMS website Start the program and the main window will be opened Anybus IPconfig Po SN Gw HCP Vers Type mac 10 10 12 120 10 10 12 140 10 10 12 201 10 10 12 231 10 10 12 232 132 158 0 1 255 255 255 299 259 255 255 255 255 255 255 255 255 255 255 255 255 255 10 10 12 254 10 10 12 254 0 0 0 0 10 10 12 1 10 10 12 254 0 0 0 0 Anybus X ABS EIP Anybus X 0x0083 ABS EIP ABC PRT 00 30 11 FA O0 00 30 11 02 1D 00 30 11 FB 00 00 30 11 02 00 00 30 11 02 2F 00 30 11 02 5C Figure 20 The Anybus IPconfig tool The program scans the network for Anybus Ethernet modules By double clicking on the desired module the IP settings can be entered The settings can be configured manually or the DHCP function can be used DHCP is activated by default 2 Configure 00 30 11 FA 00 04 m Ethernet configuration IP address 10 Subnet mask 255 Default gateway Primary DNS Secondary DNS Hostname Password New password Figure 21 Configuring the IP settings www anybus com Saved 2008 03 05 HMS Industrial Networks AB Page 16 25 Filename Application Note ModbusTCP doc MA RPN Application Note ModbusTCP doc AHMIS id 44 SCM 7032 025 Rev 1 03 As mentioned before there are other ways to configure the IP settings See the notes below for more information
23. er second 57500 Data bits 8 Parity Stop bits Flow control fei Restore Defaults Figure 25 Configuring the connection in the HyperTerminal Make sure the settings are identical to those shown in the window above Alternatively download a HyperTerminal session file from the HMS website double click on it and select COM port Connect and press ESC and the following menu will appear g USB HyperTerminal File Edit View Cal Transfer Help Show gateway system information Show fieldbus svstem information Show gateway system configuration Show fieldbus system configuration Change configuration Configuration upload download Restart Gateway Administration mode 1 2 3 Operating status information 8 H Figure 26 Anybus X gateway Main menu Press 6 and enter the desired configuration The figure below shows an example in this case an Ethernet Modbus TCP Modbus Plus X gateway is used and amp bytes of I O data is configured The Modbus addressing mode is disabled This means that the Anybus mode is enabled See the chapter 4 2 and also the X gateway Ethernet Slave Interface Adapter Interface Network Interface Addendum for a more detailed description 2 www anybus com Saved 2008 03 05 HMS Industrial Networks AB Page 20 25 Filename Application Note ModbusTCP doc AA RPN Application Note ModbusTCP doc AHMIS id 44 SCM 703
24. evacedeveedoencseeaceasadaconareeaesdsanedmenseeenees 8 4 3 dud dE DEOS A RN 12 Se AMY DUS COMING UE ec M n 16 3h Huc c 16 2 2 VOCON a aE EE E nri 2 55 COMMMUNIC ATOR COMMO UAL OM senretene Ub rade son k leet deo onde donE lasse UE CEA ntur Eden aeia 18 5 4 EO ALS eant gU JE OB n E otiose umet Uam ENN A E MISC SN DM mUIME EE NUES 20 O TO a R E EEE PH 22 APP GLEN QE 24 INodaus TC PSaddie 8885 a nner ee eee eee 24 ideale eH HMS Industrial Networks AB Page 3 25 Filename Application Note ModbusTCP doc MA RPN Application Note ModbusTCP doc AHMIS id A SCM 7032 025 Rev 1 03 1 Applicable Anybus products Name Type Anybus X gateway Modbus TCP Anybus PCI Modbus TCP Note The configuration of the X gateway and the Anybus Communicator is described in this document In the case with the remaining Anybus products this document is applicable but the configuration 1s depending on the type of application 2 Requirements Name Type Schneider Premium PLC TSX P571634 with ETY Port master n a Modbus TCP card PLC software Unity Pro L 2 Anybus IPconfig tool Anybus IPconfig X gateway Network Interface Addendum Anybus X gateway Ethernet Slave Interface Network Interface Addendum
25. g a network Select Ethernet and choose a name In this case the network is named Modbus Add Network Network Comment List af available Networks Ethernet Change Name Modbus e oem Figure 7 Configuring the network Under Communication in the navigation list to the left double click on the network named Modbus as seen below Enter the desired settings By using the alternative From a server the IP settings are retrieved by BOOTP Saved 2008 03 05 HMS Industrial Networks AB Page 8 25 Filename Application Note ModbusTCP doc MA ae Application Note ModbusTCP doc AMIS id la SCM 7032 025 Rev 1 03 Unity Pro L plc Modbus m Ele Edit View Services Tools Build PLC Debug Window Help 78 u a Bloocolmi amp ua 8 H EAE EQ V HS BEM Pr Project Browser Ta Sitructural view Model Family Module Address Module Utilities Rack Module Channel ES ID Scanning i T RKYE 5 NO Global Data eren Sil Moos Module IP Address NO v Address Server 3 Variables amp FB inst IP He Subnetwork Mask Gateway Address Elementary Variab Q9 Derived Variables IP Configuration essay IO Scanning SNMP Bandwidth B IO Derived Variabl Elementary FB Ins IP address configuration 32 Derived FB Instan Cy Communication amp Configured J Networks x GU Modbus IP address Hd 3j Routing Table Cy Program Subnetwork mask 255 255 255 0 C Tasks H B MAST Gateway address Hn
26. ndex 0 and writing to the index 1024 using the zero notation In the PLC the words with address 0 and 10 are used The repetitive rate can be set to less than 500 ms as used in this example The next step is to double click on the Ethernet module and configure the network the PLC module is to be connected to In this case the network named Modbus previously configured is selected Open the configuration in the left navigation list and double click on the Ethernet module as seen below Select the desired network and close the tile Saved 2008 03 05 HMS Industrial Networks AB Page 10 25 Filename Application Note ModbusTCP doc 7 HITS 7 gt Unity Pro L PLC 0 1 TSX ETY PORT Em jd Blo Cu iw ju C Station B aia amp Configuration uw E 0 X Bus m 0 TSX RKY BEX P TSX PSY 2600M 0 TSX P5 1634M oi o ex 2 TSX DEY 16D2 3 TSX DSY 16T2 L4 4 gj Derived Data Types Derived FB Types C3 Variables amp FB instances M Elementary Variables 9 Derived Variables IO Derived Variables 38 Elementary FB Instances Exc Ir amp Routing Table c m a Program NN 3 SR Sections FAST NT Sections S Test mp SR Sections By Events bes 3 Timer Events i SM m IO Events B Animation Tables m Table LD Editor Test MAST Operator Screens beet ll Documentation i TSXETY PORT B Channel ETH TCP IP Modbus
27. r Test MAST Operator Screens LN Documentation Figure 17 Configuring the ADD function The next step is to insert a new animation table to monitor the variables Right click on the Animation Tables in the navigation list to the left and select add a new Animation Table Double click in the name column and add the desired variables Saved 2008 03 05 HMS Industrial Networks AB Page 14 25 Filename Application Note ModbusTCP doc 44 Application Note ModbusTCP doc AMS i SCM 7032 025 Rev 1 03 Unity Pro L PLC Table LD Editor Test MAST File Edit View Services Tools Build PLC Debug Window Help 85 x o B 8 o ze jm cui AB sc m a v v eo kameja ls d F4 EJPE JANE 4 4 O 49 4P 4 430 40 1 Il us BE bi Ta Structural view Station Configuration ta 0 XBus gg Derived Data Types f Derived FB Types Variables amp FB instances 2 Elementary Variables e Derived Variables BM IO Derived Variables Elementary FB Instances S Derived FB Instances G Communication Ce Networks am Modbus H Routing Table Program C Tasks B E MAST mj Sections gp SR Sections 193 FAST DR Sections Rf Test gp SR Sections CR Events gp Timer Events gp WO Events G Animation Tables sr Table LD Editor Test MAST Operator Screens Documentation Force Name Value Out INT
28. this case 8 bytes are configured and the Modbus addressing mode is disabled This means that the Anybus mode is enabled see the chapter 4 2 and the Communicator User Manual In this case a loop back dongle at the serial connection of the Communicator is connected To loop data the generic data mode is selected all other values are left at their defaults 3 ABC Config Tool WMax1 users ThP Application_notes Modbus Modbus cfg a lx File ABC Tools View Help D c Edd X Em A X e 5 29 5 MSIE ES e a Dal da ABC Generic Data Mode Modbus TCP Configuration Alphabetic Categorized E g amp Fieldbus PE ABC B T A Sub Netwark H Interface nes Mew Node Fhysical Interface Serial B Z Consume 1 H Module W Data Control Status ord Disabled RE Produce 1 Madule Reset Disabled El Protocol Protocal Mode Generic Data Mode El Statistics Receive Counter Location OUx0002 Statistics Disabled Transmit Counter Location Ox000 Figure 23 Configuring the Communicator The next step is to configure the sub network Saved 2008 03 05 HMS Industrial Networks AB Page 18 25 Filename Application Note ModbusTCP doc 7 AMSG Application Note ModbusTCP doc A SCM 7032 025 ee 9 ABC Config Tool WMax1 users ThP Application_notes Modbus Modbus cfg mI File Sub Network Tools View Help laehtStl liaeeaxr s KF ERBESP TA ABC Generic Data Mode Modbus TCP Alphabetic Categorized EH Communication Ser New
29. wns Application Note ModbusTCP doc 4H SCM 7032 025 Rev 1 03 How to configure an Anybus Modbus TCP Slave module with Unity Pro L GOAnybus Saved 2008 03 05 HMS Industrial Networks AB Page 1 25 Filename Application Note ModbusTCP doc hd Application Note ModbusTCP doc 7 SCM 7032 025 Rev 1 03 Document history Revision Date Description Author 2008 03 05 Updated layout Thorbj rn Palm More information about the network and products The latest manuals and EDS files can be found on the HMS homepage www anybus com The Modbus user organisation has a homepage on the Internet http www modbus org Several technical guides are available in or via this page Saved 2008 03 05 HMS Industrial Networks AB Page 2 25 Filename Application Note ModbusTCP doc 44 Hnms Application Note ModbusTCP doc J4 SCM 7032 025 Rev 1 03 Contents 1 JXpphcable Amy DUS DEOUUCUS spss sentiscessnce svesensedcisnsasvecerdocavactsnsvuasvsdedaieadadiuverdecivintsretsisneassaisiseddveaadeasuasioes 4 2s NRCQUME CIN GING ig cseccrssavesescnstacriis E UE TT EERS 4 Sc DONMIONOVETVICW aneas EEE N Aaa E EN NE RESE Sian 5 4d MODUS TC P Conor O secacs sssseredaussantesnus can caussendesissarndensvecdsseasanedsnswenicseaeatalapevieiessauaiesressentssbuetindeeeneds 6 4 TEPLO On EA AE OO ao dette a dea putet canta tetun UM sec AE a NR Metu UEM IM PRU n M Ut 6 4 2 The Modbus TCP network COmM OU Cat O Mie oa ochschacdveacsauaceastacagenas
Download Pdf Manuals
Related Search
Related Contents
Kensington KEYCOVER PLUS Chief TPP2301 flat panel wall mount HP SN6000 User's Manual User Manual - LuckinsLive.com HYGIÈNE DES SURFACES DURES ご案内な - 京丹後市 Fisher-Price 78590 Instruction Sheet EuroCave¨ Armoires aVins GENERATOREN 2-takt GENERATORE 2-Takt Copyright © All rights reserved.
Failed to retrieve file