Input DescriptionΒΆ

../_images/bd7e443c4e1e6edb0a33139001f9c23b

EN (enable)

Data type: 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. When calling the Function Block the first time, the inputs are checked for validity and plausibility. If this is not the case, processing is aborted and corresponding error is displayed at output ERR/ERNO.

INST (instance)

Instance description of the Function Module that should be controlled via this function block. The variable is automatically generated during the configuration with the Automation Builder. Use the operator ADR to get the address of the variable.

../_images/c3d8fd335683d75e0a317d31511d92011

Example

EN_CNT (enable counter)

Data type: BOOL

If EN_CNT=TRUE , pulse counting of counter is enabled. If EN_CNT=FALSE, no pulse counting is performed and the pulses are lost. If counting has already started and EN_CNT = FALSE, the pulse counting stops and counter value ACT is stored. If EN_CNT = TRUE again, the pulse counting will start again and counter value ACT will continue since previous value.

EN_TOUCH (enable touch)

Data type: BOOL

A rising edge at input EN_TOUCH enables a catch/touch trigger measurement. If input EN_TOUCH = TRUE, a rising edge at digital inputs DI0, DI1, DC2, DC3 (for counters A and B) causes the Function Block to store the actual counter value ACT1 and ACT2 and to display this value at output CNT_TOUCH1 and CNT_TOUCH2.

If input EN_TOUCH is set to FALSE, the output RDY_TOUCH is set to FALSE.

EDGE_TOUCH

Data type: BOOL

If EDGE_TOUCH = FALSE, a catch/touch value will be operate on falling edge of the configured digital input (for counters A and B).

If EDGE_TOUCH = TRUE, a catch/touch value will be operate on rising edge of the configured digital input (for counters A and B).

UD1 (up/down mode for counter 1)

Data type: BOOL

At input UD1, the counting selection is set for up/down counting mode for counter A:

UD1=FALSE: count up

UD1=TRUE: count down

UD2 (up/down mode for counter 2)

Data type: BOOL

At input UD2, the counting selection is set for up/down counting mode for counter B:

UD2=FALSE: count up

UD2=TRUE: count down

RESET1 (reset counter 1)

Data type: BOOL

If input RESET1 = TRUE, the counter value (ACT1) is reset to 0. As long as input RESET1 = TRUE, no pulses are counted because the counter is always overwritten by the value 0.

A rising edge at input DI0, DI1, DC2, DC3 (for counter A) causes the function block to reset the value at output ACT1.

RESET2 (reset counter 2)

Data type: BOOL

If input RESET2 = TRUE, the counter value (ACT2) is set to 0.As long as input RESET2 = TRUE, no pulses are counted because the counter is always overwritten by the value 0.

A rising edge at input DI0, DI1, DC2, DC3 (for counter B) causes the function block to reset the value at output ACT2.