(you are viewing a thread; or go back to
list of threads)
Out of Memory- Error? (by Andrew M)
Hi,
I've created the attached program and when I go to compile the code, I get the "Out of memory" error. This is however very similar to a previous version which was only taking 34% of the available space and I was wondering, what it is I've done exactly, that has taken so much extra space?
Theres only a couple of extra timers and a new loop.
Could someone take a look and tell me what are the most memory intensive elements of the ladder so that I can streamline it a bit?
Best
Andrew M
Previous version (by Andrew M)
This is the previous version that compiles fine at 34% Why such a huge difference?
(no subject) (by MGP)
You use too many timers, I had this before, it eats up your 386 bytes RAM space not the program space (34%).
See rung 28, that is a waste of memory!
(no subject) (by Andrew M)
Thank you, I'll have to do that another way! Is there a preferred way to do long duration counting without timers? Exact timing isn't important on this but it needs to be about 3mins
(no subject) (by Ihor Nehrutsa)
to Andrew M
"Out of memory; simplify program or choose microcontroller with more memory."
This message indicates a lack of RAM memory, not a program memory.
All versions LDmicro use only the bank 0 of the RAM. In PIC16F876 it 96 bytes.
May be you can set PLC cycle time 10ms or more, instead 1ms. It allow create longer timer delays.
I try to use all banks of RAM. But it will be after 25 August.
Now I am in read only forum mode.
Best regards.
A long timer example (only one variable) (by DanieH)
Dear Andrew M.
Attached a long timer example, full of comments.
Best regards,
DanielH
(no subject) (by Andrew M)
Thank you for the example, I had to change the outputs to internal relays for it to work though.
Does this actually save on RAM then? Its still having to perform counting operations
(no subject) (by Ihor Nehrutsa)
Internnal relay Rx use 1 bit of RAM, output Yx not use a RAM, only bit in port.
(no subject) (by Ihor Nehrutsa)
to Andrew M
If you have Proteus (v7.10) project I can test it.
Send it to [email protected]
(no subject) (by Ihor Nehrutsa)
to Andrew M
As your byke1.8 project?
Post a reply to this comment:
|