Sign in to follow this  
Followers 0
Joseph 0028

Not getting one-shot inside IF...THEN

2 posts in this topic

Hello Folks... The pictures show it all... I just need to produce a one-shot inside the IF...THEN, and the Oneshot's input bit goes from 0 to 1 as you see from the trend, but the output bit is not going to 1, or giving a pulse ? can anyone help me understand why i am not getting a pulse in this code ?

And is there another easy way to get pulse inside IF...THEN without changing the condition which activates the if loop ?

Thanks in advance for your time

ST1.png

st2.png

st43.png

Share this post


Link to post
Share on other sites

Would the following achieve the same result, and yes I left out some punctuation.

IF STTESTMEM2 then

     If Not OneShot2 then

          StTestDint - 456

          OneShot2 = True

     Endif

ELSE

     OneSHot2= False

ENDIF

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0