Chapter 5 Instruction Specifications
5-133
Item number
FUN instructions-9
Name
High-speed counter current value reading
Ladder format
Condition code
Processing time (
µ
s)
Remark
R7F4
R7F3
R7F2
R7F1
R7F0
Average Maximum
FUN 144 (s)
DER
ERR
SD
V
C
↕
z
z
z
z
Instruction format
Number of steps
132
Condition
Steps
FUN 144 (s)
—
3
Bit
Word
Double word
Usable I/O
X
Y
R,
M
TD, SS,
CU, CT
WX WY
WR,
WM TC DX DY
DR,
DM
C
o
nstant
Other
s
Argument (counter
number)
{
s+1
Argument
(Current value storage
area)
{
Function
Counter number: H01 to H04
**:
Disable area
•
This function reads the count value of the specified counter number and writes it to the current value storage area.
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 only used to read the count value. Other counter settings will not be changed and it will not affect the
count operation.
•
The execution of this instruction will not change WRF07A to WRF07D (strobe area) and WRF056 (strobe complete flag).
•
If the range for S exceeds the valid range of the I/O, DER will be set to “1” and no processing will be performed.
Program example
R4
LD
R4
AND DIF4
[
WR40 = H100
FUN 144 ( WR40 )
]
LD
(WR41 < 2000)
OUT R144
DIF4
WR40 = H0100
FUN 144 (WR40)
WR41
<
2000
R144
Program description
•
Load the count value of the counter No. 1 to WR41.
If the count value of the counter No. 1 is less than 2000, R144 is turned on.
S
Counter number
* *
15
8 7
0
S + 1
Current value storage area
FUN 144 (s
)
Содержание HIDIC MICRO-EH
Страница 1: ...HITACHI PROGRAMMABLE CONTROLLER APPLICATION MANUAL NJI 350B X ...
Страница 12: ...MEMO ...
Страница 14: ...Chapter 1 Features 1 2 MEMO ...
Страница 50: ...Chapter 4 Product lineup and wiring 4 18 MEMO ...
Страница 196: ...Chapter 5 Instruction Specifications 5 146 ...
Страница 263: ...Chapter 11 Communication Specifications 11 10 MEMO ...