.

Motion.Status

This property of the motion object returns the current state of each events generated by the motion object. After an event has occurred the Status will report True until it is cleared. The Type argument defines all the possible event types, many of which are not generated by this object. Trying to read the state for these events will generate an error.

This property cannot be saved to flash memory.

Version History

Introduced in MPX 2.0.

Type

Boolean (read only)

Index

 
Argument Type Description
Type Status The type of status being read.

Visual Basic

Syntax

Property Status As Boolean(index As Mpx.MotionStatus)

Sample Code

 
Dim atVelocityStatus As Boolean
atVelocityStatus = controller.Motion(3).Status(Mpx.MotionStatus.AtVelocity)


Sample Application

 

C#

Syntax

bool[Mpx.MotionStatus] Status;

Sample Code

 
bool atVelocityStatus = 
		controller.Motion[3].Status[Mpx.MotionStatus.AtVelocity];

 

See Also

EventEnable

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering