Specifications
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–27
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
Setup for Mode 20
Remember that V7633 is the HSIO Mode Select register. Refer to the diagram below. Use
BCD 20 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
• 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 cause a particular action to occur when the count reaches a preset
value. Refer to the figure below. Each counter features 24 presets, which you can program. A
preset is a number you select and store so that the counter will continuously 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.
01413 12
Memory Location V7633
11 10 123456789Bits
00 0001000
HSIO Mode Setup (BCD)
0000
20 = Up/Down Counter
02
0
00
Miscellaneous Setup (BCD)
15
00 = Not Used (default)
10 = Battery Enabled
20 = Power-up in RUN
30 = Battery Enabled and
Power-up in RUN
00
X0, up counter clock
CPU Scan
Counter 1
Reset 1
X2, external reset
Current
Value
V3630 0000
V3632 0000
V3634 0000
V3636 0000
1000
2000
2500
3175
V3706 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
High
Word
Low
Word
Counter 2
X1, down counter clock