Mitsubishi Electric MELSEC-L02SCPU User Manual page 219

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

Advertisement

(d) Count disable/preset function
The count disable function and the preset function can be performed depending on changes of the Function
input signal without switching the function.
CH1 count enable command
(SM1895)
OFF
Preset value setting
Function input signal
OFF
100
CH1 current value
(SD1880 and SD1881)
No.
1)
Counting starts when CH1 Count enable command (SM1895) is turned on.
2)
Counting stops on the rising edge of the Function input signal.
On the falling edge of the Function input signal, the preset value setting is stored in CH1 Current value (SD1880, SD1881), and
3)
counting is restarted.
4)
When Preset value write instruction (ICPREWR1(P)) is executed, a set value is overwritten to the preset value setting.
5)
Counting stops when CH1 Count enable command (SM1895) turns off.
6)
Because CH1 Count enable command (SM1895) is off, counting stops regardless of the Function input signal.
Even though CH1 Count enable command (SM1895) is turned on, counting remains stopped because the Function input signal
7)
is on.
On the falling edge of the Function input signal, the preset value setting is stored in CH1 Current value (SD1880, SD1881), and
8)
counting is restarted.
1)
ON
0
2)
ON
0
Counting
Counting
stopped
stopped
Description of operation
CHAPTER 8 HIGH-SPEED COUNTER FUNCTION
5)
4)
100
t
2ms
3)
Pulse actually input
Count value to be stored
in the current value area
Counting stopped
7)
6)
8)
217
8

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents