Mitsubishi Electric MELSEC-L02SCPU User Manual page 236

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

Advertisement

(2) Function details
The following example describes the pulse measurement operation.
Ex.
Pulse ON Width" is selected for "Pulse Measurement Target Setting"
Pulse measurement start command
(SM1898)
Function input signal
Pulse measurement value
Pulse in-measurement flag (SD1882.b6)
No.
When CH1 Pulse measurement start command turns on, 0 is set as a measured pulse value and then "operating (1)" is stored
1)
in CH1 Pulse measurement flag (SD1882.b6).
After completion of the pulse measurement, the measured pulse value can be read to the specified device using Measured
2)
pulse value read instruction (ICPLSRD1(P)).
When CH1 Pulse measurement start command is turned off, "stopped (0)" is stored in CH1 Pulse measurement flag
3)
(SD1882.b6).
When the pulse measurement target is specified before "operating (1)" is stored in CH1 Pulse measurement flag (SD1882.b6),
4)
a measured pulse value will not be updated even if the Function input signal is turned off. Only a value that is specified after
"operating (1)" is stored in CH1 Pulse measurement flag (SD1882.b6) can be measured.
Updating of a measured pulse value can be indirectly detected with Function input status (SD1883.b1).
(Example) With "Pulse ON Width" selected for "Pulse Measurement Target Setting", a measured pulse value is stored into
D100.
234
ON
1)
OFF
ON
OFF
0
ON
OFF
Description of operation
3)
2)
XXX
0
4)
YYY

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents