Home

MB-Gateway User Manual

image

Contents

1. A 33 Step 6 Read and Write from the DLO6 A 36 Appendix B Modbus Error Codes B 1 Modbus Error Codes 55 a B 2 Index MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 iii GETTING STARTED In This Chapter Introd ction 52 22 22 ebrei E EX A On e V Rn 1 2 Conventions Used 1 4 Product Overview i i kx a E RR 1 5 What s in the BOX gt sese ks aa este ho eri ee 1 6 Mounting Clearance Information 1 6 Agency Approvals sus uit RR daa a ea tee 1 7 Chapter 1 Getting Started Introduction Overview of this Publication Modbus is one of the most popular communication protocols in the automation industry because it supports both traditional RS 232 422 485 devices and newly developed industrial Ethernet devices Many industrial devices such as PLCs HMIs instruments and meters use Modbus as their standard communication protocol However the Modbus protocols running over serial and Ethernet are so different that a communication gateway is needed as a bridge for integrating devices from these two networks The MB GATEWAY is a Modbus TCP Ethernet to Modbus RTU Serial Gateway which provides the necessary bridge to connect Modbus RTU Serial products to Eth
2. A 31 Step 3 Set the Communication Parameters A 31 Step 4 Using Automatic Reads A 32 Step 5 Access the Automatic Read Data A 33 Step 6 Read and Write from the DLO6 A 36 Appendix A Application Examples E Example 1 Using Modbus Poll to MB GATEWAY with DLO6 Slave This example will illustrate how to use Modbus Poll which is a PC based Modbus Master simulator tool to connect through the MB GATEWAY to DL06 PLC via 2 wire RS 485 Items needed for this example MB GATEWAY DirectLogic 06 PLC any model PC with Modbus Poll installed free demo is available at www modbustools com Small length of Belden 9842 or equivalent cable ZL CMA15 ZipLink communication port adapter 15 pin high density female to terminal block Ethernet switch and cables to connect from the PC to MB GATEWAY Step 1 Connect the MB GATEWAY serial port to the DL06 secondary communications port Using the short length of Belden 9842 connect the MB GATEWAY to the DL06 Port 2 as shown RS 422 RS 485 Gateway ZL CMA15 to DLO6 Port2 ed O z U S 15 pin Female RX SI D Connector 0106 Port 2 Pin Descriptions 5V Power connection TXD Transmit data RS 232C Receive data RS 232C Ready to send RS 232C Clear to send RS 232C Recieve data RS 422 485 Power co
3. A 2 Items needed for this example 2 Step 1 Connect the MB GATEWAY serial port to the DLO6 secondary communications port 4 0 A 2 Step 2 Configure the DLO6 PLC serial port and MB GATEWAY serial port A 3 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 7 Example 2 Using Modbus Poll to MB GATEWAY with CLICK Slave A 11 Items needed for this example A 11 Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC A 11 Step 2 Configure the CLICK serial port and MB GATEWAY serial port 12 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 18 Example 3 Using P3000 as Master Client to MB GATEWAY with CLICK Slave A 24 Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 A 24 Step 2 Connect P3000 CPU P3 550 to MB GATEWAY via Ethernet Switch and Two Ethernet Cables iusso dde uu de A 24 Step 3 Configure the MRX instruction to read data from the MB GATEWAY A 28 Example 4 DirectLogic 06 HO ECOM100 as Master Client to MB GATEWAY with Mulitple GS Drives as Slaves A 29 Step 1 Set up Peer to Peer Configuration A 30 Step 2 Set the Serial Port Configuration
4. 4 6 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Set Up Slave Timeout Retries Page Chapter 4 Parameters The Set Up Slave Timeout Retries page is used to configure the timing on the serial side of the MB GATEWAY module By default all serial requests will use the Default Timeout value and Default Retries value If there are devices on the serial network that require different timing adjustments those exception cases can be added to the table below Simply specify the node ID the timing value and retry count necessary for that device The way that the timeout and retry field is utilized is The MB GATEWAY will send a request to the serial device if there is no reply from the device within the Timeout value specified the MB GATEWAY will send another request and wait again It will do this for the number of times specified in the Retry field Once the MB GATEWAY has attempted to access the device for the number of retry counts specified and no reply is forthcoming the MB GATEWAY will respond with an exception error 04 Slave device failure The Inter packet TX Delay field specifies how long between serial requests the MB GATEWAY module should wait This applies to all serial requests to all serial devices on the serial side of the module Setup Timeouts Retrys Windows Internet Explorer gt WH 192 168 15 47 File Edit View Favorites Tools Help Setup Timeouts Retrys
5. Instructions ontacts 4 Data Logger rn Rung O Instruction v Block O Tag Monitor NO Contact amp Security Accounts Comment Comment Name Detail Detail Mode 3 NC Contact NC Write Program NO Edge Contac EM Tag Database 2 1 O Overview Rung Comment 4 Tag Cross Refe 2 3 Monitor amp Debu A Data View E Data Logger Set Coil K Gal Out Coil lt 1857 Reset Coil OR Out Task Management LJ OR Ou 8 0 Tasks Run First Scan 1089 Debounce Coil 5 0 Run Every Scan i Timed Coil Run Every Second Run When Called Program End Disable Task v No Operation lt gt 189 Flasher Toggle Coil User Security Task New Task Rung 1 Column 1 Offline Project File Status Saved PAC Project Status Run Time Transfer A 24 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Double click on the image of the P3 550 in the center of the hardware configuration Read Configuration em Group 00 Hardware Components PAC Base Groups Base Chassis ERE 7 P3 03B P3 05B P3 08B P3 11B Main CPU P3 550 B Discrete Input P3 08ND35 P3 16ND3 E Peripheral Devices T P3 32ND3 P3 64ND3 P3 08NAS 16 P3 165IM Discrete Output P3 08TD15 MB GATEWAY US
6. 0 0 100 a IP Address 10 1 0 221 Description HO ECOM100 Ethemet ications Modul ommunications Module Gu aee 255 255 255 0 Gateway 00 02 00 Cancel In the ECOM Settings tab click the Peer to Peer Config button Add the Devices appropriate for your project Peer to Peer Configuration Device Protocol Configuration Modbus TCP IP 10 11 0 233 Port 502 Unit ID 1 Modbus TCP IP 10 11 0 233 Port 502 Unit ID 2 Eum Modbus TCP IP 10 11 0 233 Port 502 Unit ID 3 _ Delete Delete DK Cancel In our example we have added three devices that are the MB GATEWAY Device 1 is the Automatic Reads table that resides in the MB GATEWAY so it is configured with the MB GATEWAY IP address and the MB GAEWAY Unit ID Device 2 is the first drive It is configured with the MB GATEWAY IP address and the first drive Unit ID Device 3 is the second drive It is configured with the MB GATEWAY IP address and the second drive Unit ID A 30 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples oo Step 2 Set the Serial Port Configuration In the NetEdit Module List select your MB GATEWAY Set the IP address and subnet mask as appropriate for your network In our example we use 10 11 0 233 and 255 255 255 0 Click Start Web Based Config To set the Gateway Modbus ID as appropriate for your network In our example we use 1 Set the Ser
7. 4 8 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 4 Parameters D Automatic Reads This table shows statistical information about the requests being sent when the Automatic Read function is being utilized This information can help to indicate whether this table has been configured correctly or not Table Item Corresponds to the position in the table of the Set Up Automatic Reads page Error Count Indicates how many error requests have occurred for that table item This could be a timeout error or an exception response Timeout the error Slave Device Failure will be shown in this field Last Error Indicates the error code from the last error request If the device fails to respond D Retries Indicates how many retries have occurred It is a cumulative value and does not reset unless the module has been power cycled or the Clear Values button at the bottom has been pressed Timeout Indicates how many times a request has not received a reply within the specified timeout period It is a cumulative value and does not reset unless the module has been power cycled or the Clear Values button at the bottom has been pressed Number Completed Indicates how many requests have been sent for that table item 2 Last Modbus TCP Request This table shows statistical information about the last request that was received on the Modbus TCP side from a Modbus TCP Client device Slave Number
8. MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 13 Appendix A Application Examples E Next transfer the project to the PLC for the Port 3 settings to take effect Select the PLC pulldown menu and choose Write Project into PLC CLICK Programming Software NewProject1 ckp Main Program DER G File Edit view Setup Program Instruction Monitor Window Help 9 444 Disconnect 580 1 gt Read Data from PLC la n SN e Write Data into PLC 3 Read Project from PLC Ctri Fa Li Navigation Write Project into PLC Shift F9 AF Bi Instruction List Program Function PLC Online Project Information Instruction Calendar Clock Setup Te a 9 Ladder Program it Edge Contact H 25 Main re PLC Modes Ctrl Shift R Cannas y Subroutine Program Error History Interrupt Program Clear Memory Out Address Picker Update Firmware Set d Reset 2 Edit Rung Comments Reset to Factory Default Timer Counter Local Program Informatic mj Timer Syntax Check Counter Cross Reference View _ Advanced El Monitor amp Math Status Monitor bui Drum 2 WE Data View sa Shift Register T Copy Search amp DataView1 Copy Fa Text View aol Search fer Override View Program Control feu Call ros For Next feu End lt E Com
9. 20 to 70 4 to 158 F Humidity 5 to 95 RH non condensing Environmental Air For use in Pollution Degree 2 Environment Vibration MIL STD 810 514 2 Shock MIL STD 810C 516 2 Weight 0 2 Ibs 0 09 kg 2 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 2 Specifications LED Indicators STA SPDC QUA ORXD Hi STA The STA or STATUS LED is steady ON when the MB GATEWAY has passed power up diagnostics and is ready for use SPD The SPD or SPEED LED is used to represent the Ethernet speed The LED will be ON when the Ethernet speed is 100Mbps and OFF when the speed is 10Mbps TXD The TXD or TRANSMIT DATA LED flashes to indicate that the MB GATEWAY is sending data through the serial port ERR If the MB GATEWAY s ERR ERROR indicator is ON a critical error has occurred The error may be in the card itself or a network problem may be causing this symptom The ERROR indication can be caused by a faulty ground an electrical spike or other types of electrical disturbances Cycle power to the system to attempt clearing the error The ERROR LED will also flash once per second when a firmware update is in progress If the ERROR LED is flashing randomly then this is indicating a Modbus RTU error is occurring This could be a timeout or an actual error response LK A The LK A or LINK GOOD ACTIVITY
10. If everything has been configured correctly the counter next to TX will increment rapidly and the counter next to Err will not increment If the Error counter is incrementing go back and verify that all the steps prior to this one have been followed Ifyou get an error that says Modbus TCP connection failed verify that the IP address of the PC and the IP address of the GATEWAY are in compatible subnets and can communicate Modbus Poll Mbpoll1 File Edit Connection Setup Functions Display View Window Help 05 06 15 16 22 23 101 Mbpoll1 Tx 60 Err 0 ID 1 F 03 SR 100ms 40000 For Help press 1 192 168 15 47 502 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 9 Appendix A Application Examples E Once Modbus Poll is communicating to the PLC go into DirectSoft open up a Data View window and enter in VO and change the display type to Decimal to match the Modbus Poll software iit DirectSOFT 5 Programming UNTITLED Ladder View File Edit Search View Tools PLC Debug Window I EDIT Md Mi Find DSP Help LEN ule 48 decima gt wono BE Element Status Edits vo 0 1 4 8 2 co gt 6 ala E For Help press F1 Online DLO6 MIRA o 001 0768
11. 1 Modbus TCP Client RTU slave device device 5 1 1 Other devices Step 1 Modbus TCP request is generated to Serial Slave Num 5 at Starting Address 10 size 1 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 5 3 Chapter 5 Automatic Read Feature Memory Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address 1 0 xi 0 3 Holding Regs MB GATEWAY Gateway Modbus Address 255 Request Slave Num 5 Start Addr 10 Num of Elements 1 Modbus TCP Client RTU slave device device 5 Other devices Step 2 Request is then generated on the Serial side of the MB GATEWAY Memory Slave RTU Number Gateway Read Number Start of Memory Address Elements Address 1 0 1 0 3 Holding Regs Gateway Modbus Address 255 Modbus TCP Client device RTU slave device 5 yum Ajdey Other devices Step 3 Serial Node replies with data 5 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 5 Automatic Read Feature Memory Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address 3 Holding 1 0 1 0 ME GATEWAY Gateway Modbus Address 255 Regs Modbus RTU slave device 1 Modbus TCP Client RTU slave device device 5 1 1 Other devices Step 4 Gateway generates TCP reply and sends back to Client device MB GATEWAY USER M
12. A 3 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 7 Example 2 Using Modbus Poll to MB GATEWAY with CLICK Slave A 11 Items needed for this example 11 Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC 11 Step 2 Configure the CLICK serial port and MB GATEWAY serial port 12 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 18 Example 3 Using P3000 as Master Client to MB GATEWAY with CLICK Slave A 24 Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 A 24 ii MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Table of Contents Step 2 Connect P3000 CPU P3 550 to MB GATEWAY via Ethernet Switch and TWO Ethernet Cables oiu ad ad ad A 24 Step 3 Configure the MRX instruction to read data from the MB GATEWAY A 28 Example 4 DirectLogic 06 HO ECOM100 as Master Client to MB GATEWAY with Mulitple GS Drives as Slaves A 29 Step 1 Set up Peer to Peer Configuration A 30 Step 2 Set the Serial Port Configuration A 31 Step 3 Set the Communication Parameters A 31 Step 4 Using Automatic Reads A 32 Step 5 Access the Automatic Read Data
13. MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples _ _ _ _ e Example DirectLogic 06 0 100 as Master Client to A MB GATEWAY with Mulitple GS Drives as Slaves Cable end marked DirectLOGIC 8 Drive Side DLO6 PLC J TES w ECOM100 10 11 0 221 Ethernet Cat5e _ MB GATEWAY T 10 110 233 GS Drive zd E Node ID 2 Stride Ethernet 26 CDM RJ12X4 Switch RS 485 iT GS RJ12 CBL 2 Ethernet 3 Caution Wire ONLY the pins connected by Catse the cable The drives DC power available at the RJ12 pins will affect other drives if other pins are connected RS 485 Cable 4 I Error GND 4 y 1 Cable end In 1 RX Li 22 8 RX l3 i Drive Side 1 me 11 1 loa 1 Qs D 609 200 GS Drive 1 1 Lee ide Node ID 3 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 29 Appendix A Application Examples E Step 1 Set up Peer to Peer Configuration In NetEdit Scan Network to find your 0 100 Set the Module ID IP address and Subnet Mask as appropriate for your network In our example we use 7 10 11 0 221 and 255 255 255 0 respectively General Settings Module ID 7 Obtain an IP address automatically Use the following IP settings
14. WAUTOMATIONDIRECT Manual Number MB GATEWAY USER M M WARNING Thank you for purchasing automation equipment from Automationdirect com doing business as AutomationDirect We want your new automation equipment to operate safely Anyone who installs or uses this equipment should read this publication and any other relevant publications before installing or operating the equipment To minimize the risk of potential safety problems you should follow all applicable local and national codes that regulate the installation and operation of your equipment These codes vary from area to area and usually change with time It is your responsibility to determine which codes should be followed and to verify that the equipment installation and operation is in compliance with the latest revision of these codes Ata minimum you should follow all applicable sections of the National Fire Code National Electrical Code and the codes of the National Electrical Manufacturer s Association NEMA There may be local regulatory or government offices that can also help determine which codes and standards are necessary for safe installation and operation Equipment damage or serious injury to personnel can result from the failure to follow all applicable codes and standards We do not guarantee the products described in this publication are suitable for your particular application nor do we assume any responsibility for your product design installation
15. 91 O2 La Internet fA 100 A 6 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software Once the software has been obtained from www modbustools com and installed according to the directions provided from their website open up the Modbus Poll software Click on the Setup pulldown menu and select Read Write Definition as shown 7 Modbus Poll Mbpoll1 File Edit Connection Functions Display View Window Help amp oc NL x 101 29 Mbpoll1 y Read Write Disabled Shift F6 0 Excelloo No Connection Alias Log Reset Counters Use as Default Readjwrite definition Port 1 9600 8 E 1 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 7 Appendix A Application Examples E Configure the Read Write definition for a simple read of the register 400001 which equates to VO in the DirectLogic PLCs see Attp support automationdirect com docs Modbus_xref pdf for more information on Modbus addressing to DirectLogic PLC addressing equivalents Read Write Definition 1 Slave ID 1 Function 03 Read Holding Registers 4 ancel Address Quantity Scan Rate 1000 ms Disable v Disabled View Rows 610 O20 O50 C Hide Alias Columns Address in Cell Display Si
16. Indicates the Unit ID number within the Modbus TCP header of the Modbus TCP request Function Indicates the Modbus function requested within the Modbus TCP request Reference Indicates the starting address requested within the Modbus TCP request The Reference value is the offset from 0 More information will be explained in the Automatic Read Function section as to how this Reference value corresponds to a Modicon style address that is found in many Modbus devices Count Indicates the number of Registers Coils or Bits requested within the Modbus TCP request Data This field indicates the Data values written to the MB GATEWAY module when a Write function has been sent from the Modbus TCP Client device Status Indicates the action taken by the MB GATEWAY module upon receiving the Modbus TCP Client request Found in cache If the Modbus TCP Client request is targeted to the MB GATEWAY Modules Modbus ID and the request corresponds with an address mapped in the Automatic Read Function the MB GATEWAY module will respond with the data from its local cache The MB GATEWAY module will also return the data from its local cache if the TCP Client request corresponds with a node number and address that has been configured in the Automatic Read function table Completed If the request does not meet the criteria explained above a serial request is created Return This field will indicate whether an error has occurred or not If this f
17. N 0 Unused Enty 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry Fslfsllslfslfslfslfslfslfslfslfslfslfsl fs fs a 0 Unused Entry v hot g 100 A 32 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Step 5 Access the Automatic Read Data The ECRX Box is used since the data will be read by the 100 rather than a serial connection Appendix A Application Examples M M RR VIXIA ECOM100 RX Network Read ECRX 18 740 100 KT Workspace 503 4 Slave ID From Slave Element Src 20400 Number Of Bytes To Master Element Des 2000 Success Error MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 33 Appendix A Application Examples E 100 Config 1 ECOM100 18 710 100 K7 Slot K2 Status 400 Workspace 401 Msg Buffer 65 WORDS 7 _FirstScan SPO iD 2 OUT RXANX OK Count v505 OUT RXANX Fail Count V506 es ECOM100 RX Network Read ECRX 18 740 3 l ECOM100 K7 Workspace 503 Slave ID From Slave Element Src Number Of Bytes K20 To Master Element Dest V2000 Success C100 Error C101 mci INCB 4 RXANX OK Count ly V505 8 1 7 2102 iri SP1_Net
18. fe Out Address Picker Edit Rung Comments Timer Counter LS Local Program Informatic Timer Syntax Check Counter Cross Reference View Advanced E Monitor amp Math Status Monitor TT Drum a Data View sa Shift Register Copy Search m Dataview ford Copy Text View sul Search fer Override View Program Control a CS Address B Bit E Integer Integer 2 words E Floating point H Hex E Tet A Ascii STOP 00008000 0 02001 0 1 1 AF MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 19 Appendix A Application Examples E 9 Address Picker Edit Mode Fill Down Nickname Find v Exact Match Address j Data Type MODBUS Address Function code Nickname Initial Value _ Retentive Address Comment INT 400001 03 06 16 No 052 rw ir 400002 03 06 16 No 053 rw 400003 03 06 16 54 rw iNT 400004 03 06 16 No 055 rw 400005 03 06 16 No 056 rw 400006 03 06 16 No 057 rw 400007 03 06 16 058 rw 400008 03 06 16 No 59 rw 400009 03 06 16 No psio 400010 03 06 16 No 0511 rw 400011 03 06 16 0512 rw 400012 03 06 16 No psi3 400013 03 06 16 No psi 400014 03 06 16 No 0515 rw 400015 03 06 16 No 0516 rw 400016 03 06 16 psiz 400017 03 06 16 No psig 400018 03 06
19. 16 No 0519 400019 03 06 16 No 0520 rw 400020 03 06 16 0521 400021 03 06 16 No 000000000 le le le le le le le le e le le Data Type Filter Used Unused Address Display MODBUS Address Y Display All Data Types Display both used and unused MODBUS 984 Addressing fies O MODBUS HEX Addressing O Display only unused Cancel 20 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the B Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Node Address configured above in the CLICK programming software for Port 3 Read Write Definition SlvelD 1 Function 03 Read Holding Registers 4x J ancel Address 1 Quantity 1 Scan Rate 1000 ms Disable v Read Wtite Disabled View Rows 610 O20 O50 C Hide Alias Columns Address in Cell Display Signed v PLC Addresses Base 1 Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the Station Number configured above in the CLICK software Choosing Function 3 sets u
20. 8 Read Diagnostics lt Read Query Data Function gt Target MB GATEWAY Modbus Slave Node using Unit ID of Slave Node Any function code supported by the Modbus Slave device 3 6 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 5 In This Chapter Home uae aee enr e e ed ite 4 2 Gateway Modbus ID EA ds 4 3 Module Name and Module Description 4 4 IP Setup Configuration Page 4 5 Serial Port Configuration 4 6 Setup Slave Timeout Retries Page 4 7 Gateway Device Status 4 8 Firmware Updates 4 11 Chapter 4 Parameters Home Page The configuration of the MB GATEWAY is accessed through web browser at the well known HTTP port 80 not configurable The image below shows the home page that will be displayed when the web server of the MB GATEWAY module is accessed From this page all of the different setup screens can be accessed gt Modbus Gateway Windows Internet Explorer Ce Go gt 2 192 168 15 47 File Edit View Favorites Tools Modbus Gateway MB Gateway by Automation Direct com Gateway Modb
21. 9 Timeout Click1_Read1_TimeOu 3 Exception Response String Readi ExResp m Automatic Polling Skip execution if buffer is greater than Word Swap Slave Modbus Starting Address 1 400000 Map 32 bit data to 16 bit Modbus Decimal Addressing Zero Based Modbus Addressing Modbus Function Code 3 Read Holding Reg xj Tag Name Mapping Number of Tags 188 Non Array Tag 1 CLICK_DS1 O Array Show Instruction Comment IP Address address of the GATEWAY TCP Port Number Leave at default 502 Slave Node Number This should match the Node address of Port 3 of the CLICK PLC Leave at 1 in this case Slave Modbus Starting Address Set to 1 to read address DS1 in the CLICK PLC Tag Name Mapping Create a Tag called CLICK_DS1 as an Signed Int 16 Tag to read in 051 from the CLICK PLC Use the status bits and Exception Response String to verify whether communications were successful or not If the Error bit comes on look at the Exception Response String to see which error occurred If the Timeout Bit comes on check the IP address settings of the P3 550 and the GATEWAY and make sure that they are in compatible subnets If the Successful Status bit comes on add the CLICK DSI tag to the Data View at the bottom of the Productivity Suite Programming Software and check the values Change the values in the CLICK data view for 051 and verify that the CLICK DS1 tag matches A 28
22. Drawing 2 5 Chapter 2 Specifications Specifications Port Specifications 45 Speed 10 100 Mbps Ethernet Protection Built in 1 5 KV magnetic isolation Interface Protocol Supported Modbus TCP IP Server Slave Clients Masters Supported 12 simultaneous Modbus TCP connections Cable Type Autodetects Ethernet cable types MDI MDX Port 6 position terminal strip Phoenix 1863194 provided Supported Signal Lines RS 422 o wire Signals TX TX RX RX GND RS 485 3 wire Signals Data Data GND Supported Baud Rates 300 600 1200 4800 9600 14 4k 19 2k 38 4k 57 6k 115 2k Cannot be set with DIP switches Must be set via web browser configuration Serial Parity Odd Even None Interface Data Bits 8 Stop Bits 1 2 Protocol Supported Modbus RTU Client Master Servers Slaves Supported 128 Termination Permanently installed 120 Q resistor between Data and Data Power Consumption 2W Use Class 2 power supply Use conductors rated 60 75 C 3 position terminal strip Phoenix 1863165 provided Wire Range 16 28 AWG Solid or Stranded Conductor 1 5 mm Wire Strip Length 0 24 0 27 in 6 7 mm Screw Torque 1 7 Ib in 0 2 Nm Operating Temperature Range 0 to 60 C 32 to 140 F Storage Temperature Range
23. Element Src v2100 Number Of Bytes K4 To Slave Element Dest 4432 Success 2102 Error 2103 continued 36 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 hal ECRX Dev2 OK C100 ECWX Dev2 OK C102 y ECRX Dev3 OK T1 C104 y ECWX Dev3 OK S o e ECRX Dev2 Fai C101 Bn ECWX Dev2 Fai C103 ECRX Dev3 Fai C105 ECWX Dev3 Fai C107 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 37 ls IJ IrL y Count successful ECRX and ECWX transactions Count failed ECRX and ECWX transactions Appendix A Application Examples ECOM100 RX Network Read ECRX 18 740 ECOM100 K7 Workspace V505 Slave ID K3 From Slave Element Src v20400 Number Of Bytes To Master Element Dest 2020 Success C104 Error C105 1 00 WX Network Write ECWX IB 741 ECOM100 K7 Workspace 506 Slave ID K3 From Master Element Src v2100 Number Of Bytes K4 To Slave Element Dest 4432 Success C106 Error C107 INCB RXANX OK count v3000 INCB RXWX Fail count v3001 END Appendix A Application Examples E LIXA o ECOM100 RX Network Read ECRX 18 740 100 Workspace Slave 1D From Slave Element Src Number Of Bytes To Master Element Dest Success Enor In our example ECRX boxes 100 defined for this DL program in the 100 iBox in Rung 1 Wor
24. GATEWAY via Ethernet Switch and Two Ethernet Cables A 24 Step 3 Configure the MRX instruction to read data from the MB GATEWAY A 28 W What s in the Box 1 6 Wiring Diagrams 3 3 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 i 3
25. LED flashes to indicate that the card sees data traveling on the Ethernet network If any network device is sending or receiving data the LK A LED will be flashing During heavy communication loads this indicator will be steady ON If the LED is OFE then a problem with the Ethernet connection has been detected RXD The RXD or RECEIVE DATA LED flashes to indicate that the MB GATEWAY is receiving data through the serial port MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 2 3 Chapter 2 Specifications aaam Dip Switch Information Baud Rate 210 Switch OFF 58338008 000 7 SW cfg nm ON 011 14400 odas MB GATEWAY ort Bit MODBUS TCP IP to MODBUSRTU 172 Bits 6 Reset IP Cfg 7 Reserved V INPUT 10 36 voc Chasis Software Config 4800 9600 14400 19200 pneg 115200 Reserved 1 Bit S7 reserved Setting S6 to on will on power cycle set the IP address subnet mask and gateway address in the MB GATEWAY to 0 0 0 0 2 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 2 Specifications Dimensional Drawi
26. Modbus data points of the serial nodes and place that data into a local data buffer If a Modbus Ethernet request comes in for one of those data points the MB GATEWAY module will immediately respond with the data from local buffer and thereby respond much faster than it would if it had to generate a new serial request See Chapter 5 for more information The factory IP setting of the MB GATEWAY module is to retrieve an IP address via DHCP In order to see what IP address has been assigned and or to change that setting the NetEdit software tool will be required to discover and configure the MB GATEWAY TCP IP settings NetEdit is a free tool that is accessible at AutomationDirect s website or HOST engineering s website http www hosteng com SW Products SP_Demo_Utilites htm NetEdit3 NOTE NetEdit version 3 8 or later is required to support MB GATEWAY MB GATEWAY Configuration continued on the next page 3 4 MB GATEWAY USER M Hardware User Manual 1st Rev 10 13 Chapter 3 Installation Wiring and Configuration NetEdit Configuration Using NetEdit is very simple Once the software has been installed follow the steps below to configure the settings of your MB GATEWAY module Start the software It will scan automatically when you start it but if your MB GATEWAY is inaccessible at the point of starting the software you can press the Scan Network button at the top to make it scan again once the MB GATEWAY has b
27. as shown Modbus Gateway Windows Internet Explorer er y El 192 168 15 47 File Edit View Favorites Tools Modbus Gateway MB Gateway by Automation Direct com Gateway Modbus ID 255 0xFF Module Name Modbus Gateway 2 Module Description Modbus Gateway Ethernet Address 00 0 62 40 47 05 IP Setup Address 192 168 15 93 Subnet 255 255 0 0 Gateway 0 0 0 0 Booter Version 5 0 53 OS Version 1 0 597 Serial Port Configuration 38400 8 ODD 1 RTU Slave Timeout Retrys Timeout 500 Retrys 0 Automatic Reads Reading from Slave 1 Show Status Monitor Status Information Firmware Updates Hosteng com TES internet amp 100 16 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples oo Click on the link to the right of Serial Port Configuration and set up the window match the CLICK PLC port and then click on the Send button to save the settings Get Serial Port Setup Windows Internet Explorer G Ey Y 192 168 15 47 File Edit View Favorites Tools Help Get Serial Port Setup Serial Port Configuration Baud 0115200 O 57600 38400 O 19200 O 14400 O 9600 O 4800 O 2400 O 1200 Rate 2600 O 300 Parity O Even Odd O None Stop Bits 91 O2 Internet 100 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 17 Appendix A Application Examples E Step 3 Connec
28. fields that can be configured in the Automatic Read Function table Memory to Read There are 5 selections that can be selected from this drop down list and the explanation for these are as follows 0 Unused Entry Disables this entry in the table 1 Coils Configures this entry to read Modbus Coils Read Write bits 2 Discrete Inputs Configures this entry to read Modbus Input Bits Read Only bits 3 Holding Regs Configures this entry to read Modbus Holding Registers Read Write 16 bit registers 4 Input Regs Configures this entry to read Modbus Input Registers Read Only 16 bit registers Slave Number The network address of the Modbus RTU device to be read on the serial network RTU Start Address The starting address based at 0 to be read in the targeted Modbus RTU device on the serial network Number of Elements The Number of elements to read from the targeted Modbus RTU device on the serial network If the Read is from Coils or Discrete Inputs the number specified will be in terms of che number of bits from 1 2000 If the Read is from Holding or Input Registers the number specified will be in terms of the number of words 16 bit from 1 125 Gateway Memory Address The starting address in the GATEWAY modules local data cache to place the data that has been read from the Modbus RTU device on the serial network Gateway Modbus Address Displays the Modbus address that the GATEWAY modul
29. on if the instruction is not successfully completed MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 35 Appendix A Application Examples E Step 6 Read and Write from the DLOG To Read data from a drive instead of using of the Automatic Read feature of the MB GATEWAY and to Write data to the drive the Slave ID in the ECRX and or ECWX Boxes will be the Drive ID The From Slave Element and or To Slave Element values will be the addresses in the drive 4 ECOM100 Config ee 18 710 Network 7 uses the H2 Ecom100 in Slot 2 ECOM100 K7 It will use the range of V memory from V402 V502 as the Slot K2 working buffer Status 400 Workspace 401 Msg Buffer 65 WORDs 4402 4502 _FirstScan SPO p 2 K On the first PLC scan set the Comm Error and Comm Success count registers to 0 OUT RXAWX OK count 3000 OUT Fail count v3001 _FirstScan a K350 E our example we will write frequency 35 0Hz into each of our drives This rung will load the decimal value 35 0 into V memory address V2100 AND a 1 into V2010 that will write to the Run Stop command 2100 LD K1 OUT 2101 ECOM100 RX Network Read i ECRX 18 740 ECOM100 3 K7 Workspace 4503 Slave ID K2 From Slave Element Src v20400 Number Of Bytes KB To Master Element Dest V2000 Success 2100 Error C101 1 00 WX Network Write ECW 18 741 ECOM100 KT Workspace V504 Slave ID K2 From Master
30. 0 06 Change the value in data view for to various values and watch the value change in Modbus Poll to match A 10 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples _ _ o Example 2 Using Modbus Poll to MB GATEWAY with CLICK Slave This example will illustrate how to use Modbus Poll which is PC based Modbus Master simulator tool to connect through the MB GATEWAY to a CLICK PLC via 2 wire RS 485 Items needed for this example MB GATEWAY CLICK PLC any CO 01xx x or C0 02xx x PLC with 3 pin terminal RS 485 port with Modbus Poll installed free demo is available at www modbustools com Small length of Belden 9842 or equivalent cable Ethernet switch and cables to connect from the PC to MB GATEWAY Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC Using the short length of Belden 9842 connect the MB GATEWAY to CLICK s Port 3 as shown RS 485 Band Gateway 3 Pin y OND OI Terminal Port 3 Pin Descriptions PERI dE Bie penne 8 QI ET Le 2 minus Signal B RS 485 E Du QI x 3 LG Logic Ground OV E GND 01 Gateway contains a 1200 Termination Resistor between RX and RX MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 11 Appendix A Application Examples E
31. 000 CO 02DD1 D 1 1 AF 12 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples e E Click the Port 3 Setup button to configure Port 3 of the PLC COM Port Setup There are only 3 ports C0 02DD1 D CPU Module Port 1 The setup of this port is Fixed CLICK gt Tt works as a network slave only Koyo This port is used for programming and maintenance only Port 2 stop This port is used for general purpose communication that uses RS 232 This port can be a network master or slave Learn More Setup Port 3 This port is used For general purpose communication that uses RS 485 This port can be a network master or slave Learn More Setup L Cancel Configure the port for 38400 baud rate Odd parity 1 Stop Bit Node Address 1 Leave the other settings as shown below Note the Node Address number configured here Once the settings are configured Click on the Ok button Com Port Setup Details Port v Protocol Modbus Basic Configuration Wiring Details Node Address 1 247 1 Port3 5 485 Non isolation Baud Rate bps 3 pin Removable Terminal Parity Block Stop Bit Advanced Configuration Time out Setting 500 ms v Character Time out 2 1000ms 2 Response Delay Time 0 5000 0 Cons
32. 3 AUTOMATIC READ FEATURE In This Chapter Automatic Read Feature 5 2 SMN 5 3 dote eat 5 6 Additional Optimization 5 8 Chapter 5 Automatic Read Feature P MM MM Automatic Read Feature The Automatic Read Feature allows the MB GATEWAY module to utilize some of the idle time that usually occurs between Modbus TCP requests from the Client device Note that this feature only allows the reading of data from the serial devices and not writing to them Up to 16 automatic read requests can be configured Setup Automatic Reads Windows Internet Explorer DER G t gt gt M 192 168 15 47 v File Edit View Favorites Tools Help x Snaglt Setup Automatic Reads Setup Automatic Reads Gateway Modbus Address 255 v Auto Assign Gateway Addresses RTU Number Gateway tart of Memory Address Elements Address 3 Holding Regs Y 1 1 Slave To Read Number Holding Regs _ r v 2 Discrete Inputs y 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry e N linces e fe me a O Unused Entry ba 0 Unused Entry 0 Unused Entry So 0 Unused Entry 0 Unused Ent
33. D gt 2 NDI GND Gateway contains a User Supplied 1200 Termination Resistor 1200 Termination between RX and RX Resistor Recommended Cable Belden 9842 shielded cable or equivalent MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 3 3 Chapter 3 Installation Wiring and Configuration MB GATEWAY Configuration The MB GATEWAY supports 128 Modbus RTU nodes on the serial side The RS 485 specification supports up to 32 devices before a repeater device is required Proper cabling and termination is required For RS 485 4 wire installations a cable with the proper shielding and impedance should be used such as a Belden model 9843 For RS 485 2 wire installations a cable such as the Belden model 9842 should be used A 120 ohm resistor should be used for termination on each end of the network as shown in the previous wiring diagrams The GATEWAY module has a termination resistor pre installed so only one resistor needs to be added to the opposite end of the network away from the Gateway module The MB GATEWAY module supports up to 12 simultaneous Modbus TCP connections The MB GATEWAY s TCP listening port is the standard Modbus TCP port 502 not configurable One of the major features of the MB GATEWAY module is the Automatic Read function This feature utilizes the idle time of the module while it is waiting for Ethernet requests The Automatic Read function can be configured to poll specific
34. DoR Setup Slave Timeout Retries Default Timeout ms 1000 Default Retrys 2 Inter packet Tx Delay ms 20 Exceptions Device Timeout ms 0 te Internet MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 4 7 Chapter 4 Parameters a Gateway Device Status Page The Gateway Device Status page contains statistical information about the MB GATEWAY module that can be used to gauge the performance of the communications and to troubleshoot communications Show Status Windows Internet Explorer DER Go gt 192 168 15 47 R lel File Edit View Favorites Tools Help Show Status Gateway Device Status Automatic Reads Last Modbus TCP Request Last Modbus RTU Request Table Error Last Retries Timeouts Number Slave Number 0 Slave Number 0 Item Count Error Completed Funct od o 0 Reference 0 Reference 0 Count 0 Count 0 Data Data Status Return Status Information 4 Status Page Updates 13 Modbus TCP Requests Modbus TCP Cache Hits Modbus RTU 0 Requests 0 0 Request Errors 0 9 9 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ojojojojojojojojojojojojojo o Last Request Error Request Retries 0 Request Timeouts 0 Stop Updates Clear Values Back fa A 100
35. ER M Hardware User Manual 1st Ed Rev C 10 13 A 25 Appendix A Application Examples E Click on the Ethernet Ports tab and configure the IP address in the Use the Following IP address field Once the correct IP address and Subnet Mask is entered click on the OK button and close the hardware configuration window Options Ethernet Ports Serial Ports External Ethernet Port Port Name CPU ETH Ext Port Security Option Read Only Read Write TCP IP Settings Use current settings O Use DHCP Use the Following IP Address 192 168 15 53 Subnet Mask 255 255 0 0 Default Gateway 0 0 0 0 Timeout between data query and response 100 30 000 msec 5 x100 msec Modbus TCP Port 1 65535 502 Comm Heartbeat Value 2 1 000 sec ER Local Ethernet Port Timeout between data query and response 20 20 000 msec 100 x10 msec Comm Heartbeat Value 200 10 000 msec 20 x100 msec A 26 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples oo Transfer the project to the PAC in order to have the new settings take effect To do this select File from the pulldown menu and then Transfer Project gt To PAC Productivity Suite Programming Software Version 1 4 1 1 No Name Edit Setup Tools Window New Project T 20 Online A Choose PAC 8 Open Project Close Project Contact
36. Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Number of Bytes 4 In our example we will write the speed 2 bytes to the Comm Speed Reference register and set the next register to RUN 2 bytes A To Slave Flement Dest the Modbus register where the data will be written in the drive In this case V4432 equates to P9 26 Comm Speed Reference See GS Drive manual for more details Success a bit that will turn on once the instruction is completed successfully Error a bit that will turn on if the instruction is not successfully completed MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 39 5 ERROR CODES In This Appendix Modbus Error Codes PENDIX B Appendix B Modbus Error Codes Modbus Error Codes MB GATEWAY Modbus Error Codes Explanation Error Code Name 01 ILLEGAL FUNCTION The function code received in the query is not an allowable action for the slave If a Poll FTogram Complete command was issued this code indicates that no program function preceded it 02 ILLEGAL DATA ADDRESS The data address received in the queryis not an allowable address for the slave 03 ILLEGAL DATA VALUE A value contained in the query data field is not an allowable value for the slave 04 SLAVE DEVICE FAILURE unrecoverable error occurred while the slave was attempting to perform the re
37. Hardware User Manual 1st Ed Rev C 10 13 5 5 Chapter 5 Automatic Read Feature Situation 2 In this example the Modbus TCP Client device is sending a request directly to the MB GATEWAY itself that spans multiple entries in the Automatic Read table Memory Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address al 0 0 3 Holding Regs 3 Holding 5 0 1 1 Regs MB GATEWAY Gateway Modbus Address 255 Request Slave Num 1 Serial Start Addr 0 RS 485 Num of Elements 1 Reply with data Modbus RTU slave device 1 Request 51 N 5 Modbus F7 tart Adar 20 TCP Client Num of Elements 1 RTU slave device 5 Register 0 Register 1 data Other devices Step 1 Before a request even comes in on the Ethernet side the MB GATEWAY is reading data from the serial slaves at the Inter packet TX Delay rate and placing that data into its local cache 5 6 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 5 Automatic Read Feature Memory Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address 1 0 1 0 3 Holding Regs 3 Holding 5 0 1 1 Regs MB GATEWAY Gateway Modbus Address 255 RTU slave Request A Slave Num 255 device 1 Start Addr 0 Modbus Num of Elements 2 TCP Client RTU slave device device 5 Cache Register 0 Register 1 data Other devices
38. RX_7_Fall INCB RXIWX Fail Count 5 17 506 SP1_Netwx_7_Fail C103 1 Ce ECOM100 defined for this DL program in the ECOM100 iBox in Rung 1 Workspace an internal private register used by this iBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Slave ID The MB GATEWAY Modbus Gateway ID 1 since we are reading the Automatic Read data stored in the MB GATEWAY From Slave Element Src the Gateway Memory Address identified on the MB GATEWAY Setup Automatic Reads config page Note that the address in the MB GATEWAY 0 should be entered here as VO and DirectSoft software will change the name to TAO This is a naming convention for addresses internal to the PLC and will not affect either the targeted A 34 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples address or the use of Timer 0 in the DL program Number of Bytes 20 Since our addresses for both example drives are contiguous we can A read all 10 elements with one iBox Each element is a word 2 bytes so we want to read 20 bytes to get all 10 elements To Master Flement Dest the location where the slave data will be placed in the master ECOM100 PLC Success a bit that will turn on once the request is completed successfully Error a bit that will turn
39. Step 2 Configure the CLICK serial port and MB GATEWAY serial port Connect to the CLICK PLC with CLICK programming software Go to the Setup pulldown and select Com Port Setup as shown CLICK Programming Software NewProject1 ckp Main Program Cy File Edit View Program Instruction PLC Monitor Window Help di System Configuration X OOo 2 amp RETA Scan Time fd Watch Dog Timer DoR E Password Setup Ctrl Shift P Online STOP No PLC Error Nicknames Address Comments B Navigal Battery Backup Setup B D AF Program Functio Interrupt Setup 8 B Ladder Pro CPU Built in 1 0 Setup Es Main Pri Software Setup Subroutine Program Interrupt Program Address Picker Edit Rung Comments L Local Program Informatio Syntax Check Cross Reference View El Monitor Status Monitor a Data View Dataviewt Fa Text View for Override View E Bille rt RE E E t s A Bi Instruction List Instruction Edge Contact Compare Coil Hu out Reset Timer Counter mal Timer Counter Advanced Math iun Drum s8 Shift Register Copy Search Copy Search Program Control feu Call eos For Next end Communication Y Com Port B Bit Integer Integer 2 words E Floating point 81 Hex M Text A Ascii STOP 0000 8
40. Step 2 Modbus TCP Request is generated to Serial Slave Num 255 at Starting Address 0 size 2 Memory Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address 1 0 0 3 Holding Regs 3 Holding 5 0 1 1 Regs MB GATEWAY Gateway Modbus Address 255 Serial M od b us RS 485 RTU slave device 1 Modbus TCP Client RTU slave device Cache device 5 Register 0 Register 1 Other devices Step 3 MB GATEWAY immediately generates TCP reply and sends back to Client device from local cache without generating a new serial request The response time for the TCP request will be significantly faster when the request is targeted at an address in the Automatic Read table This can be advantageous if the Modbus TCP Client is a device that is busy doing numerous other tasks such as a PLC MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 5 7 Chapter 5 Automatic Read Feature Additional Optimization An additional method of optimization is used in the MB GATEWAY If a request is sent to the MB GATEWAY from the Modbus TCP Client targeted at a Node number and starting address that is equivalent to an entry in the Automatic Read table the MB GATEWAY will treat the request as if it had been targeted at the MB GATEWAY Modbus address and will respond from its local data cache since the data is the same Shown below are some more detailed explanations of the different
41. al Manufacturers Association located in Washington D C publishes many different documents that discuss standards for industrial control systems You can order these publications directly from NEMA Some of these include ICS 1 General Standards for Industrial Control and Systems ICS 3 Industrial Systems ICS 6 Enclosures for Industrial Control Systems NEC The National Electrical Code provides regulations concerning the installation and use of various types of electrical equipment Copies of the NEC Handbook can often be obtained from your local electrical equipment distributor or your local library Local and State Agencies many local governments and state governments have additional requirements above and beyond those described in the NEC Handbook Check with your local Electrical Inspector or Fire Marshall office for information 3 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 3 Installation Wiring and Configuration Wiring Diagrams The MB GATEWAY module can be wired in either 4 wire or 2 wire mode Gateway Slave 1 Slave 2 Last Slave EJ P em do 8 RX O 2 Ri 5 O SL GND Ol User Supplied Gateway contains a 1200 Termination 1200 Termination Resistor Resistor between RX and Recommended Cable Belden 9843 shielded cable or equivalent Gateway Slave 1 Slave 2 Last Slave 3 8 D D D
42. and the IP address of the GATEWAY are in compatible subnets and can communicate Modbus Poll Mbpoll1 ejes File Edit Connection Setup Functions Display View Window 05 06 15 16 22 23 101 M E Mbpoll1 x 60 Err 0 ID 1 03 SR 100ms Alias 4 0000 For Help press F1 192 168 15 47 502 A 22 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples Once Modbus Poll is communicating to the PLC go into the CLICK programming software open up a Data View window and enter in DS1 as shown HR Data View DataView1 O Fill Down Write All New Values Integer Export Change the value in data view for DS1 to various values and watch the value change in Modbus Poll to match MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 A 23 Appendix A Application Examples E Example 3 Using P3000 as Master Client to MB GATEWAY with CLICK Slave Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 Step 2 Connect P3000 CPU P3 550 to MB GATEWAY via Ethernet Switch and Two Ethernet Cables Configure the IP address of the P3 CPU and the MB GATEWAY to be compatible subnets Steps to configure the IP address of the P3 550 CPU areas follows Click on Setup on the top menu bar and choose Hardware Configuration Productivity Suite Programming Software Version 1 4 1 1 No Name
43. ation gt Get IP Configuration Windows Internet Explorer DER G 3 192 168 15 47 File Edit View Favorites Tools Help YI Get IP Configuration Setup IP Configuration O Obtain an IP address automatically Use the following IP address IP Address 192 168 15 47 Mode Subnet Mask 255 255 0 0 Gateway 192 168 1 10 internet 100 MB GATEWAY USER M Hardware User Manual Ist Ed Rev C 10 13 5 Chapter 4 Parameters Serial Port Configuration Page This page is used to configure the serial port parameters if you do not want to use the dipswitch settings or if baud rates different than the dipswitch settings range are desired The serial port settings should match the settings of the Modbus RTU serial nodes connected to the MB GATEWAY module In some situations such as a high amount of electrical noise poor cabling etc it may be necessary to reduce the baud rate on the MB GATEWAY module AND serial devices on the network In order to use the software based configuration switches 50 S1 and S2 must be turned OFF gt Get Serial Port Setup Windows Internet Explorer j gt EI 192 168 15 47 File Edit View Favorites Tools Help Get Serial Port Setup Serial Port Configuration Baud 115200 O 57600 038400 O 19200 O 14400 O 9600 O 4800 O 2400 O 1200 Rate 0600 O 300 Parity O Even O Odd None Stop Bits 1 O2 Internet fa Q10
44. col o Q mw 6 Reset IP Cfg n rg 10 36 voc 7 Reserved H eus mm 10 36 voc f Y QU cH EE 1 6 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 1 Getting Started DIN Rail Mounting The MB GATEWAY module can be snapped onto a standard 35 mm x 7 5 mm height DIN rail Standard CENELEC EN50022 They can be mounted either vertically or horizontally Refer to the mechanical drawings that follow for proper mounting DIN rail mounting steps 1 Hook bottom back of unit over the DIN rail 2 Push top back onto the DIN rail until it snaps into place DIN rail removal steps A Pull up on tab at the top of the mounting adapter with a screwdriver B Rotate the bottom of the unit away from the DIN rail C Pull unit down and away from DIN rail Removal Mounting O 606806 EC 184 Cleze Agency Approvals UL CUL CE Certification Numbers Name UL CUL UL508 MB GATEWAY E185989 E185989 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 1 7 SPECIFICATIONS In This Chapter Specifications 222222222222 sae wee AA ee cie wees naa 2 2 LED Indicators 2 A atada 2 3 Dip Switch Information 2 4 Dimensional
45. d this message will appear Completed If the request was sent and a reply was received this message will show in the Status field Return This field will indicate whether an error has occurred or not If this field displays No Error the request was successful Otherwise the Modbus error text will be shown Refer to the Modbus specifications error code lists for detailed explanations of each error code 4 Status Information This table shows a summary of the current session since power cycle or Clear Values button selected Comparing Requests to Cache Hits can help indicate whether the Automatic Reads are configured to maximize efficient communications And total Error Retry and Timeout data can indicate health of communications Setup Automatic Read Page The Automatic Read Feature is explained in detail in Chapter 5 Automatic Read Feature 4 10 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 4 Parameters Firmware Updates This link sends you to Host Engineering s website to retrieve the latest firmware for the MB GATEWAY module The NetEdit tool is required to upgrade firmware in the MB GATEWAY module The steps are shown below Open the NetEdit software You may allow the NetEdit software to download the latest firmware for the MB GATEWAY module by clicking on File gt Live Update Once you have the firmware file to load into the MB GATEWAY module c
46. den ayudar a determinar cuales c digos y normas son necesarios para una instalaci n y operaci n segura Si no se siguen todos los c digos y normas aplicables puede resultar en da os al equipo o lesiones serias a personas No garantizamos los productos descritos en esta publicaci n para ser adecuados para su aplicaci n en particular ni asumimos ninguna responsabilidad por el dise o de su producto la instalaci n u operaci n Nuestros productos no son tolerantes a fallas y no han sido dise ados fabricados o intencionados para uso o reventa como equipo de control en l nea en ambientes peligrosos que requieren una ejecuci n sin fallas tales como operaci n en instalaciones nucleares sistemas de navegaci n a rea o de comunicaci n control de tr fico a reo m quinas de soporte de vida o sistemas de armamentos en las cuales la falla del producto puede resultar directamente en muerte heridas personales o da os f sicos o ambientales severos Actividades de Alto Riesgo Automationdirect com espec ficamente rechaza cualquier garant a ya sea expresada o implicada para actividades de alto riesgo Para informaci n adicional acerca de garant a e informaci n de seguridad vea la secci n de T rminos y Condiciones de nuestro cat logo Si tiene alguna pregunta sobre instalaci n u operaci n de este equipo o si necesita informaci n adicional por favor ll menos al n mero 770 844 4200 en Estados Unidos Esta publicaci n est ba
47. e has been configured for done in the Gateway Modbus ID section of the home page Auto Assign Gateway Addresses Selecting this option will allow the configuration software to automatically choose the best local addresses to place the data that has been read from the Modbus RTU devices 5 8 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 5 Automatic Read Feature There are several different ways of addressing when communicating to Modbus devices The method of specifying a Function Code and offset that is utilized in the Automatic Read function is a very common way Another way that is very common and is seen often in AutomationDirect products is the use of the Modicon style addressing This method employs a PLC style address that contains a Modbus memory type in the highest digit of the address followed by the offset from 1 A table is provided below that shows comparable addresses for both of these addressing styles Equivalent Modbus Function Type Address Range Modicon Style Addressing 1 Coils 00001 065536 2 Discrete Inputs 100001 165536 3 Holding Regs 400001 465536 4 Input Regs 300001 365536 NOTE Memory to Read column on Setup Automatic Reads web page Number of Elements MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 5 9 PENDIX APPLICATION EXAMPLES In This Appendix Example 1 Using Modbus Poll to MB GATEWAY with DLO6 Slave
48. ecome accessible NOTE If you are unable to see the MB GATEWAY 1 If your PC has more than one NIC Network Interface Card e g a wireless and a wired then you may need to either disable the NIC s you are not using or re prioritize them such that the NIC you are using is top priority 2 Verify the Network Interface on your PC is functioning properly 3 Verify all connections between the PC and the MB GATEWAY are properly made 4 Disable your firewall or open TCP port 28787 to allow NetEdit 5 NetEdit version 3 8 or later is required to support MB GATEWAY NetEdit 3 DER File Network View Scan Tem Een 9 Ethernet Address F B C Module Type IP Address ID Name Description menna ME GATEWAY 1010 EE 108 71 General Help Sort by any Column By clicking the header of any column the list of devices can be sorted into ascending order by that column s data Clicking the column header a second time will sort the devices into descending order Edit Device Settings There are two ways to edit the network settings for any device listed you can cursor up and down the list to the device you want to configure the click General or you can y Ready In the Main window double click on the MB GATEWAY module that you want to configure General Settings Module 10 255 3 Obtain an IP address automatically Use the following IP settings Modbus Gat
49. ents Chapter 4 Installation Wiring and Configuration 4 1 Home iik ied aaa Ri Rene e e ene 4 2 Gateway Modbus ID 4 3 Module Name and Module Description 4 4 IP Setup Configuration Page 4 5 Serial Port Configuration 46 Setup Slave Timeout Retries Page 4 7 Gateway Device Status Page 438 Firmware Updates pegs 4 11 Chapter 5 Automatic Read Feature 5 1 Automatic Read Feature 5 2 Situation 15 ss 624 eee xta xeu se done sedis ici 5 3 SITUATION 27 csc hee e vs LEER A Rd xd Rede REESE E 5 6 Additional Optimization 5 8 Appendix A Application Examples A 1 Example 1 Using Modbus Poll to MB GATEWAY with DLO6 Slave A 2 Items needed for this example 2 Step 1 Connect the MB GATEWAY serial port to the DLO6 secondary communications port esc se pens es RR A 2 Step 2 Configure the DLO6 PLC serial port and MB GATEWAY serial port
50. ernet LANs The Modbus TCP side of the Gateway functions as a TCP Server slave while the Modbus RTU side functions as a serial Client master The serial side physical interface is RS 422 485 2 or 4 wire so up to 128 Modbus RTU devices can be accessed by a Modbus TCP Client device up to 12 simultaneous connections Gateway Modbus Address 255 Modbus RTU slave device 1 Modbus TCP Client device Modbus RTU slave device 5 I Other devices Client Slave The MB GATEWAY User Manual describes the installation configuration and methods of operation of the MB GATEWAY Module 1 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 1 Getting Started Who Should Read This Manual This manual contains important information for those who will install maintain and or operate The MB GATEWAY Module Technical Support We strive to make our manuals the best in the industry We rely on your feedback to let us know if we are reaching our goal If you cannot find the solution to your particular application or if for any reason you need technical assistance please call us at 770 844 4200 Our technical support group will work with you to answer your questions They are available Monday through Friday from 9 00 A M to 6 00 P M Eastern Time We also encourage you to visit our web site where you can find technical and non technical information about our products and our co
51. eway 1 ipti IP Address 182 168 15 Description Subnet mask Gateway Cancel Select Use the following IP settings Type in the settings that are compatible with your network and press the OK button and the MB GATEWAY modules IP settings are now configured MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 3 5 Chapter 3 Installation Wiring and Configuration After the MB GATEWAY module s IP settings have been configured to be compatible with the subnet of your PC you can open Internet Explorer or the Web browser of your choice and continue the configuration for your application You can also right click on the MB GATEWAY in the main NetEdit window and choose Start Web based config to start your default Web browser with the correct IP address pre configured for you Function Codes Supported The function codes supported by the MB GATEWAY differ based upon whether the target from the Modbus Client is the MB GATEWAY directly by utilizing the Gateway Modbus ID and the Automatic Read function or direct access to a Modbus serial slave by specifying the Unit ID of the Modbus Slave node itself Target MB GATEWAY Module using Gateway Modbus ID and Automatic Read Function Function Code 1 Read Coils Function Code 2 Read Input Bits 1xxxxx Function Code 3 Read Holding Registers 4xxxxx Function Code 4 Read Input Registers 3xxxxx Function Code
52. gned v PLC Addresses Base 1 Enter in 1 for the Slave ID This matches the Unit ID in the protocol that will determine which Modbus Serial Slave will be targeted on the serial side of the MB GATEWAY Entering 1 here will match up to the Station Number configured above in DirectSoft for the DLO6 PLC Choosing Function 3 sets up the read for 4xxxxx registers Checking the PLC Addresses Base 1 in the lower right corner matches the addressing to the cross reference chart mentioned above Once this windows has been configured as shown above click on OK Now click on the Connection pulldown menu and select Connect 2 Modbus Poll Mbpoll1 DER File Edit 72070 Setup Functions Display View Window 05 06 15 16 22 23 101 Auto Connect 4 0 1 Quick Connect F5 SR 1000ms DISABLED 4 0000 Port 1 9600 8 E 1 8 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Appendix A Application Examples EEE e In the Connection Setup window choose the Modbus TCP IP connection type Enter the IP address of your MB GATEWAY module in the lower left hand corner Match everything else as shown Connection Setup Connection Modbus TCP IP Cancel Mode Serial Settings Response Timeout 1000 ms Delay Between Polls 1 0 Remote Server IP Address Port Connect Timeout 192 168 15 47 502 3000 Click on OK to connect to the MB GATEWAY
53. ial Port Configuration as appropriate for your network For our example we use Baud rate 19200 Parity Odd Stop bit 1 Step 3 Set the Communication Parameters Set the communication parameters in the drives as appropriate for your network In our example Parameter Parameter Number Description Drive ID Baud Rate Modbus 8 Odd 1 RS 485 interface Keypad STOP disabled Frequency determined by RS 485 interface First Drive Second Drive MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 3 1 Appendix A Application Examples E Step 4 Using Automatic Reads In the MB GATEWAY browser configuration utility click the Automatic Reads link Slave number 2 is the first drive and Slave number 3 is the second drive in our example Configure the lines as appropriate For our example we will read the status registers for each drive Setup Automatic Reads Windows Internet Explorer DEAR H 10 11 0 233 lel File Edit View Favorites Tools Help x E Setup Automatic Reads Setup Automatic Reads Gateway Modbus Address 1 v Auto Assign Gateway Addresses RTU Number Gateway Start of Memory Address Elements Address 8848 4 Memory Slave To Read Number 3 Holding Regs 3 Holding Regs 0 Unused Entry O Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry 0 Unused Entry elelee relele Te
54. ield displays No Error the request was successful Otherwise the Modbus error text will be shown Refer to the Modbus specifications error code lists for detailed explanations of each error code MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 4 9 Chapter 4 Parameters 3 Last Modbus RTU Request This table shows the last Modbus RTU request formed by the MB GATEWAY module based upon the Modbus TCP Client request received on the Ethernet side Slave Number This is the Node number that was targeted in the last Modbus RTU serial request Function Indicates the Function Code sent to the Modbus serial device in the last request Reference Indicates the starting address requested within the Modbus RTU request The Reference value 15 the offset from 0 More information will be explained in the Automatic Read Function section as to how this Reference value corresponds to a Modicon style address that is found many Modbus devices Count Indicates the number of Registers Coils or Bits requested within the Modbus RTU request Data This field indicates the Data values written to the Modbus RTU device when a Write function has been sent Status Indicates the action taken by the MB GATEWAY module on the Modbus RTU side Waiting for Header This indicates that the MB GATEWAY module has sent a request and is waiting for the Reply Timeout If a request was sent to a Modbus RTU device and no reply is receive
55. kspace an internal private register used by this iBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Slave ID The GS Drive Node ID 2 or 3 depending on which drive we target From Slave Element Src V20400 equates to Status Monitor 1 in the GS Drive Hex 2100 and Modbus Decimal 48449 See GS Drive manual for details Number of Bytes Each Modbus register element that we want to read is a word 2 bytes in our example we will read 3 status registers To Master Element Dest the location where the slave data will be placed in the master ECOM100 PLC Success a bit that will turn on once the request is completed successfully Error a bit that will turn on if the instruction is not successfully completed MESES o ECOM100 WX Network Write ECWX IB 741 100 Workspace Slave ID From Master Element Src Number Of Bytes To Slave Element Dest 4432 success Enor In our example ECWX boxes ECOM100 Module ID set in NetEdit and defined for the DL program in the ECOM100 iBox in our Rung 1 Workspace an internal private register used by this iBox and MUST BE UNIQUE in this one instruction and MUST NOT be used anywhere else in your program Slave ID The GS Drive Node ID 2 or 3 depending on which drive we target From Master Element Src the location of data in the Master PLC that will be written to the drive 38 MB GATEWAY USER M
56. lick on the Scan Network button at the top left to browse for the MB GATEWAY module that is in the subnet of the PC NetEdit 3 File Network View Scan PX TCP Ethernet Address Module Type IP Address ID Name Description amenna WEEE Ose EE Look in MB GATEWAY MB_GATEWAY_1_0_573 bin Module Info General Settings General Help Configuration Firmware Update Booter Filename MB_GATEWAY_1_0_573 bin Restore Factory Seltings Files of type Ethemet Firmware Files bin y Cancel Click on the GATEWAY module that you wish to upgrade and then select the General Settings tab at the bottom of the screen Click on the Update Firmware button in the General Settings tab You will get a dialog box to select the firmware file that you wish to upgrade to Select the correct file and click on the Open button Firmware Updates continued on the next page MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 4 11 Chapter 4 Parameters Comfirm Update Preparing to replace module Firmware version 1 1 336 with version 1 1 354 Continue No Confirm that you wish to perform the upgrade by clicking on the Yes button Success ES Firmware update complete Once the process is complete you will receive a dialog confirming success 4 12 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 1
57. mpany http www automationdirect com MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 1 3 Chapter 1 Getting Started Conventions Used When you see the notepad icon in the left hand margin the paragraph to its immediate right will be a special note The word NOTE in boldface will mark the beginning of the text right will be a warning This information could prevent injury loss of property or even death in When you see the exclamation mark in the left hand margin the paragraph to its immediate extreme cases The word WARNING in boldface will mark the beginning of the text Key Topics for Each Chapter The beginning of each chapter will list the key topics that can be found in that chapter Getting Started HAPTER In This Chapter General Information Specifications d c 1 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 1 Getting Started Product Overview AutomationDirects MB GATEWAY is a single port Modbus Gateway module that converts Modbus TCP to Modbus RTU It supports up to 12 simultaneous Modbus TCP Client master Ethernet connections and up to 128 RTU Server slave Serial connections MB GATEWAY requires 10VDC to 36VDC from an external power supply Each module has one RJ45 10 100 Mbps Ethernet port and one RS 422 485 2 or 4 wire Serial Port It supports NetEdit Ver 3 8 and later or Web Browser based configu
58. munication V gt PLC Error Nicknames Address Comments 1 Write Proje B Bit I Integer 9 Integer 2 words E Floating point H Hex E Tet A Ascii STOP 0000 8000 CO 02DD1 D A 1H MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples oo Choose Ok and follow the steps when prompted to transfer the project to the PLC Read Write Program PLC Project MBGATEWAY1 Project Name MBGATEWAY1 Program Size Total 8 000 steps Program Size Total 8 000 steps Program Size 3steps 0 03 95 Program Size 3steps 0 03 95 BilFree Area 7 997 steps 99 97 95 BilFree Area 7 997 steps 99 97 0 8 000 v Save Project to PLC Memory Project File Total 256 000 bytes Recovery data is written with the project Project File Size 964bytes 0 37 96 The project cannot be read from the PLC Bree Area 255 036 bytes 99 63 95 without this option being selected 256 000 Last Update Mar 22 2011 15 15 37 Last Update Mar 20 2011 12 10 27 OK Cancel Help MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 15 Appendix A Application Examples E Now go into the MB GATEWAY configuration and match the serial port settings to the PLC Port 3 settings Open up a web browser such as Internet Explorer and enter in the IP address of the MB GATEWAY to access the main screen
59. ne garantissons pas que les produits d crits dans cette publication conviennent votre application particuli re et nous n assumons aucune responsabilit l gard de la conception de l installation ou du fonctionnement de votre produit Nos produits ne sont pas insensibles aux d faillances et ne sont ni con us ni fabriqu s pour l utilisation ou la revente en tant qu quipement de commande en ligne dans des environnements dangereux n cessitant une s curit absolue par exemple l exploitation d installations nucl aires les syst mes de navigation a rienne ou de communication le contr le de la circulation a rienne les quipements de survie ou les syst mes d armes pour lesquels la d faillance du produit peut provoquer la mort des blessures corporelles ou de graves dommages mat riels ou environnementaux activit s risque lev La soci t AutomationDirect nie toute garantie expresse ou implicite d aptitude l emploi en ce qui a trait aux activit s risque lev Pour des renseignements additionnels touchant la garantie et la s curit veuillez consulter la section Modalit s et conditions de notre documentation Si vous avez des questions au sujet de l installation ou du fonctionnement de cet quipement ou encore si vous avez besoin de renseignements suppl mentaires n h sitez pas nous t l phoner au 770 844 4200 Cette publication s appuie sur l information qui tait disponible au moment de l impres
60. ng Inches mm eN 0 88 22 2 2X 60 24 66 2 i 6 2 A x E zc l MB GATEWAY e STA O OERR n SPD Baud Rate De i NONI O acte Ld 1 00 1 11111711 UU CENTERLINE 225 DO ave EU nn FOR DIN RAIL 116 3 c 62 122 ul MOUNTING 4 11 Es 89 0 08 3 06 104 3 jew Ho 0 45 77 8 i 3 11 5 R Stop Bits e B MB GATEWAY 5 Suiton T MODBUS TCP IP to MODBUS RTU Hp 1 75 ER 127 uen 44 5 e COM 10 36 VDC 7 Reserved B 3 0 Chasis gt 10 36 VDC L LA i Y 3 31 84 0 _ 091 4 34 23 0 110 1 4 67 118 7 zd MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 2 5 INSTALLATION WIRING APTER AND CONFIGURATION In This Chapter Safety Guidelines a oe PUE E nef 3 2 Wiring Diagrams es veas e x Rh Edid st 3 3 MB GATEWAY Configuration 3 4 NetEdit Configuration 2 3 5 3 6 Function C
61. nnection GND Power connection GND NOTE If using a connector Transmit data RS 422 485 other than ZL CM15 or Transmit data RS 422 485 ZL CMA15L jumpers must Ready to send RS 422 485 be installed on the Ready to send RS 422 485 PLC side RXD Recieve data x RS 422 485 Pin 11 to 14 CTS Clear to send n RS 422 485 Pin 12 to 15 CTS Clear to send RS 422 485 Internally Connect Gateway contains a 1200 Termination Resistor between RX and RX NI I A 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Step 2 Configure the DLOG PLC serial port and MB GATEWAY serial port Connect to the DL06 PLC with DirectSoft Go to the PLC pulldown and select Setup gt Setup Secondary Comm Port as shown it DirectSOFT 5 Programming UNTITLED Ladder View File Edit Search View Tools Pl Debug Window Help G 2 42 Usb Disconnect owz oom Out Hel Link Setup TB XB e Status D Value e E Memory Map Tools PLC Modes Ctrl Shift R Configure Password FABRE Diagnostics Setup Pause Bits Clear PLC Memory 72 Overrides Copy config data from PLC to Disk Memory Cartridge Name config data from Di
62. odes Supported Chapter 3 Installation Wiring and Configuration Safety Guidelines A Warnine Providing a safe operating environment for personnel and equipment is your responsibility and should be your primary goal during system planning and installation Automation systems can fail and may result in situations that can cause serious injury to personnel or damage to equipment Do not rely on the automation system alone to provide a safe operating environment You should use external electromechanical devices such as relays or limit switches that are independent of the PLC application to provide protection for any part of the system that may cause personal injury or damage Every automation application is different so there may be special requirements for your particular application Make sure you follow all national state and local government requirements for the proper installation and use of your equipment Plan for Safety The best way to provide a safe operating environment is to make personnel and equipment safety part of the planning process You should examine every aspect of the system to determine which areas are critical to operator or machine safety If you are not familiar with control system installation practices or your company does not have established installation guidelines you should obtain additional information from the following sources NEMA The National Electric
63. or operation Our products are not fault tolerant and are not designed manufactured or intended for use or resale as on line control equipment in hazardous environments requiring fail safe performance such as in the operation of nuclear facilities aircraft navigation or communication systems air traffic control direct life support machines or weapons systems in which the failure of the product could lead directly to death personal injury or severe physical or environmental damage High Risk Activities AutomationDirect specifically disclaims any expressed or implied warranty of fitness for High Risk Activities For additional warranty and safety information see the Terms and Conditions section of our catalog If you have any questions concerning the installation or operation of this equipment or if you need additional information please call us at 770 844 4200 This publication is based on information that was available at the time it was printed At AutomationDirect we constantly strive to improve our products and services so we reserve the right to make changes to the products and or publications at any time without notice and without any obligation This publication may also discuss features that may not be available in certain revisions of the product This publication may contain references to products produced and or offered by other companies The product and company names may be trademarked and are the sole property of their re
64. orer and enter in the IP address of the MB GATEWAY to access the main screen as shown Modbus Gateway Windows Internet Explorer DEAR Go 192 168 15 47 Dir File Edit View Favorites Tools Help Modbus Gateway MB Gateway by Automation Direct com Gateway Modbus ID 255 0xFF Module Name Modbus Gateway 1 Module Description Modbus Gateway Ethernet Address 00 0 62 40 47 07 IP Setup Address 192 168 15 47 Subnet 255 255 0 0 Gateway 192 168 1 10 Booter Version 5 0 53 OS Version 1 0 597 Serial Port Configuration 0 7 NONE 1 RTU Slave Timeout Retrys Timeout 1000 Retrys 2 Automatic Reads Reading from none Show Status Monitor Status Information Firmware Updates Hosteng com te Internet For instructions on connecting with a web browser see NetEdit Configuration section in Chapter 3 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 5 Appendix A Application Examples E Click on the link to the right of Serial Port Configuration and set up the window to match the DL06 PLC port and then click on the Send button to save the settings Get Serial Port Setup Windows Internet Explorer d 192 168 15 47 Fie Edit View Favorites Tools Help Get Serial Port Setup Serial Port Configuration Baud 115200 57600 38400 O 19200 O 14400 09600 O 4800 2400 O 1200 Rate 0600 O 300 Parity O Even O Odd None Stop Bits
65. p the read for 4xxxxx registers Checking the PLC Addresses Base 1 in the lower right corner matches the addressing to the cross reference chart mentioned above Once this windows has been configured as shown above click on OK Now click on the Connection pulldown menu and select Connect 71 Modbus Poll Mbpoll1 File Edit 7200 Setup Functions Display View Window 05 06 15 16 22 23 101 9 Auto Connect Quick Connect FS SR 1000ms DISABLED Port 1 9600 8 E 1 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 2 1 Appendix A Application Examples E In the Connection Setup window choose the Modbus TCP IP connection type Enter the IP address of your MB GATEWAY module in the lower left hand corner Match everything else as shown Connection Setup Connection Modbus Serial Settings Response Timeout 1000 ms Delay Between Polls 10 ms Remote Server IP Address Port Connect Timeout 192 168 15 47 502 3000 Click on to connect to the MB GATEWAY If everything has been configured correctly the counter next to TX will increment rapidly and the counter next to Err will not increment If the Error counter is incrementing go back and verify that all the steps prior to this one have been followed Ifyou get an error that says Modbus TCP connection failed verify that the IP address of the PC
66. quested action 05 ACKNOWLEDGE The slave has accepted the request and is processing it but a long duration of time will be required to do so This response 5 returned to prevent a timeout error from occurring in the master next issue a Program Complete message to determine if processing is completed 06 SLAVE DEVICE BUSY The slave is engaged in processing a long duration program command The master should retransmit the message later when the slave is free 07 NEGATIVE ACKNOWLEDGE The slave cannot perform the program function received in the query This code is returned for an unsuccessful programming request using function code 13 or 14 decimal The master should request diagnostic or error information from the slave MEMORY PARITY ERROR The slave attempted to read extended memory but detected a parity error in the memory The master can retry the request but service may be required on the slave device B 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 INDEX A Additional Optimization 5 8 Agency Approvals 1 7 Automatic Read Feature 5 2 for a device not configured in the Automatic Read table 5 3 for a device within the Automatic Read table 5 6 C Conventions Used 1 4 D Dimensional Drawing 2 5 Dip Switch Information 2 4 F Firmware Updates 4 11 Function Codes Supported 3 6 Introduction 1 2 MB GATEWAY Configura
67. ration tools Key features include Automatic Read Function RJ45 10 100 Mbps Ethernet Port RS 422 485 2 or 4 wire Serial Port Supports NetEdit and Web Browser configuration tools Autodetects Ethernet cable types MDI MDX 35mm DIN rail mount MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 1 5 Chapter 1 Getting Started What s in the Box MB GATEWAY DIN Rail Mounting Adapter Mounting Clearance Information There are two options for mounting the MB GATEWAY module Direct Mounting The MB GATEWAY module can be mounted in either a low profile orientation or a slim mount orientation using screw holes on the provided mounting adapter Screws are not provided 2X 0 24 2X 90 24 n 96 2 EN OL i MB GATEWAY 1 OER O Oro on 2297970 8007 5Wcfg 2 eo 7 GND OFF 0112414300 ET os im Bx Qm HERE RX Q XD bn Ol ne 4 11 m 3 06 20 104 3 Q 00 None 77 8 E b 10 Even 8 11 Resvd R 0 Stop Bits ce E 0 MB GATEWAY 5 Switch MODBUS TCP IP to MODBUS RTU 1 2Bits H
68. ry 0 Unused Entry O Unused Enty eo La internet fa gt 100 5 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 5 Automatic Read Feature oo E The MB GATEWAY module can be assigned Modbus Node address that corresponds with the Unit ID number that is sent within the Modbus TCP header that is typically used to target a Modbus RTU node that is on the serial side of the MB GATEWAY Therefore the Node number that is assigned to the MB GATEWAY module should be unique from any Modbus RTU nodes on the serial network The Automatic Read function reads the specified registers bits or coils from the Modbus RTU nodes and places that data into the specified MB GATEWAY addresses that can be retrieved on the Ethernet side by specifying the MB GATEWAY s Modbus address in the Unit ID field of the Modbus TCP client request An example is shown below Situation 1 Modbus TCP Client device sends request for device not configured in the Automatic Read BH table This will in turn generate a fresh new request on the serial side of the MB GATEWAY module Slave RTU Number Gateway To Read Number Start of Memory Address Elements Address Bl 0 al 0 3 Holding Regs Gateway Modbus Address 255 Modbus RTU slave device 1 Request Slave 5 Start Addr 10 Modbus Num of Elements
69. s Save Project Ctri s Rung Instruction Tag Block Tag Monitor Comment comment Detail O Detail NO Contact Save Project As NC Contact NC Import Export Compile Project Transfer Project Print Setup Print Preview Print Ctri P Project Properties Exit WS FromPAC To USB Drive From USB Drive Run First Scan 5 0 Run Every Scan Run Every Second Run When Called Disable Task IRE NO Edge Contac NC Edge Contac 124 Compare Contar pur Out Coil str Set Coil Reset Coil OR Out FLs Flasher Debounce Coil Timed Coil 1160 Toggle Coil Program End No Operation User Security Task New Task MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 27 Rung 1 Column 1 Offline Project File Status Saved PAC Project Status Run Time Transfer Appendix A Application Examples E Step 3 Configure the MRX instruction to read data from the MB GATEWAY Double click on the instruction MRX Read to configure the MRX instruction as shown Modbus Read MRX Ethernet Port CPL ETH Ext In Progress Click1_Read1_InProg nd ce CES Complete Conp TCP Port Number 502 A Success Click1 Readl Success Don Slave Node Number 1 Default 255 SS Error Click1_Readi_Err Serial Port
70. sada en la informaci n disponible al momento de impresi n Automationdirect com nos esforzamos constantemente para mejorar nuestros productos y servicios as que nos reservamos el derecho de hacer cambios al producto y o a las publicaciones en cualquier momento sin notificaci n y sin ninguna obligaci n Esta publicaci n tambi n puede discutir caracter sticas que no est n disponibles en ciertas revisiones del producto Marcas Registradas Esta publicaci n puede contener referencias a productos producidos y u ofrecidos por otras compa as Los nombres de las compa as y productos pueden tener marcas registradas y son propiedad nica de sus respectivos due os Automationdirect com renuncia cualquier inter s propietario en las marcas y nombres de otros PROPIEDAD LITERARIA 2011 2012 AUTOMATIONDIRECT COM INCORPORATED Todos los derechos reservados No se permite copiar reproducir o transmitir de ninguna forma ninguna parte de este manual sin previo consentimiento por escrito de Automationdirect com Incorprated Automationdirect com retiene los derechos exclusivos a toda la informaci n incluida en este documento Los usuarios de este equipo pueden copiar este documento solamente para instalar configurar y mantener el equipo correspondiente Tambi n las instituciones de ense anza pueden usar este manual para prop sitos educativos 5 Nous vous remercions d avoir achet l quipement d automati
71. sation de Automationdirect com en faisant des affaires comme AutomationDirect Nous tenons ce que votre nouvel quipement d automatisation fonctionne en toute s curit Toute personne qui installe ou utilise cet quipement doit lire la pr sente publication et toutes les autres publications pertinentes avant de l installer ou de l utiliser Afin de r duire au minimum le risque d ventuels probl mes de s curit vous devez respecter tous les codes locaux et nationaux applicables r gissant l installation et le fonctionnement de votre quipement Ces codes different d une r gion l autre et habituellement voluent au fil du temps Il vous incombe de d terminer les codes respecter et de vous assurer que l quipement l installation et le fonctionnement sont conformes aux exigences de la version la plus r cente de ces codes Vous devez tout le moins respecter toutes les sections applicables du Code national de pr vention des incendies du Code national de l lectricit et des codes de la National Electrical Manufacturer s Association NEMA Des organismes de r glementation ou des services gouvernementaux locaux peuvent galement vous aider d terminer les codes ainsi que les normes respecter pour assurer une installation et un fonctionnement 5015 L omission de respecter la totalit des codes et des normes applicables peut entra ner des dommages l quipement ou causer de graves blessures au personnel Nous
72. sion la soci t AutomationDirect nous nous efforcons constamment d am liorer nos produits et services C est pourquoi nous nous r servons le droit d apporter des modifications aux produits ou aux publications en tout temps sans pr avis ni quelque obligation que ce soit La pr sente publication peut aussi porter sur des caract ristiques susceptibles de ne pas tre offertes dans certaines versions r vis es du produit rques de commerce La pr sente publication peut contenir des r f rences des produits fabriqu s ou offerts par d autres entreprises Les d signations des produits et des entreprises peuvent tre des marques de commerce et appartiennent exclusivement leurs propri taires respectifs AutomationDirect nie tout int r t dans les autres marques et d signations Copyright 2011 2012 Automationdirect com Incorporated Tous droits r serv s Nulle partie de ce manuel ne doit tre copi e reproduite ou transmise de quelque fa on que ce soit sans le consentement pr alable crit de la soci t Automationdirect com Incorporated AutomationDirect conserve les droits exclusifs l gard de tous les renseignements contenus dans le pr sent document MB GATEWAY HARDWARE USER MANUAL WAUTOMATIONDIRECTE Please include the Manual Number and the Manual Issue both shown below when communicating with Technical Support regarding this publication Manual Number MB GATEWAY USER M Issue 1st Edition Rev Iss
73. sk to PLC zt Retentive Ranges Watch Dog Timer Li Initialize Scratch Pad 1 0 Config Selection x Config Check E 1 Calendar di Dvi000 Nop fat PID 2 4 Setup PLC Secondary Communication Ports 00001 07680 06 YE Intelligent 10 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 3 Appendix A Application Examples E Setup the port as shown for Modbus protocol 38400 baud rate Odd parity 1 Stop bit and Station Number 1 Match everything else as shown Note the Station Number configured in the PLC Once this has been done click on the icon on the upper right hand side with the arrow pointing to the PLC to save the settings in the PLC Setup Communication Ports Port 2 E Protocol K Sequence DirectNET M MODBUS Non Seq ASCIl Remote 1 0 Time out Base Timeout x 1 RTS on delay time RTS off delay time Station Number Baud rate 38400 Stop bits 1 Parity Odd Port 2 15 Pin Base Timeout 800 ms win 800 ms Help 500 ms 3 Characters Echo Suppression C RS 422 485 4 wire RS 232C 2 wire RS 485 2 wire A 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples e E In order to match the serial port settings of the DLOG to the MB GATEWAY open up web browser such as Internet Expl
74. spective owners AutomationDirect disclaims any proprietary interest in the marks and names of others Copyright 2011 2012 Automationdirect com Incorporated All Rights Reserved No part of this manual shall be copied reproduced or transmitted in any way without the prior written consent of Automationdirect com Incorporated AutomationDirect retains the exclusive rights to all information included in this document ADVERTENCIA y Gracias por comprar equipo de automatizaci n de Automationdirect com Deseamos que su nuevo equipo de automatizaci n opere de manera segura Cualquier persona que instale o use este equipo debe leer esta publicaci n y cualquier otra publicaci n pertinente antes de instalar u operar el equipo Para reducir al m nimo el riesgo debido a problemas de seguridad debe seguir todos los c digos de seguridad locales o nacionales aplicables que regulan la instalaci n y operaci n de su equipo Estos c digos varian de rea en rea y usualmente cambian con el tiempo Es su responsabilidad determinar cuales c digos deben ser seguidos y verificar que el equipo instalaci n y operaci n est n en cumplimiento con la revisi n mas reciente de estos c digos Como m nimo debe seguir las secciones aplicables del C digo Nacional de Incendio C digo Nacional El ctrico y los c digos de NEMA la Asociaci n Nacional de Fabricantes El ctricos de USA Puede haber oficinas de normas locales o del gobierno que pue
75. t to the MB GATEWAY using the Modbus Poll simulator software Once the software has been obtained from www modbustools com and installed according to the directions provided from their website open up the Modbus Poll software Click on the Setup pulldown menu and select Read Write Definition as shown Modbus Poll Mbpoll1 File Edit Connection Functions Display View Window v Read Write Disabled Shift F6 Excel Log Log Reset Counters Use as Default Read write definition Port 1 9600 8 E 1 A 18 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Appendix A Application Examples Configure the Read Write definition for a simple read of the register 400001 which equates to DS1 in the CLICK PLC as shown CLICK Programming Software NewProject1 ckp Main Program G File Edit View Setup Gey Instruction PLC Monitor Window Help Add New Subroutine Program M 5 A 9 n Add New Interrupt Program JO0 0 u ht Edit Rung Comments b STOP No PLO Error Local Program Information L Navigation D A Bi Instruction List Program Function PLC Syntax Check Instruction 8 ie Ladder Program Cross Reference View inta Nicknames Address Comments H M a Edge Contact Main Program 1 Compare Subroutine Program Coll Interrupt Program
76. tion 3 4 Modbus Error Codes B 2 Mounting Clearance Information 1 6 DIN Rail Mounting 1 7 Direct Mounting 1 6 Index B NetEdit Configuration 3 5 P Parameters 4 2 Gateway Device Status Page 4 8 Automatic Reads 4 9 Last Modbus RTU Request 4 10 Last Modbus TCP Request 4 9 Status Information 4 10 Gateway Modbus ID 4 3 Home Page 4 2 IP Setup Configuration Page 4 5 Module Name and Module Description 4 4 Serial Port Configuration Page 4 6 Setup Slave Timeout Retries Page 4 7 Product Overview 1 5 S Safety Guidelines 3 2 Specifications 2 2 T Technical Support 1 3 U Using Modbus Poll to MB GATEWAY with CLICK Slave A 11 Step 1 Connect the MB GATEWAY serial port to Port 3 of the CLICK PLC 1 Step 2 Configure the CLICK serial port and MB GATEWAY serial port A 12 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 18 Using Modbus Poll to MB GATEWAY with DLO6 Slave 2 Step 1 Connect the MB GATEWAY serial port to the DLO6 secondary communications port 2 Step 2 Configure the DLO6 PLC serial port and MB GATEWAY serial port A 3 Step 3 Connect to the MB GATEWAY using the Modbus Poll simulator software A 7 Using P3000 as Master Client to MB GATEWAY with CLICK Slave A 24 i 2 MB GATEWAY USER M Hardware User Manual 15 Ed Rev 10 13 Index En Step 1 Connect CLICK to the MB GATEWAY as shown in example 2 A 24 Step 2 Connect P3000 CPU P3 550 to MB
77. ue Date 10 13 Publication History Issue Description of Changes 1st Edition Original issue Rev A Added Example 4 to Appendix Rev B Added IP address reset note Rev C Added Autodectection notes Added TCP to RTU diagrams TABLE OF CONTENTS Chapter T Getting Started 1 1 Introduction 2 22 2222 c a ra ta 1 2 Conventions Used bb bas peer e EVE ESSE Ea eh ele ee an 1 4 Product OVeEVIEW ooo eara data da 1 5 What s inthe BOX ise ed E a ae 1 6 Mounting Clearance Information 1 6 Agency Approvals 255555555558 bbb EEE on E EDE OR RR ERU 1 7 Chapter 2 Specifications 2 1 xuzsiicius p d ETT 2 2 Dip Switch Information io TR E n dca 2 3 Dimensional Drawing eridi arsaa see eee natat 2 4 Chapter 3 Installation Wiring and Configuration 3 1 Safety Guidelines lt 44444000 expe herede Rare eae E d 3 2 Wiring Diagrams rca moon Bm I C end 3 3 MB GATEWAY Configuration 3 4 NetEdit Configuration 1 2 0 3 5 Function Codes Supported 3 6 Table of Cont
78. us ID 255 0 Module Name Modbus Gateway 1 Module Description Modbus Gateway Ethernet Address 00 0 62 40 47 07 Setup Address 192 168 15 47 Subnet 255 255 0 0 Gateway 192 168 1 10 Booter Version 5 0 53 OS Version 1 0 597 Serial Port Configuration 0 7 NONE 1 RTU Slave Timeout Retrys Timeout 1000 Retrys 2 Automatic Reads Reading from none Show Status Monitor Status Information Firmware Updates Hosteng com te Internet 2 MB GATEWAY USER M Hardware User Manual 1st Ed Rev 10 13 Chapter 4 Parameters Gateway Modbus ID The Gateway Modbus ID is used with the Automatic Read function This is how the local data buffer is accessed by the Modbus Client device The usage of this field will be explained in more detail in the Automatic Read Function section The Modbus ID used in this field should be unique to the serial network and not assigned to any real Modbus RTU device Get Gateway Modbus ID Windows Internet Explorer j gt EI 192 168 15 47 File Edit View Favorites Tools Help Get Gateway Modbus ID Setup Gateway Modbus ID Gateway Modbus ID 255 La Internet fa 100 The Back Send and Reset buttons that appear on these pages have the following behavior The Back button will browse back to the previous page viewed without saving any changes made on the current page The Send button will Send any changes made on this page to the MB GATEWAY effecti
79. vely saving those changes The Reset button will undo any changes made on this page back to the values that have been Sent to the MB GATEWAY previously MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 4 3 Chapter 4 Parameters X _ gt gt lt Module Name and Module Description These fields are used only for reference and identification when managing several different MB GATEWAY modules on a network Get Module Windows Internet Explorer DAR Go gt 192 168 15 47 File Edit View Favorites Tools Help Get Module Setup Module Name Module Name Modbus Gateway 1 Internet RE 100 Get Module Description Windows Internet Explorer er Jw 192 168 15 47 File Edit View Favorites Tools Get Module Description Setup Module Description Module Description Modbus Gateway te Internet 4 4 MB GATEWAY USER M Hardware User Manual 1st Ed Rev C 10 13 Chapter 4 Parameters IP Setup Configuration Page The IP address Subnet Mask and Default Gateway address can be configured on this page Subnet Mask that is not compatible with the subnet of your PC s Network Interface Card You may be required to change the subnet settings of your PC or use the NetEdit tool to regain communications in 8 You may lose communications with the MB GATEWAY module if you configure an IP address and or this situ

Download Pdf Manuals

image

Related Search

Related Contents

Synology DS213+ + 2x 2TB  Star Micronics Line Thermal Printer User's Manual  Transcend JetFlash 2.0 2Gb  Best Barns greenbriar_1216 Instructions / Assembly  notice technique spa aqualux    La veuve noire - Publications du gouvernement du Canada  EverFocus EAC-100-W26 blank plastic card  MANUAL DO USUÁRIO  Brodit Active holder  

Copyright © All rights reserved.
Failed to retrieve file