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:

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

AxisGroup

AXIS_GROUP_REF_SM3

Reference to a group of axes

continueData

SMC_AXIS_GROUP_CONTINUE_DATA

The continue data that can be used with MC_GroupContinue in order to continue from the current position later on.

Input

Execute

BOOL

Executes the FB at the rising edge

Output

Busy

BOOL

The FB is not finished

Error

BOOL

Signals that an error has occurred within the function block

ErrorID

SMC_ERROR

Error identification

Done

BOOL

The continue data has been saved