Hitachi NJI-350B Video Game Controller User Manual


 
Chapter 5 Instruction Specifications
5-134
Item number FUN instructions-10 Name High-speed counter current value clear
Ladder format Condition code
Processing time (µs)
Remark
R7F4 R7F3 R7F2 R7F1 R7F0
Average Maximum
FUN 145 (s) DER ERR SD V C
zzzz
Instruction format Number of steps
157
Condition Steps
FUN 145 (s) 3
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
s
Argument (counter
number)
{
Function
Counter number: H01 to H04
**: Disable area
The output value will be changed according to the output condition (on-preset value, off-preset value settings) if the count
value of the specified counter number is cleared and coincidence output is possible.
Notes
If a value other than H01 to H04 is specified for the counter number, DER will be set to “1” and no processing will be
performed.
If the specified counter number is set to a function other than a corresponding external I/O counter (single-phase counter,
two-phase counter), DER will be set to “1” and no processing will be performed.
Since Counter 4 is invalid when a 10-point CPU is used, if Counter 4 is specified, DER will be set to “1” and no processing
will be performed.
If the specified counter number is unable to make an output (PI/O function setting result by R7F5), DER will be set to “1”
and no processing will be performed.
This instruction is used only to clear the count value. Other counter settings will not be changed and it will not affect the
count operation.
Program example
R5
LD R5
AND DIF5
[
WR5 = H100
FUN 145 ( WR5 )
]
DIF5
WR5 = H0100
FUN 145 (WR5)
Program description
The count value of the counter No. 1 is cleared.
S
Counter number * *
15 8 7 0
FUN 145 (s)