This function block is doing the 16:16 Bit-shifting of the 32Bit LH/HL MT revolutions and 32Bit LH/HL MT angle values, which is needed for the connection to the TB_TPmeasure.
| Recommended task: |
Cyclic |
| Libraries used: |
MOTION_CONTROL_xxbd00 or higher TECH_TYPES_xxbd05 or higher |
General description
InOut Parameter
Input Parameter
| Marking: |
Data type: |
Description: |
| ud_EncoderActualValue |
UDINT |
32 Bit Position actual angle |
| ud_PosEdgeRevolutions |
UDINT |
32 Bit positive edge revolutions |
| ud_PosEdgeAngle |
UDINT |
32 Bit positive edge angle |
| ud_NegEdgeRevolutions |
UDINT |
32 Bit negative edge revolutions |
| ud_NegEdgeAngle |
UDINT |
32 Bit negative edge angle |
Output Parameter
| Marking: |
Data type: |
Description: |
| d_EncPos |
DWORD |
Position actual angle (type converted to DWORD for connection to TB_TPmeasure input d_EncPos) |
| d_TP_PosLH |
DWORD |
16:16 Rev/Angle value LH-edge shifted value of positive edge (for connection to TB_TPmeasure input d_TP_PosLH) |
| d_TP_PosHL |
DWORD |
16:16 Rev/Angle value HL-edge shifted value of negative edge (for connection to TB_TPmeasure input d_TP_PosHL) |