.

MPIProbeSource

Definition

 
typedef enum MPIProbeSource {
    MPIProbeSourceHOME,
    MPIProbeSourceINDEX,
    MPIProbeSourceLIMIT_HW_NEG,
    MPIProbeSourceLIMIT_HW_POS,
    MPIProbeSourceINDEX_SECONDARY,
    MPIProbeSourceMOTOR_IO_0,
    MPIProbeSourceMOTOR_IO_1,
    MPIProbeSourceMOTOR_IO_2,
    MPIProbeSourceMOTOR_IO_3,
    MPIProbeSourceMOTOR_IO_4,
    MPIProbeSourceMOTOR_IO_5,
    MPIProbeSourceMOTOR_IO_6,
    MPIProbeSourceMOTOR_IO_7,
    MPIProbeSourceMOTOR_IO_8,
    MPIProbeSourceMOTOR_IO_9,
    MPIProbeSourceMOTOR_IO_10,
    MPIProbeSourceMOTOR_IO_11,
    MPIProbeSourceMOTOR_IO_12,
    MPIProbeSourceMOTOR_IO_13,
    MPIProbeSourceMOTOR_IO_14,
    MPIProbeSourceMOTOR_IO_15,
} MPIProbeSource;

Description

MPIProbeSource is an enumeration of input trigger sources for a Probe.

 
MPIProbeSourceHOME Home input in the dedicated I/O
MPIProbeSourceINDEX Index input from the primary encoder in the dedicated I/O
MPIProbeSourceLIMIT_HW_NEG Hardware Negative Limit input in the dedicated I/O
MPIProbeSourceLIMIT_HW_POS Hardware Positive Limit input in the dedicated I/O
MPIProbeSourceINDEX_SECONDARY Index input from the secondary encoder in the dedicated I/O
MPIProbeSourceMOTOR_IO_0 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_1 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_2 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_3 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_4 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_5 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_6 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_7 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_8 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_9 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_10 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_11 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_12 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_13 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_14 Bit number 0 in the Motor's configurable I/O
MPIProbeSourceMOTOR_IO_15 Bit number 0 in the Motor's configurable I/O

Sample Code


/*
   This Function configures a Probe that has already been created. 
   Pass in the Probe Object, Probe Trigger Source, Probe Data Type 
   (Position or Time Capture Mode), and whether or not to use the 
   input Filter.
*/

long configProbe(MPIProbe           probe, 
                 MPIProbeSource     source, 
                 MPIProbeData       dataType, 
                 bool               inputFilter
{
  MPIProbeConfig  probeConfig;
long returnValue; returnValue = mpiProbeConfigGet(probe, &probeConfig, NULL);
if(returnValue != MPIMessageOK)
{
return returnValue;
} probeConfig.enable = TRUE;
probeConfig.source = source;
probeConfig.data = dataType;
probeConfig.inputFilter = inputFilter; //TRUE = high for > 4 samples, FALSE = no filter returnValue = mpiProbeConfigSet(probe, &probeConfig, NULL); return returnValue;
}

See Also

MPIProbeConfig

 

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