Chapter 6 digital and opto ports – Remote Processing RPC-52 User Manual
Page 23
CHAPTER 6
DIGITAL AND OPTO PORTS
Page 21
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
Configu res I/ O por ts
G5MOD
Function returns analog value from an
opto mod ule slot.
G5MOD
Statemen t writes to a n analog opto
module a t an opto mo dule slot.
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
S ta te m en t w r it es 8 d a ta b it s t o a n y I / O
type device.
LINE #
Function re turns status of line at J4
connector as a 0 or 1.
LINE #
Statement wr ites data to a line at J4
connector as a 0 or 1.
P W M
Sets PWM duty cycle for channel 0 or
1.