SMC_TrackAxis (FB)¶
FUNCTION_BLOCK SMC_TrackAxis
This function block tracks a master axis. The slave axis will try to follow the master as closely as possible while repecting the given maximum velocity, acceleration, deceleration, and jerk.
During execution, the axis is in state synchronized_motion. The function block will keep ownership of the axis until it is aborted by another movement. The ownership is kept even if the master is in standstill and the function block is in sync.
- InOut:
Scope
Name
Type
Comment
Inout
MasterSlaveInput
bExecuteBOOLRising edge: Starts the execution of the function block.
VelocityLREALMaximum velocity in technical units per second [u/s]. Must be positive. This input may change each call. Changes are taken into account continuously, not only on a rising edge of
bExecute.AccelerationLREALMaximum acceleration in [u/s²]. Must be positive. This input may change each call. Changes are taken into account continuously, not only on a rising edge of
bExecute.DecelerationLREALMaximum magnitude of deceleration in [u/s²]. Must be positive. This input may change each call. Changes are taken into account continuously, not only on a rising edge of
bExecute.JerkLREALMaxmimum magnitude of jerk in [u/s³]. Must be positive if the axis has a jerk limited velocity profile. This input may change each call. Changes are taken into account continuously, not only on a rising edge of
bExecute.Output
bBusyBOOLTRUE: Execution of the function block has not been finished.bCommandAbortedBOOLTRUE: Command has been aborted by another command.bErrorBOOLTRUE: Error has occurred within the function block.iErrorIDSMC_ERRORError identification
bInSyncBOOLWhether the axis is in sync with the given set values.