
PK2300
Software Reference
s
65
Digital Inputs/Outputs
The following digital I/O functions are located in the
EZIOPK23.LIB
library.
int eioBrdDI( unsigned chanNum )
Reads the state of an input channel.
PARAMETER:
chanNum
must be a number ranging from 0 (for
IN-01) through 15 (for IN-16).
RETURN VALUE:
0 if and only if the input channel reads low.
1 if and only if the input channel reads high.
Sets the flag
EIO_NODEV
in
eioErrorCode
and returns -1 if and
only if the channel does not exist (i.e., if
chanNum
is greater than
15).
Table 5-1 lists the software input channel assignments.
Table 5-1. Software Input
Channel Assignments
Input
Channel Assignment
IN-01
0
IN-02
1
IN-03
2
IN-04
3
IN-05
4
IN-06
5
IN-07
6
IN-08
7
IN-09
8
IN-10
9
IN-11
10
IN-12
11
IN-13
12
IN-14
13
IN-15
14
IN-16
15
Summary of Contents for PK2300
Page 1: ...User s Manual Revision E PK2300 C Programmable Controller ...
Page 10: ...PK2300 x s About This Manual Blank ...
Page 24: ...PK2300 24 s Getting Started Blank ...
Page 88: ...PK2300 88 s Software Reference Blank ...
Page 106: ...106 s Serial Interface Board 2 PK2300 Blank ...
Page 114: ...PK2300 114 s Power Management Blank ...
Page 128: ...PK2300 128 s I O Map and Interrupt Vectors Blank ...
Page 132: ...PK2300 132 s Battery Blank ...
Page 138: ...PK2500 138 s Index Blank ...