ModbusClient_RTU
ModbusClient_RTU (FB)
ModbusClient_RTU (FB)FUNCTION_BLOCK ModbusClient_RTU EXTENDS ModbusClientBase
InOut:
Output
xConnected
BOOL
TRUE if connection has been established
ModbusClientBase
Output
xLicenceValid
BOOL
TRUE if a valid license was found
ModbusClientBase
Input
xResError
BOOL
FALSE
Input to reset the error outputs ( eErrorCode, byErrorUnitID ) ( on every rising edge )
Output
iSerialPortFb
INT
0
Feedback of the serial port number
Output
eBaudrateFb
SysCom.SYS_COM_BAUDRATE
SysCom.SYS_COM_BAUDRATE.SYS_BR_4800
Feedback of the transmission speed of the serial port
Output
eParityFb
SysCom.SYS_COM_PARITY
SysCom.SYS_COM_PARITY.SYS_NOPARITY
Feedback of the parity per BYTE of the serial port
Output
eStopBitsFb
SysCom.SYS_COM_STOPBITS
SysCom.SYS_COM_STOPBITS.SYS_ONESTOPBIT
Feedback of the number of stop bits per byte of the serial port
Output
eState
Client_RTU_StateCode
Client_RTU_StateCode.IDLE
Current state of the state machine
Output
byErrorUnitID
BYTE
0
Unit ID of the last error ( 0 = no device )
Output
xError
BOOL
FALSE
Indication of the error state ( FALSE = no error, TRUE = error )
Output
eErrorCode
Client_RTU_ErrorCode
Client_RTU_ErrorCode.NO_ERROR
Indication of the cause of the last error
Input Const
eStopBits
SysCom.SYS_COM_STOPBITS
SysCom.SYS_COM_STOPBITS.SYS_ONESTOPBIT
Setting the number of stop bits per byte of the serial port
Input Const
eParity
SysCom.SYS_COM_PARITY
SysCom.SYS_COM_PARITY.SYS_NOPARITY
Setting the parity per byte of the serial port
Input Const
eBaudrate
SysCom.SYS_COM_BAUDRATE
SysCom.SYS_COM_BAUDRATE.SYS_BR_38400
Setting the transmission speed of the serial port
Input Const
iSerialPort
INT
2
Setting the serial port number
Input Const
tTimeCheckComPort
TIME
TIME#5s0ms
Time interval between two checks for the serial port in idle state
Input Const
tTimeoutDeviceReceive
TIME
TIME#1s0ms
Timeout duration for monitoring the response telegram ( receive )
Input Const
tTimeoutDeviceSend
TIME
TIME#1s0ms
Timeout duration for monitoring the request telegram ( send )
Input Const
tTimeoutComConnect
TIME
TIME#1s0ms
Timeout duration for monitoring the establishment of the connection to the serial port
Last updated

