MPIMotionAttrHoldSource

Definition

typedef union {
  int32_t		gate;
  struct {
    int32_t	*input;
    int32_t	mask;
    int32_t	pattern;
  } input;
  struct {
    int32_t	number;
    int32_t	mask;
    int32_t	pattern;
  } motor;
  struct {
    int32_t	number;
    int32_t	position;
  } axis;
  struct {
    int32_t	*address;
    int32_t	mask;
    int32_t	pattern;
  } user;
} MPIMotionAttrHoldSource;

Description

gate This value specifies the control gate number when MPIMotionAttrHoldTypeGATE is used. Valid values are between 0 and 31. See mpiControlGateGet/Set(...) for more information.
input.input This value specifies the input address when MPIMotionAttrHoldTypeINPUT is used.
input.mask This value specifies the AND mask when MPIMotionAttrHoldTypeINPUT is used.
input.pattern This value specifies the comparison pattern when MPIMotionAttrHoldTypeINPUT is used. The value at input.input is bit-wise ANDed with the input.mask and compared to the input.pattern.
motor.number This value specifies the motor number when MPIMotionAttrHoldTypeMOTOR is used.
motor.mask This value specifies the AND mask when MPIMotionAttrHoldTypeMOTOR is used.
motor.pattern This value specifies the comparison pattern when MPIMotionAttrHoldTypeMOTOR is used. The motor input word is bit-wise ANDed with the motor.mask and compared to the motor.pattern.
axis.number An axis's number (0, 1, 2, etc.). Must be specified when the AXIS_POSITION_COMMAND or AXIS_POSITION_ACTUAL motion hold types are used.
axis.position A position comparison value. Must be specified when the AXIS_POSITION_COMMAND or AXIS_POSITION_ACTUAL motion hold types are used.
user.address A controller memory address. Must be specified when the USER_ADDRESS motion hold type is used.
user.mask A bitwise AND mask for the user specified controller memory address. Must be specified when the USER_ADDRESS motion hold type is used.
user.pattern A comparison value for the masked user.address. When the pattern matches the masked value, the motion will be triggered. Must be specified when the USER_ADDRESS motion hold type is used.

See Also

MPIMotionAttrMask | MPIMotionAttrHoldType | mpiControlGateGet | mpiControlGateSet |