Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
9 - 26
(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.29.
Figure 9.29 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
00 0 1
One second
One second
910 100
00 01 9 10 100
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
00 01
One second
900ms
910 100
01 12 9 10 100
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