.

mpiControlDigitalOutSet

Declaration

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

Description

mpiControlDigitalOutSet function changes the state of one or more general purpose 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 new state of the general purpose bits that will be returned.

wait

a Boolean flag indicating if the new output state is applied immediately or a wait is inserted so that any previously set output is transmitted to the controller hardware before applying the new output state.

   
 
Return Values  
MPIMessageOK  

Sample Code

The next piece of code shows how to set three controller outputs (2, 3 and 4):

 


mpiControlDigitalOutSet( control, 2, 3, 7 );


See Also

Controller I/O | mpiControlDigitalIn | mpiControlDigitalOutGet

 

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