L_MC1P_PosReconstruction
With this FB a position reconstruction for external position encoders can be performed. This means that the reference information of the position is restored after power on or program download. Besides, for Ethercat encoders a position reconstruction is performed after a bus failure and subsequent bus recovery. For this purpose the address of the EtherCAT slave must be transferred to the FB.
Supported encoders:
-
External encoder at the EtherCAT fieldbus
-
External encoder at the backplane bus
-
External encoder at the S131 Clamp
|
Note!
General It is not necessary for every application that the position value of the external encoder is maintained. If it is not necessary, the FB should not be used. Closed-loop position control in the control If the closed-loop position control is in the PLC, the position reconstruction of the i700 or i900 axis is ineffective. In this case, the position reconstruction of the external position encoder must be carried out using function block L_MC1P_PosReconstruction . Exception: If the Encoder is at the second encoder slot of the Servo Inverter i950, then the position reconstruction can be set via the motion parameters subindex 81 and subindex 82 of the encoder node.
Use of an incremental encoder A TTL / HTL encoder must not be rotated after power has been switched on. The position of a TTL/HTL encoder will always fluctuate by one increment at standstill. Therefore, inaccuracy can always occur after power is switched on. This inaccuracy can add up after multiple mains switching. If the drive does not have a brake and is still rotating when it is switched off, the motor may still coast. In this case, an incorrect position value is saved and restored. |
|
|
|
|
L_MC1P_PosReconstruction |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF_ENC_FREE |
- |
Encoder |
|||||
|
POINTER TO ETCSlave |
- |
EthcSlave |
|||||
|
BOOL |
- |
xIsAbsoluteEncoder |
|||||
|
BOOL |
- |
xExecutePositionReset |
|||||
|
LREAL |
- |
lrMaxPositionDiff |
|||||
|
BOOL |
- |
|
xIgnoreMtOffset |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
Encoder AXIS_REF_ENC_FREE |
Encoder reference (LM_FreeEncoder) |
|
|
EthcSlave POINTER TO ETCSlave |
Pointer to a used EtherCAT slave If this input is not connected, a position reconstruction is only performed when the device is switched to mains. If the input is connected, the position of the EtherCAT encoder is reconstructed after a bus failure and subsequent bus recovery. |
|
|
xIsAbsoluteEncoder BOOL |
TRUE |
Absolute encoder |
|
FALSE |
Not absolute encoder (Reconstruction for incremental encoders) |
|
|
xExecutePositionReset BOOL |
FALSE รค TRUE |
With a rising edge the stored data of the position reconstruction is reset. It is set to the current encoder value. |
|
lrMaxPositionDiff LREAL |
This value is only effective if xIsAbsoluteEncoder = FALSE. Position difference for the special treatment of non-absolute encoders. This is used to detect whether the encoder has been switched off or reinitialised. For details see chapter Mode of operation of the input lrMaxPositionDiff |
|
|
xIgnoreMtOffset BOOL
|
When using linear encoders (e.g. SSI encoders), or generally with encoders where no number overflow can occur in the encoder position, this input must be set to TRUE. |
|
|
TRUE |
Encoder overflows are ignored during position reconstruction |
|
|
FALSE |
Encoder overflows are taken into account during position reconstruction |
|