Veganic Posted April 29, 2009 Report Posted April 29, 2009 On testing my program (tools -> check program -> execute) I get a 'ladder creation bad' error. I had one on a function block with a boolean output. This was output to Y0A0. I changed this one to Y100 and it compiled ok. As did the subsequent function block with output Y0A1! I have a later function block which I cannot clear the error at all. Checking the device program (View -> display device program) just shows the offending line as: M8150 -||-----(M300) or in IL in the main window: LD _CH1_status OUT M300 I can import the ladder into an empty project which in not using the labels and the function blocks import OK as 'raw' ladder and checking gives no error. (So at least I have a way around this....phew.) Surely this is a GX developer bug? Can anyone shed any light or share any similar experience? And an easier supplementary question: Is there an easy way to check the total size of a program? This one has some SFC blocks so I can't just look at it as an IL and see the last line number. Thanks in advance. Notes: (Program is for Q000, or maybe Q002 depending on finished program size - both give errors The function blocks have been used elsewhere and work ok. SFC program with label, also a MAIN ladder program where the errors are found. GX-dev version 8.12 - anyone know if an upgrade would help?)
Gambit Posted May 5, 2009 Report Posted May 5, 2009 Any chance that your M coils are not sufficient? (Check your device parameters)
Veganic Posted May 5, 2009 Author Report Posted May 5, 2009 I'll check but I tried upping the coils to 10000 from 8000 and still it wouldn't work. I can't see anywhere where a limit is set for purely for the use of function blocks. I check the documentation. The raw ladder seems to create output coils with the same address. Thanks for the suggestion.
Veganic Posted May 6, 2009 Author Report Posted May 6, 2009 From Function block manual Q series : Art. no.: 141239 01 06 2001 IB(NA)-0800195-A Section 1.5.1 The FB is not available for the Q00JCPU, Q00CPU and Q01CPU of the QCPU (Q mode). The FB is not available for the ACPU, QCPU (A mode), FXCPU and motion controller of the PLC series, either Strange, most of them seem to work.
Veganic Posted May 8, 2009 Author Report Posted May 8, 2009 For anyone avidly following this story of woe.... I downloaded the program with function blocks to a Q00 and it works fine.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now