.

meiCanNodeDigitalOutGet

Declaration

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

Description

meiCanNodeDigitalOutGet gets the current 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 returned by the function.

*state the address of the current state of the output(s) that is returned.
   
 
Return Values  
MPIMessageOK  

Sample Code

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

 

unsigned long output3; meiCanDigitalOutGet( can, 5, 3, 1, &output3 );

See Also

meiCanNodeDigitalOutSet | meiCanNodeDigitalIn

 

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