6 batching control commands, 7 database commands, Batching control commands – Rice Lake 920i Installation Manual V2.0 User Manual

Page 90: Database commands

Advertising
background image

86

920i

Installation Manual

9.1.6

Batching Control Commands

The commands listed below provide batching control
through the serial port.

BATSTART

If the BATRUN digital input is active (low) or
not assigned, the BATSTART command can be
used to start the batch program.

BATSTOP

Stops the batch program and turns off all
associated digital outputs.

BATPAUSE

Stops the batch program at the current step. All
digital outputs set on by the current step (except
for those set by concur setpoints) are set off. The
BATSTRT DIGIN, BATSTART serial command,

Batch Start

softkey, or the StartBatch function in

an

iRite

program can be used to restart the batch

program at the current step.

BATRESET

Stops the program and resets the batch program
to the Þrst batch step. Run the BATRESET
command after making changes to the batch
conÞguration.

9.1.7

Database Commands

The commands listed in Table 9-12 can be used to
create and maintain databases in the

920i

. Except for

t h e

D B . D E L A L L

c o m m a n d , a l l o f t h e d a t a b a s e

commands require an extension to identify the number
of the database within the memory card and the slot
number of the memory card.

DB.ALIAS

The

DB.ALIAS

command is used to get or set the alias

used by

iRite

programs to reference the speciÞed

database. Each database alias must be unique among
all databases and adhere to the following rules: 8
character maximum; must begin with an alpha
character or an underscore; can only contain AÐZ, aРz,
0Р9, or an underscore (_).

Example.

The following command assigns an alias of

TRUCKS_2 to the Þrst database on the memory card
installed in slot 2:

DB.ALIAS.1#2=TRUCKS_2<CR>

Sending the

DB.ALIAS

command alone, without

assigned data, returns the current database alias.

DB.CLEAR

To clear the contents of a database, send the following
command:

DB.CLEAR.n#x<CR>

Where:

n

is the database number within the memory card

x

is the slot number of the memory card (0 is the

onboard memory)

The

920i

responds with

OK<CR>

if the command is

successful,

??<CR>

if unsuccessful.

DB.DATA

The

DB.DATA

command can be used to send data to or

retrieve data from the

920i

.

Data can be sent to the indicator using the following
command:

DB.DATA.n#x = data{ | }<CR>

Where:

n

is the database number within the memory card

x

is the slot number of the memory card (0 is the

onboard memory)

data

represents a single cell of a row of data

{ | }

is a pipe character (ASCII 124), used to

delimit cell data. If the data being sent is not the
last cell of the row, append the pipe character to
the data to indicate that more data is coming for
that particular row. If the data being sent is the last
cell of the row, do not append the pipe character.

If the command is accepted, the

920i

responds with

OK<CR>

; if not, it responds with

??<CR>.

XE

Query system error conditions

nnnnn

See Section 10.1.4 on page 95 for detailed information
about the XE command response format.

Command

Description

Values

Table 9-11. Normal Mode Serial Commands

Command

Description

DB.ALIAS.n#x

Get or set database name

DB.CLEAR.n#x

Clear database contents

DB.DATA.n#x

Get or set database contents

DB.SCHEMA.n#x

Get or set database structure

DB.DELALL

Delete all databases and database
contents

n represents the database number within the memory card;
x is the slot number of the memory card.
Each command must be terminated with a carriage return
character (<CR>, ASCII 13).

Table 9-12. Database Commands

Advertising