Input Description¶
EN (enable)
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
In order to enable the function block processing, input EN has to be continuously set to TRUE. The function block is not processed if input EN = FALSE. While input is set to TRUE, the inputs are continuously checked for validity and plausibility. If this is not the case, processing is aborted and an error is displayed.
SLOT
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BYTE | 0 | - | - |
The input parameter SLOT chooses the ETHERCAT Communication Module to be queried. The slots are numbered from right to left. Slot number 1 is the one beside the CPU.
LEN (length)
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
WORD | 0 | 1…65535 | byte |
LEN tells the function block how large the buffer in SLV_STATE is. For each slave 4 bytes are needed.
SLV_DEVI (slave \ deviation)
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
POINTER_TO_ARRAY_OF_DINT | 0 | - | - |
SLV_DEVI represents the address of the buffer where the clock deviation for each slave is written. The size of buffer needed is related directly to the number of slaves. 4 bytes (DINT) are needed for each slave. If the buffer is to small, an error will be returned. If the value of LEN does not reflect correctly the size of the buffer, this might be overrun with unpredictable consequences.
Example
A system with a master and 5 slaves is configured.
ECAT_DCLK_DEVI_LEN := 20;
ECAT_DCLK_DEVI_SLV_DEVI: ARRAY [1..5] of DINT;