Specifications

Setup for Mode 10
Recall that 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. The DL05 does not
use bits 8 - 12, 14 and 15 in V7633.
Choose the most convenient method of programming V7633 from the following:
• Include load and out instructions in your ladder program
DirectSOFT 5’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
The goal of counting is to do a special action when the count reaches a preset value. Refer to
the figure below. The counter features 24 presets, which you can program. A preset is a
number you derive and store so that the counter will constantly compare 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.
DL05 Micro PLC User Manual, 6th Edition, Rev. C
E–8
Appendix E: High-speed Input and Pulse Output Features
1
2
3
D
E
6
7
8
9
10
11
1
1
14
A
B
C
D
0
15 14 13 12
Memory Location V7633
1
110 123456789Bits
HSIO Mode Setup (BCD)
10 = High-Speed Counter
00 01
For the function of bits 8 - 15,
refer to page 3-5.
00 0010000 0000000
X0, counter clock
CPU Scan
Counter
Reset
X2, external reset
Current
Value
V2320 0000
V2322 0000
V2324 0000
V2326 0000
1000
2000
2500
3175
V2376 0921 0000
Input
Update
Ladder
Program
Execution
Output
Update
Does
count
= Preset?
INT
HSIO
Interrupt
Routine
Program
SPxxx SPxxx
IRT
=
Current
Instruction
V-memory Preset Data
refer to page E-5.