ETHx_MOD_INFO (FB)
FUNCTION_BLOCK ETHx_MOD_INFO
Function Block serves to read Modbus TCP/IP information
- InOut:
Scope
Name
Type
Initial
Comment
Input
ENBOOLFALSE
Enable function block by TRUE level
ETHBYTEETH1
Index number of the assigned Ethernet interface - input is ignored, existing for compatibility reasons only
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
NUM_SRVBYTE0
Maximum number of supported Server connections (PLC as Modbus TCP Server)
RDYBOOLFALSE
OpenModbus on TCP/IP processing ready
STATWORD0
Status of OpenModbus on TCP/IP processing. Set to 0 in any case, output left for compatibility reasons only
NUM_ERRSDWORD0
Number of errors occured. Does not cover TCP/IP issues like ‘failed to connect’, Modbus errors on established connections only
LAST_ERRWORD0
Code of last error occured. Set to 0 in any case, output left for compatibility reasons only