​ ​ ​ ​ How to make my program smaller?
Results 1 to 8 of 8

Thread: How to make my program smaller?

Threaded View

  1. #1

    Default How to make my program smaller?

    Hi,
    I did not think that my project was very complicated but it has turned out so big that Logicator will not simulate it, telling me that it is far to big. I'm not really sure why this is, the datasheet on the 40X2 said that it can handle up to 3000 lines of code over 4 slots (this I do not get) but my code only goes up to 1100.

    I have attached a cut down version of my program. The basic idea is:
    Open the LCD with a start screen
    Set count loop to 1
    Check RL1 through RL3 to make sure they are open, if not display error & sound alarm
    Turn on RL1 through RL3
    Check RL1 through RL3 to make sure they are closed, if not display error & sound alarm
    add 1 to the count loop & repeat.

    IN this cut down version I am checking 3 inputs for both open & closed states, the full program needs to check 27 inputs.
    I would love to know one of two things(or both) ...... am I doing something wrong where I should have space for 1100 lines of code ...... or am I missing a trick while trying to check & display 54 different errors?
    Attached Files Attached Files

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •