Visual kv series – KEYENCE Visual KV Series User Manual

Page 246

Advertising
background image

4.4 Expanded Functions of High-speed Counters

3-222

Visual KV

Series

4

Chapter 4 High-speed Counters

The high-speed counter and high-speed counter comparator update the contents of
the read area of data memory each scan time.
At the start of an interrupt routine, the current value is updated. The contents of the
write area of data memory is updated with the data write operation.

➮ "Setting the 24-bit high-speed counter comparator" (below) and "4.4.2 Changing the Current Value of

a 24-bit High-speed Counter" (p. 3-223)

Note 1: Use the SET, RES instruction pair to set the special utility relays.
Note 2: The 16-bit/24-bit high-speed counter setting with the MEMSW instruction is
effective when the Visual KV is in RUN mode.
You must change the program to change between 16-bit and 24-bit settings.

Setting the 24-bit high-speed counter comparator

To specify the preset value for the 24-bit high-speed counter comparator, write the
value into the write area DM1916 to DM1923 and execute the STA and CTC instruc-
tions to specify or change the preset value.
When the setting or change is properly performed, the CTC read areas DM1904
through DM1911 are updated with the new values after one scan.

Changing the preset value
Change the preset value for the 24-bit high-speed counter comparator using the
Access Window, programming support software, handheld programmer, or operator
panel with the following procedure.

1. Write the desired preset value into data memory.

Write the desired preset value to the CTC preset value write areas DM1916
through DM1923.

2. Change the preset value of CTC. (See the notes on the next page.)

With the Access Window
Call CTC in device mode and change the value.

With the "KV IncrediWare (DOS)" programming support software
Change the preset value of CTC with the "Edit Device CTC" [F2] option.

With the "LADDER BUILDER for KV" programming support software
Change the preset value of CTC in the dialog box.

With the KV-P3E(01) handheld programmer
Change the preset value of CTC with the "TIMER COUNTER SETTING
CHANGE" function.

➮ For more about detailed operation, refer to "Chapter 3 Access Window" (p. 1-79), "Chapter 6

Handheld Programmer" (p. 1-195) and "Chapter 2 Instructions" (p. 3-33).

Note 1: When the preset value of a 24-bit CTC is changed with an instruction such
as STA CTC0, the value entered as an operand is ignored but the value written in
DM1916 through DM1923 is referred to and used as the preset value.

Note 2: Be sure to write the desired value to the write area of the high-speed
counter comparator preset value (DM1916 through DM1923) before executing the
change operation (e.g., STA instruction).

KVNKA Chap 04_1.p65

08.3.11, 0:06 PM

222

Advertising