User manual

High-Speed Input and
Pulse Output Features
3--19
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 20 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 “xx20”, for writing
to V7633.
015 14 13 12
Memory Location V7633
11 10 123456789Bits
00100001000
HSIO Mode Setup (BCD)Miscellaneous Setup (BCD)
0000
00 = Power Up in Previous Mode
20 = Power Up in Run Mode Always 20 = Quadrature Counter
20 02
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.
The configurable discrete input options for High-Speed Counter Mode are listed in
the table below. Input X0 is dedicated for Phase A, and input X1 is for Phase B. Input
X2 is the reset input to the quadrature c ounter, but it does not cause an interrupt.
Input X3 can only be a filtered input. The section on Mode 60 operation at the end of
this chapter describes programming the filter time constants.
Input Configuration
Register
Function Hex Code
Required
X0 V7634 Phase A 0012
X1 V7635 Phase B 0000
X2 V7636 Counter Reset (no interrupt) 0007
X3 V7637 Filtered Input xx06 (xx = filter time)
Setup for Mode 20
X Input
Configuration