Specifications
Setup for Mode 40
Recall that V7633 is the HSIO Mode Select register. Refer to the diagram below. Use BCD
40 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
• 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.
Interrupts and the Ladder Program
Refer to the drawing below. The source of the interrupt may be external (X0), or the HSIO
timer function. The setup parameter in V7634 serves a dual purpose:
• It selects between the two interrupt sources, external (X0) or an internal timer.
• In the case of the timer interrupt, it programs the interrupt timebase between 5 and 999 ms.
The resulting interrupt uses label INT 0 in the ladder program. Be sure to include the Enable
Interrupt (ENI) instruction at the beginning of your program. Otherwise, the interrupt
routine will not be executed.
DL05 Micro PLC User Manual, 6th Edition, Rev. C
E–45
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
00 0000100
HSIO Mode Setup (BCD)
0000
40 = High-Speed Interrupt
00 04
0
0
X0, External Interrupt
CPU Scan
Interrupt source /
Time select
V7634 xxx4
Input
Update
Ladder
Program
Execution
Input
Update
current
instruction
INT
Interrupt
Routine
Program
IRT
TIMER
See page E-5