Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-36
Item number Basic instructions-27 Name Counter clear (COUNTER CLEAR)
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
DER ERR SD V C
CL n
zzzzz
Instruction format Number of steps
0.9
Condition Steps
OUT CL n s 1
Bit Word Double word
Usable I/O
XY
R,
M
TD, SS,
CU, CT WX WY
WR,
WM TC DX DY
DR,
DM
Constant
Other
n Counter number { 0 to 255 (Decimal)
Function
Clears the progress values of the integral timer and switches off the timer coil.
In the case of WDT, the time monitor check is performed (see WDT for details).
In the case of counters, the progress value is cleared and the counter coil is switched off.
The clearing operation is conducted immediately before execution of the counter or timer coil instruction indicated by the
clear coil.
Example:
X00000
CL10
X00001
CU10
X00002
CL10
1) When X00000 is turned on, the CL10 immediately prior to CU10, and CU10
is cleared.
2) Even if X00002 turns on, if X00001 is off, the CL10 is turned off by the
circuit before CU10 is executed. Thus, the CU10 will not be cleared.
Notes
The same number should be used for the timer number and counter number.
OUT CL n s