Rice Lake 720i Programmable Indicator/Controller - Installation Manual User Manual

Page 91

Advertising
background image

Using ProAction PCEE

85

Math functions of

Add, Subtract, Multiply

and

Divide

are supplied and used as follows:

There are two sources for the data to be worked with. Immediate is the value within the step to be used.
Database is the field of the data to be used. This source is then added, subtracted, etc. from the user
variables. The result is then left in the user variable so it can be either printed or written to the database.
Also only Integers and Real variables can be used.

Database Information

A Database consists of a group of fields that comprise a record; Record 1 = F1, F2, F3, F4, F5 etc.

Record 2 = F1, F2, F3, F4, F5 etc.

To ensure a simple search, try to make Field 1 an integer to be used as an index number. This will allow you to
search for an index and then get the other fields as you need them, or insert data to them after a successful search.

A Sort of the database by index will sort all records by the index and place them in order. This is not mandatory, but
makes working with a database much easier.

The database index is the database number assigned from the Database Editor. DB 1 is always the embedded Truck
Database for Weigh In / Weigh out functions. The next is DB 2 which is the first PCE database that can be used.
Eight databases are allowed, but as the number increases the size of each is reduced. Slot is usually 0 as memory
card expansion options are not allowed in the 720i.

There are two actions that are similar but need further definition. They are the

DB Write

and

DB Capture

. The

DB Write

will put a user variable into a field specified by the step. The

DB Capture

will put a captured value specified by the

step into a database field. Captured data can be trip weight from a

Weight Compare

condition,

Weight Compare

preact

value, motion status, timer state, DigIn or step state, current time and date, or a current register value.

Add Record, Delete Record,

and

Copy Record

pertains to the complete record with all fields involved.

DB Write, DB Read,

and

DB Clear

only affect the specified field of the current record.

A

Set Compare

or

Get Compare

is the method used to either retrieve the

Compare

value or set it to a new value. These

values would be such as a

Weight Compare (Trip)

value. This is assigned to a condition number, not a step number.

This is because a step could have multiple conditions of similar type so we need to aim at the exact condition.

From the Tools menu, there is a selection for

Text View

. There is also a keyboard shortcut of CTRL+T.

We can go look at the condition we want to

Set

or

Get

and then switch to Text View to see the exact condition

number to assign. If you hover your mouse over any condition, it will show an ID number which is also the
condition number.

An example of a Text View would be:

SP.CONDITION#5=WEIGHT,SCALE1,GROSS,0,HIGHER,OFF,0.

With this example, we would assign our

Set Compare

to condition 5. Also a

Set

or

Get Compare

can come from a user

variable after a

User Get

or from the Database from a specified field.

Advertising