.

mpiMotorGeneralIn

Declaration

long mpiMotorGeneralIn(MPIMotor        motor,
long startBit,
long bitCount,
unsigned long *state);
  Required Header: stdmpi.h
Change History: Added in 03.02.00. mpiMotorGeneralIn replaced mpiMotorIoGet.

Description

mpiMotorGeneralIn reads the current input state of one or more general purpose bits.

Each SynqNet drive has a different way of using general purposes I/O bits. To see how each FPGA is mapped to the general purpose I/O bits on a specific SynqNet drive, select the drive from the menu below. If the SynqNet drive you are using is not listed, refer to our SynqNet Drives page for more information.

NOTE: mpiMotorGeneralIn replaced mpiMotorIoGet in the MPI library.

 
motor a handle to the Motor object
startBit the first general purpose bit that will be returned by the function.
bitCount the number of general purpose bits that will be returned by the function.
*state the address of the current state of the inputs that is returned.
   
 
Return Values
MPIMessageOK  

Sample Code


long x;
mpiMotorGeneralIn( motor0, 0, 1, &x );

See Also

General Purpose Motor I/O

 

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