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

Page 100: Database commands

Advertising
background image

94

920i

Installation Manual

9.1.6

Batching Control Commands

The commands listed in Table 9-13 provide batching control through the serial port.

9.1.7

Database Commands

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

920i

. Except for

the

D B . D E L A L L

command, all of the database

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 specified

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 first 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>.

Command

Description

Values

BATSTART

Batch start

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

BATSTOP

Batch stop

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

BATPAUSE

Batch pause

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

Batch reset

Stops the program and resets the batch program to the first batch step. Run the
BATRESET command after making changes to the batch configuration.

Table 9-13. Batching Control 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-14. Database Commands

Advertising