.

meiCanNodeDigitalOutSet

Declaration

 
long meiCanNodeDigitalOutSet(MEICan        can,
                             long          node,
                             long          bitStart,
                             long          bitCount,
                             unsigned long state,
                             MPI_BOOL      wait); 
  Required Header: stdmei.h
Change History: Added in the 03.03.00

Description

meiCanNodeDigitalOutSet changes the state of one or multiple digital outputs on the specified CAN node.

 
can handle to the CAN object
node the node number of the CANOpen node.
bitSmart

the first output bit on the CAN node that will be returned by this function.

bitCount

the number of bits that will be set by the function.

state the new state of the outputs on the CANOpen node.
wait a Boolean flag that indicates if the new output state is immediately applied or a wait is inserted so that any previously set output is transmitted over CAN first before applying the new output state.
   
 
Return Values  
MPIMessageOK  

Sample Code

The following code shows how to set the state of digital output 3 on node 5.

 

meiCanDigitalOutSet( can, 5, 3, 1, 1, 1);

See Also

meiCanNodeDigitalOutGet | meiCanNodeDigitalIn

 

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