Jump to content

Recommended Posts

Posted
Good Day Im working now on some monitoring system build on Qseries CPU (Q06UDUCPU). In my program i need to use "TON" blocks (Its structured Ladder/FDB). I create Global Variable TON_1 set it to type TON. During Compile I get error code C9004 "The number of pointer points for Device/Label Automatic-Assign Setting fall short. (TON_1)" In menu Tool -> Device/Label Autoassign I have assigned 0-2047 T- type variables. Where is my mistake? Thanks for assistance.

Posted
Not just T, you also need P for pointers. Structured programming makes use of subroutines and it needs pointers to run them. So increase the number of P addresses in the automatic assign range.
Posted (edited)
Thanks for fast reply. And you are right - I have 0 pointer type variables assigned. Now when we advance in problem - I cannot assign Pointer type variables (option is greyed-out in list). According to manual for common operations 5.5.2 data types i cannot assign pointer type variables at all. How then use TON block in SL/FBD ? Thanks. Edited by Miften
Posted
The compile by default has half of the pointers. You should not have an issue with this. I've done it hundreds of times. Are you certain you are in a structured project?
Posted
You are talking about (manual 5.5.2) using Pointers as datatypes inside programs/editors (which is "Not applicable" in SL/FBD). However you can set up auto assignable Pointers by checking the checkbox "Assign Selection" under "Pointer" (see picture). In you application simply enable the checkbox and you are able to assign settings. See default settings for all variables in picture.
Posted (edited)
Thanks for replies. And I'm - actually now - sure in 99% that im in structured ladder (my program for sure is created in it). Maybe i have something mixed. I have this checkbox grayed out . I cannot click it to "online" it. Whole window is more grayed-out for me. Where is my mistake then? could I mix something in my PLC parameters? M. Edited by Miften

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
×
×
  • Create New...