Input Description¶
EN
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | FALSE | TRUE/FALSE | - |
The input EN has to be driven in level triggered mode.
In order to enable the execution of the Function Block the input EN has to be set to value TRUE. It keeps on executing until the input EN is set back to value FALSE.
While it is executed its inputs are continuously evaluated.
CHANNEL
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BYTE | - | - | - |
Input CHANNEL is used to select the input for the counter. Currently the only valid value is 0. The device occupies the inputs I0…I1. If an invalid value is entered at input CHANNEL or if the selected channel is not configured as a counter, the Function Block is aborted with DONE=ERR=TRUE and a corresponding error number at ERNO.
CHANNEL contains the channel number managed by the Function Block:
- CHANNEL = 0: the output O2 is managed
- CHANNEL = 1: the output O3 is managed
EN_VISU
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If input EN_VISU = TRUE, it is also possible to control the Function Block inputs (except CHANNEL and EN_VISU) via the integrated visualization of the Function Block. If input EN_VISU = FALSE, control via the visualization is disabled and the labelling of the corresponding control elements is displayed in gray. The actual values are always displayed.
EN1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If input EN1 = TRUE, pulse counting of counter 1 is enabled. If EN1 = FALSE, no pulse counting is performed and the pulses are lost.
Input EN1 corresponds to bit 1 in control byte 0.
UD1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
At input UD1, the counting direction is set for operating modes with up/down counters (modes 3…6).
The following applies:
UD1 = FALSE → counter 1 counts up
UD1 = TRUE → counter 1 counts down
If input SET1 = TRUE, the counter takes this value.
Input UD1 corresponds to bit 0 in control byte 0.
EN_OUT1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Input EN_OUT1 is used to enable/disable the output control for the operating modes with direct output activation (modes 1 and 2).
Note
The functionality of the input variable is not supported before Onboard I/O firmware V1.04.
Only for fast counter operating modes 1 and 2:
If EN_OUT1 = FALSE, the related digital output DO acts as an output indicating “end value reached” of the fast counter.
If EN_OUT1 = TRUE, the related digital output DO can be used as normal digital output.
The value change of EN_OUT1 is only effective when EN = TRUE.
Input EN_OUT1 corresponds to bit 3 in control byte 0.
SET1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If set input SET1 = TRUE, the counter takes the values from the inputs UD1, START1 and END1.
As long as input SET1 = TRUE, no pulses are counted because the counter is always overwritten by the start value START1.
Input SET1 corresponds to bit 2 in control byte 0.
START1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD |
At input START1, the start value of counter 1 is entered.
If input SET1 = TRUE, counter 1 takes this value.
END1
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | - | - |
At input END1, the end value of counter 1 is entered.
If input SET1 = TRUE, counter 1 takes this value.
UD2
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
At input UD2, the counting direction is set for operating modes with up/down counters (modes 3…6).
The following applies:
UD2 = FALSE → counter 2 counts up
UD2 = TRUE → counter 2 counts down
If input SET2 = TRUE, the counter takes this value.
Input UD2 corresponds to bit 0 in control byte 1.
EN_OUT2
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
Note
The functionality of the input variable is not supported before Onboard I/O firmware V1.04.
Input EN_OUT2 is reserved. The value FALSE has to be applied.
Input EN_OUT2 corresponds to bit 3 in control byte 1.
SET2
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
BOOL | - | - | - |
If set input SET2 = TRUE, the counter takes the values from the inputs UD2, START2 and END2.
As long as input SET2 = TRUE, no pulses are counted because the counter is always overwritten by the start value START2.
Input SET2 corresponds to bit 2 in control byte 1.
START2
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | - | - |
At input START2, the start value of counter 2 is entered.
If input SET2 = TRUE, counter 2 takes this value.
END2
Data_Type | Default_Value | Range | Unit |
---|---|---|---|
DWORD | - | - | - |
At input END2, the end value of counter 2 is entered.
If input SET2 = TRUE, counter 2 takes this value.