
4.3 Setting and Operation of High-speed Counters
3-218
Visual KV
Series
4
Chapter 4 High-speed Counters
2203
SET
CTH1
RES
CTC2
RES
CTC2 T001
2008
2002
#60000
CTC2
CTH1
0005
2002
HSP
0005
0502 #00030
T001
Clearing the current value of the high-speed counter
Counts pulses at input relay 0005. When the current value reaches the preset value
"60000", clears the current value of high-speed counter CTH1 and turns ON output
relay 0502 for 3 seconds.
Cording
Line No. Instruction Operand Line No. Instruction Operand
0000 LD 2008 0015 CTH1 0005
0001 LDA #01000 0016 LD 2002
0002 CON 0017 LDA CTH1
0003 STA DM0000 0018 MPS
0004 CON 0019 CMP DM0000
0005 LDA #02000 0020 ANB 2009
0006 CON 0021 OUT 0500
0007 STA DM0001 0022 MRD
0008 CON 0023 CMP DM001
0009 LDA #03000 0024 ANB 2009
0010 CON 0025 OUT 0501
0011 STA DM0002 0026 MPP
0012 LD 2002 0027 CMP DM0002
0013 HSP 0005 0028 ANB 2009
0014 LDB 0001 0029 OUT 0502
Line No. Instruction Operand
0000 LD 2008
0001 SET 2203
0002 CON
0003 RES CTH
0004 LD 2002
0005 HSP 0005
0006 LD 2002
0007 CTH1 0005
0008 CTC2 #60000
0009 LD CTC2
0010 OUT 0502
0011 CON
0012 TMR 001 #00030
0013 CON
0015 AND T001
0016 RES CTC2
Cording
KVNKA Chap 04_1.p65 08.3.11, 0:06 PM218
Komentarze do niniejszej Instrukcji