Input DescriptionΒΆ

../_images/6367ab20e38a1f780a33139000eba54e

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.

PRIO   BOOL \    (priority)

Input PRIO is used to specify the transmit priority of the data package.

The following applies:

PRIO = FALSE:

The specified data package has low priority. Thus, it is stored in the low priority transmit buffer. All outputs refer to this buffer.

PRIO = TRUE:

The specified data package has high priority. Thus, it is stored in the high priority transmit buffer. All outputs refer to this buffer.

TOUT   WORD \    (timeout)

Using input TOUT, the timeout period can be specified. If TOUT <> 0, the UDP/IP data exchange is automatically performed with receive acknowledgement. If a data package cannot be transmitted within this period (no acknowledge telegram is received), transmission is aborted and the package is lost.

In this case, some distinctive bytes of the data package are stored to the timeout buffer and can then be read using the Function Block ETHx_UDP_STO.

If TOUT = 0, no acknowledgement is expected.

The following applies:

TOUT = 0:

Data exchange without receive acknowledgement. No data are written to the timeout buffer.

TOUT <> 0:

Data exchange with receive acknowledgement. Each transmitted data record is acknowledged by the recipient. If no acknowledge telegram is received within the set timeout period (in ms), the data are written to the timeout buffer.

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