LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus API with PXIe-8245 for Modbus TCP Communication

Solved!
Go to solution

Hello, 

 

I have an embedded controller PXIe-8881 and I am trying to communicate with a Modbus Client using the PXIe-8245 via ethernet cord. I was able to successfully communicate with the client device when I directly connected the ethernet cord into my computer. However, I am having trouble establishing a connection when I connect the device to the PXIe-8245 and deploy the project to my RT target. I get error 59. I am using the Modbus API.

 

I have also made sure that the RT target, my computer, and the modbus device are on the same subnet. 
What PXI Hardware Is Required To Implement Modbus Communication? - NI
This link doesn't include the PXIe-8245, would this be a compatibility issue?

 

 

Download All
0 Kudos
Message 1 of 4
(190 Views)

Error 59: The Network is Down, Unreachable, or Has Been Reset

Can you ping the IP address?

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 4
(147 Views)

I can ping both my host computer and the modbus device, but not when both are connected to the RT target at the same time. I have tried setting a static IP for the RT target and that didn't work. I am now having trouble setting the RT target to DHCP. It doesn't have an IPv4 address only an inet6 address. When I try to set an IP address from the RT target's command line (sudo ip addr add ... ) I am getting an Error: either "local" is duplicate or "eno0" is a garbage. 

0 Kudos
Message 3 of 4
(97 Views)
Solution
Accepted by topic author purple15

The Error: either "local" is duplicate or "eno0" is garbage went away after rebooting the system. 

Was able to successfully ping both devices simultaneously! I needed to configure the RT target IP to DCHP and change the PXIe-8245 module's IP to be able to connect to the Modbus Device. 

 

0 Kudos
Message 4 of 4
(87 Views)