KEYENCE Visual KV Series User Manual

Page 142

Advertising
background image

2.4 Instruction Details

3-118

2

Chapter 2 Instructions

Setting procedure

The ITVL instruction reserves 16 data memories: 1 specified data memory and 15
successive data memories. It also reserves 4 relays: 1 specified relay and 3 succes-
sive relays.

Note: Do not use the 16 data memories and 4 relays specified with the ITVL instruc-
tion for any other purpose.

Data memory (DM) assignment

Set the initial setting data to the first four data memories.

Data memory

Mode

DM XX + 00

01

02

03

04

05

06

07

08

09

10

11 to 12

MAX value

MIN value

Measured value

MAX measured value

MIN measured value

Mean

Preset No.of

measurements

No.of measurements

performed*

Higher digits*

Lower digits*

Work memory

MAX error

Relay +0

+1

+2

+3

MIN error

Every

measurements

completion

Measurements

completion for

mean calculation

Used for computing measured values, Max.
measured values, Min. measured values, mean
values, and accumulating totals. (Cannot be used)

Specifies measurement mode (0 to 5).

Presets highest value in measurement
range.
Presets lowest value in measurement
range.
Specifies number of measurements for
mean calculation (1 to 65535).
Stores current measured value.

Stores Max. measured value.

Stores Min. measured value.

Stores mean value.

Stores number of times measurements
actually performed.

Stores higher 16 bits of accumulating
total of measurements. (#00000 to
#65535) ($0000 to $FFFF)

Initial
setting
is to be
specified
by user.

Stores lower 16 bits of accumulating
total of measurements. (#00000 to
#65535)($0000 to $FFFF)

Turns ON and remains ON for one scan time when
measured value exceeds Max preset value.

Turns ON and remains On for one scan time when
measured value goes below Min preset value.

Turns ON at completion of every measurement and
remains ON for one scan time.

Turns ON for one scan time at completion of the
specified No. of measurements for mean value
calculation, then remains ON for one scan time.

Relay assignment

Relay

Note 1: When 0 (zero) is specified as the number of measurements, mean value
calculation will not be performed. In this case, the number of measurements will be
accumulated until RES input turns ON, which may cause overflow.

Note 2: Data in the No. of measurements, Higher digits, and Lower digits are reset
when the No. of measurements performed reaches the preset No. of measurements.

Note 3: Once ITVL instruction is defined in MC-MCR block, the measurement
process pauses when the block is not executed.

Note 4: For programs containing subroutines, interrupts, steps, or stages, ITVL
instructions must be defined so that they are executed unconditionally for every scan
time.

ITVL

KVNKA Chap 02_4bP.p65

08.3.11, 0:00 PM

118

Advertising