Timer Set (Timer-Start Instruction) - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

Chapter 2 Syntax

timer set (timer-start instruction)

- Format
timer set TD (k)
<variable>
- Explanation
(1) The timer set instruction sets
(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
Label
Mnemonic
FW=
timer set
wait
Y(00)=
-
(
TC (k)
Comparison
for matching
TD (k)
Instruction to set and start the timer counter
Format
or
<constant>
<variable>
or
<constant>
parameter1
parameter2
1
TD(0)
5.00
TD(0)
=
1
)
2^31-1
1000
timer set TD (k) 1000
Timing chart for operation using the timer set instruction
This instruction sets
<variable>
timer and starts the timer counter.
in the k'th timer buffer, clears the timer counter (up counter) "TC
parameter3
parameter4
parameter5
1
1500
timer set TD (k) 1500
2-24
Description
or
<constant>
in the k'th
: Start the 5-second timer counter.
: Wait until "1" (on) is set in TD (0).
timer off TD (k)
2^31-1

Advertisement

Table of Contents
loading

Table of Contents