Input Description

EN   BOOL \   (enable)

In order to enable the Function Block processing, input EN has to be continuously set to TRUE. The 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 corresponding error is displayed at output ERR/ERNO.

EN_CNT   BOOL \   (enable \ counter)

If EN_CNT = TRUE, pulse counting of counter is enabled. If EN_CNT = FALSE, no pulse counting is performed and pulses are not stored even the encoder device changes its position.

If counting has already started and if 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.

SET_START   BOOL \   (set \ start)

If set input SET_START = TRUE, the counter takes the values from input SET_START_VALUE to transfer it to ACT. As long as input SET_START = TRUE, no pulses are counted because the counter is always overwritten by the input SET_START_VALUE.

To synchronize the counter value with the mechanical zero reference based on signal Z, a conventional input channel should be used to read the Z signal as follows:

Example: Use of conventional input channel to acquire the reference signal:

In Control Builder Plus V2.0 and above:

../_images/bd024c0f409b17ae0a33139000eba54e

When the input channel which represents the Z channel is activated, the SET_START goes to true, and ACT goes to the value which is indicated by SET_START_VALUE.

SET_START_VALUE   REAL \   (set \ start value)

The counter can be set to a Set start value. This value must be applied to the input SET_START_VALUE.

If input SET_START = TRUE, the counter takes this value.

EN_CALIB   BOOL \   (enabling \ calibration)

If EN_CALIB = TRUE, when a rising edge is detected at the encoder´s reference point (Z) signal, output Z_VALUE will take the stored value in POS_ACT and output RDY_CALIB is set to TRUE. If this input is continuously set to TRUE, only one calibrating process will be done even system reaches encoder´s reference point (Z) once again. In order to enable another calibrating process, input EN_CALIB has to be set to FALSE and set to TRUE again.

Calibrating process is executed out of CPU cycle, and it is able to detect the multiple rising edges that appear when a simple limit switch is used. Due to that, it is recommended to use devices assembled especially for this purpose (high accuracy limit switch).

EN_SYNC   BOOL \   (enabling \ synchronize)

If input EN_SYNC = TRUE, when a rising edge is detected at the encoder´s reference point (Z) signal, output POS_ACT will take the value stored at Z_VALUE, output RDY_SYNC is set to TRUE only during a program cycle. While EN_SYNC is set to TRUE, POS_ACToutput will take the value stored at Z_VALUE every time that a rising edge is detected at the encoder´s reference point (Z) signal.

MEASURING_STEP   REAL \   (measuring \ step)

Indicates the resolution of the encoder device (see technical data from manufacturer).

For example, using an Incremental encoder with a resolution of 10.000 pulses each 360° and x4 counting mode (software configuration), measuring step will use the following value:

360 / (4 x 10000) = 0,009.

Format: Degrees.

Z_PULSE   BOOL \   (ZPULSE)

Encoder reference position Z reached.

CNT_IN   DWORD \   (counter \ input)

First input data of counter input. The use of an ADR operator is not needed.

Example (for DC522s counter):

In Control Builder Plus V2.0 and above:

../_images/2c4705be409b185a0a33139000eba54e

CNT_OUT   DWORD \   (counter \ output)

First output data of counter output. The use of an ADR operator is not needed.

Example (for DC522s counter):

In Control Builder Plus V2.0 and above:

../_images/26638a78409b0b7e0a33139000eba54e

POS_ACT   REAL \   (position \ actual)

The current position (actual position) can be retrieved at any time using the output ACT of the Function Block. If a shutdown occurs, value of actual position will be lost. Due to that, that parameter must be declared as a retain variable.

Format: Degrees.

Z_VALUE   REAL \   (z \ value)

Indicates the position of the encoders reference point (Z). The user is able to configure where the Z position is.