.

mpiMotorGeneralOutGet

Declaration

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

Description

mpiMotorGeneralOutGet function reads the current output 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: mpiMotorGeneralOutGet 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 general purpose bits will be returned.
   
 
Return Values
MPIMessageOK  

Sample Code


long x;
meiMotorGeneralOutGet( motor0, 0, MEIMotorGeneralIoLAST, &x );

See Also

General Purpose Motor I/O

 

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