One Shot Rising with input

Krilun

Member
Join Date
Aug 2008
Location
Cleveland
Posts
44
I'm using RSLogix 5000 Function Block Diagrams. I am trying to increment a counter using One Shot Rising with Input (OSRI) block. The OutputBit never changes from 0. Even when I directly set the input the OSRI to 1, the output is still 0. I have tried to enable the EnableOut bit and set it 1 and still nothing happens.

Any suggestions?

-Ken
 
not sure I understand what you're asking - but here's my best guess ... it IS coming on, but it's only on for one scan - therefore you can't see it happening on the screen ...

tip: for testing purposes try putting something like an ADD or CTU downstream to "trap" the pulse ...

another guess ... maybe the FBD routine isn't even being scanned ... is it a new one? ... is anything/everything else on that diagram already working? ... maybe you need a JSR from your Main-Routine to tell the processor to scan your FBD ...

if this doesn't help, consider posting your .ACD file ... I'm sure that someone here can help nail down your problem ...
 
Last edited:
the main routine does the call the routine and returns successfully.

the easiest way I can describe my problem is I have a 1 going into a one shot, and 0 coming out. I am trying to use a CTU to trap the signal to accumulate my counter. I created a tag "test" (bool) and set its inputbit to 1. I run that into one shot and nothing ever comes out.


?? Frustrating
 
another guess ... you can't just put a continuous ONE in ... you have to CHANGE IT (TRANSITION) from ZERO to ONE to make the One Shot give a pulse ...

if this doesn't help, consider posting your .ACD file ... I'm sure that someone here can help nail down your problem ...
 
Another good trap would to be use the RESD function and set a 0 on the reset input block try this:

resd2.jpg




IF the output pin of the RESD block is =1 you've gotten a 1 from the ONSI block. NOTE use RESD block not the SETD block. The SETD sets the output pin to 1 on the first scan, the RESD starts out as a 0.

I suspect their might be a problem with your upcounter settings.
 
Last edited:

Similar Topics

Hi Guys! I'm writing a Function Block and I want an internal counter to reset at the call of this FB. Now I have searched at it seems I can't...
Replies
7
Views
3,646
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,566
RSLogix 500 v9 OSR storage bit & output bit I am programming a sonic welding generator and I am stuck on an operation I need to perform and I'm...
Replies
3
Views
2,246
I am confused about descriptions people have posted on the web about a one shot rising instruction such as a rung with a NO contact which is a...
Replies
14
Views
10,167
Can you place one shot rising/falling pulse contacts using the IEC Dev v7 ladder editor (LDP, LDF Etc..)? If possible can someone tell me how...
Replies
2
Views
1,777
Back
Top Bottom