Jump to content

Programming in ST (Structured Text)


Recommended Posts

Posted
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
Posted
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
Posted
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
Posted
Ok I got the info for the FB The answer is Test_TRIG.Q where the "Q" is the output (oneshot) Dariusch

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...