mpiEventMaskMOTOR
Declaration:
#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. |
---|