hexagon logo

How do you keep ur programs neat and tidy?

Hey all
Maybe this thread belongs in "tips and tricks", but ill have a shot at it here.

As i mentioned in the title, how do you keeps ur programs neat and tidy so other CMM programmers can go into the programs and adjust e.t.c?

Do you use groups? Do you do $$ comments explaining stuff?
Do you sort out the code for alignment, measurment routine and evaluation etc?

Do you have a system for how you name the elements?

Me i try to group the Manual alignment, CNC-alignment, measurment code and evaluation.
I also try to name the elements after the drawing, such at Ø15±0.2 etc

How do you guys keep the programs clean?
Post some pictures of code if you'd like.
All answers are welcome.
Parents
  • I have a tendency to be pretty sporadic in my programs. I'll use all kinds of different ideas and methods but eventually i will find a flow and then start modeling the programs to fit. Usually i will go back and put all the changes back in but it becomes a pain in the you know what after a while.

    The more efficient you become at writing programs the more you'll do it and the harder it will be to keep up with the older ones.

    Groups work well to keep it aesthetically nice but keep in mind PC-DMIS will not return anything inside of the group if you use the search function (Alt+F3).

    as far as naming, NEVER use special characters. only ALPHANUMERIC and underscores (if you need to add spaces). No slashes, dashes, pluses, parenthesis, etc. numbers, letters, and underscores.
Reply
  • I have a tendency to be pretty sporadic in my programs. I'll use all kinds of different ideas and methods but eventually i will find a flow and then start modeling the programs to fit. Usually i will go back and put all the changes back in but it becomes a pain in the you know what after a while.

    The more efficient you become at writing programs the more you'll do it and the harder it will be to keep up with the older ones.

    Groups work well to keep it aesthetically nice but keep in mind PC-DMIS will not return anything inside of the group if you use the search function (Alt+F3).

    as far as naming, NEVER use special characters. only ALPHANUMERIC and underscores (if you need to add spaces). No slashes, dashes, pluses, parenthesis, etc. numbers, letters, and underscores.
Children