7 Application Instructions API 50-99
DVP-PLC APPLICATION MANUAL
7-16
M1000
DCNT C251 K200
M0
DHSCR K100 C251 Y10
C251
SET Y0
Program Example 2:
When DHSCR instruction designates the same high speed counter, and the present value in the high speed counter
C251 changes from 999 to 1,000 or 1,001 to 1,000, C251 will be reset to Off.
M1000
DCNT C251 K200
DHSCR K1000 C251 C251
1,000
200
Affected by scan time
C251 output contact
Not affected by scan time
Remarks:
1. DVP all series MPU support high speec counters. For the limitation on the use of instructions, see remarks of
API 53 DHSCS for more details.
2. M1261 of EH/EH2/SV series MPU designates the external reset modes of the high speed counter. Some high
speec counters have input points for external reset; therefore, when the input point is On, the present value in
the corresponding high speed counter will be cleared to 0 and the output contact will be Off. If you wish the reset
to be executed immediately by the external output, you have to set M1261 to be On.
3. M1261 can only be used in the hardware high speed counter C241 ~ C255.
4. Example:
a) X2 is the input point for external reset of C251.
b) Assume Y10 = On.
c) When M1261 = Off and X2 = On, the present value in C251 will be cleared to 0 and the contact of C251 will
be Off. When DHSCR instruction is executed, there will be no counting input and the comparison result will
not output. The external output will not execute the reset; therefore Y10 = On will remain unchanged.
d) When M1261 = On and X2 = On, the present value in C251 will be cleared to 0 and the contact of C251 will
be Off. When DHSCR instruction is executed, there will be no counting input but the comparison result will
output. Therefore, Y10 will be reset.
M1000
DCNT C251 K1000
DHSCR K0 C251 Y10
X10
M1261