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

EN

BOOL

FALSE

Enable function block by FALSE->TRUE edge

ETH

BYTE

ETH1

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

IP_ADR

DWORD

0

IP address of the remote Modbus TCP Server device

UNIT_ID

BYTE

0

Unit identifier for the Modbus TCP frame

FCT

BYTE

0

Function Code as specified in Modbus Protocol Specification

ADDR

WORD

0

Operand/Register address in remote Modbus TCP Server device

NB

WORD

0

Amount of data units to be sent/received

DATA

DWORD

0

Address of local buffer for data to be sent or received

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