;
; Osai configuration file 
;
; History
;
; Who When     What
; === ======== ========================================
; BEM 18/11/97 Written
; Andrea Amilo - Delcam Italia - 17/09/04
;
;
DESCRIPTION = "Osai Top Master 655-3 (*.S10)"
;
FILE_EXTENSION = "S10"
;
UNITS = MM
;
; Cariage return - line feed at end of each line
;
END_OF_LINE = "[13][10]"
;
; Block numbering 
;
LINE_NUM_START     = 1
LINE_NUM_INCREMENT = 1
LINE_NUM_MAXIMUM   = 999999
;
; Set up default formating for variables
;
; Line numbering
FORMAT = [N|@||1.0]
; Spindle Speed
FORMAT = [S|@|S|1.0]
; Feed Rate
FORMAT = [F|#|F|1.0]
; Tool moves in x,y and z
FORMAT = [X|#|X|1.3]
FORMAT = [Y|#|Y|1.3]
FORMAT = [Z|#|Z|1.3]
; Home tool positions 
FORMAT = [XH|@|X|1.3]
FORMAT = [YH|@|Y|1.3]
FORMAT = [ZH|@|Z|1.3]
; Arc Centre Cordinates
FORMAT = [IA|@|I|1.3]
FORMAT = [JA|@|J|1.3]
;
; Set up program header
;
START = "N[N] ;(ArtCAM Toolpath - Intermac Top Master 655)"
START = "N[N] E60=[XMIN]*E93     ; X min value"
START = "N[N] E61=[XMAX]*E93     ; X max value"
START = "N[N] E69=[YMIN]*E93     ; Y min value"
START = "N[N] E52=[YMAX]*E93     ; Y max value"
START = "N[N] E132=[ZMIN]*E93    ; Z min value"
START = "N[N] E133=[ZMAX]*E93    ; Z max value"
START = "N[N] E103=10"
START = "N[N] E104=0"
START = "N[N] (EPP,NRI,NRF)"
START = "N[N] ERR=1"
START = "N[N] E38=L82"
START = "N[N] G71"
START = "N[N] @READAC=0"
START = "N[N] E93=1"
START = "N[N] E250=0"
START = "N[N] E251=0"
START = "N[N] E266=0"
START = "N[N] (UAO,0)   ; Set to origin 0"
START = "N[N] E2=@SK970"
START = "N[N] ;--- stazione 1/stazione unica"
START = "N[N] (IF,E2=1)"
START = "N[N] E155=E152"
START = "N[N] E154=E169"
START = "N[N] (IF,E9<>11)"
START = "N[N] E171=E55"
START = "N[N] (ENDIF)"
START = "N[N] (ENDIF)"
START = "N[N] ;--- stazione 2"
START = "N[N] (IF,E2=2)"
START = "N[N] E155=E153"
START = "N[N] E154=E170"
START = "N[N] (IF,E9<>11)"
START = "N[N] E171=E56"
START = "N[N] (ENDIF)"
START = "N[N] (ENDIF)"
START = "N[N] ;---"
START = "N[N] E10=E154"
START = "N[N] (CLS,E:\INTERMAC\AROT.S10)"
START = "N[N] E156=E38+L81+E171-L370"
START = "N[N] (ROP,A,E227)"
START = "N[N] E228=0"
START = "N[N] (IF,E227>0)"
START = "N[N] E228=-$TACTL1(E227)"
START = "N[N] (ENDIF)"
START = "N[N] (IF,@SK3904BL=1)"
START = "N[N] ;grafica per simulazione"
START = "N[N] (UAO,E10)"
START = "N[N] (ROT,0)"
START = "N[N] (ROT,E64)"
START = "N[N] (UIO,ZE156)"
START = "N[N] (UIO,ZE228)"
START = "N[N] #(UGS,5,X,E60,E61,Y,E69,E52,Z,E132,E133)"
START = "N[N] #(CGS)"
START = "N[N] (ELSE)"
START = "N[N] ;grafica per lavorazione"
START = "N[N] (IF,L118=1)"
START = "N[N] (UAO,E10)"
START = "N[N] (ROT,0)"
START = "N[N] (ROT,E64)"
START = "N[N] (UIO,ZE156)"
START = "N[N] (UIO,ZE228)"
START = "N[N] #(UGS,5,X,E60,E61,Y,E69,E52,Z,E132,E133)"
START = "N[N] #(CGS)"
START = "N[N] (ENDIF)"
START = "N[N] (ENDIF)"
START = "N[N] (CLS,E:\INTERMAC\TESTMAC.S10) ;gestione macchina errata"
START = "N[N] (GTO,ERRORE,E131<>0)          ;gestione macchina errata"
START = "N[N] (RTP,A,E97)"
START = "N[N] E140=0"
START = "N[N] (IF,E97>0)"
START = "N[N] @READTOOL=1"
START = "N[N] (WOS,@READTOOL=0)"
START = "N[N] (IF,@NRECORD>0)"
START = "N[N] E140=@NRECORD"
START = "N[N] E140=$TUSER1(E140)"
START = "N[N] (ENDIF)"
START = "N[N] (ENDIF)"
START = "N[N] E267=E140"
START = "N[N] (ROT,0)"
START = "N[N] (CLS,E:\INTERMAC\REPIN.S10)"
START = "N[N] (GTO,FINE,E9=8)"
START = "N[N] (GTO,[T]1,E155=[T])"
START = "N[N] (GTO,FINE,E9=5)"
START = "N[N] (GTO,FINE,E9=10)"
START = "N[N] (GTO,FINE,E9=4)"
START = "[34][T]1[34] N[N]" 
START = "N[N] E11=[T]"
START = "N[N] G0G90"
START = "N[N] (UAO,0)"
START = "N[N] (GTA,T1,X1,Y2,Z3,C4,A5/-Z)"
START = "N[N] (CLS,E:\INTERMAC\PTOOL.S10)"
START = "N[N] (GTO,FINE,E131<>0)"
START = "N[N] (CLS,E:\INTERMAC\PM6.S10)"
START = "N[N] M6TE11"
START = "N[N] (CLS,E:\INTERMAC\AM6.S10)"
START = "N[N] (CLS,E:\INTERMAC\TOOL.S10)"
START = "N[N] (CLS,E:\INTERMAC\PRESET.S10)"
START = "N[N] E10=E154"
START = "N[N] E0=1"
START = "N[N] E250=L370"
START = "N[N] (TCP,1)"
START = "N[N] (RPT,E1)"
START = "N[N] E251=0"
START = "N[N] E190=170+E0"
START = "N[N] E65=E(E190)"
START = "N[N] (CLS,E:\INTERMAC\TOOL1.S10)"
START = "N[N] (CLS,E:\INTERMAC\AROT.S10)"
START = "N[N] (tcp,1)"
START = "N[N] E156=E38+L81+E65-E250-L385"
START = "N[N] (UAO,E10)"
START = "N[N] (ROT,0)"
START = "N[N] (ROT,E64)"
START = "N[N] (UIO,CE64)"
START = "N[N] (UIO,ZE156)"
START = "N[N] (CLS,E:\INTERMAC\ZASS.S10)"
START = "N[N] @UPR=0"
START = "N[N] E117=1000"
START = "N[N] G0"
START = "N[N] M45M96"
START = "N[N] (DLY,L93)"
START = "N[N] G0[XH][YH]"
START = "N[N] [S]"
START = "N[N] M3M7M8"
START = "N[N] [XH][YH][ZH]"
START = "N[N] (WOS,@SPINDLE=1)"
;START = "N[N] M35M95"
;
; Archi
;
FIRST_CW_ARC_MOVE      = "N[N] G2[X][Y][IA][JA][F]"
CW_ARC_MOVE            = "N[N] G2[X][Y][IA][JA]"
;
FIRST_CCW_ARC_MOVE     = "N[N] G3[X][Y][IA][JA][F]"
CCW_ARC_MOVE           = "N[N] G3[X][Y][IA][JA]"
;
; Program moves
;
RAPID_RATE_MOVE        = "N[N] G0[X][Y][Z]"
FIRST_FEED_RATE_MOVE   = "N[N] G1[X][Y][Z][F]"
FEED_RATE_MOVE         = "N[N] [X][Y][Z][F]"
;
;

TOOLCHANGE = "N[N] E10=E10+1"
TOOLCHANGE = "N[N] E0=E0+1"
TOOLCHANGE = "N[N] (ROT,0)"
TOOLCHANGE = "N[N] (ERP)"
TOOLCHANGE = "N[N] (TCP)"
TOOLCHANGE = "N[N] E250=0"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\FTOOL.S10)"
TOOLCHANGE = "N[N] (GTO,[T]1,E155=[T])"
TOOLCHANGE = "N[N] (GTO,FINE,E9=5)"
TOOLCHANGE = "N[N] (GTO,FINE,E9=10)"
TOOLCHANGE = "N[N] (GTO,FINE,E9=4)"
TOOLCHANGE = "[34][T]1[34] N[N]"
TOOLCHANGE = "N[N] E11=[T]"
TOOLCHANGE = "N[N] G0G90"
TOOLCHANGE = "N[N] (UAO,0)"
TOOLCHANGE = "N[N] (GTA,T1,X1,Y2,Z3,C4,A5/-Z)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\PTOOL.S10)"
TOOLCHANGE = "N[N] (GTO,FINE,E131<>0)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\PM6.S10)"
TOOLCHANGE = "N[N] M6TE11"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\AM6.S10)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\TOOL.S10)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\PRESET.S10)"
TOOLCHANGE = "N[N] E10=E154"
TOOLCHANGE = "N[N] E0=1"
TOOLCHANGE = "N[N] E250=L370"
TOOLCHANGE = "N[N] (TCP,1)"
TOOLCHANGE = "N[N] (RPT,E1)"
TOOLCHANGE = "N[N] E251=0"
TOOLCHANGE = "N[N] E190=170+E0"
TOOLCHANGE = "N[N] E65=E(E190)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\TOOL1.S10)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\AROT.S10)"
TOOLCHANGE = "N[N] (CLS,E:\INTERMAC\ZASS.S10)"
TOOLCHANGE = "N[N] @UPR=0"
TOOLCHANGE = "N[N] E44=E54"
TOOLCHANGE = "N[N] (tcp,1)"
TOOLCHANGE = "N[N] E156=E38+L81+E65-E250-L385"
TOOLCHANGE = "N[N] (UAO,E10)"
TOOLCHANGE = "N[N] (ROT,0)"
TOOLCHANGE = "N[N] (ROT,E64)"
TOOLCHANGE = "N[N] (UIO,CE64)"
TOOLCHANGE = "N[N] (UIO,ZE156)"
TOOLCHANGE = "N[N] (EPP,SVI1,SVF1)"
TOOLCHANGE = "N[N] M96"
TOOLCHANGE = "N[N] (DLY,L93)"
TOOLCHANGE = "N[N] G0[XH][YH]"
TOOLCHANGE = "N[N] [S]"
TOOLCHANGE = "N[N] M3M7M8"
TOOLCHANGE = "N[N] [XH][YH][ZH]"
TOOLCHANGE = "N[N] (WOS,@SPINDLE=1)"
TOOLCHANGE = "N[N] M35M95"
;
; End of file
;
END = "N[N] E10=E10+1"
END = "N[N] E0=E0+1"
END = "N[N] (ROT,0)"
END = "N[N] (ERP)"
END = "N[N] ;G0"
END = "N[N] ;M15"
END = "N[N] (TCP)"
END = "N[N] E250=0"
END = "N[N] (CLS,E:\INTERMAC\FTOOL.S10)"
END = "[34]FINE[34] N[N]"
END = "N[N] (GTO,ERRORE,E266=0)"
END = "N[N] (UAO,0)"
END = "N[N] G0"
END = "N[N] @UPR=0"
END = "N[N] @OVER=0"
END = "N[N] M5M9M13"
END = "N[N] M45M96"
END = "N[N] (DLY,L93)"
END = "N[N] (IF,E9<>8)"
END = "N[N] G0G79ZL26"
END = "N[N] (ENDIF)"
END = "N[N] (IF,@SK7739BL=0)"
END = "N[N] (IF,E2=1)"
END = "N[N] (IF,E140=21)"
END = "N[N] G0G90CL106A90"
END = "N[N] (ELSE)"
END = "N[N] G0G90CL106AL107"
END = "N[N] (ENDIF)"
END = "N[N] G0G90XL86YL88"
END = "N[N] (ELSE)"
END = "N[N] (IF,E140=21)"
END = "N[N] G0G90CL108A90"
END = "N[N] (ELSE)"
END = "N[N] G0G90CL108AL109"
END = "N[N] (ENDIF)"
END = "N[N] G0G90XL104YL105"
END = "N[N] (ENDIF)"
END = "N[N] (ENDIF)"
;END = "N[N] (CLS,E:\INTERMAC\FINETM.S10)"
END = "N[N] (CLS,E:\INTERMAC\REP)"
END = "[34]ERRORE[34] N[N]" 
END = "N[N] G0"
END = "N[N] (IF,E266=0)"
END = "N[N] (DIS,!USER12(360).40CH) ;messaggio di utensile sbagliato"
END = "N[N] (ENDIF)"
END = "N[N] @SK3434BL=0"
END = "N[N] @SK3435BL=0"
END = "N[N] @SK3436BL=0"
END = "N[N] @SK3437BL=0"
END = "N[N] (GTO,NRF)"
END = "[34]NRI[34] N[N]"
END = "N[N] E31=[N]"
END = "N[N] @READE31=1"
END = "N[N] (WOS,@READE31=0)"
END = "[34]NRF[34] N[N]"
END = "N[N] M30"
