Modbus TCP - Registers NULL Value - Quality BAD

Hi, I'm trying to integrate my Modbus TCP Server Device. I've tested it using ModScan32 but I have no success with Ignition.
My device appears connected but I'm not able to read the registers values using the OPC Quick Client. I've tried different approaches: using and removing '4' prefix for modbus address, using different device Id and registers names, I didn't have luck!

I hope someone can support!

Regards!



Modscan is polling four registers, but you are trying to poll five registers. Consider not using the address mapping feature of the driver (no longer recommended by the IA driver author), but use manually constructed OPC item paths in your Ignition tags.

Thank you! I've tried with creating the constructed OPC item but I got the following. I'm missing something or should I try to setting OPC Server, enable firewall? I'm just stuck with this! :frowning:

Mi opc tag config:

One screenshot shows 0.HR1, while the other shows 1.HR1. Which is it? (I would expect the latter to work.)

If it doesn't, you need to collect some packets with wireshark on the gateway to see if you have any firewall or network issues.

Oh I'm sorry. I've updated the wrong screenshot. I've also tried with the following with no success:
ns=1;s=[esp_demo]1.HR1
ns=1;s=[esp_demo]HR1

I'm going to do the wireshark test and I'll keep you in the loop!

This is equivalent to [esp_demo]0.HR1 in Ignition's native driver. It defaults to slave unit #0 when the unit is omitted.

Ok, I got it.

I've did some Wireshark test, this is the Ignition requests for OPC tag ns=1;s=[esp_demo]1.HR1 :

The response:

As you can see, we are reading the reg1 value 101, that's is correct, but why in the Ignition Designer - OPC tag shown 'bad' value? My PC which running Ignition is connected to WiFi Adapter and not Ethernet, that would be the problem?

No idea. Have you run tag diagnostics? (Upper right of the tag editor.)

Not a problem for light loads. Not a good idea for a production system.


Under "Status", "Connections", and "Devices" and your device; there is a running log for the connection. What does it say?

Have you allowed your trial to expire? (You can keep designing when trial has expired, but most device data flow stops.)

1 Like