Commands – Remote Processing RPC-330 User Manual
Page 27

DIGITAL I/O
SECTION 6
Page 6-6 RPC -330
Figure 6-3 Digital I/O connector pin out (viewed from top)
Table 6-1 Conne ctor pin ou t - J3
Pin #
82C55
Description
Opto
Channel
19
Port A, line 0
8
21
Port A, line 1
9
23
Port A, line 2
10
25
Port A, line 3
11
24
Port A, line 4
12
22
Port A, line 5
13
20
Port A, line 6
14
18
Port A, line 7
15
10
Port B, line 0
High current
16
8
Port B, line 1
High current
17
4
Port B, line 2
High current
18
6
Port B, line 3
High current
19
1
Port B, line 4
High current
20
3
Port B, line 5
High current
21
5
Port B, line 6
High current
22
7
Port B, line 7
High current
23
13
Port C, line 0
Lower C
0
16
Port C, line 1
Lower C
1
15
Port C, line 2
Lower C
2
17
Port C, line 3
Lower C
3
14
Port C, line 4
Upper C
4
11
Port C, line 5
Upper C
5
12
Port C, line 6
Upper C
6
9
Port C, line 7
Upper C
7
26
Ground
2
+ 5V
COMMANDS
The following tables shows the RPBASIC-52 comm ands
used for digital I/O.
Comm and
Function
C O N F I G L IN E
Configure s I/O por ts.
C O U N T
Returns number of pulses at a line.
L I N E
Function retur ns status of an opto
module as a 0 or 1.
L I N E
Statemen t turns on or off an opto
module.
LINE B
Function returns 8 data bits from
any I/O type device.
LINE B
Statement writes 8 data bits to any
I/O type device.
LINE #
Function returns status of line at
J3 connector as a 0 or 1.
LINE #
Statement writes data to a line at
J3 connector as a 0 or 1.
O N C O U N T
Counts pu lses and optiona lly
genera tes an interr upt.
ON LINE
Generates an interrupt when a line
changes
P W M
Sets PWM parameters for any
line.