In Today's article I walk you through how to Message data from a SLC-5/05 to a MicroLogix 1400 over Ethernet using the MSG instruction.
Note: In this example I have a SLC-5/05 at IP Address 192.168.1.47, and a MicroLogix 1400 at IP Address 192.168.1.66. Both have the same subnet address, and are attached to the same network via an Ethernet switch. Each program also had the N7 file expanded to 10 words, and the SLC-500 program has a free running Timer in Rung 0 of Program File 2 as shown below:
Step 4) And then I assign a Control Block starting address for a block of 51 unused integers. In this example I chose a starting point of N10:0, and the MSG instruction will use N10:0 through N10:50 for it's control words:
Note: The Target Device's Data Table Address does not have to be the same address as the Source Address.
Step 11) Where I fill in the IP address of the target MicroLogix 1400 in the To Address field. Then I close the Setup Screen:
Step 12) Back in Ladder File 2, I place an XIC in front of the MSG instruction. For the XIC instruction's address, I use the Done Bit of my existing two second free running Timer. This will trigger the message every two seconds, a slow enough period that I'd be able to see the resulting status of each message attempt before the next message attempt is made:
Note: Since A-B Programmable Controllers have limited buffer space for MSG instructions, it's typically not recommended to have multiple unconditional MSG instructions in your program. Instead, consider interlocking messages, or triggering them based on timers, to insure you never overfill your controller's message buffer. Doing so can also eliminate unwanted network traffic that unconditional / continuous Messages can generate.
Step 13) With my program complete, I now enter a value into N7:0 which will be written to the MicroLogix controller when the MSG instruction executes. Then I download and run the program:
To watch a video demonstration of the above, check out Episode 42 of The Automation Minute Season 4 below:
If you found this article helpful, please share it with your colleagues on LinkedIn, Facebook, Twitter or Goggle Plus!
And if you know anyone who would benefit from Allen-Bradley PLC, HMI, or SCADA training, please let them know about my affordable courses over at TheAutomation School.
You can also share your own thoughts and opinions on this subject by clicking on the “post a comment or question” link below.
Click HERE to scroll down to view or leave comments