Breadcrumbs

Save Motion Macro

Use this command to save a Motion Macro so that it can run using the Run Motion Macro command. After a Motion Macro is saved, new commands cannot be added to it.

savemacro.png  

Fieldbus Interface

PMC_SaveMacro

Inputs

Name

Data Type

Description

Execute

BOOL

MacroID

USINT

PM_Controller

PMControllerType

Outputs

Name

Data Type

Description

Done

BOOL

Busy

BOOL

Aborted

BOOL

Error

BOOL

ErrorID

UINT

Ethernet Interface 

MotionMacroReturn EditMotionMacro(MOTIONMACROOPTIONS motionMacroOption, int motionMacroID)

Parameters

Name

Type

Description

motionMacroOption

enum

SAVEMACRO (2): Save the commands in the specified macro, make it ready to run

motionMacroID

int


Returns

Name

Type

Description

MotionMacroReturn.PmcRtn

PMCRTN enum


MotionMacroReturn.MotionMacroStatus

struct

  • MotionMacroReturnID: ID of the macro this return is providing information for

  • int macroState: 0 = macro is not saved; 2 = macro is saved and ready to run

  • int storedCommandsCount: number of commands stored in this macro

Conditions

Operating Conditions

Preconditions

Commands have been added to the specified Macro, the Macro has not been saved.

Postconditions

The specified Macro will be saved and ready to run.

Description

Use this command to save a Motion Macro so that it can run using the Run Motion Macro command. After a Motion Macro is saved, new commands cannot be added to it.