jbondie

Pointer Device memory

2 posts in this topic

To those who don't know the GX Works2 compiler treats any function block referenced used in your code as a place to copy the entire set of code data into your program. Function block calls are not handled like pointers even though the should be. [You'll consume all your pointer space by thinking function blocks are great.]

Share this post


Link to post
Share on other sites

It only uses the entire set of code when Macro code is not set.  

You can read more about this in the manual GX Works 2 Structured projects 

4.3.2 Setting properties of functions and function blocks

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