.

meiCanNodeDigitalInputGet (Deprecated)

NOTE:
meiCanNodeDigitalInputGet was moved to meiDeprecated.h in the 03.03.00 MPI software release.

Declaration

 
long meiCanNodeDigitalInputGet(MEICan    can,
                               long      node,
                               long      bit,
                               long*     data);
  Required Header: stdmei.h

Description

meiCanNodeDigitalInputGet gets the current state of the digital input bit on the specified CAN node.

(Not to be confused with meiCanNodeDigitalInputsGet.)

 
can Handle to the CAN object.
node The node number of the CANOpen node.
bit Which bit on this node.
This value should be between 0 and 63.
data A pointer to where the current digital bit is returned.
The value returned will be either 0 or 1.
   
 
Return Values
MPIMessageOK  

Sample Code

  The following sample code shows how to interrogate the current state
of a single digital input bit on a controller. The variable data will
contain either one or zero depending on the electrical signal being
applied to the input pin on the CANOpen node. See meiCanCreate on
how to create the CANHandle.
long data;
long Result;
Result = meiCanNodeDigitalInputGet(CANHandle, 3, /*node*/
                                   0, /*bit*/
                                   &data );

See Also

meiCanCreate

 

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