One Shot Instruction

allende

Member
Join Date
Aug 2019
Location
South Africa
Posts
2
Hello everyone,
I am a beginner in PLC programming and I need your help. I am trying to use a one-shot instruction in my program just to see how it works but the challenge that i have is that when I actuate my n/o input and click on 1 scan the one shot is actuated ()turns green on the first rung but on the second rung nothing is happening. My second rung has two instructions, it has one n/o input with the same OSR address (A/0) and output O/1. I thought I was supposed to see the input & output on the second run activated. Am I missing something? Thank you...
 
Can you post the code?

One shot should only be active for one scan, so if it's part of an output you'd see it go on and immediately off. (realistically you wouldn't see it change state)
 
Try this arrangement and see if you get a different result.

Rung 1:NO input, OSR, Latched Output.
Rung 2: Different NO input, Unlatch for the Output on Rung 1.

This should give you a better idea of how the OSR behaves.



Bubba.
 
If you are using Rockwell Software, look at the ONS instruction, instead of the OSR. When I started out, I started with the OSR since it seemed easier to understand and utilize than the ONS, however i quickly realized that a ONS was the way to go, for me anyway. With a ONS you don't need to create any extra latch bits or worry about storage bits etc. Not sure if that suits your ladder logic but just a shot in the dark. You basically place the ONS right after all input instructions on the rung and then all the outputs (branched or not) you want to one-shot are placed after it on the same rung.
 
Last edited:
AB implements the "OSR" instruction differently depending on the PLC you are using.

What is the model of PLC you have?

If you can, post a screen shot of the 2 rungs in question.

See pdFS

If its osr2 then you will need a different address for that OSR (same as an "ONS) instruction in rung 2.
 
Last edited:
finally got it...

Hello guys, thank you so much for the comments, they were really enlightening. I managed to get the program for the ONS, OSR and the OSF running properly:). I am grateful for all the information you have shared!
 

Similar Topics

I am new with siemens which instruction is used as Rising Edge One Shot. |p|. I need whenever Rising edge is detect only execute instruction one...
Replies
1
Views
3,555
The code of Emergency switch is following, when you press the switch the machine stop. In ControlFunctions : DIFU and DIFD is same variable ...
Replies
4
Views
6,370
What is the difference between the ONS and OSR instructions in the SLC/05. I've read the help for both instructions but the difference was not...
Replies
3
Views
4,195
Just curious what is considered a one shot with direct logic software. Help would be great thanks DM
Replies
8
Views
6,220
Hi all, I'm trying to dectect the true to false transistion of a bit. I'm using a PLC5-40/E processor. I've decided to use the OSF instruction...
Replies
10
Views
8,946
Back
Top Bottom