
B-63343EN/02 SAMPLE PROGRAM 1.USER PROGRAMS FOR SETTING DATA FORMAT OF MACHINING PROCESS
- 137 -
1 USER PROGRAMS FOR SETTING DATA
FORMAT OF MACHINING PROCESS
/*
/*
/* User Programs for Machining program
/* O7501 For GUIDANCE Cutting Item type definition
/*
/*
O7501
#[22120+3]=28 ;Guidance Cutting
#[22120+4]=-1 ;Machining area Not used
#[22120+6]=3004051 ;Data item #1 Tool Number type
IF[#[22120+8]EQ#0]GOTO10;IF NOT DATA SET THEN DATA SET
IF[#[22120+8]NE-1]GOTO11;IF DATA TYPE -1 ELSE SKIP DATA SET
N10 #[22120+8]=4004053 ;Data item #2 Feedrate type
/*N11 #[22120+10]=0004050 ;Data item #3 Spindle Speed type 98/03/04
N11 #[22120+10]=1004050 ;Data item #3 Spindle Speed type 98/03/04
/* #[22120+12]=1204050 ;Data item #4 Spindle Drct type 97/09/05 98/03/03
#[22120+12]=-1 ;Data item #4 Spindle Drct type 98/03/03 98/05/13
#[22120+14]=0004053 ;Data item #5 Base figure data x1 (system use)
#[22120+16]=0004053 ;Data item #6 Base figure data z1 (system use)
#[22120+18]=0004053 ;Data item #7 Base figure data x2 (system use)
#[22120+20]=0004053 ;Data item #8 Base figure data z2 (system use)
#[22120+22]=9004053 ;Data item #9 Base figure angle (system use)
#[22120+24]=0004053 ;Data item #10 Base figure center x(system use)
#[22120+26]=0004053 ;Data item #11 Base figure center z(system use)
#[22120+28]=0004053 ;Data item #12 Base figure radius (system use)
#[22120+30]=1204054 ;Data item #13 Tool type type (system use)
#[22120+32]=1204050 ;Data item #14 Tool direction (system use)
#[22120+34]=0004051 ;Data item #15 Tool data(system use)
#[22120+36]=-1 ;Data item #16 Data type #16
#[22120+38]=-1 ;Data item #17 Data type #17
#[22120+40]=-1 ;Data item #18 Data type #18
#[22120+42]=-1 ;Data item #19 Data type #19
#[22120+44]=-1 ;Data item #20 Data type #20
#[22120+46]=-1 ;Data item #21 Data type #21
/* #[22120+48]=1000001 ;Data item #22 Coolant type 97/09/05
/* #[22120+50]=1004050 ;Data item #23 Spindle Gear type 97/09/05
#[22120+48]=-1 ;Data item #22 Coolant type 97/09/05
#[22120+50]=-1 ;Data item #23 Spindle Gear type 97/09/05
/*
IF[#[22120+31]EQ1]GOTO100 ;If Anime tool is general outer then jmp
IF[#[22120+31]EQ2]GOTO100 ;If Anime tool is general inner then jmp
IF[#[22120+31]EQ3]GOTO100 ;If Anime tool is general face then jmp
#[22120+32]=-1 ;Data item #14 Anime tool direction not disp
GOTO200
N100 #[22120+34]=-1 ;IF GENERAL TOOL THEN NOT DISP "TOOL DATA" ITEM
N200 M99; return
/*
/* User Programs for Machining program
/* O7502 For SINGLE Cutting Item type definition
/*
/*
O7502
#[22120+3]=29 ;Single Cutting
#[22120+4]=-1 ;Machining area Not used
#[22120+6]=3004051 ;Data item #1 Tool Number type