Icfcnt Instruction - Mitsubishi MELSEC-L series Programming Manual

Hide thumbs Also See for MELSEC-L series:
Table of Contents

Advertisement

8.2.7

ICFCNT instruction

ICFCNT1
ICFCNT2
Structured ladder
ICFCNT1
EN
ENO
d
Input argument
EN:
Executing condition
Output argument
ENO:
Execution result
d:
Start number of the device that stores the measured frequency
value
Setting
data
d
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 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]
[ST]
ICFCNT1(M0, D100);
ST
ENO:=
(EN, d);
ICFCNT1
Internal device
R, ZR
Bit
Word
Bit
at the ICFCNT instruction execution. The measurement starts
d
8.2 Counter Function Dedicated Instruction
ICFCNT1, ICFCNT2
ICFCNT1, ICFCNT2
indicates any of the following
instructions.
ICFCNT1
ICFCNT2
:Bit
:Bit
:ANY32
J
\
Zn
U
\G
Word
8.2.7 ICFCNT instruction
8
L CPU
Constant
Others
8-25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-q series

Table of Contents