Mitsubishi Electric MELSEC-L02SCPU User Manual page 256

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

Advertisement

(9) Measured pulse value read instructions: ICPLSRD1(P), ICPLSRD2(P)
ICPLSRD1
ICPLSRD1P
ICPLSRD2
ICPLSRD2P
Internal device
Setting data
Bit
D
(a) Setting data
Setting data
Start number of the device where a measured pulse
D
value is stored
(b) Function
This instruction stores a measured pulse into
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 "Pulse 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 pulse value of CH1 is stored into D100 and D101 when M0 turns on.
254
Command
Command
Command
Command
R, ZR
Word
Bit
Word
Setting item
is exceeding its range.
D
J\
U\G
Bit
Word
Setting range
Within the range of a specified
device
and
+1.
D
D
D
ICPLSRD1
ICPLSRD1P
D
ICPLSRD2
D
ICPLSRD2P
D
Constant
Z
Others
K, H
$
Data type
Device name
(Error code: 4101)
(Error code: 4116)
(Error code: 4116)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents