Hi!
I am trying to add an OPC tag pointing to a Modbus Coil. From reading the manual I understood that the "OCP Item Path" is specified as such:
[OPC-DeviceName]Tagtype + Address
In my case: [temp]C3011
When using this syntax, the tag returns the fault:
"Bad_NotConnected: The variable should receive its value from another variable"
The gateway has a connection to the modbus-device, and the specified address is set up on this external device. I am using "Modbus RTU over TCP" for the device connection.
What are the possible reasons for this error-code?
BR, Nestor.
You're probably getting no response from the device and then the "reconnect after consecutive timeouts" setting is forcing a reconnect.
Are you sure that's the right driver type? Have you tried specifying a non-zero unit id, e.g. [temp]1.C3011
?
I had issues using the "Modbus TCP" protocol, where it would reconnect from the gateway consistently. I did however believe this to be because the device never pointed to any address, causing it to go "Inactive". Does the "Connected" mark in the gateway not mean that it's receiving data from the device?
The device is set up to to force reconnects.
The Modbus device is specified to have the possibility of using both RTU and TCP.
When trying "[temp]1.C3011", I get the error-code:
"Bad_ConfigurationError: There is a problem with the configuration that affects the usefulness of the value."
No, it only means a TCP connection was opened.
Do you have an address map defined or something? Are you sure there's no spaces or other characters in your OPC Item Path? It looks correct for a Modbus address.
If you have some other software (Modpoll, etc...) that can connect and read data then a Wireshark comparison can help figure out the difference.