|
|
|
|
ModbusDisconnect (Function) In french: ModbusDisconnect Closes the Modbus session. This function disconnects the client from the Modbus server or slave and releases the serial port in the case of an RTU session. New in version 2024
Session is modbusSession
Session = ModbusConnectRTU("COM4")
IF ErrorOccurred = True THEN
Trace(ErrorInfo())
ELSE
ModbusWriteRegister(Session, 0x42, 0xCAFE)
END
ModbusDisconnect(Session)
Syntax
ModbusDisconnect(<Session>)
<Session>: modbusSession variable Name of the modbusSession variable that corresponds to the Modbus session to be closed. Business / UI classification: Business Logic
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|