10
DEVICE EXPLANATION
10
- 35
10.2 Internal User Devices
10.2.10 Timer (T)
(g) When using the multiple timers
When using the multiple timers to update the current value of a timer at the time of
executing each OUT T instruction, pay attention to the order of ladders.
For example, when creating ON/OFF ladder using two timers, create a ladder as
shown in Figure 10.27.
Figure 10.27 ON/OFF ladder using two timers
T0
Measures for one second after T0 turns ON.
The coil of T1 turns ON one scan after turning ON T0.
The coil of T1 turns ON in the same scan after turning ON T0.
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
OUT T1
OUT T0
END
processing
OUT T1
OUT T0
END
processing
OUT T1
OUT T0
END
processing
OUT T1
OUT T0
END
processing
OUT T1
OUT T0
END
processing
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 turns OFF.
Turns ON/OFF repeatedly per one second.
K10
T1
T1
K10
T0
T0
M0
T1
Measures for one second when T1 turns OFF.
Coil of T0
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
Contact of T0
Current value
of T0
Coil of T1
Since the current value is updated in a scan where T0's time is up,
count is started from the value more than 1.
Contact of T1
Current value
of T1
Measures for one second after T0 turns ON.
Turns ON/OFF repeatedly per one second.
K10
T0
T0
K10
T1
T0
M0
[Correct ladder example]
[Incorrect ladder example]
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......