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 - Comms
IOS - I/O
DLS - Data Log
Address
Mode
Address Level
O
I
S
B
T, C, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
LCD
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
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