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. During saving (Busy is TRUE) the function block has to be called in every cycle. Otherwise, an error will be reported. 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.

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. See also SMC_GroupGetContinuePosition.

  • The function block will save the state of the axis group at the end of the cycle with a rising edge of Execute. This means that that e.g. movements that are commanded in the same cycle but after the call of this function block with Execute = TRUE will be part of the continue data.

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