当前位置: 首页 > 工具软件 > PC-BASIC > 使用案例 >

PC-DMIS 脚本

倪子晋
2023-12-01
PART NAME  : Template
REV NUMBER : 
SER NUMBER : 
STATS COUNT : 1
 
STARTUP    =ALIGNMENT/START,RECALL:, LIST= YES
            ALIGNMENT/END
            MODE/MANUAL
            CHECK/ 0.1,1
            TOUCHSPEED/ 1
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
C1         =COMMENT/YESNO,NO,Do you want to view setup photos? 
            IF/C1.INPUT=="YES"
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/OPER,NO,When done, close the adobe reader window and click 'Continue'.

.pdf file of setup photos inserted here.
 
            END_IF/
C1         =COMMENT/YESNO,NO,Do you want to view a ballooned print? 
            IF/C1.INPUT=="YES"
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/OPER,NO,When done, close the adobe reader window and click 'Continue'.

.pdf file of ballooned print inserted here.
 
            END_IF/
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
C2         =COMMENT/YESNO,NO,Do you want to calibrate tips?
            IF/C2.INPUT=="YES"
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            LOADPROBE/4X20X30
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            AUTOCALIBRATE/PROBE, PARAMETER_SET=A0B0 A90B0, QUALTOOL_MOVED=YES, 
                          SHOW_SUMMARY=YES, OVERWRITE_RESULTSFILE=YES
BEGIN AUTOCALIBRATE RESULTS FOR PROBE 4X20X30 USING SET A0B0 A90B0
Calibration results normally displayed here but I didn't run the cal so they're
not displayed.
END AUTOCALIBRATE RESULTS FOR PROBE 4X20X30 USING SET A0B0 A90B0
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/OPER,NO,Load Probe 2X30
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            LOADPROBE/2X30
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
            AUTOCALIBRATE/PROBE, PARAMETER_SET=A0B0 A90B0 A90B90, QUALTOOL_MOVED=NO, 
                          SHOW_SUMMARY=YES, OVERWRITE_RESULTSFILE=YES
BEGIN AUTOCALIBRATE RESULTS FOR PROBE 2X30 USING SET A0B0 A90B0 A90B90
Calibration results normally displayed here but I didn't run the cal so they're
not displayed.
END AUTOCALIBRATE RESULTS FOR PROBE 2X30 USING SET A0B0 A90B0 A90B90
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
C11        =COMMENT/YESNO,NO,Please review the calibration results in the edit window. 
                            ,Are the standard deviation values acceptable?
            IF/C11.INPUT=="NO"
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/OPER,NO,Please re-start the program and run the calibration again.
            PROGRAM/END
            END_IF/
            END_IF/
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/OPER,NO,Load Probe 4X20X30
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            LOADPROBE/4X20X30
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
            FORMAT/TEXT,OPTIONS,ID,HEADINGS, , ;MEAS,DEV,OUTTOL,NOM,TOL,DEVANG, 
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/READOUT,NO,Take one hit on the topmost surface.
                              , 
                              , 
PNT1       =FEAT/POINT,RECT
            THEO/0,0,0,0,0,1
            ACTL/0,0,0,0,0,1
            MEAS/POINT,1
            HIT/BASIC,NORMAL,0,0,0,0,0,1,0,0,0,USE THEO = YES
            ENDMEAS/
CS1        =SCRIPT/FILENAME= C:\CMM PROGRAMS\BEEP3.BAS
            FUNCTION/Main,SHOW=YES,,
            STARTSCRIPT/
            ENDSCRIPT/
            COMMENT/READOUT,NO,Take three hits on an ID.
                              , 
                              , 
CIR1       =FEAT/CIRCLE,RECT,OUT,LEAST_SQR
            THEO/0,0,0,0,0,1,1
            ACTL/0,0,0,0,0,1,1
            MEAS/CIRCLE,3,WORKPLANE
            HIT/BASIC,NORMAL,0.5,0,0,1,0,0,0.5,0,0,USE THEO = YES
            MOVE/CIRCULAR
            HIT/BASIC,NORMAL,-0.25,0.433,0,-0.5,0.8660254,0,-0.25,0.433,0,USE THEO = YES
            MOVE/CIRCULAR
            HIT/BASIC,NORMAL,-0.25,-0.433,0,-0.5,-0.8660254,0,-0.25,-0.433,0,USE THEO = YES
            ENDMEAS/
A1         =ALIGNMENT/START,RECALL:STARTUP, LIST= YES
            ALIGNMENT/TRANS,ZAXIS,PNT1
            ALIGNMENT/TRANS,XAXIS,CIR1
            ALIGNMENT/TRANS,YAXIS,CIR1
            ALIGNMENT/END
            MODE/DCC
            COMMENT/READOUT,NO,Measuring...
                              ,Measuring...
                              ,Measuring...
                              ,Measuring...
PNT2       =FEAT/POINT,RECT
            THEO/0,0,0,0,0,1
            ACTL/0,0,0,0,0,1
            READPOINT/
            MOVE/POINT,NORMAL,PNT2.X,PNT2.Y,0.3
 类似资料: