A SERVICE OF

logo

DIGITAL AND OPTO PORTS SECTION 6
Page 6-7 RPC-320
COMMANDS
The following tables shows the RPBASIC-52 commands
used for digital I/O.
Command Function
CONFIG LINE Configures I/O ports
COUNT Returns number of pulses at a line.
LINE Function returns status of an opto
module as a 0 or 1.
LINE Statement 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.
ON COUNT Counts pulses and optional generates an
interrupt.
ON LINE Generates an interrupt when a line
changes.
PWM Sets PWM parameters for any line.