Analytica GmbH AnaGate CAN duo User Manual Page 33

  • Download
  • Add to my manuals
  • Print
  • Page
    / 83
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 32
CAN API reference
26 © 2007-2010 Analytica GmbH
CANWriteDigital
CANWriteDigital — Writes a new value to the digital output register of the AnaGate device.
Syntax
#include <AnaGateDllCAN.h>
int CANWriteDigital(int hHandle, unsigned long nOutputBits);
Parameter
hHandle Valid access handle.
nOutputBits New register value. Currently only bits 0 to 3 are used, other bits are reserved for future
use.
Return value
Returns Null if successful, or an error value otherwise (Appendix A, Return Codes).
Description
All models of the AnaGate series (except the model AnaGate CAN uno in DIN rail case) have connectors
for 4 digtial inputs and 4 digital outputs ant the rear panel.
The digital outputs can be written with the CANWriteDigital function.
A simple example for reading/writing of the IOs can be found at the description of CANReadDigital.
See also
CANReadDigital
Page view 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 82 83

Comments to this Manuals

No comments