Item number
FUN instructions-10
Ladder format
FUN 145 (s)
Instruction format
FUN 145 (s)
Usable I/O
Argument (counter
s
number)
Function
15
S
Counter number
•
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
DIF5
Program description
•
The count value of the counter No. 1 is cleared.
Name
Condition code
R7F4
R7F3
R7F2
DER
ERR
SD
↕
Number of steps
Condition
—
Bit
R,
TD, SS,
X
Y
M
CU, CT
WX WY
8 7
0
* *
WR5 = H0100
FUN 145 (WR5)
5-134
Chapter 5 Instruction Specifications
High-speed counter current value clear
Processing time (µs)
R7F1
R7F0
Average Maximum
V
C
157
Steps
3
Word
Double word
WR,
DR,
WM TC DX DY
DM
Counter number:
H01 to H04
**:
Disable area
LD
R5
AND DIF5
[
WR5 = H100
FUN
145 ( WR5 )
]
Remark
Other