.

meiCanNodeAnalogIn

Declaration

 
long meiCanNodeAnalogIn(MEICan        can,
                        long          node,
                        long          channel,
                        long          *state); 
  Required Header: stdmei.h
Change History: Added in the 03.03.00

Description

meiCanNodeAnalogIn gets the current state of an analog input on the specified CAN node.

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

the index of the analog input.

*state a pointer to where the current state of the input is written to by this function. See CAN Analog Values.
   
 
Return Values  
MPIMessageOK  

Sample Code

The following code shows how to get the state of analog input 3 on node 5.

 

long analog3; meiCanNodeAnalogIn( can, 5, 3, &analog3 );

See Also

meiCanNodeAnalogOutSet | meiCanNodeAnalogOutGet | CAN Analog Values

 

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