5-2
Programming
BASIC Example
The following simple BASIC program activates relays on the ERB-24
used with a PIO-12 board:
10 OUT &H313, &H80 ’Sets all PIO-12 ports to outputs
20 OUT &H310, 1 ’Activates relay 0 (Port A, Bit 0)
30 OUT &H311, 16 ’Activates relay 20 (Port B, Bit 4)
40 OUT &H312, 3 ’Activates relays 8 and 9
’(Port C, Bits 0 and 1)