SMC_GroupSaveContinueData (FB)ΒΆ
FUNCTION_BLOCK SMC_GroupSaveContinueData
This function block is used to save the continue data. The continue data holds all necessary information to continue the movement later on. This includes any buffered or blending movements that have been commanded.
The function block might need multiple cycles of the bus task in order to
save the continue data. Once Done is TRUE, the continue data can`
be used with MC_GroupContinue.
The function block will return an error if the axis group is in state
Disabled or ErrorStop.
In order to be able to continue the path after a call to MC_GroupHalt or MC_GroupStop (or, for that matter, any other aborting movement), please consider the following two important points:
SMC_GroupSaveContinueData needs to be called (with a rising edge on
Execute) in the same cycle in which MC_GroupHalt or MC_GroupStop is called.It is important that this function block is called before MC_GroupHalt or MC_GroupStop, otherwise the aborted movements have already been removed from the queue.
Note
Only one instance of this function block may be active for one axis group at the same time.
The continue position is the current position of the axis group in the cycle with the rising edge of
Execute. (The only exception to this rule is during an active MC_GroupInterrupt or a SMC_GroupInterruptAt that is interrupting, see below.) See also SMC_GroupGetContinuePosition.If MC_GroupInterrupt is active or SMC_GroupInterruptAt is interuppting when this function block is called, saving of the continue data will be delayed until the interrupt has finished or has been aborted.
- InOut:
Scope
Name
Type
Comment
Inout
AxisGroupReference to a group of axes
continueDataThe continue data that can be used with MC_GroupContinue in order to continue from the current position later on.
Input
ExecuteBOOLExecutes the FB at the rising edge
Output
BusyBOOLThe FB is not finished
ErrorBOOLSignals that an error has occurred within the function block
ErrorIDSMC_ERRORError identification
DoneBOOLThe continue data has been saved