Verify that you have the most current version of this document. Go to http://ac
Verify that you have the most current version of this document. Go to http://accounts.automatedlogic.com, then select Support > Download > Third-party Interfaces > Third-party Integration Guides. Modbus Integration Guide For an LGR line, ME-LGR line, or ME812u-LGR controller Rev. 6/28/2012 © 2012 Automated Logic Corporation. All rights reserved throughout the world. Automated Logic, WebCTRL, EIKON, and BACview are registered trademarks, and EnergyReports, Environmental Index, and Eco-Screen are trademarks of Automated Logic Corporation. BACnet is a registered trademark of ASHRAE. All other brand and product names are trademarked by their respective companies. Contents Overview .................................................................................................................................. 1 Controller as a master device on EIA-232/485 ............................................................................ 2 Before-you-begin checklist ........................................................................................... 2 The integration process ................................................................................................ 3 1 Create a control program in EIKON® LogicBuilder ..................................................... 3 Formatting a Modbus address ....................................................................... 3 Editing a microblock address ......................................................................... 5 2 Download the Modbus driver and control programs ................................................... 6 3 Connect the Automated Logic® controller to the third-party device ............................ 6 Wiring specifications ..................................................................................... 6 To wire a third-party device ............................................................................ 6 4 Set up the Modbus Combo driver properties .............................................................. 8 5 Verify the controller is set up correctly ....................................................................... 8 To capture communication using PuTTY ........................................................ 10 Controller as a slave device on EIA-232/485............................................................................. 12 Before-you-begin checklist ......................................................................................... 12 The integration process .............................................................................................. 13 1 Create a control program in EIKON® LogicBuilder ................................................... 13 Formatting a Modbus address ..................................................................... 13 Editing a microblock address ....................................................................... 15 2 Download the Modbus driver and control programs ................................................. 15 3 Connect the Automated Logic® controller to the third-party device .......................... 15 Wiring specifications ................................................................................... 15 To wire a third-party device .......................................................................... 16 4 Set up the Modbus Combo driver properties ............................................................ 17 5 Verify the controller is set up correctly ..................................................................... 17 To capture communication using PuTTY ........................................................ 19 Controller as a client device on Ethernet .................................................................................... 21 Before-you-begin checklist ......................................................................................... 21 The integration process .............................................................................................. 22 1 Create a control program in EIKON® LogicBuilder ................................................... 22 Formatting a Modbus address ..................................................................... 22 Editing a microblock address ....................................................................... 24 2 Download the Modbus driver and control programs ................................................. 25 3 Connect the Automated Logic® controller to the third-party device .......................... 25 4 Set up the Modbus Combo driver properties ............................................................ 25 5 Verify the controller is set up correctly ..................................................................... 26 To capture communication using Wireshark ................................................. 27 To capture communication using PuTTY ........................................................ 28 Controller as a server device on Ethernet ................................................................................... 30 Before-you-begin checklist ......................................................................................... 30 The integration process .............................................................................................. 30 1 Create a control program in EIKON® LogicBuilder ................................................... 31 Formatting a Modbus address ..................................................................... 31 Editing a microblock address ....................................................................... 32 2 Download the Modbus driver and control programs ................................................. 33 3 Connect the Automated Logic® controller to the third-party device .......................... 33 4 Set up the Modbus Combo driver properties ............................................................ 33 5 Verify the controller is set up correctly ..................................................................... 34 To capture communication using Wireshark ................................................. 35 To capture communication using PuTTY ........................................................ 36 Modbus Troubleshooting ......................................................................................................... 38 If the Automated Logic® controller is a Serial Master or Ethernet Client ....................... 38 Register addresses ...................................................................................... 38 Errors .......................................................................................................... 39 If the Automated Logic® controller is a Serial Slave or Ethernet Server ........................ 43 Register addresses ...................................................................................... 43 Errors .......................................................................................................... 43 Appendix A - Upgrading an existing Modbus driver ..................................................................... 44 Appendix B - Modbus Protocol Conformance Statement ............................................................. 46 Modbus Integration Guide • Rev. 6/28/2012 1 © 2012 Automated Logic Corporation You can use an Automated Logic® controller to integrate Modbus device(s) with a WebCTRL® system. The controller can serve as a master or slave on a serial network, or a client or server on a TCP/IP network. This document is divided into 4 sections that provide integration instructions for the 4 scenarios listed in the first two columns below. Determine how your Automated Logic® controller will be used, then go to the appropriate page for the instructions. If the Automated Logic® controller is to be a Modbus... ...on this media type... ...you can use this controller port... See... Master EIA-485, 4 wire EIA-485, 2 wire EIA-232 S1 S1 or S2 S1 or S2 Controller as a master device on EIA-232/485 (page 2) Slave EIA-485, 4 wire EIA-485, 2 wire EIA-232 S1 S1 or S2 S1 or S2 Controller as a slave device on EIA-232/485 (page 12) Client Ethernet E1 Controller as a client device on Ethernet (page 21) Server Ethernet E1 Controller as a server device on Ethernet (page 30) NOTES • The Modbus Combo driver supports Modbus devices connected to ports S1, S2, and E1 simultaneously on the Automated Logic® controller. The third-party point count for the controller is the total of the 3 ports. • The 3 ports can simultaneously have different functionality. For example, Port S1 could be a serial master, Port S2 could be a serial slave, and Port E1 an ethernet client. CAUTION If you want to upgrade a system to the Modbus Combo driver, carefully review Appendix A - Upgrading an existing Modbus driver (page 44) to determine if you should upgrade the driver. Overview Modbus Integration Guide • Rev. 6/28/2012 2 © 2012 Automated Logic Corporation NOTE Modbus supports a single master on each network. Automated Logic® Controllers LGR25 LGR250 LGR1000 ME-LGR25 ME-LGR200 ME812u-LGR Driver Modbus Combo: drv_melgr_mb_combo_<latest version>.driver Read/write capability Can read from and write to the third-party equipment Third party Supported equipment Any device that supports the Modbus (Modicon) protocol Network media type EIA-232, EIA-485 Quantity of Modbus slave devices you can physically connect to Port S1 or Port S2 on the Automated Logic® master controller For EIA-232: 1 Modbus slave For EIA-485: Up to 254 Modbus slaves NOTE You may reach the point limitation of the Automated Logic® controller before connecting 254 Modbus slaves. You need the following items, information, and skills for the integration process: A points list for each Modbus device that includes register addresses and read/write capabilities. Points lists are usually available from the third-party manufacturer’s representative or website. The addresses of the Modbus devices The network media type required by the Modbus device: EIA-232 or EIA-485 A port pinout/configuration of the Modbus device. Pinouts are usually available from the third-party manufacturer’s representative or website. The Modbus network’s baud rate, data bits, parity, and stop bits Verification that all communication properties have been set on the Modbus devices Verification of communications through the port that the Automated Logic® controller will connect to Experience creating control programs in the EIKON® LogicBuilder application Experience installing, wiring, setting up, and downloading to the Automated Logic® controller Controller as a master device on EIA-232/485 Before-you-begin checklist Modbus Integration Guide • Rev. 6/28/2012 3 © 2012 Automated Logic Corporation Follow the steps in this section to integrate one or more third-party Modbus devices into a WebCTRL® system using an Automated Logic® controller. To install and network the Automated Logic® controller, see the controller's Technical Instructions. When you create your control program, use a Network I/O microblock for each third-party point. TIP Verify the third-party manufacturer’s register addressing pattern by establishing communication with a few points whose values you can physically manipulate before you spend time addressing the remaining integration points. Formatting a Modbus address Use the information below to format a valid address in each microblock that you use to read or write to a third-party point. CAUTION! When integrating third-party devices into a WebCTRL® system, most communication problems are caused by incorrect data or typing errors in the microblock's Address field. Address format: protocol://register type/modbus register address/device address See Protocol below. Defined by ALC. See Register type/ Register address on next page. Provided in third- party points list. See Register type/ Register address on next page. Set on third-party device (1-254). See NOTE below. Example: modbus2://UINT/40128/26 NOTE To send a broadcast to all Modbus devices on the port specified by the protocol signature, use 0 for the device address in a network output microblock. Protocol If the point is in a Modbus device connected to the Automated Logic® controller's port... Use the following protocol signature * S1 modbus1:// S2 modbus2:// * You can also use modbus:// for points on one of the ports, but not both ports. The integration process 1 Create a control program in EIKON® LogicBuilder Modbus Integration Guide • Rev. 6/28/2012 4 © 2012 Automated Logic Corporation Register type/Register address To... this kind of value... use this microblock... with this register type... and a Modbus register address in this range... 1 Read 0 to 65,535 Unsigned 16-bit integer Input register (3XXXXX) ANI Uint (not Unit) 300001–365535 0 to 65,535 Unsigned 16-bit integer Holding register (4XXXXX) ANI Uint (not Unit) 400001–465535 0 to 4,294,967,296 Unsigned, 32-bit (long) integer Input register (3XXXXX) ANI Uint32 300001–365535 0 to 4,294,967,296 Unsigned, 32-bit (long) integer Holding register (4XXXXX) ANI Uint32 400001–465535 –32,768 to +32,767 Signed 16-bit integer Input register (3XXXXX) ANI Sint 300001–365535 –32,768 to +32,767 Signed 16-bit integer Holding register (4XXXXX) ANI Sint 400001–465535 -2,147,483,648 to 2,147,483,647 Signed, 32-bit (long) integer Input register (3XXXXX) ANI Sint32 300001–365535 -2,147,483,648 to 2,147,483,647 uploads/Management/ modbus-integration-guide.pdf
Documents similaires
-
23
-
0
-
0
Licence et utilisation
Gratuit pour un usage personnel Attribution requise- Détails
- Publié le Aoû 04, 2022
- Catégorie Management
- Langue French
- Taille du fichier 0.5835MB