beautypg.com

Chapter 6 digital and opto ports – Remote Processing RPC-30 User Manual

Page 27

background image

CHAPTER 6

DIGITAL AND OPTO PORTS

RPC-30

Page 25

COMMANDS

The following tables shows the CAMBASIC commands
used for digital I/O.

Comm and

Function

AIN

Return s value fro m G5 in put modu le

AOT

Outputs valu e to G5 outpu t module

BIT

F u n ct io n re tu r ns st at us of bi t a t a n I/ O
address

BIT

Comm and sets a bit at an I/O add ress

CON FIG PIO

Configures J3 I/O port

I N P

Returns a byte fr om an I/ O address

L I N E

Returns status of an opto line

OPTO

Sets an opto module output

O U T

Writes a byte to an I/ O address

PUL SE

Reads or writes a pulse at a por t.

See also ON BIT, ON C OUNT , ON INP, and related
statements.