In Today's article I walk you through how to Message data from a MicroLogix 1400 to a MicroLogix 1100 over Ethernet using the MSG instruction.
Note: In this example I have a MicroLogix 1400 at IP Address 192.168.1.66, and a MicroLogix 1100 at IP Address 192.168.1.63. 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 MicroLogix program has a free running Timer in Rung 0 of Program File 2 as seen below:
Step 1) My first step is to add a new Rung to Program File 2 of my MicroLogix 1400 program. Then I add a MSG instruction to that rung:
Step 3) Now in the MSG Setup Screen I set the Channel the MSG instruction will use to 1 since that is the Ethernet channel on the MicroLogix 1400:
Step 7) Now under Target Device I set the Data Table Address I want to write the data to in the target PLC, which in this example is also N7:0:
Step 8) The final setting I need to fill in on this tab that is the Routing Information File, which for this example I use file RI11:0:
Step 10) Where I fill in the IP address of the target MicroLogix 1100 in the To Address field. Then I close the Message Setup Screen:
Step 11) 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 12) With my program now complete, I download it to my MicroLogix 1400 and run it.
To watch a video demonstration of the above, check out Episode 44 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!
You can also share your own thoughts and opinions on this subject by clicking on the “post a comment or question” link below.
Sponsor and Advertise: Get your product or service in front of our 70K followers while also supporting independent automation journalism by sponsoring or advertising with us! Learn more in our Media Guide here, or contact us using this form or by calling our office at 413-749-4300.
- New SIEMENS Products From This Week's Virtual Tour - May 20, 2022
- Sharing Data Between A-B Programmable Controllers - May 19, 2022
- Stepless Multi-Variable Closed Loop PID Tuning from PiControl (P102) - May 18, 2022