Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
8-26
8.2 Counter Function Dedicated Instruction
8.2.8 ICRCNT instruction
ICRCNT1, ICRCNT2
8.2.8 ICRCNT instruction
ICRCNT1, ICRCNT2
Function
This instruction measures a rotation speed of the specified CH (refer to the following) according
to the settings such as the rotation speed measurement unit time setting.
ICRCNT1: CH1
ICRCNT2: CH2
The measured value is stored to at the ICRCNT instruction execution. The measurement starts
at the rising pulse of the ICRCNT instruction execution command, and ends at the falling pulse.
Program Example
The following program stores the rotation speed measurement value of CH 1 to D100 and D101
while M0 is ON.
[Structured ladder/FBD]
[ST]
ICRCNT1(M0, D100);
ICRCNT1
ICRCNT2
indicates any of the following
instructions.
ICRCNT1
ICRCNT2
Input argument
EN:
Executing condition :Bit
Output argument
ENO:
Execution result :Bit
d:
Start number of the device that stores the measured rotation
speed
:ANY32
Setting
data
Internal device
R, ZR
J\
U\G
Zn Constant Others
Bit Word Bit Word

LCPU
ST
ICRCNT1
EN ENO
ICRCNT1
(EN, d);ENO:=
d
Structured ladder/FBD
d
d