Chapter
4
Operating Instructions
IVC-3D
26
SICK IVP • Industrial Sensors • www.sickivp.com • All rights reserved
8011007
Getting Started
4.4.2
Using Tables and Results from Other Steps
The table is very useful for storing constants and results of calculations that we need to
use later.
For example, to calculate the desired volume of a slice of bread we can use the table for
setting the number of slices to make, and to store the desired volume of a slice to be used
later when we decide where to cut.
41.
Double-click in the
Value on Device
column of an empty row in the table and fill in the
number of slices to make. Fill in a description of the value in the
Description
column of
the row, for example “Number of slices”.
The row is now highlighted in the table, indicating that the value on the device differs
from the value in the database.
42.
In the table, right-click the value in the
Value on Device
column and choose
Copy
Device Value to the DB
to synchronize the value on the PC with the value in the device.
43.
Add a
Mathematical Operation
tool (from the
Calculation
toolbar) to the program.
44.
Set the parameter
03=Mathematical operation
to
/ (Division)
and fill in a description.
45.
Click in the
Table
column for the parameter
02=Variable B
and type in the number of
the table row in which you entered the number of slices.
46.
This tool can store the result of the calculation directly in the table, so double-click the
Value
column of the parameter
04=Table index
and fill in the number of an empty row
in the table. Remember to fill in a description of the value in the table.
To calculate the desired volume of a slice we also need the total volume, which we calcu-
lated in the previous step. We may store the total volume in the table and read the value
from there, but we can also retrieve the value directly from the returned values of the step.
47.
Double-click the
Step
column of the parameter
01=Variable A
.
A
Previous result
dialog box is displayed. Here you can select a result from a program
step to use as parameter value.
48.
Choose the step number of the
Volume
step and then the first result from that step
(there is only one result to choose from) and click
OK
.
The number of the step and the result are entered in the
Step
and
Result
columns of
the
01=Variable A
parameter and the current value is displayed in the
Value
column.
Summary of Contents for IVC-3D 200
Page 39: ......