This function block starts the operating mode Electronic Gear with the method position synchronization.
In the operating mode Electronic Gear, movements are carried out synchronously according to externally supplied reference value signals. A position reference value is calculated on the basis of these external reference values plus an adjustable gear ratio. The reference value signals can be A/B signals, P/D signals or CW/CCW signals.
A movement can be made using one of two methods:
Position synchronization without compensation movement
Reference value signals supplied during an interruption caused by a halt command or by a detected error of error class 1 are not taken into account.
Position synchronization with compensation movement
Reference value signals supplied during an interruption caused by a halt command or by a detected error of error class 1 are taken into account and compensated for.
Refer to the documentation of the drive for additional information on compensation movements and error classes.
Input |
Data type |
Description |
---|---|---|
Execute |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. A rising edge of the input Execute starts the function block. The function block continues execution and the output Busy is set to TRUE. This function block can be restarted while it is executed. The target values are overwritten by the new values at the point in time the rising edge occurs. |
SyncMode |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE. Compensation movement:
|
RatioNumerator |
DINT |
Value range: 1...2147483647 Default value: 1 Gear ratio: Numerator of gear ratio. |
RatioDenominator |
DINT |
Value range: 1...2147483647 Default value: 1 Gear ratio: Denominator of gear ratio. |
Output |
Data type |
Description |
---|---|---|
Busy |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
CommandAborted |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Error |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
ErrorID |
WORD |
Returns the value of a diagnostic code. Refer to Library Diagnostic Codes. If the value is 0 and if the output Error of this function block is set to TRUE, then the diagnostic code can be read with the output AxisErrorID of the function block MC_ReadAxisError. |
InGear |
BOOL |
Value range: FALSE, TRUE. Default value: FALSE.
|
Input/Output |
Data type |
Description |
---|---|---|
Axis |
Axis_Ref |
Reference to the axis (instance) for which the function block is to be executed (corresponds to the name of the axis). The name of the axis must be defined in the EcoStruxure Machine Expert . |
This function block requires the drive parameter GEARratio to be 0. This way, RatioNumerator and RatioDenominator are used to calculate the gear ratio.
The velocity of the compensation movement can be limited via parameter settings.
The enabled direction of movement in the operating mode Electronic Gear is set via the drive parameter GEARdir_enabl.
Once the operating mode is active, the compensation movement must not exceed the maximum position deviation. If the required compensation movement exceeds the maximum position deviation, an error is detected.
Refer to the documentation of the drive for more details.
The operating mode Electronic Gear with the method velocity synchronization is started with the function block GearIn_LXM32.