EasyManua.ls Logo

Omron NJ501-1500

Omron NJ501-1500
990 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...
2 Instruction Descriptions
2-118
NJ-series Instructions Reference Manual (W502)
If this instruction is not executed due to the execution of a jump instruction (e.g., the JMP instruction),
the value of ET is not updated. However, timing still continues. Therefore, ET is updated to the correct
value the next time the instruction is executed.
If this instruction is used in a ladder diagram, the value of Q changes to FALSE if an error occurs in
the previous instruction on the rung.
z Measuring Time with One On-Delay Timer
The value of TimeUp will change to TRUE 1 second after the value of Trigger changes to TRUE.
The following ST programming performs the same operation.
z Measuring Time with Multiple On-Delay Timers
In this example, a total of 100 instances of the On-Delay Timer instruction, TON_instance[0] to
TON_instance[99], are programmed. Each timer starts when the value of the corresponding timer
input Input[0] to Input[99] changes to TRUE.
The timers for the first 10 instances, TON_instance[0] to TON_instance[9], change the correspond-
ing values in TimeUp[i] to TRUE i+1 seconds (i = 0 to 9) after execution is started.
The timers for the remaining 90 instances, TON_instance[10] to TON_instance[99], change the cor-
responding values in TimeUp[i] (i = 10 to 99) to TRUE as soon as execution is started.
Sample Programming
Variable
Data type
Initial value
LD
TimeUp
Trigger
T#1s
TON
In Q
PT ET
TON_instance
Trigger
TimeUp
TON_instance
False
False
Execution condition
Timer output
BOOL
BOOL
TON
Comment
Execution condition
Timer output
Variable
Data type
Initial value
ST
Trigger
TimeUp
TON_instance
False
False
BOOL
BOOL
TON
IF (Trigger=TRUE) THEN
TON_instance(In:=TRUE, PT:=T#1s, Q=>TimeUp);
ELSE
TON_instance(In:=FALSE, Q=>TimeUp);
END_IF;
Comment
Variable
Data type
Initial value
ST
Trigger
TimeUp
TON_instance
False
False
BOOL
BOOL
TON
TON_instance(In:=Trigger, PT:=T#1s, Q=>TimeUp);
Comment
Execution condition
Timer output

Table of Contents

Related product manuals