beautypg.com

Rpbasic-52 programming guide, Config commands – Remote Processing BASIC 52 User Manual

Page 139

background image

RPBASIC-52 PROGRAMMING GUIDE

2-120

CONFIG COMMANDS

CO NFIG com man ds con figure v arious I/O to u ser def ined p aram eters.

All CONFIG com mands are unique to RPBASIC-52. There is no equivalent in the original version. Some
comm ands are not available for all cards.

CON FIG AIN

Syntax:

C O N F I G A IN channel, mode, range
Where: channel = 0 to 7, analog input channel

mode = 0 or 1, differential or single - ended
range = 0 or 1, ±2.5 or 0 to 5 volt input

Function:

Determines type of analog input for measurement

Mode:

Comm and, Run

Use:

CO NFIG AIN 3,1,0

Cards:

RPC-320, RPC-330 Refer to your hardware manual for applicability if your card is not listed here.

D E S C R IP T I ON

All inputs are configured for single - ended, 0 to +5V inputs on power up. Inputs, or pairs of inputs, may be
changed to d ifferential and/or ±2.5 v olt input.

Differential inputs use adjacent channels, as described in Chapter 10, Analog Input, Initialization. Inputs are
pseudo-differential, meaning the input signal is measured with respect to ground. See Chapter 10 for more
information.

mode of 1 spe cifies s ingle e nded w hile 0 m eans d ifferen tial.

range = 0, a ±2.5V input is chosen w hile a 1 sets 0 to +5 volt input.

Refer to Chapter 10, ANALOG INPUTS in your hardware manual for examples and configuration information.

E R R O R

BAD AR GUMEN T When any parameter is out of range.