Timer Off (Timer-Stop Instruction); Delay On Or Delay Off (Delay Operation Instruction) - Hitachi NT2021XA Instruction Manual

Easy-sequence programming software
Table of Contents

Advertisement

timer off (timer-stop instruction)

- Format
Format
timer off TD (k)
- Explanation
This instruction clears the k'th timer counter (up counter) "TC (k)" to zero, and starts the timer counter in free-running timer
mode. Then, the value of timer contact variable "TD (k)" is not changed. The timer counter "TC (k)" is switched from timer
contact output mode to free-running timer mode.
- Sample program
Label
Mnemonic
wait
Y(00)=
delay on
timer set
if
timer off
LBL1
wait
Y(02)=
delay on or delay off (delay operation
instruction)
- Format
delay on
<variable 1>
delay off
<variable 1>
- Explanation
(1) The delay on (or delay off) instruction sets
counter) "TC (k)" to zero, and then initiates counting by the timer counter. Then, the value of timer output variable "TD (k)" is
"0" (off).
(2) Subsequently, the instructions described after the delay on (or delay off) instruction is executed.
(3) When the count of timer counter "TC (k)" matches the count preset in the timer buffer, the value of timer output variable "TD
(k)" changes to "1" (on) (only once), and <variable 1> is turned on (or off). Then, the timer counter "TC (k)" stops counting.
Instruction to stop the timer
This instruction clears the k'th timer and operates it as a free-running timer.
parameter1
parameter2
parameter3
X(00)
=
1
1
Y(01)
TD(1)
1000
TD(0)
15.00
X(01)
=
0
TD(1)
TD(0)
=
1
1
Instruction to turn a variable on or off with a delay
Format
TD (k)
<variable 2>
or
<constant>
TD (k)
<variable 2>
or
<constant>
<variable 2>
Description
parameter4
parameter5
then
LBL1
This instruction sets the count of the k'th timer in
<variable 2>
counter.
When timer output "TD (k)" is turned on,
<variable 1>
This instruction sets the count of the k'th timer in
<variable 2>
counter.
When timer output "TD (k)" is turned on,
<variable 1>
or
<constant>
in the k'th timer buffer, clears the timer counter (up
2-25
Chapter 2 Syntax
: Wait until terminal X (00) is turned on.
: Turn terminal Y (00) on.
: Turn terminal Y (01) on with a delay.
: Start the 15-second timer counter.
: Wait when terminal X (01) is off.
: Clear timer counter TC (1).
: Wait until the 15-second timer counter
ends counting.
: Turn terminal Y (02) on when the process
ends.
Description
or
<constant>
and starts the timer
is turned on.
or
<constant>
and starts the timer
is turned off.

Advertisement

Table of Contents
loading

Table of Contents