Specifications
Setup for Mode 10
V7633 is the HSIO Mode Select register. Refer to the diagram below. Use BCD 10 in the
lower byte of V7633 to select the High-Speed Counter Mode.
Choose the most convenient method of programming V7633 from the following:
• Include load and out instructions in your ladder program
• DirectSOFT’s memory editor or Data View
• Use the Handheld Programmer D2–HPP
We recommend using the first method above so that the HSIO setup becomes an integral part of
your application program. An example program later in this section shows how to do this.
Presets and Special Relays
Presets are used to cause a particular action to occur when the count reaches the preset value.
Refer to the figure below. Each counter features 24 presets, which you can program. Presets
are double word numbers so they occupy two V-memory registers. The user selects the preset
values, and the counter continuously compares the current count with the preset. When the
two are equal, a special relay contact is energized and program execution jumps to the
interrupt routine.
We recommend using the special relay(s) in the interrupt service routine to cause any immediate action you
desire. After the interrupt service routine is complete, the CPU returns to the ladder program, resuming
program execution from the point of interruption. The compare function is ready for the next preset event.
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–9
Appendix E: High-speed Input and Pulse Output Features
1
2
3
4
E
6
7
8
9
10
11
12
13
14
A
B
C
D
015 14 13 12
Memory Location V7633
11 10 123456789Bits
HSIO Mode Setup (BCD)
10 = High-Speed Counter
00 01
For the function of bits 8 - 15,
refer to page E-6.
0
00010000 0000000
V3710
V3712
0000
0000
V3632 0000
V3634 0000
V3636 0000
1500
2500
2000
2500
3175
V3706 0921 0000
Counter 2: Preset Data
Low
Word
High
Word
CPU Scan
Counter 1
Reset 1
Current
Value
Input
Update
Ladder
Program
Execution
Output
Update
INT
HSIO
Interrupt
Routine
Program
SPxxxSPxxx
IRT
=
X0, up counter clock
X2, external reset
Current
Instruction
X1, up counter clock
Counter 2
X3, external reset
Reset 2
V3630 0000
V3632
0000
V3634 0000
V3636 0000
1000
2000
2500
3175
V3706
0921
0000
Counter 1: Preset Data
Low
Word
High
Word
Current
Value
Does
Count 1 =
Preset?
Does
Count 2 =
Preset?
=