.

mpiControlDigitalOutGet

Declaration

 
long  mpiControlDigitalOutGet(MPIControl     control,
long bitStart,
long bitCount,
unsigned long *state);
  Required Header: stdmpi.h
Change History: Added in the 03.03.00

Description

mpiControlDigitalOutGet function reads the current output state of one or more controller output bits.

 
control a handle to the Control object
bitStart

the first controller output bit that will be returned by the function.

bitCount the number of controller output bits that will be returned by the function.
*state

the address of the current state of the controller output bits that will be returned.

   
 
Return Values  
MPIMessageOK  

Sample Code

The following code shows how to get the state of controller input 1.

 

unsigned long output1;
mpiControlDigitalOutGet( control, 1, 1, &output1 );

See Also

Controller I/O | mpiControlDigitalOutSet | mpiControlDigitalIn

 

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