Incorrect evaluation of a range being exceeded in the L_EsEncoderConv function block (elimination)

Eliminated from:
Library LenzeElectricalShaft V01.03.04.00 and higher, included from Engineer HighLevel 2.10 SP2 onwards

Behaviour of the new version?
If a value range is exceeded at the dnEncoderIn input, not only is the group error message in bit 31 (mapping to status output bError) but also bit 25 (exceeding of value range at the dnEncoderIn input) is set correctly in the status word C5289.





What happens?
In the event of a value range being exceeded at the dnEncoderIn input, only the group error message in bit 31 (mapping to status input bError) is set in status word C5289 but not bit 25 as described in the documentation (exceeding of value range at the dnEncoderIn input).

When does the problem occur?
The problem occurs when the permissible value range for the raw encoder value (dnEncoderIn input) is exceeded. The permitted value range 0 ... dnEncoderInmax is calculated according to the following formula:
                                     dnEncoderInmax = C5273 * C5274 – 1

Possibilities of diagnosis?
For example, use a user code to enter a value outside the above value range limits at the dnEncoderIn input. In the status word C5289. only bit 31 is set permanently but not bit 25.

Short-term measures/recommendations?
If bit 25 of the status code is absolutely necessary, it can be generated by means of an applicative addition in the function block interconnection. For this purpose, the value at the dnEncoderIn input must be compared with the permissible upper limit (C5273*C5274–1) and, if the limit is exceeded, a corresponding status bit must be generated (e.g. by means of the L_TbCompare function block).

Evaluation:
The functional restriction only becomes apparent if the values of codes C5273 and C5274 do not correspond to the real encoder characteristics or if the expected encoder display range is incorrectly exceeded. In both cases, the settings of the encoder/of the parameter values are incorrect. This behaviour is immediately detected during commissioning and can be rectified by means of correct parameterisation.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200910962/1/
Contact form