Chapter 6 digital lines, Commands – Remote Processing RPC-150 User Manual
Page 19

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.
Comm and
Function
BIT
F u n ct io n re tu r ns st at us of bi t a t a n I/ O
address
BIT
Comm and sets a bit at an I/O add ress
CON FIG PIO
Configures J3 I/O port
I N P
Returns a byte fr om an I/ O address
L I N E
Returns status of a line
L I N E
Sets line high or low
OPTO
Sets an opto module output
OPTO
Reads opto module status
O U T
Writes a byte to an I/ O address
PUL SE
Reads or writes a pulse at a por t.
See also ON BIT, ON C OUNT , ON INP, and related
statements.