EasyManua.ls Logo

Hitachi SJ700-2 Series - Timer off (Timer-Stop Instruction); Delay on or Delay off (Delay Operation 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 - 22
timer off (timer-stop
instruction)
Instruction to stop the timer
- Format
Format Description
timer off TD (k)
This instruction clears the k'th timer and operates it as a free-running
timer.
- 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
wait X(00) = 1 : Wait until terminal X (00) is turned on.
Y(00)= 1 : Turn terminal Y (00) on.
delay on Y(01) TD(1) 1000 : Turn terminal Y (01) on with a delay.
timer set TD(0) 15.00 : Start the 15-second timer counter.
if X(01) = 0 then LBL1 : Wait when terminal X (01) is off.
timer off TD1 : Clear timer counter TC (1).
LBL1 wait TD(0) = 1 : Wait until the 15-second timer counter ends
counting.
Y(02)= 1 : Turn terminal Y (02) on when the process ends.
delay on or delay off (delay
operation instruction)
Instruction to turn a variable on or off with a delay
- Formats
Format Description
delay on <variable 1> TD (k)
<variable 3> or <constant>
This instruction sets the count of the k'th timer in <variable 3> or
<constant> and starts the timer counter.
When timer output "TD (k)" is turned on, <variable 3> is turned on.
delay off <variable 1> TD (k)
<variable 3> or <constant>
This instruction sets the count of the k'th timer in <variable 3> or
<constant> and starts the timer counter.
When timer output "TD (k)" is turned on, <variable 3> is turned off.
- Explanation
(1) The delay on (or delay off) 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 output variable "TD (k)" is "0" (off).
(2) Subsequently, the instructions described after the delay on (or delay off) instruction are 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.

Table of Contents

Related product manuals