Input Description

../_images/f1ed2495020cf9ba0a317f342e3f5183

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.

SLOT

Data_Type Default_Value Range Unit
BYTE 0 0 … 4 (6) -

At input SLOT, the Communication Module slot is specified which should be used by the Function Block.

The internal Communication Module always has the index 0. All external Communication Modules are serially numbered from right to left, starting with 1.

NODE

Data_Type Default_Value Range Unit
DWORD 0 1 … 4294967295 -

NODE represents the ETHERCAT address of the slave.

IDX (index)

Data_Type Default_Value Range Unit
WORD 0 1 … 65535 (depending on the ETHERCAT slave) -

Index of the object which should be read/written.

SUBIDX (subindex)

Data_Type Default_Value Range Unit
BYTE 0 1 … 255 (depending on the ETHERCAT slave) -

Subindex of the object, which should be read/written.

LEN (length)

Data_Type Default_Value Range Unit
UINT 0 1 … 65535 byte

LEN tells the function block how large the buffer in SLV_STATE is. For each slave 4 bytes are needed.

DATA (object \ data)

Data_Type Default_Value Range Unit
POINTER_TO_ARRAY_OF_BYTE 0 - -

Address of the data buffer where the value of the object (Index:Subindex) should be read. The needed buffer depends on the queried object.

TOUT (timeout)

Data_Type Default_Value Range Unit
UINT 0 0-65535 ms

Timeout constraint for the function block. If this is exceeded, the function block returns with ERR set to TRUE.