beautypg.com

Kv -300 – KEYENCE Visual KV Series User Manual

Page 305

background image

6.2 High-speed Counters

KV

-300

KV-10/80

3-281

1

6

Chapter 6 Interrupts, High-speed Counters, Positioning Control

CTH0 value

ON

OFF

CTC0

CTH0 value

ON

OFF

CTC0
CTC1

Special utility relay settings and output statuses

16-bit high-speed counter (CTH0) and special utility relays (2103 to 2112)
By setting the special utility relays 2104 to 2112 at startup or changing these relays
during generation of clock pulse, you can select ON/OFF of output relay 0500 as
listed below.
These special utility relays also allow you to set the pulse cycle and pulse width
and enable or disable the direct output.

Special utility relay must be ON when clock pulse is generated.

Only one of relays 2104 to 2107 and one of relays 2108 to 2111 can be
turned ON. When two or more of the relays among each group are ON,
priority is given to the relay with the smallest No.

Turning OFF special utility relays 2104 and 2108 enable direct output.
Because these relays are factory-set to ON, be sure to set them to OFF.

ON/OFF status of special utility relays 2104 to 2112 is set using SET and
RES instructions or STA instruction.

Be sure to turn the special utility relay 2103 or 2112 ON to change the
pulse width. Turn ON 2103 or 2112 to change the pulse cycle.

Turn OFF 2105 to start clock pulse output. Turn ON 2105 to stop pulse
output.

When special utility relays 2104 and 2108 are turned ON while the direct
clock pulses are being output, the status of the output relay 0500 is output
and the pulses will be stopped.

Timing diagram of 0500 with special utility relay settings

ON-OFF ratio of 1:1

Variable pulse width

Settings of special utility relays

Settings of special utility relays

CAUTION

2103

ON

2112

OFF

2104

OFF

2108

OFF

2105

OFF

2109

OFF

2106

OFF

2110

OFF

2107

ON

2111

OFF

2103

ON

2112

OFF

2104

OFF

2108

OFF

2105

OFF

2109

ON

2106

ON

2110

OFF

2107

OFF

2111

OFF

Pulse status at CTH0 (current value) = CTC (preset value)

Comparator No.

Relay No.

Pulse status at ON.

CTC0

2103

Automatically clears current value of CTH0.

2104

Disables output to 0500.

2105

Outputs OFF to 0500

2106

Outputs ON to 0500.

2107

Inverts output to 0500.

CTC1

2112

Automatically clears current value of CTH0.

2108

Disables output to 0500.

2109

Outputs OFF to 0500

2110

Outputs ON to 0500.

2111

Inverts output to 0500.

KVNKA Chap 06.p65

08.3.11, 0:10 PM

281