Sign in to follow this  
Followers 0
308guru

How do I add a subroutine in GX-DEV?

3 posts in this topic

I don't have a manual for GX-DEV and I can't figure out how to add a subroutine. Any help appreciated. Thanks.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
With GX IEC Developer you can add function calls and function blocks and have multiple programs on PLCs from FX to Q series.

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