Chapter 2 Syntax
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
Label
Mnemonic
parameter1
parameter2
parameter3
parameter4
parameter5
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
㩷
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
㩷
㩷
㩷
㩷
㩷
㩷 䋺
㩷
㩷
㩷
㩷
㩷
㩷
-
േ
(
࠲ࠗࡒࡦࠣ࠴ࡖ࠻
)
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
2-24
Summary of Contents for NT2021XA
Page 4: ... Safety Instructions ...
Page 8: ... Contents ...
Page 10: ...Chapter 1 Outline of EzSQ ...
Page 14: ...1 4 Chapter 1 Outline of EzSQ ...
Page 16: ...Chapter 2 Syntax ...
Page 68: ...2 52 Chapter 2 Syntax ...
Page 70: ...Chapter 3 Interface with the Inverter ...
Page 80: ...3 10 Chapter 3 Interface with the Inverter ...