|
machine fanuc15m
word order = ( OP N G6 G3 G1 G4 G7 G2 G5 )
word order = (+ X Y Z B C )
word order = (+ H M1 M2 MS T msg EM )
word order = (+ Q Q1 Z2 R2 ID F)
define word ID
address letter = "O"
end define
define word TN
address letter = "(TOOL TYPE: "
address width = 15
field width = 10
end define
#35
define word TD
address letter = " (TOOL DIA.: "
address width = 12
scale factor = 2
end define
#35
define word TR
address letter = "RADIUS "
address width = 7
end define
define word TLH
address letter = "LENGTH ="
address width = 9
end define
define format ( TLH )
metric formats
decimal point = true
end define
#40
define format ( TN TD TR )
modal
field width = 8
metric formats
decimal point = true
decimal places = 2
trailing zeros = false
end define
#45
word order = ( + TN TD TR )
define word ID
address letter = "O"
end define
define format ( X Y Z )
field width = 8
leading zeros = false
decimal point = true
decimal places = 2
end define
define format ( F )
field width = 8
leading zeros = false
trailing zeros = true
decimal point = true
decimal places = 1
end define
define format all
tape position = 1
end define
define format (T G1 G2 G3 M1 M2 )
leading zeros = true
end define
define codes
change tool = M1 6
coolant on mist = M2 7
coolant on flood = M2 8
coolant off = M2 9
end define
message output = false
circle output = ( 0 1 1 0)
block order = true
define block tape start
"%"
"O0000"
"(PROGRAM " ; ID JobName ; " )"
G1 0 ; G2 49 ; G5 40
G1 91 ; G4 28 ; Z 0
G3 0 ; G2 90 ; G5 54 ; X 0 ; Y 0
end define
define block tool change first
N ; TD ToolRadius[ToolNum] ; TR TipRadius[ToolNum] ; TLH ToolLENGTH[ToolNum] ; " )"
N ; "( PROGRAMMER: joel )"
M1 1
M1 6 ; T ToolNum
G6 90 ; G3 54 ; G1 0 ; X FromX ; Y FromY
G3 43 ; Z SafeZ ; H Toolnum
M2 8
S Toolspeed ; M1 3
end define
define block tool change
M2 9
M2 5
G6 91 ; G4 28 ; Z 0 ; G6 =C ; G4 =C
G6 90 ; X 0 ; Y 0 ; G6 =C
M1 1
M1 6 ; T ToolNum
N ; TD ToolRadius[ToolNum] ; TR TipRadius[ToolNum] ; " )"
N ; "( PROGRAMMER: joel )"
G6 90 ; G3 54 ; G2 0 ; X FromX ; Y FromY
G3 43 ; H Toolnum ; Z FromZ
M2 8
S Toolspeed ; M1 3
end define
define block move rapid
G1 ; X ; Y ; Z
end define
define block move linear
G1 ; X ; Y ; Z ; F
end define
define block tape end
Z FromZ
M2 5
M2 30
G7 91 ; G5 28 ; Z 0
"%"
end define
end
|
|