9
-
30
CHAPTER9 DEVICES
9
9.2 Int
ernal User Devices
9.2.10
Timer (T
)
(8) Precautions for using timers
(a) Use of the same timer
Do not use the OUT T instruction that describes the same timer more than once within one scan.
If this occurs, the current timer value will be updated by each OUT T instruction execution, resulting in
incorrect time measurement.
(b) When the timer is not executed in every scan
While a coil of a timer (for example. T1) is on, do not make the OUT T1 instruction jumped to any other part
with another instruction such as CJ.
If jump of the OUT T instruction has occurred, the current timer value is not updated.
Also, if a timer exists in a subroutine program, execute a subroutine call including the OUT T1 instruction once
in each scan while the coil of the timer (for example, T1) is on.
Failure to do so will not update the current timer value.
(c) Programs that cannot use timers
Timers cannot be used in interrupt programs and fixed scan execution programs.
(d) When the set value is 0
The contact turns on when the OUT T instruction is executed.
Figure 9.26 When the same timer is used
END
END
OUT
T
OUT
T
OUT
T
OUT
T
OUT
T
Current value is updated.
Sequence
program
1 scan
Содержание 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: ......