Publication 1763-RM001C-EN-P - October 2009
Relay-Type (Bit) Instructions
163
Addressing Modes and File Types can be used as shown in the following
table:
ONS - One Shot
Instruction Type: input
The ONS instruction is a retentive input instruction that triggers an event
to occur one time. After the false-to-true rung transition, the ONS
instruction remains true for one program scan. The output then turns OFF
and remains OFF until the logic preceding the ONS instruction is false
(this re-activates the ONS instruction).
The ONS Storage Bit is the bit address that remembers the rung state from
the previous scan. This bit is used to remember the false-to-true rung
transition.
ATTENTION
Under error conditions, physical outputs are turned off.
Once the error conditions are cleared, the controller
resumes operation using the data table value.
OTL and OTU Instructions Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files
Function Files
(1)
CS - Comms
IO
S -
I/O
DL
S
- Da
ta
L
o
g
Address
Mode
(2)
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG,
PD
RI/RI
X
PLS
RTC
HS
C
PTO, PWM
STI
EII
BH
I
MMI
LCD
Imme
diate
Di
re
c
t
Indir
e
c
t
Bi
t
Wo
rd
Long
W
o
rd
Eleme
n
t
Operand Bit
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
(1) PTO and PWM files are only for use with MicroLogix 1100 BBB unit.
(2) See Important note about indirect addressing.
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, LCD,
and DLS files.
ONS
N7:1
0
Execution Time for the ONS Instructions
Controller
When Rung Is:
True
False
MicroLogix 1100
1.87 µs
1.74 µs
TIP
The ONS instruction for the MicroLogix 1100 provides
the same functionality as the OSR instruction for the
MicroLogix 1000 and SLC 500 controllers.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive