Skip to main content

7.16.18 MC_GearInPos

Function

This function block is the ratio between the position of the slave axis and the master axis starting from the synchronization point.

LD graphics

alt text

Parameter description

ParametersTypeDeclarationDescriptionRemarks
MasterAXISVAR_IN_OUTPrincipal axisInvoke Function Block
SlaveAXISVAR_IN_OUTSlave axisInvoke Function Block
ExecuteBOOLVAR_INRising edge on mode
RatioNumeratorDINTVAR_INTransmission ratio molecule
RatioDenominatorDINTVAR_INTransmission ratio denominator
MasterSyncPositionLREALVAR_INThe synchronization position of the master axis
SlaveSyncPositionLREALVAR_INSlave axis synchronization position
SyncProfileINTVAR_INConfiguration file for the synchronization processSyncProfile = 0
The slave axis starts to synchronize with the master axis at the “MasterStartDistance” position; when the master axis reaches the “MasterSyncPosition” position and the slave axis.Synchronization is completed when the master axis reaches the “MasterSyncPosition” position and the slave axes reach the “SlaveSyncPosition” position at the same time.
SyncProfile = 1
When the slave axis is in the “MasterSyncPosition” position, the slave axis starts to synchronize with the master axis; synchronization is completed when the master axis reaches the "MasterSyncPosition" and "MasterStartDistance" position, and the slave axis reaches "SlaveSyncPosition" position at the same time, the synchronization is completed
MasterStartDistanceLREALVAR_INMaster position/distance when slave axis starts synchronization
AccelerationLREALVAR_INTransmission acceleration[u/s2]
DecelerationLREALVAR_INTransmission deceleration[u/s2]
JerkLREALVAR_INTransmission jerk[u/s3]
SyncDirectionINTVAR_INSynchronization direction of slave axis
BufferModeUSINTVAR_INDefine the time sequence of FB:
0 means to immediately abort the ongoing movement (default value);
1 means to affect the axis when the last movement is "complete"
StartSyncBOOLVAR_OUTInitiate the transmission device operation
InSyncBOOLVAR_OUTSynchronization completed
BusyBOOLVAR_OUTWhether there is a valid output for FB, True:FB is not terminated
CommandAbortedBOOLVAR_OUTThe command was terminated by another command
ErrorBOOLVAR_OUTAn error signal has occurred within the FB
ErrorIDWORDVAR_OUTError ID