Keyence Visual KV Series Manual de usuario Pagina 313

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 392
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 312
6.2 High-speed Counters
KV-300
KV-10/80
3-289
1
6
Chapter 6 Interrupts, High-speed Counters, Positioning Control
When outputting clock pulse with cycle 500 µs (2 kHz) and pulse width 200
µs from 0501
This program example shows how to output clock pulse with variable ON/OFF ratio
from 0501, through High-speed counter CTH1 and High-speed counter comparator
CTC2 and CTC3.
Setting special utility relays
Special utility relays 2203 to 2212 are set as shown on the right table.
Relay No. Setting Relay No. Setting
2203 ON 2212 OFF
2204 ON 2208 OFF
2205 ON 2209 ON
2206 OFF 2210 OFF
2207 OFF 2211 OFF
Values set to the internal clock and CTC2 and CTC3
After the internal clock is determined, the CTC2 and CTC3 setting value is calcu-
lated from the following expression.
CTC3 setting value = Pulse width (µs) ÷ Internal clock (µs)
CTC2 setting value = Pulse cycle (µs) ÷ Internal clock (µs)
Assign 200 µs to pulse width, 500 µs to pulse cycle and 10 µs (2201: special utility
relay) to internal clock and calculate the CTC2 and CTC3 setting value.
The calculated results of CTC3 and CTC2 are "20" and "50", respectively.
Values calculated based on other internal clocks are listed below for your refer-
ence.
Special utility relay Internal clock* CTC2 value CTC3 value
2100 1.0 µs 500 200
2101 10.0 µs5020
2102 100.0 µs5 2
*Refer to page 3-276.
Programming example
2008
SET
2203 2204 2205
2002
0001
0002
0003
2201
SET SET
RES
CTH1
CTC2
#00050
0004
0005
RES
2208 2209 2210 2211
CTH1
SET RES RES
RES
2207
CTC3
#00020
CTH1 value
ON
OFF
CTC2
CTC3
The status of output 0501 is set by turning ON one of the relays 2204 to 2207
and 2208 to 2211 at the beginning of the program. In Example, output of direct
clock pulses to 0501 is enabled, and the status of output 0501 is turned ON at
CTC2 and is turned OFF at CTC3.
Turns ON special utility relay 2203 and specifies to clear CTH1 using CTC2.
The program repeats clearing the CTH1 current value with the value set to
CTC2.
Input relay which enables CTH1 remains ON during clock pulse output.
KVNKA Chap 06.p65 08.3.11, 0:10 PM289
Vista de pagina 312
1 2 ... 308 309 310 311 312 313 314 315 316 317 318 ... 391 392

Comentarios a estos manuales

Sin comentarios