Digital I/O Methods
DIO_Read ( Port )
Reads the digital I/O at the specified port.
Syntax
HRESULT DIO_Read(
[in] long Port,
[out, retval] long* State
);
Parameters
Port
[in] Port number for the digital I/O. Valid values are 1, 2, 3, and 4.
State
[out, retval] The state of the DIO port. A voltage of less than 2v on the port returns a 0. A
voltage greater than 2v returns a 1.
Remarks
When set as an output, each DIO port can source 1.25mA at 9v.
DIO_OutputMode_Close ( Port )
Sets the Digital I/O port to an active low state (approximately 0.3v).
Syntax
HRESULT DIO_OutputMode_Close(
[in] long Port,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Port
[in] Port number for the digital I/O. Valid values are 1, 2, 3, and 4.
Success
[out, retval] TRUE if the digital I/O port was successfully set low, and FALSE if the port was
not set.
Remarks
The voltage is a reference from the GND line of the DIO connector block.
DIO_OutputMode_Open ( Port )
Sets the Digital I/O port to an active high state (approximately 9v).
Syntax
HRESULT DIO_OutputMode_Open(
[in] long Port,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Port
[in] Port number for the digital I/O. Valid values are 1, 2, 3, and 4.
11
Summary of Contents for WACI NX-22
Page 36: ......
Page 53: ...Finally drag and drop selected files from your File Explorer...