Disable Communications to 'Modbus_Server_COM_Port' from the logic

dengsberg
2024-08-29
2024-08-30
  • dengsberg - 2024-08-29

    I have a serial Modbus RTU communicating to the Slave device. But when the control system is not in Run there is no power applied to one of the Modbus Devices. Can I enable / disable the communications to that Modbus Slave in the code based on my running mode, so I don't get all the errors?

     
  • kislov - 2024-08-30

    Modbus_Slave_COM_Port.Enable := FALSE;

    where "Modbus_Slave_COM_Port" - slave device name from Device Tree

     

Log in to post a comment.