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

EN

BOOL

FALSE

Enable function block by TRUE level

ETH

BYTE

ETH1

Index number of the assigned Ethernet interface - input is ignored, existing for compatibility reasons only

Output

DONE

BOOL

FALSE

Execution is finished when set to TRUE

ERR

BOOL

FALSE

Error occured during execution when set to TRUE

ERNO

WORD

0

Code of error occured during execution

NUM_SRV

BYTE

0

Maximum number of supported Server connections (PLC as Modbus TCP Server)

RDY

BOOL

FALSE

OpenModbus on TCP/IP processing ready

STAT

WORD

0

Status of OpenModbus on TCP/IP processing. Set to 0 in any case, output left for compatibility reasons only

NUM_ERRS

DWORD

0

Number of errors occured. Does not cover TCP/IP issues like ‘failed to connect’, Modbus errors on established connections only

LAST_ERR

WORD

0

Code of last error occured. Set to 0 in any case, output left for compatibility reasons only