Timer Control Commands - Omron RX2 Series User Manual

Driveprogramming, cx-drive
Hide thumbs Also See for RX2 Series:
Table of Contents

Advertisement

6-7

Timer Control Commands

Delay on/off
Command
Starts the timer(k). The the timer counter TC(k)
is started with 0 and incremented every 10 ms
until it reaches <value 2>. When <value 2> is
reached, the timer contact TD(k) changes to ON
and the processing (on or off) specified for
<value 1> is executed.
delay on/off <value 1> TD(k) <value 2>
Note 1. The timer (k) is started when the "delay on/off" command is executed. If TD(k) is ON, it is changed to
OFF when the timer (k) is started. However, the variable of <value 1> does not change from its original
value.
After the timer (k) is started, the program goes to the next command.
2. When the "delay on/off" command is executed, the data of <value 1>, TD(k) and <value 2> are saved
internally. Even if the variable values set to <value 1> and <value 2> are changed after the "delay
on/off" command is executed, the operation of the command does not change.
3. After the "delay on/off" command is executed, if the same timer (k) is restarted before its processing is
completed, the ongoing processing is canceled and the timer (k) is started with the new settings.
Therefore, create a program so that the timer (k) which is started once is not restarted until its pro-
cessing is completed.
4. You can monitor the data of the started timer (k) with the timer counter variable TC(k). Check the com-
pletion of the timer processing with the timer output contact TD(k) (changes ON at completion).
 Timing chart
(1)
DriveProgramming User's Manual (I622-E1)
Description
Flowchart method
(2)(3)
(4)
(5)(6)
(7)
6 DriveProgramming Commands
on/off: operation setting (on/off) after the delay
time
Value 1: any contact variable or variable
Value 2: any variable or constant
(specified time × 10 ms)
TD(k): the timer output contact of the timer that
you use (range of k is 0 to 7)
Format
Text language method
delay on/off <value 1> TD(k) <value 2>
(1) The timer is in a free-run state.
(2) The "delay on" command is started.
(3) The delay operation is in progress.
(4) The time elapsed.
(5) The "delay off" command is started.
(6) The delay operation is in progress.
(7) The time elapsed.
Argument
6 - 47
6

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

3g3rx2 series

Table of Contents