
CHAPTER 6 DIGITAL LINES
RPC-150 Page 17
Figure 6-3 Digital I/O connector pin out (viewed from top)
Conne ctor pin ou t - J3
Pin # 82C55 Description Opto
Port Channel
10 Port A, line 0 0
8 Port A, line 1 1
4 Port A, line 2 2
6 Port A, line 3 3
1 Port A, line 4 4
3 Port A, line 5 5
5 Port A, line 6 6
7 Port A, line 7 7
19 Port B, line 0 8
21 Port B, line 1 9
23 Port B, line 2 10
25 Port B, line 3 11
24 Port B, line 4 12
22 Port B, line 5 13
20 Port B, line 6 14
18 Port B, line 7 15
13 Port C, line 0 16
16 Port C, line 1 17
15 Port C, line 2 18
17 Port C, line 3 19
14 Port C, line 4 20
11 Port C, line 5 21
12 Port C, line 6 22
9 Port C, line 7 23
26 Ground
2 +5V
Opto Channel numbers correspond to the number
preceded by the letter ' M' on the opto rack.
COMMANDS
The following tables shows the CAMBASIC commands
used for digital I/O.
Command Function
BIT Function returns status of bit at an I/O
address
BIT Comm and sets a bit at an I/O address
CONFIG PIO Configures J3 I/O port
INP Returns a byte from an I/O address
LINE Returns status of a line
LINE Sets line high or low
OPTO Sets an opto module output
OPTO Reads opto module status
OUT Writes a byte to an I/ O address
PULSE Reads or writes a pulse at a port.
See also ON BIT, ON C OUNT , ON INP, and related
statements.
Commenti su questo manuale