|
||||||||||||||||
|
Connectivity Guide: TOPServer to Modicon PLC via Airlink Raven Cellular Radio Modem
Quick Links The following paper explains the steps that we have taken (here, at the Software Toolbox testing lab) to connect a Modicon Micro PLC to an Airlink Raven modem, for the sole purpose of allowing communications between our TOP Server Modbus Driver and the Modicon Micro via the Airlink Raven Radio. We have also tested TOP Server connectivity to Allen-Bradley PLC/5 and SLC5/04 PLCs via the Airlink Raven modem. For this whitepaper though, we have chosen to focus on the Modbus Micro PLC as this setup appears to be the most common. Although this paper was written around the Modicon 311 Micro PLC we have in our lab, the general concepts covered here apply to any Modicon PLC with a Modbus RTU Serial connection or for that matter, any Modbus RTU device with a Modbus RTU serial connection. Who this paper is for: The following paper is designed for the engineers who handle the PLC and Airlink hardware directly. Software and Hardware discussed: In this paper, we largely concentrate on the cabling between the Airlink Raven modem and the Modicon Micro PLC. We discuss the TOPServer OPC Server connectivity last. Depending upon the help needed will dictate which company you should contact for Technical support, whether it be Airlink or Software Toolbox:
Contact details are:
If you have a cable that will work from a PC com port to talk to the PLC/Modbus Device, then you can make that cable work with the Airlink Raven most likely by simply adding a null modem adapter and any gender changers needed to the PC end of that cable before you connect it the Airlink. The following is a cable diagram of the cable we (Software Toolbox) created in our Lab to connect to our Modicon Micro PLC, which uses an RJ45 connector. The Airlink Raven uses a DB-9 Connector. The following diagram shows the single cable with the DB-9 connection to the left, and the RJ45 connector to the right:
You will notice that PIN #4 on the DB-9 connector has 2 wires: Step 2 - Using this cable to connect Airlink Raven to Modicon Micro Airlink Raven Modem > Null Modem Adapter > Cable > Modicon Micro PLC/Device The following is our Airlink Raven modem configuration. Below you will find the COMPLETE listing of ALL of the values within our Modem. Your settings will differ. Extract from this configuration the COM port configuration settings. It is IMPERATIVE that you have the Baud rate, Parity, and Stop Bit settings on the modem's COM port set to MATCH those on your PLC. Questions relating to your Modem configuration should be directed to Airlink directly.
Click anywhere in this sentence to show/hide our Airlink Raven Modem Settings: TOPServer Configuration:ADBGP: 0 AIP: 1 DAE: 0 DTRP: 0 E: 1 FM: 0 HOR: 0 I0: Raven CDMA I1: ACR200310F2 Nov 14 2003 03020100000000000000000000000000 Boot v1.0.9 (c) 2003 AirLink Communications, Inc. I2: R2_1_0_6SB_VZW_S_H F:/SB555STD/ROSETTA 2003/07/22 14:22:04 011 I3: 09900280164 IPL: 0 MD: 00 MVLEN: 0 MVMSK: 00 MVOFF: 0 MVTYP: 0 OPRG: 1 PTMR: 0 Q: 0 RKEY: 0 S0: 1 S7: 30 S23: 9600,8E1 S50: 1 S51: 0 S53: T/0 S60: 1 S82: 0 S83: 0 S110: 166.139.71.240/12345 S202: -82 S211: 1 S221: 0 TCPS: 1 TCPT: 15 V: 1 VLTG: 0 &C: 1 &D: 0 &S: 1 *CTSE: 0 *DATE: 01/30/2004 18:52:50 *DATZ: 1 *DEVICEID: 0x2C0004EF9DD *DNS1: 66.174.6.7 *DNS2: 66.174.3.7 *DNSUPDATE: 0 *DNSUSER: 0.0.0.0 *DOMAIN: *DPORT: 12345 *DU: 0 *ENQ: 0 *HOSTPEERIP: 192.168.13.31 *HOSTPRIVIP: 0.0.0.0 *HOSTPRIVMODE: 0 *IPMANAGER1: 64.163.70.22 *IPMANAGER2: 64.132.42.2 *IPMGRKEY1: 00000000000000000000000000000000 *IPMGRKEY2: 736F667477617265746F6F6C626F7838 *IPMGRUPDATE1: 0 *IPMGRUPDATE2: 0 *MODEMNAME: pump1.ecs *MSCIUPDADDR: /0 *MSCIUPDPERIOD: 0 *NETCHAN: 283 *NETIP: 166.139.71.240 *NETPHONE: 7045175773 *NETPW: vzw *NETRSSI: -82 *NETSTATE: Network Dormant *NETUID: 7045175773@vzw3g.com *NUMTOIP: 0 *PTINIT: *PTREFRESH: 0 *RESETPERIOD: 0 *TPORT: 2300 *UALL: 1 *UDPLAST: 0 *USD: 0 +CTA: 0 \Q: 0 Foreword If you are new to the TOPServer and don't know where to start, then try one of our TOPServer Quick Start Guides. We have: If you have not installed the TOPServer, then you can download it from here: download TOPServer During the installation you can specify which driver(s) to install, or install everything. You should at least specify the "Modbus Serial" protocol by minimum (we recommended selecting the "Modbus Suite" option) Our TOPServer configuration is shown below as screenshots: Channel Properties:
This is the ONLY Tab for which we set any properties, and that would be to use Ethernet Encapsulation. All other tabs were left with DEFAULT values. Device Properties:
In the above screen, we have specified the Modbus Device Address (ID) of the device.
In the above screen, we have defined the IP Address of our Airlink Raven modem (our Raven uses a static IP). Some of your Airlink Raven modems may have dynamic IP Addresses, if so then you will need to enter the most current IP address in this window. When the IP Address changes, you will need our OPC Server Manager software to intercept those changes and update the TOPServer configuration accordingly. This subject is not in the scope of this specific paper, but please do visit the OPC Server Manager website for more information and a download of the product. We have also specified the DPORT (Data Port) address that the Airlink Raven is listening on. We have also specified that we are using TCP/IP as our transport. The DPORT setting is found in the Airlink Raven configuration, see the Modem example listing above. It is absolutely crucial that ALL of the settings in this screen are correct.
You can see from the above screen that we have INCREASED our timeout settings vs. the default settings. This is because the initial connection between the TOPServer and the Airlink Raven may take some time. Secondly, we have also increased the REQUEST TIMEOUT property to 2-seconds so as to compensate for the additional delays incurred by communicating to this modem via the internet. Your settings "may" need to be increased further. Download our TOPServer Configuration file (*.OPF): TOPServer-MicroAndRaven.opf NOTE: if you wish to download our TOPServer configuration to try and communicate to our Modicon Micro 311 PLC via our Airlink Raven modem, then please do call us (Software Toolbox technical support) in advance so that we can make sure the hardware is powered-up and available. Tel: (704) 849-2773 Testing the TOPServer Communications: The key in troubleshooting this kind of equipment setup is understanding what and how to troubleshoot, and the tools that are available to you. Going back to the testing the cabling section we mentioned that you should test the cable between the PC and PLC/Device before introducing the Airlink Raven. By doing this, we can assure that the cabling is ok, the COM port on the PLC/Device is ok and that general communications is good. Once the Airlink Raven has been introduced into the equation, then the tools that are available in the TOPServer will be the only form of diagnostics available, unless you have some kind of packet -sniffing abilities, or if Airlink provides some diagnostics abilities within the modem (a feature which does not exist as of March 10, 2004 - but is expected in a future firmware versions of the Ravens). The TOPServer diagnostics window is accessed by right-clicking on the Channel (ours is called "modbus") and choosing the "Diagnostics" option from the menu. NOTE: if this option is not present in the menu, then open the Channel Properties instead, and then enable the checkbox called "Enable Diagnostics" which is found in the "General" tab. Once the diagnostics screen is open, you will see a black area of the screen. This area shows the protocol that is being sent and received. Under this area, are some statistics showing the number of successful/failed reads and writes. You MUST have a client connected to the TOPServer and at least A screenshot is shown below:
Question: When does this data show-up in the Diagnostics Window ? Question: What if I see only GREEN (Tx) data? Question: What if I see no indication of anything happening, not even a failed read?
The following list is merely a guideline as to how we recommend you approach your debugging. By following these steps and documenting your findings, when contacting either Airlink or Software Toolbox and having this data already available will result in a much faster turn-around in identifying the problem and solving it.
This paper has explained the following: If you have any questions or comments regarding this sheet, then please let us know by emailing: tech@softwaretoolbox.com If you require Technical Support, please be sure to contact the correct party using the guidelines outlined in the above Contacting Technical Support section. |
|