/
Save Motion Macro

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.

 

Fieldbus Interface

PMC_SaveMacro

Name

Data Type

Description

Name

Data Type

Description

Execute

BOOL

MacroID

USINT

PM_Controller

PMControllerType

Name

Data Type

Description

Name

Data Type

Description

Done

BOOL

Busy

BOOL

Aborted

BOOL

Error

BOOL

ErrorID

UINT

Ethernet Interface 

MotionMacroReturn EditMotionMacro(MOTIONMACROOPTIONS motionMacroOption, int motionMacroID)

Name

Type

Description

Name

Type

Description

motionMacroOption

enum

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

motionMacroID

int

Name

Type

Description

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

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.

Feedback and Comments

Please email us at tech.portal@planarmotor.com