/
Clear Motion Macro

Clear Motion Macro

Use this command to clear a previously saved Motion Macro, so that a different set of commands can be added to it.

 

Fieldbus Interface

PMC_ClearMacro

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

CLEARMACRO (0): Clear any stored commands in the specified macro

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

None

Postconditions

The specified Macro will be cleared, new commands may be added to it.

Description

Use this command to clear a previously saved Motion Macro, so that a different set of commands can be added to it. 

Feedback and Comments

Please email us at tech.portal@planarmotor.com