Input DescriptionΒΆ

../_images/84d68649e38a20520a33139000eba54e

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

The input EN has to be driven in edge triggered mode.

The execution of the Function Block is started with a positive edge on the input EN.

In the first call it evaluates its inputs and creates a local copy of them. Afterwards it starts its internal algorithm. It may take several PLC task cycles until it is executed.

Once the execution is completed DONE and its other outputs are set. To start the Function Block again a new positive edge on the input EN has to be applied.

ETH   BYTE \    (ETHERNET index number)

At input ETH, the ETHERNET index number is specified. The assignment is as follows:

1 ETHERNET interface at Onboard ETHERNET 1
2 ETHERNET interface at Onboard ETHERNET 2
11 ETHERNET interface at Communication Module slot 1 *)
21 ETHERNET interface at Communication Module slot 2 *)
31 ETHERNET interface at Communication Module slot 3 *)
41 ETHERNET interface at Communication Module slot 4 *)
51 ETHERNET interface at Communication Module slot 5 *)
61 ETHERNET interface at Communication Module slot 6 *)

*) The Communication Modules are serially numbered from right to left, starting with module number 1.

INDEX   BYTE \    (index \ of connection)

Index of the standard UDP/IP connection corresponding to the PLC configuration, starting with 0. The Function Block only works on the connection that was selected by this input, and with the parameters set in the PLC configuration, e.g. port, buffer size, behaviour in case of buffer overflow etc.

IP_ADR_REM   DWORD \    (Remote \ IPaddress)

At this input, the IP address of the recipient is specified. Each byte in IP_ADR_REM represents one octet of the address.

Example:

IP address 192.15.24.2,

IP_ADR (hex) 16#C00F1802,

IP_ADR (dec) 3222214658

PORT   WORD \    (port \ to send to)

The target port of the receiver is specified here.

DATA   DWORD \    (data)

At input DATA, the address of the variable is specified the data of which are transmitted as user data in this package. The address specified at DATA has to belong to a variable of the type ARRAY or STRUCT.

LEN   WORD \    (length)

At input LEN, the number of user data bytes is specified for the specified package.

The following applies: 1 <  LEN < 1464