Ignition Does not reflect PLC value change

Hi All,

I have a problem that I just cant seem to solve.

I have a Rockwell PLC where I have AOI's to create control modules. In order to change the modes in the control modules, I use a common command in which different command values would make different mode changes in the PLC.

In order to reset the command, at the end of the scan, the command value is set to 0 in the PLC.

My on click script in the SCADA sets the value correctly in the PLC and the right mode change is executed, however, when the PLC sets the command to 0 at the end of the scan, the SCADA does not update accordingly. The only way to update correctly is to restart the tag in Designer or to manually change the command value in the PLC to a non zero number which seems to prompt the SCADA to update correctly.

Have played with deadband values and modes with no luck. Its almost as if the command is changed in the PLC to quickly or the SCADA simply does not poll the PLC until a value change is registered.

Putting a delay in the value in the PLC before resetting the value makes it work but also makes the SCADA feel slow.

Any help or tips would be greatly appreciated.

Do you have this tag in a Tag Group in which you’ve enabled “Read After Write”?

Consider using system.opc.writeValue() to set such signals, bypassing the tag system.

This was a recent topic of conversation:

1 Like

Hi Kevin,

It worked perfectly!

I made a new tag group to "Read After Write" which is only used by the command tags I am using to reduce load.

Thank you very much for the help.

You should only use Read After Write if you're also using OPC Polled/Read mode for that Tag Group!

It's dangerous otherwise.

2 Likes