One Shot Command or One Shot Logic

showshocka

Member
Join Date
Mar 2011
Location
USA
Posts
510
I show this Screen shot of pretty much a duplicated rung of logic in a project in a packing machine that is here. It's pulses an output to a counter device. Rungs 2 and 3 does not necessarily makes a lot of since to me. Why couldn't they just have used what is in rungs 3 and 4?

Scanspeed.jpg
 
While they do function the same it is nearly impossible to tell what was on the programmer(s) mind when theydid this. Perhaps thinking of the two 'one-shot' type events in different ways? Maybe they didn't know [ONS] existed when they did the other? You might get a little bit of information from the original programmer, but then maybe not.
 
Could they have perhaps did it to get a longer or shorter output pulse time out of the SLC 5/04?
 
Last edited:
I'm wondering if it is a scrap of leftover test code. Maybe the original programmer wasn't confident with one of the two methods and this is a bit of test code so that he could see for himself that they both worked the same by watching the counter devices. Since both worked he may not have bothered to make them the same later.
 
Looks like a test program to me. The ONS instruction, I believe; will not give you an output, if the input is on when the machine first turns on. That should be the only difference.

In any case, if you are having problems, I would add a timer to turn the output on for longer. 1 scan may not be enough for the output card to change states or the input to register on the counter.
 
Maybe the original programmer wasn't confident with one of the two methods
...
I did rungs 3 and 4 to show the comparison between what he did and what I thought it should be. That's way I was asking about the output times, maybe he didn't get what he wanted out of the one shot output time, so he did it that way...
 
It might have been left over from a conversion from an older PLC that didn't have a one-shot.

Even simpler - get rid of the B3/6

xic I:0/0 ons b3:0/5 ote O:0/1
 

Similar Topics

Hi all, I am working on a ladder program in AS and I was to trigger a reading on my IO link sensor every .5 s, and use that value to run a...
Replies
1
Views
537
Hi everybody, I'm looking for help with something that didn't answer anybody in Rockwell Tech Support. I'm creating a display in RSView32 v7.20...
Replies
3
Views
3,050
Hello all. This is a very lonnnnnnng shot but worth a try. I have an OMS Group Impact100 metering machine. At this customer it blows foam into 3d...
Replies
0
Views
185
Howdy Everyone, So I have been retrofitting a cell to run different fixtures and updating it with new drives and a few other things. It runs...
Replies
15
Views
1,498
Hello Everybody, Someone must be familiar with Horner Cscape, I wrote a program on a overhead door with a 3 button station,I'm working on a...
Replies
2
Views
1,453
Back
Top Bottom