Справочник Пользователя для Mitsubishi Electronics MELSEC Q series MELSEC L series

Скачать
Страница из 412
8.2 Counter Function Dedicated Instruction
8.2.7 ICFCNT instruction
8-25
8
B
U
IL
T-
IN
 I/
O
 FU
N
C
TI
O
N
 
IN
S
TRUC
TI
ON
IC
FC
NT
1, IC
FC
NT2
ICFCNT1, ICFCNT2
8.2.7  
ICFCNT instruction
ICFCNT1, ICFCNT2
Function
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   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.
[Structured ladder/FBD]
[ST]
ICFCNT1(M0, D100);
ICFCNT1
ICFCNT2
 
indicates any of the following
 
instructions.
ICFCNT1
ICFCNT2
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
LCPU
ST
ICFCNT1
EN
ENO
ICFCNT1
(EN, d);
ENO:=
d
Structured ladder/FBD
d
d