9
-
33
(f) When the set value is changed after time-out
Even if the set value is changed to a larger value after time-out of the timer, the timer remains timed-out and
does not start the operation.
(g) When using multiple timers
When using multiple timers to update the respective current values at execution of each OUT T instruction,
pay attention to the ladder sequence.
For example, to create an on/off ladder using two timers, refer to examples shown in Figure 9.31.
Figure 9.31 On/off ladder using two timers
T0
Measures for one second after T0 is turned on.
Coil of T1 is turned on one scan after T0 is turned on.
Coil of T1 is turned on within the same scan in which T0 was turned on.
Coil of T0
OUT T1
OFF
OFF
0
0
0
1
One second
One second
9
10
10
0
0
0
0
1
9
10
10
0
OFF
OFF
ON
ON
OFF
ON
OFF
OFF
OFF
ON
OUT T0
END processing
END processing
END processing
END
processing
END
processing
END processing
OUT T1
OUT T0
OUT T1
OUT T0
OUT T1
OUT T0
OUT T1
OUT T0
OUT T1
OUT T0
OUT T1
OUT T0
END processing
Contact
of T0
Current
value of T0
Coil of T1
Contact
of T1
Current
value of T1
Measures for one second when T1 is off.
Alternates on and off every second.
K10
T1
T1
K10
T0
T0
M0
T1
OUT T0
OFF
OFF
0
0
0
1
One second
900ms
9
10
10
0
0
1
1
2
9
10
10
0
OFF
OFF
ON
ON
OFF
ON
OFF
OFF
OFF
ON
OUT T1
END processing
OUT T0
OUT T1
END processing
OUT T0
OUT T1
END processing
OUT T0
OUT T1
END processing
OUT T0
OUT T1
END
processing
OUT T0
OUT T1
END processing
Because the current value is updated in the scan where
T0 is timed out, the count starts from 1 or larger value.
K10
T0
T0
K10
T1
T0
M0
[Correct ladder example]
[Incorrect ladder example]
Measures for one second after T0 is turned on.
Measures for one second when T1 is off.
Alternates on and off every second.
Coil of T0
Contact
of T0
Current
value of T0
Coil of T1
Contact
of T1
Current
value of T1
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......