beautypg.com

Digital lines chapter 6 – Remote Processing RPC-2300 User Manual

Page 20

background image

DIGITAL LINES

CHAPTER 6

Page 18

RPC-2300

High cur rent outpu ts at J3 port A are option ally
configurable as TTL I/ O by replacing U20 with a DIP
shunt jumper. This keeps logic com patible with ports B
and C. If opto channels 8-15 are used as inputs, then
U20 must be replaced by a DIP shunt jumper.

Configuring digital I/O lines

Lines are configured during progr am execution using the
CONF IG PIO command. On power up or reset, all lines
are inputs.

When a line is configured as an output, it can sink a
maximum of 2. 5 mA at 0. 4V and can source a minimum
of 2.5 ma at 2. 4V. W hen driving opto modules, the
outputs sink 15 mA at 1.0V.

Digital I/ O prog ramm ing exam ple

The follow ing exam ple read s a switch at po rt A, bit 3
(J2-25), reads an opto module at channel 1 and writes an
opto module at channel 5. A LE D is controlled at J2-10
(port B, bit 0).

200 D = BIT(0,3)

:'Read switch status, port A

210 F = OPTO(101)

:'read opto module, ch. 1

220 OPTO 103,ON

:'write module, channel 3

230 BIT 1,0,0

:'turn on led at J2-10

240 BIT 1,0,1

:'turn off led at J2-10

250 A = LINE(103)

:'Reads pin 3 at J2

Conne ctor pin ou t - J2

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

16

8

Port B, line 1

17

4

Port B, line 2

18

6

Port B, line 3

19

1

Port B, line 4

20

3

Port B, line 5

21

5

Port B, line 6

22

7

Port B, line 7

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