Mitsubishi Electric MELSEC-L02SCPU User Manual page 255

Cpu module, built-in i/o function
Table of Contents

Advertisement

(8) Rotation speed measurement instructions: ICRCNT1, ICRCNT2
ICRCNT1
ICRCNT2
Internal device
Setting data
Bit
Word
D
(a) Setting data
Setting data
Start number of the device where a measured
D
rotation speed value is stored
(b) Function
This instruction measures rotation speed according to the value set to "Rotation Speed Measurement Unit
Time Setting". When ICRCNT1 is executed, a measured value is stored into
measurement starts at rising of the ICRCNT1 execution command and ends at falling.
The number of steps is basically two.
(c) Error
In the following cases, an operation error occurs. Error flag (SM0) turns on and an error code is stored into
SD0.
• The device specified in
• Other than "Rotation Speed Measurement Mode" is selected for "Operation Mode Setting" of the specified
channel.
• High-speed counter function of the specified channel is not enabled.
(d) Program example
A measured rotation speed value of CH1 is stored into D100 and D101 while M0 is on.
Command
Command
J\
R, ZR
Bit
Bit
Word
Setting item
is exceeding its range.
D
CHAPTER 8 HIGH-SPEED COUNTER FUNCTION
U\G
Z
Word
Setting range
Within the range of a specified
device
D
ICRCNT1
D
ICRCNT2
D
Constant
Others
K, H
$
Data type
Device name
and
+1. Rotation speed
D
(Error code: 4101)
(Error code: 4116)
(Error code: 4116)
253
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents