EasyManua.ls Logo

Hitachi SJ700-2 Series - Timer Set (Timer-Start Instruction)

Hitachi SJ700-2 Series
134 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 5 Instruction Words
5 - 21
timer set (timer-start instruction) Instruction to set and start the timer counter
- Format
Format Description
timer set TD (k) <variable> or
<constant>
This instruction sets <variable> or <constant> in the k'th timer and
starts the timer counter.
- Explanation
(1) The timer set instruction sets <variable> or <constant> in the k'th timer buffer, clears the timer counter
(up counter) "TC (k)" to zero, and then initiates counting by the timer counter. Then, the value of timer
contact variable "TD (k)" is "0" (off).
(2) Subsequently, the instructions described after the timer set instruction are executed.
(3) When the timer counter "TC (k)" reaches the specified count, the value of timer contact variable "TD
(k)" changes to "1" (on) (only once). Then, the timer counter "TC (k)" stops counting.
- Sample program
:
FW= 1
timer set TD(0) 5.00 : Start the 5-second timer counter.
wait TD(0) = 1 : Wait until "1" (on) is set in TD (0).
Y(00)= 1
:
- Example of operation (timing chart)
timer set TD (k) 1000 timer set TD (k) 1500
TC (k)
TD (k)
timer off TD (k)
Comparison
for matching
1500
1000
2^31-1 2^31-1
Timing chart for operation using the timer set instruction

Table of Contents

Related product manuals