Final stages of programming a new machine... would like a critical eye on my program


Closed Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76

    Default Final stages of programming a new machine... would like a critical eye on my program

    Hi all,

    I'm in the final stages of programming a semi-automated machine I designed for work. I'm a mechanical designer by trade but hobby a bit in electronics and programming. I talked my boss into letting me design a multi-function circuit board to run the machine instead of using PLC's. When I jump in, I go right for the deep end!

    This is the longest program I've ever written in PBP. I've occasionally programmed small hobby type stuff over the years with long spans of time between projects so I feel like I start from square one every time I get back into it, trying to relearn the most basic of program statements.

    I'm proud of the circuit board. It has eighteen 24vdc driving outputs we used to control pneumatic solenoids and relays, two thermocouple inputs, two 4-20ma outputs, four dedicated (powered) slotted-sensor inputs, three potentiometer inputs, eight digital inputs, four on-board pololu stepper controllers (for running small stepper motors), three on-board push-buttons, grey code encoder and LCD. It will run a small machine nicely. Actual board design credit goes to my friend Ken. My vision, his hard work.

    I would love to post the code but it's long and I'm not sure there would be much interest on this forum to read through it. Still, I would love to hear from other more skillful programmers how they would clean it up or do things differently. I do not consider myself as anything more than a beginner. There is know one around me that can critique what I have done so that I can learn and become better. You can't hurt my feelings. I know i am a poor programmer. But hey... I also know that this machine is working so I have that to be happy about.

    Is there any interest in looking over my program?

    Regards!

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Final stages of programming a new machine... would like a critical eye on my prog

    If the code/project is working and the code is well commented it sounds like a great job!!!
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default Re: Final stages of programming a new machine... would like a critical eye on my prog

    Sure, go ahead. Comments are needed as Dave stated, so we do not try to decrypt your thoughts.

    Ioannis

  4. #4
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default Re: Final stages of programming a new machine... would like a critical eye on my prog

    Thanks guys. I will upload later today.

    Came to a stopping point last night. The machine is not finished but it runs and runs well. Still have operator control menus to write and a couple more safety things but I'm very pleased. I started this programming straining to remember how to make it "blink". Ha! Nine days later, over a hundred hours, one day off for Thanksgiving, and twenty pages of code. Bless you Microcode Studio! I've never used so many variables. I am quite certain the code could be a third it's length with the right programmer.

    Upload later today,

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

Similar Threads

  1. Replies: 6
    Last Post: - 10th December 2008, 09:00
  2. Replies: 6
    Last Post: - 1st February 2008, 03:35
  3. [Final Project Hurdle] Help with PIC programming.
    By mekohler in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 25th September 2007, 06:39
  4. State machine programming
    By tjstevens in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 17th April 2007, 22:45
  5. Replies: 1
    Last Post: - 26th March 2007, 02:21

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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