Sign in to follow this  
Followers 0
pszczepan

FB memory area & counting

4 posts in this topic

Hi ! I try to find relationship between required memory of some FB in its properties and variables which I use for Internal, Input, Output. F.e In properties-> memory I have just "5" Non-retain Internal - no address Input - 2xbool, 4xUint Output - 2xbool Why FB needs "5" How the CX-P counts that? thanks Pawel

Share this post


Link to post
Share on other sites
Which model PLC? Posting your PLC code will make it easier and quicker to answer your problem.

Share this post


Link to post
Share on other sites
It is NSJ...-G5D unit 3.0 OK - simply example 5 non-retain addresses and no internal addresess input area: output area: Why it needs 5 non-retain? Edited by pszczepan

Share this post


Link to post
Share on other sites
For each ladder FB instance a single NON-RETAIN is automatically assigned to FB memory. For each non-boolean variable an additional NON-RETAIN is assigned. You have one function block instance and four [uINT] variables = 5 NON-RETAIN assigned to FB memory. I don't quite understand why this concerns you? The whole purpose of Function Blocks is that where and how memory is assigned is completely unimportant/irrelevant. Shared FB memory [H memory areas]are shared/reused for each FB instance to save memory usage. Hope this helps.

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