ETHx_MOD_MAST (FB)
FUNCTION_BLOCK ETHx_MOD_MAST
Function Block serves to send Modbus on TCP/IP requests to a server and evaluate the response
- InOut:
Scope
Name
Type
Initial
Comment
Input
ENBOOLFALSE
Enable function block by FALSE->TRUE edge
ETHBYTEETH1
Index number of the assigned Ethernet interface - input is ignored, existing for compatibility reasons only
IP_ADRDWORD0
IP address of the remote Modbus TCP Server device
UNIT_IDBYTE0
Unit identifier for the Modbus TCP frame
FCTBYTE0
Function Code as specified in Modbus Protocol Specification
ADDRWORD0
Operand/Register address in remote Modbus TCP Server device
NBWORD0
Amount of data units to be sent/received
DATADWORD0
Address of local buffer for data to be sent or received
Output
DONEBOOLFALSE
Execution is finished when set to TRUE
ERRBOOLFALSE
Error occured during execution when set to TRUE
ERNOWORD0
Code of error occured during execution