Input Description¶
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_ID
| Data_Type | Default_Value | Range | Unit |
|---|---|---|---|
| BYTE | - | - | - |
Output NODE_ID displays the own NODE ID of the Communication Module.
PRIO
| Data_Type | Default_Value | Range | Unit |
|---|---|---|---|
| BOOL | - | - | - |
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
| Data_Type | Default_Value | Range | Unit |
|---|---|---|---|
| WORD | 200ms | - | - |
Using input TOUT, the timeout period can be specified. If TOUT <> 0, the ARCNET 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 (see also the PLC configuration of the Control Builder) are stored to the timeout buffer and can then be read using the Function Block ARC_STO.
If TOUT = 0, no acknowledgement is expected.
The following applies:
TOUT = 0 means: Default value for TOUT, given by PLC configuration, is used.
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
| Data_Type | Default_Value | Range | Unit |
|---|---|---|---|
| DWORD | - | - | - |
Input DATA is used to specify the address of the variable to which the user data shall be copied. DATA must be the address of a variable of the type ARRAY or STRUCT.
CAUTION: Set the variable size to the maximum expected amount of data in order to avoid overlapping of memory areas.
LEN
| Data_Type | Default_Value | Range | Unit |
|---|---|---|---|
| WORD | - | - | byte |
Output LEN displays the length of the received data package in bytes.