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 high-speed interrupts.
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.
Interrupts and the Ladder Program
Refer to the drawing below. The source of the interrupt may be external (X0 - X3). An
internal timer can be used instead of X0 as the interrupt source. The setup parameter in
V7634 serves a dual purpose:
• It selects between the two interrupt sources (external or internal timer). The timed interrupt can
only be used with X0.
• In the case of the timer interrupt, it programs the interrupt timebase between 5 and 999 mS.
The resulting interrupt uses label INT 0, 1, 2 or 3 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.
DL06 Micro PLC User Manual, 3rd Edition, Rev. C
E–68
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
X0, External Interrupt
CPU Scan
Interrupt source /
Time select
V7634 xxx4
Input
Update
Ladder
Execution
Input
Update
Current
Instruction
INT
Interrupt
Routine
Program
IRT
TIMER
Program
X1-X3, External Interrupts
0
14 13 12
Memory Location V7633
1
1 10 123456789Bits
00 0000100
HSIO Mode Setup (BCD)
0000
0
40 = High-Speed Interrupts
4
0
00
Miscellaneous Setup (BCD)
1
5
00 = Not Used (default)
10 = Battery Enabled
20 = Power-up in RUN
30 = Battery Enabled and
Power-up in RUN
00