Write a Digital Tag to PLC M340 via Modbus TCP

Hello everyone,

I want to write a single bit variable in a M340 PLC. I have declared a Digital variable inside Citect Application with address %MW50.1.

I can read the variable value if a force from the PLC, but I cannot write the value from the SCADA.

The syntax "variable_name" = 1 or "variable_name" = true doesn't work. (for analog values it works)

Parents
  • You cannot write the variable from SCADA if it is forced. Not using your syntax and not using TagWrite().
    Please check if you are able to change the value in the PLC from Unity Pro, not using force, but using modify value. If that is not possible, then there is something in the PLC (program logic?) preventing the writes to the variable.

    Edit: I just realized this is an old thread. I hope it is still helpful.

Reply
  • You cannot write the variable from SCADA if it is forced. Not using your syntax and not using TagWrite().
    Please check if you are able to change the value in the PLC from Unity Pro, not using force, but using modify value. If that is not possible, then there is something in the PLC (program logic?) preventing the writes to the variable.

    Edit: I just realized this is an old thread. I hope it is still helpful.

Children
No Data