.

mpiEventMaskMOTOR / meiEventMaskMOTOR

Declaration: mpiEventMaskMOTOR

#define mpiEventMaskMOTOR(mask)
                          mpiEventMaskBitSET((mask), MPIEventTypeAMP_FAULT, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeHOME, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeLIMIT_ERROR, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeLIMIT_HW_NEG, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeLIMIT_HW_POS, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeLIMIT_SW_NEG, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeLIMIT_SW_POS, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeENCODER_FAULT, 1), \
                          mpiEventMaskBitSET((mask), MPIEventTypeAMP_WARNING, 1)

  Required Header: stdmpi.h

Declaration

mpiEventMaskMOTOR is a macro that assigns all the bits associated with MPI Motor object events to the event mask. The MPI event types are defined in the MPIEventType enumeration. After the event mask bits are initialized, the mask can be passed to a mpiObjectEventNotifySet(...) method, which configures the controller to generate events.

 
mask An array of unsigned longs. Use MPIEventMask to declare the mask. Each bit in the array represents a mask for a particular event.

 

Definition: meiEventMaskMOTOR

#define meiEventMaskMOTOR(mask)
  Required Header: stdmei.h

Description

meiEventMaskMOTOR is a macro that assigns all the bits associated with MEI Motor object events to the event mask. The MEI event types are defined in the MEIEventType enumeration. After the event mask bits are initialized, the mask can be passed to a mpiObjectEventNotifySet(...) method which configures the controller to generate events.

 
mask An array of unsigned longs. Use MPIEventMask to declare the mask. Each bit in the array represents a mask for a particular event.

See Also

MPIEventMask | MEIEventType

 

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