294
8 BUILT-IN I/O FUNCTION INSTRUCTION
8.2 Counter Function Dedicated Instruction
Frequency measurement
ICFCNT1, ICFCNT2
The following instruction can go in the dotted squares.
ICFCNT1, ICFCNT2
■
Executing condition
■
Argument
Processing details
This instruction measures a frequency of the specified CH (refer to the following) according to the settings such as the
frequency measurement unit time setting.
• ICFCNT1: CH1
• ICFCNT2: CH2
The measured value is stored to (d) at the ICFCNT instruction execution. The measurement starts at the rising pulse of the
ICFCNT instruction execution command, and ends at the falling pulse.
Program example
• The following program executes the frequency measurement of CH 1 while M0 is ON.
Instruction
Executing condition
ICFCNT1
ICFCNT2
Input/output
argument
Name
Description
Data type
Input argument
EN
Executing condition
Bit
Output argument
ENO
Execution result
Bit
d
Start number of the device that stores the
measured frequency value
ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
(d)
[Structured ladder/FBD]
[ST]
ICFCNT1( M0 , D100 );
LCPU
ST
ICFCNT1
EN
ENO
ICFCNT1
(EN, d);
ENO:=
d
Structured ladder/FBD
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......