Hello, I have am trying to commission a system using Ignition 8.0.1 that connects to an AD Productivity 3000 using the Modbus TCP driver. It seems to read the tags fine, but does not write to tags. I get the error message: “Error writing “value” to tag (tagname) Bad”. I also cannot seem to find any error messages to this in the logs, any suggestions? A few other posts suggested to ensure that the PLC is setup for external write access, to my knowledge this is enabled. AD tech support is out on the weekends so i’m at a loss
What’s the address of the tag you’re trying to write to?
I have my tags mapped as INT range 1 to 100, type Holding register(Int16), unitid 0, modbus address 1.
Its not just one specific tag but one is INT3 and another is INT21.1
Are you sure there’s not an error like the one in this post in your gateway logs?
I was able to capture that error in the logs just now. Thank you for the post link, I will check it out.
The post suggests using a script workaround, are there no other ways to write data into the PLC?
That error occurs when you’re trying to write to a bit within a register word but the PLC doesn’t support the MaskWriteRegister function.
You should hopefully be able to write to whole registers without a script.
Yes, I tested this and it looks like it will work. Are modbus coils written in the same way?
No coils are already bits, there shouldn’t be any issues writing to them unless the PLC didn’t support it for some reason.
Thank you for your help. I will try it this way