Mitsubishi L02CPU User Manual page 245

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(g) When using multiple timers
When using multiple timers, provide the timers from the last one to be measured because current value of the
timers are updated upon execution of OUT T
Creating an on/off ladder using two timers
Ex.
Ex.
OUT T1
OUT T1
OUT T0
END processing
ON
Coil of T0
OFF
Contact
OFF
of T0
Current
0
0
0
value of T0
OFF
Coil of T1
Contact
OFF
of T1
Current
value of T1
OUT T0
OUT T0
OUT T1
OUT T1
END processing
ON
Coil of T0
OFF
Contact
OFF
of T0
Current
0
0
0
1
value of T0
1s
OFF
Coil of T1
Contact
OFF
of T1
Current
value of T1
or OUT ST
[Correct program example]
Coil of T1 is turned on for one scan after T0 is turned on.
OUT T1
OUT T1
OUT T0
OUT T0
OUT T0
END
END processing
END processing
processing
ON
1
9
10
1s
ON
0
0
[Incorrect program example]
Coil of T1 is turned on for one scan after T0 is turned on.
OUT T0
OUT T0
OUT T1
END processing
END processing
ON
9
10
ON
0
1
1
Because current value is updated in a scan where T0 is timed out,
the count starts from 1 or larger value.
instruction.
Measures for one second after T0 is turned on.
Measures for one second when T1 is off.
Alternates on and off once every second.
OUT T1
OUT T1
OUT T0
END processing
10
0
1
9
1s
Measures for 1 second when T1 is off.
Measures for 1 second after T0 is turned on.
Alternates on and off every second.
OUT T0
OUT T1
OUT T1
END
END processing
processing
2
9
900ms
CHAPTER 5 DEVICES
OUT T1
OUT T0
OUT T0
END
END processing
processing
OFF
OFF
0
OFF
ON
OFF
10
10
0
OUT T0
OUT T1
END processing
OFF
OFF
10
0
OFF
ON
OFF
10
10
0
243
5

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents