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
  • Nothing to fancy but most of the generic stuff is there and ready to change as needed

    PART NAME :
    REV NUMBER :
    SER NUMBER :
    STATS COUNT : 1

    STARTUP =ALIGNMENT/START,RECALL:USE_PART_SETUP,LIST=YES
    ALIGNMENT/END
    STATS/ON,DATAPAGE,$
    DIRECTORY=,$
    READ=0,WRITE=0,MEMPAGES=0,FEATURE NAME,CONTROLCALC ON,$
    STATS/END
    FORMAT/TEXT,OPTIONS,ID,HEADINGS,SYMBOLS, ;NOM,TOL,MEAS,DEV,OUTTOL, ,
    $$ NO,
    .
    .
    PROGRAMER :CHAD O
    .
    PROVEOUT DATE :
    PROVEOUT SIGNOFF :
    .
    .
    PROGRAM NOTES / REVISIONS :
    .
    .
    C1 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'MO #'
    C2 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'EMPLOYEE #'
    C3 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'WORK CENTER #'
    C4 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'WORK OFFSET #'
    C5 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'JOB STATUS'
    C6 =COMMENT/INPUT,YES,FULL SCREEN=NO,
    'INSPECTION GAGE #'
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; MO # : C1.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; EMPLOYEE # : C2.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; WORK CENTER # : C3.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; OFFSET # : C4.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; JOB STATUS : C5.INPUT
    TRACEFIELD/NO_DISPLAY,LIMIT=15 ; INSPECTION GAGE # : C6.INPUT
    COMMENT/OPER,NO,FULL SCREEN=YES,AUTO-CONTINUE=NO,
    .
    .
    .
    .
    NEW PROGRAM !!!
    .
    .
    MIT ONLY !!
    .
    .
    .
    .
    MODE/MANUAL
    WORKPLANE/ZPLUS
    MOVESPEED/ 100
    LOADPROBE/GLOBAL_PROBE9
    TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
    TOUCHSPEED/ 5
    FASTPROBEMODE/ON
    PREHIT/0.2
    RETRACT/0.2
    CHECK/0.1,1
    FLY/ON
    DISPLAYPRECISION/6
    COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
    .
    .
    .
    START PROGRAM HERE !!
    .
    .
    .
    MODE/DCC
    CLEARP/ZPLUS,16,ZPLUS,16,ON
    MOVE/CLEARPLANE
    STATS/TRANSFER,DIRECTORY=C:\SPCDATA
    ROUTINE/END
  • How far "passed" the probe will drive trying to to take a point before it errors out
Reply Children
No Data