mpiCompareCreate

Declaration
 MPICompare mpiCompareCreate(MPIControl   control,
                             long         number) 
Required Header stdmpi.h
Description

CompareCreate creates a Compare object associated with a number (number), that is located on a motion controller (control).

CompareCreate is the equivalent of a C++ constructor. Each motion block supports 10 compare registers. The default configuration is two compare registers per motor, while the last two (8,9) on each motion block are reserved for the Auxiliary Encoder (not supported). The compare registers are default mapped as follows: 0 and 1 for Motor0; 2 and 3 for Motor1; 10 and 11 for Motor4; etc. The first Compare for each motor uses the default (primary) encoder input for position compare. The second uses the AUX encoder input.

Return Values
handle to a Compare object
MPIHandleVOID if the object could not be created
See Also mpiCompareCreate | mpiCommandValidate