Studio 5000 MSG Instruction Question

Hey all,

I am trying to configure a message block to read and write between a CLX processor and a PLC5 processor. The network path is as follows:
Start: CLX EN2T Card (PCN_Network)
First Hop:10.192.192.199 EN2T card in a chassis with EN2T in slot 0 and DH+ in Slot 1.
Second Hop: DH+ Card to PLC5 over channel A node 03.

I have the MSG instruction image attached. The way I understand it - the message instruction I wrote is configured to take the following path - PCN Network (EN2T Card) out via Ethernet - to 10.192.192.199's back plane, out of slot one, and then the DH+ configuration below.

Network wise, there are some firewalls / managed switches in between the CLX EN2T card and the 10.192.192.199. I am trying to determine if the MSG is failing due to my writing it incorrectly. Or if I need to reach out to IT to allow this connection to happen.
Comms.PNG
Thank you in advance!
 
The EN2T module in your local chassis will have an Ethernet network under it in the IO tree. Can you right-click on that network and add the EN2T in the remote chassis? If so, you can then expand the remote EN2T to its backplane and add its DHRIO module. That may help isolate the problem, even if you don't leave it like that.

I've done something like that in a Frankenstein system. The new PLC doing a few limited things was a CompactLogix that had a 1756 chassis in its IO tree. That chassis had an ENBT, DHRIO, and 2 AMCI resolver modules in it. The DHRIO was on the same DH+ network as the main line PLC5. That setup worked very well, but, of course, it was all a local network with no VLANs or firewalls involved.
 
Thanks @joseph_e2 - I just added the 10.192.192.199 ethernet card via the I/O tree under PCN_Network.

I was able to add the new EN2T card via discovery- then through that drop down I was able to find the DHRIO+ module, and then via that drop down I was able to find the PLC5 node 3 (although I do not have the proper EDS file installed).

But all of the modules are faulted for Code 16#0204 Connection Request Error : Connection Timeout

This tells me that they can see eachother but comms aren't allowed. I think this is pointing me in the direction of firewall/switch modifications. Let me know if anything else could be causing this. (10.192.192.199 is working otherwise)

Thanks
 
This kind of message is delivered via CIP path only as far as the 1756-DHRIO. Then the DHRIO processes it on the selected channel, to a DH+ node on a local or remote DH+ link.

And that's what yours appears to be set up to do. The CIP Path to the DHRIO looks correct based on what you have described.

I would test this by configuring a test message that sends a List Identity command to the remote EN2T module, and then test it by sending that command to the DHRIO module. That will verify that your routers and modules are set up correctly to get the CIP message through.

If your first and second EN2T modules aren't on the same IP subnet, then double-check the Default Gateway on the second one. It has to know how to respond to packets that come from outside its own IP subnet.

If you've got a computer connected to the PCN_Network, you can of course use RSLinx to try to do this browsing, and/or try to be sure that the correct ports are all open by using Windows PowerShell. "tnc 10.192.192.199 -p 44818" will tell you if the routers and firewalls are set to allow a TCP Port 44818 connection to the remote 1756-EN2T.
 
This kind of message is delivered via CIP path only as far as the 1756-DHRIO. Then the DHRIO processes it on the selected channel, to a DH+ node on a local or remote DH+ link.

And that's what yours appears to be set up to do. The CIP Path to the DHRIO looks correct based on what you have described.

I would test this by configuring a test message that sends a List Identity command to the remote EN2T module, and then test it by sending that command to the DHRIO module. That will verify that your routers and modules are set up correctly to get the CIP message through.

If your first and second EN2T modules aren't on the same IP subnet, then double-check the Default Gateway on the second one. It has to know how to respond to packets that come from outside its own IP subnet.

