LXM_GEARPOS
(Original Document)
Function Description
The LXM_GEARPOS function is used to synchronize the position of a slave axis with a master axis, according to a coefficient (ratio).
NOTE: A physical connection to the auxiliary encoder command interface connector (X5) between the two servodrives must be present.
Representation in FBD
Representation
Representation in LD
Representation
Representation in IL
Representation:
LD Slave
CAL LXM_GEARPOS_Instance(AXIS:=AXIS, EXECUTE:=EXEC, RATIONUMERATOR:=RN, RATIONDENOMINATOR:=RD, ERROR=>ERR, INSYNCH=>IS, BUSY=>B, ERRORID=>ERRID)
Representation in ST
Representation:
LXM_GEARPOS_Instance(AXIS:=AXIS, EXECUTE:=EXEC, RATIONUMERATOR:=RN, RATIONDENOMINATOR:=RD, ERROR=>ERR, INSYNCH=>IS, BUSY=>B, ERRORID=>ERRID);
Description of the Input Parameters
The following table describes the input parameters that are in addition to the basic parameters:
Parameter
Type
Comment
AXIS
AXIS_REF
Axis_Ref type object, which defines the slave device.
RATIONUMERATOR
Motion synchronization ratio numerator (allowed range 1-32767 for LXM05).
RATIONDENOMINATOR
Motion synchronization ratio denominator.
Calcul of slave position for Lexium15MP
Calcul of slave position for Lexium15LP
Description of the Output Parameters
The following table describes the output parameter that is in addition to the basic parameters:
Parameter
Type
Comment
INSYNCH
INSYNCH is TRUE when the synchronization position, in relation to the Master, is reached.
It remains TRUE as long as EXECUTE is TRUE even if the axis has stopped (not significant for Lexium 05/32).
Description Parameter for the Lexium 05 and Lexium 32
The following table describes the additional parameter for the Lexium 05 and Lexium 32:
Parameter
Type
Comment
SYNCMODE
SYNCMODE is an additional parameter for the Lexium 05/32.The access to this parameter by MC_READPARAMETER or MC_WRITEPARAMETER before calling MFB_Gear, is possible by using:
Index =0, subindex=200 as object number for SYNCMODE.
FALSE: immediate synchronization: the positioning controller follows reference pulses from the time at which the gear processing is activated.
TRUE: synchronization with compensation movement. With activation of the gear processing, the motor endeavors to retrieve the reference pulses accumulated.