mpiMotorStatus / meiMotorStatus

mpiMotorStatus
Declaration
long mpiMotorStatus(MPIMotor    motor,
                    MPIStatus   *status,
                    void        *external) 
Required Header stdmpi.h
Description

MotorStatus writes a Motor's (motor) status into the structure pointed to by status, and also into the implementation-specific structure pointed to by external (if external is not NULL).

The motor's status information in external is in addition to the motor's status information in status, i.e, the status configuration information in status and in external is not the same information. Note that status or external can be NULL (but not both NULL).

  motor a handle to the Motor object
  *status a pointer to the motor status structure returned by the method
  *external external either points to a structure of type MEIMotorStatus{.} or is NULL
     
Return Values
MPIMessageOK if MotorStatus successfully gets the status of a Motor object.
See Also MPIStatus | MEIMotorStatus
   

 

meiMotorStatus
Declaration
long meiMotorStatus(MPIControl   control,
                    long         motorNumber
                    MPIStatus    *status,
                    void         *external) 
Required Header stdmei.h
Description

MotorStatus gets a Motor's status and writes it to the structure pointed to by status, and also writes it into the implementation-specific structure pointed to by external (if external is not NULL).

  control a handle to the Control object
  motorNumber index to the motor
  *status a pointer to the motor status structure returned by the method
  *external external either points to a structure of type MEIMotorStatus{.} or is NULL
     
Return Values
MPIMessageOK if MotorStatus successfully gets the status of a Motor object.
See Also MPIStatus | MEIMotorStatus