Mitsubishi Q00JCPU User Manual page 650

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

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
For example, when creating ON/OFF ladder using two timers, create a ladder as
shown in Figure 10.27.
[Correct ladder example]
The coil of T1 turns ON one scan after turning ON T0.
T0
T1
T0
OUT T1
OUT T0
END
processing
ON
OFF
Coil of T0
OFF
Contact of T0
Current value
0
0
of T0
Coil of T1
OFF
OFF
Contact of T1
Current value
of T1
[Incorrect ladder example]
The coil of T1 turns ON in the same scan after turning ON T0.
T1
T0
T0
OUT T0
OUT T1
END
processing
ON
Coil of T0
OFF
OFF
Contact of T0
Current value
0
0
of T0
OFF
Coil of T1
OFF
Contact of T1
Current value
of T1
instruction, pay attention to the order of ladders.
K10
T1
Measures for one second after T0 turns ON.
K10
Measures for one second when T1 turns OFF.
T0
Turns ON/OFF repeatedly per one second.
M0
OUT T1
OUT T1
OUT T1
OUT T0
OUT T0
OUT T0
END
END
processing
processing
ON
0
1
9
10
One second
ON
0
K10
Measures for one second when T1 turns OFF.
T0
K10
Measures for one second after T0 turns ON.
T1
Turns ON/OFF repeatedly per one second.
M0
OUT T0
OUT T0
OUT T1
OUT T1
END
END
processing
processing
ON
0
1
9
10
One second
ON
0
1
Since the current value is updated in a scan where T0's time is up,
count is started from the value more than 1.
Figure 10.27 ON/OFF ladder using two timers
OUT T1
OUT T1
OUT T0
OUT T0
END
END
END
processing
processing
processing
10
ON
0
0
1
9
10
One second
OUT T0
OUT T0
OUT T1
OUT T1
END
END
processing
processing
ON
1
2
9
900ms
OUT T1
OUT T0
END
processing
OFF
OFF
0
OFF
OFF
10
0
OUT T0
OUT T1
END
processing
OFF
OFF
10
0
OFF
OFF
10
10
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents