Omron NY532-5400 Reference Manual page 182

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

2 Instruction Descriptions
 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.
TON_instance[0]
TON_instance[1]
:
TON_instance[9]
TON_instance[10]
:
TON_instance[99]
LD
Variable
Input
TimeUp
TimePT
TON_instance
i
UINT#0
UINT#99
UINT#1
Input[i]
TimePT[i]
NEXT
EN ENO
2-130
1s
TimeUp[0]
TRUE
2s
TimeUp[1]
TRUE
:
:
10s
TimeUp[9]
TRUE
0s
TimeUp[10]
TRUE
:
:
0s
TimeUp[99]
TRUE
Data type
ARRAY[0..99] OF BOOL
ARRAY[0..99] OF BOOL
ARRAY[0..99] OF TIME
ARRAY[0..99] OF TON
UINT
FOR
EN
ENO
InitVal
Index
i
EndVal
StepVal
TON_instance[i]
TimeUp[i]
TON
In
Q
PT
ET
Initial value
[100(FALSE)]
[100(FALSE)]
[T#1s, T#2s, T#3s, T#4s, T#5s, T#6s,
T#7s, T#8s, T#9s, T#10s, 90(T#0s)]
0
NY-series Instructions Reference Manual (W560)
Comment
Timer input
Timer output
Set time
Index

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents