Publication 1763-RM001C-EN-P - October 2009
164
Relay-Type (Bit) Instructions
Addressing Modes and File Types can be used as shown in the following
table:
OSR - One Shot Rising
OSF - One Shot Falling
Instruction Type: output
Use the OSR and OSF instructions to trigger an event to occur one time.
These instructions trigger an event based on a change of rung state, as
follows:
•
Use the OSR instruction when an event must start based on the
false-to-true (rising edge) change of state of the rung.
•
Use the OSF instruction when an event must start based on the
true-to-false (falling edge) change of state of the rung.
ONS Instruction Operation
Rung Transition
Storage Bit
Rung State after Execution
false-to-true (one scan)
storage bit is set
true
true-to-true
storage bit remains set
false
true-to-false, false-to-false storage bit is cleared
false
ONS Instruction 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
CS - C
o
mm
s
IOS - I/O
DLS - Da
ta
Lo
g
Address
Mode
Address Level
O
I
S
B
T,
C
, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO
, PW
M
STI
EII
BH
I
MMI
LCD
Imme
di
ate
Dir
e
c
t
In
dir
ect
Bit
Wo
rd
Long W
o
rd
E
lement
Storage Bit
•
•
•
•
OSR
One Shot Rising
Storage Bit
B3:0/0
Output Bit
B3:0/1
OSR
OSF
One Shot Falling
Storage Bit
B3:0/0
Output Bit
B3:0/1
OSF
Execution Time for the OSR and OSF Instructions
Controller
OSR - When Rung Is:
OSF - When Rung Is:
True
False
True
False
MicroLogix 1100
9.12 µs
9.12 µs
9.12 µs
9.12 µs
TIP
The OSR instruction for the MicroLogix 1100
does not
provide the same functionality as the OSR instruction for
the MicroLogix 1000 and SLC 500 controllers. For the
same functionality as the OSR instruction for the
MicroLogix 1000 and SLC 500 controllers, use the ONS
instruction.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive