Solved. Enable this feature by editing C:\ProgramData\CODESYS\Devices\89\0000 0005\4.4.0.0\device.xml (config params 9105 and 9106).
Hi. There is next information in CODESYS Modbus 4.4.0.0 Release Notes: "Modbus network redundancy" How to use this feature? As I understand, new fields in STUCT ModbusTCPComSettings are associated with it, but more detailed information is needed.
Hi. There is next information in CODESYS Modbus 4.4.0.0 Release Notes (https://www.codesys.com/fileadmin/data/Images/System/Releaseinformation/Release-Notes-CODESYS-Modbus-4400.html): "Modbus network redundancy" How to use this feature? As I understand, new fields in STUCT ModbusTCPComSettings are associated with it, but more detailed information is needed.
Modbus_Slave_COM_Port.Enable := FALSE; where "Modbus_Slave_COM_Port" - slave device name from Device Tree
Use in IEC-code: Modbus_Serial_Device.UpdateComPortSettings(...) https://content.helpme-codesys.com/en/libs/IoDrvModbusSerialSlave/Current/pou-ModbusSerialDeviceDiag/UpdateComPortSettings.html Take note: "Only possible if server is disabled (see xEnable Input)" So: Modbus_Serial_Device.xEnable := FALSE; Modbus_Serial_Device.UpdateComPortSettings(...) Modbus_Serial_Device.xEnable := TRUE; Please note that after PLC reboot the values from the GUI (from your screenshot) will be applied again. So you...
Use in IEC-code: Modbus_Serial_Device.UpdateComPortSettings(...) https://content.helpme-codesys.com/en/libs/IoDrvModbusSerialSlave/Current/pou-ModbusSerialDeviceDiag/UpdateComPortSettings.html Take note: "Only possible if server is disabled (see xEnable Input)" So: Modbus_Serial_Deivice.xEnable := FALSE; Modbus_Serial_Deivice.UpdateComPortSettings(...) Modbus_Serial_Deivice.xEnable := TRUE; Please note that after PLC reboot the values from the GUI (from your screenshot) will be applied again. So...
Use in IEC-code: Modbus_Serial_Deivice.UpdateComPortSettings(...) https://content.helpme-codesys.com/en/libs/IoDrvModbusSerialSlave/Current/pou-ModbusSerialDeviceDiag/UpdateComPortSettings.html Take note: "Only possible if server is disabled (see xEnable Input)" So: Modbus_Serial_Deivice.xEnable := FALSE; Modbus_Serial_Deivice.UpdateComPortSettings(...) Modbus_Serial_Deivice.xEnable := TRUE; Please note that after PLC reboot the values from the GUI (from your screenshot) will be applied again. So...
Use in IEC-code: Modbus_Serial_Deivice.UpdateComPortSettings(...) https://content.helpme-codesys.com/en/libs/IoDrvModbusSerialSlave/Current/pou-ModbusSerialDeviceDiag/UpdateComPortSettings.html Please note that after PLC reboot the values from the GUI (from your screenshot) will be applied again. So you need to save values from HMI in RETAIN and restore them after start of application.