Sign in to follow this  
Followers 0
Dariusch

Programming in ST (Structured Text)

5 posts in this topic

Hi all, I am trying to the GX IEC Developer and are trying the ST programming mode. But how do you make a Pulse --|P|-- ?? Does any of you have any experience in the ST programming (good or bad)? Thank you Dariusch

Share this post


Link to post
Share on other sites
Dariusch The pulse contact in instruction list is LDP. Rodney

Share this post


Link to post
Share on other sites
Hi Rodney, The LDP instruction is for the IL or MELSEC IL, but I am using the ST programming mode. "IF THEN ELSE". What I really want to do is to increment a register for everey sec. like IF X0 AND M8013 THEN; D0 = D0+1; END_IF; But the above will increment for a hole sec. I need a pulse to onyl increment 1 for every sec. Dariusch

Share this post


Link to post
Share on other sites
Hi all Now Iam so fare: Test_TRIG(_CLK:=Start); IF X3 AND ??? THEN; D12:= D12+1; END_IF But where is the output from the oneshot??? The Test_TRIG is the FB "R_TRIG" (IEC) and the variable for execute the FB is "Start" (_CLK) , but where is the (Q) output?? Dariusch

Share this post


Link to post
Share on other sites
Ok I got the info for the FB The answer is Test_TRIG.Q where the "Q" is the output (oneshot) Dariusch

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