FB_EncoderReadScalingParam_M262: Read the Scaling Parameter
This function block is used to read the active values of the scaling parameter used to compute the unit value, in incremental or SSI mode.
To see the general representation in IL or ST language, refer to the chapter Function and Function Block Representation.
This table describes the input variables:
Input |
Type |
Default |
Comment |
---|---|---|---|
ENC_REF_M262 |
ENC_REF_M262 |
– |
Reference of the encoder instance. |
xEnable |
BOOL |
FALSE |
TRUE enables the encoder function block reading active values of the scaling parameter used to compute lrCurrentValue_Unit. FALSE disables the function block. |
This table describes the output variables:
Output |
Type |
Default |
Comment |
---|---|---|---|
xValid |
BOOL |
FALSE |
TRUE indicates that the output values on the function block are valid. |
xError |
BOOL |
FALSE |
TRUE indicates that an error is detected. |
udiScalingNbOfIncs |
UDINT |
0 |
Indicates the active value of udiScalingNbOfIncs to compute lrCurrentValue_Unit. |
udiScalingNbOfUnits |
UDINT |
0 |
Indicates the active value of udiScalingNbOfUnits to compute lrCurrentValue_Unit. |
udiScaling_IncPerTurn |
UDINT |
0 |
Indicates the active value of udiScaling_IncPerTurn to compute lrCurrentValue_Unit. |