If you've got a computer connected to the PCN_Network, you can of course use RSLinx to try to do this browsing, and/or try to be sure that the correct ports are all open by using Windows PowerShell. "tnc 10.192.192.199 -p 44818" will tell you if the routers and firewalls are set to allow a TCP Port 44818 connection to the remote 1756-EN2T.
Thank you Ken, this is very useful information. The TNC connect through powershell worked from a PC on the PCN network to the 10.192.192.199 ENBT card. Additionally, our IT guy was able to add a rule for this new communication path. Still not able to pass the message through.

However, the default gateway on the second one (10.192.192.199) is 10.192.192.1.

I am fairly new to the networking side of things and have been learning as I go. What would I want to change this default gateway to in order to allow communications between the two different subnets?

Thanks in advance!
 
It's good that you've got your IT department on your side, and the fact that a connection works to 10.192.192.199 on TCP Port 44818 appears to work is a positive step.

I may be overlooking or misunderstanding something about your system, and there could certainly be device-specific or port-specific rules, configurations, or features that are preventing the connection between the pictured ControlLogix and the specified 1756-EN2T at IPv4 address 10.192.192.199.

The pictured ControlLogix and the "PCN_Network" are not on the same IP subnet with the 1756-EN2T, correct ? There's a nontrivial physical and logical network path between them.

If I were troubleshooting the problem, I would create an all-new MSG instruction in the ControlLogix with its own control tag, and use it to experiment with just getting from your ControlLogix to that 1756-EN2T. I like the "List Identity" function because it's simple and gives you enough information to identify the target device by the results. In the MSG instruction configuration, List Identity is under the CIP Generic message types, with the name "Device WHO". You see it's addressed for Service Code 1, Class 1, Instance 1.... the basic Identity object of a device that every Rockwell or EtherNet/IP device built in the past 25 years understands.

Be sure that you have an ordinary XIC tied to a testing BOOL to control the rung conditions, so there's no question about when the MSG gets triggered for testing.

That will verify that you're getting a TCP connection and a valid CIP response from the Ethernet and CIP networked devices. Once you're sure that works, you can move to trying it with your actual application, an "Execute PCCC payload" request to a DHRIO module and a DH+ channel.
 
Pictures can help. I like to make the destination tag a SINT array so I can look at the data byte-by-byte. The size can differ depending the module name; SINT[64] is usually big enough.

This is just a way to essentially mimic RSWho, to prove that the basic functions and basic networking are functioning the way you want, before troubleshooting other stuff about caching and DH+ commands and buffers and such.

MSG_to_EWEB_1.pngMSG_to_EWEB_2.png
 
Wow @Ken Roach , thank you so much for the tips and effort you've put forth helping me out.

Fortunately, after communicating with IT, they were able to create the necessary rules to allow the communications to happen. I didn't have to change anything about the message configuration - I was online with the PLC and I suddenly noticed the .ERR bit stop flashing on the MSG block, I then verified my test message was successfully passing to the PLC5. Two minutes later I received an email from IT saying they were able to correct the issue.

The pictures and troubleshooting steps you provided will undoubtedly assist me in the future. I will be sure to utilize the Device WHO message you showed above, I didn't realize that was a tool I could use. The pictures and explanation you've provided make it crystal clear.

Thanks everyone !
 

Similar Topics

I'm using MSG instructions to exchange information with a Keyence MK-G1000 printer. Every once in a while I'll get an error on the MSG write...
12
Replies
929
Views
I need assistance with writing a logic for sending data from a Station PLC using 1 MSG instruction to an AGC PLC in every cycle using a CIP Data...
2
Replies
2,016
Views
Can Anyone tell that How Msg Instruction comes under Unscheduled communication and How System Overhead time slice(SOTS) function connected to it...
1
Replies
1,913
Views
In Studio 5000 is there any way to change the path for a MESSAGE datatype during runtime? I want to be able to set the same Path(IP address)...
21
Replies
10,623
Views
Is there any good way to send actually messages to another PLC? The MSG instruction isn't really a message it just continuously writes to a tag...
2
Replies
2,401
Views
Top