Jump to content

How do I add a subroutine in GX-DEV?


Recommended Posts


Posted
This only applies to QnA & Qn processors, you cannot have multiple program files in A or FX: Expand "Program" in the project manager tree Right click on "main" select "new" Enter the name of the new program file in "data name" Select whether Ladder or SFC in "program type" Open the PLC parameter dialog and select the "program" tab Insert each program in the order you want and select the execution type, i.e. scan, low speed, wait etc. To create a subroutine in a single program file, you will need the "Call" command to call a subrotine which lives between the FEND and END instructions. Call commands use a reference pointer, such as P1000 for example.

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...