Input Description

../_images/7a905bb94e1e77340a331390011e4c96

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_0 (enable 0)

Data type: BOOL

If EN_0=TRUE, the time frequency measurement will be captured on the falling edge of signal.

EN_1 (enable 1)

Data type: BOOL

If EN_1=TRUE, the time frequency measurement will be capture on rising edge of signal.

EN_FREQ (enable frequency)

Data type: BOOL

If EN_FREQ=FALSE, the time frequency measurement will be specified in time mode and displayed on output DUR (in µs).

If EN_FREQ= TRUE, the time frequency measurement will be specified in frequency and rpm modes and displayed on output FREQ (in Hz) and RPM (in rotation per minute).