High
-S
peed
Input
and
Pulse
O
utput
Features
3--8
High-speed Input and Pulse Output Features
DL105 PLC User Manual, 3rd Edition
Recall that V7633 is the HSIO Mode Select register. Refer to the diagram below. Use
BCD 10 in the lower byte to select High-Speed Counter Mode. Use BCD 00 or 20 in
the upper byte as required. Combine the two bytes into a data word “xx10”, for writing
to V7633.
0
15 14 13 12
Memory Location V7633
11
10
1
2
3
4
5
6
7
8
9
Bits
0
0
1
0
0
0
1
0
0
0
0
HSIO Mode Setup (BCD)
Miscellaneous Setup (BCD)
0
0
0
0
00 = Power Up in Previous Mode
20 = Power Up in Run Mode Always
10 = High-Speed Counter
2
0
0
1
0
Choose the most convenient method of programming V7633 from the following:
S
Include load and out instructions in your ladder program
S
Direct
SOFT’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.
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.
X0, counter clock
CPU Scan
Counter
Reset
X2, external reset
Current
Value
V-memory Preset Data
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?
SPxxx
INT
HSIO
Interrupt
Routine
Program
IRT
=
Current
instruction
Setup for Mode 10
Presets and
Special Relays
Summary of Contents for DL105
Page 2: ...DL105 PLC User Manual Manual Number D1 USER M...
Page 308: ...1B DL105 Error Codes In This Appendix Error Code Table...
Page 314: ...1C Instruction Execution Times In This Appendix Introduction Instruction Execution Times...
Page 324: ...1D Special Relays In This Appendix DL105 PLC Special Relays...
Page 327: ...1E PLC Memory In This Appendix DL105 PLC Memory...