User manual

High-Speed Input and
Pulse Output Features
3--44
High-speed Input and Pulse Output Features
DL105 PLC User Manual, 3 rd Edition
Recall that V7633 is the HSIO Mode Select register. Refer to the diagram below. Use
BCD 40 in the lower byte to select High-Speed Interrupt Mode. Use BCD 00 or 20 in
the upper byte as required. Combine the two bytes into a data word “xx40”, for writing
to V7633.
015 14 13 12
Memory Location V7633
11 10 123456789Bits
00100000100
HSIO Mode Setup (BCD)Miscellaneous Setup (BCD)
0000
00 = Power Up in Previous Mode
20 = Power Up in Run Mode Always 40 = High-Speed Interrupt
20 04
0
Choose the most convenient method of programming V7633 from the following:
S Include load and out instructions in your ladder program
S DirectSOFT’s memory editor
S 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 to this.
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:,
S It selects between the two interrupt sources, external (X0) or an internal
timer.
S In the case of the timer interrupt, i t 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.
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
Setup for Mode 40
Interrupts and the
Ladder Program