Господа!
Помогите с постпроцессор 4 оси под Ncstudio, вращающиеся оси вдоль Y .
Есть постпроцессор под NCstudio ,но не работает.(может кто то объяснит где ошибка)
Стaнок работает с DSP 1003 4 axes.
Скрытый текст
machine fanuc15m
#################################################
# Company - CNCLeaders #
# Machine - 2025-8H-Rotary #
# Control - Fanuc 15m #
# #
# Axis Configuration Code : 4200 #
# --------------- #
# | HEAD | TABLE | #
# ---------------|-------|-------| #
# | A axis | - | X | #
# |---------------|-------|-------| #
# | B axis | - | - | #
# |---------------|-------|-------| #
# | C axis | - | - | #
# ------------------------------- #
# Absolute output | 1 | #
# Cutter Compensation | 1 | #
# Drilling cycles | 1 | #
# Drilling cycles 200 series | 0 | #
# RTCP | 0 | #
# Active Working Plane | 0 | #
# Connection moves enabled | 1 | #
# Spline machining | 0 | #
# #
#################################################
#
#
#
#
#
##
#40
define word %D
address letter = "( Date - "
address width = 9
field width = 2
end define
#46
define word %M
address letter = "."
address width = 1
field width = 2
end define
#52
define word %Y
address letter = "."
address width = 1
field width = 2
end define
#58
define word %h
address letter = " - "
address width = 3
field width = 2
end define
#64
define word %m
address letter = ":"
address width = 1
field width = 2
decimal places = 0
decimal point = false
end define
#72
define word %s
address letter = ":"
address width = 1
field width = 2
end define
#78
define word TPN
address letter = "( TOOLPATH - "
address width = 13
field width = 20
leading zeros = false
end define
#85
define word TNO
address letter = "( TOOL NO. "
address width = 11
field width = 3
decimal places = 0
decimal point = false
leading zeros = false
trailing zeros = false
end define
#95
define word TN
address letter = "( TOOL ID "
address width = 12
field width = 30
end define
#101
define word TT
address letter = "( TOOL TYPE "
address width = 12
field width = 32
decimal places = 0
decimal point = false
leading zeros = false
trailing zeros = false
end define
#111
define word TD
address letter = "( TOOL DIA. "
address width = 12
field width = 8
scale factor = 2
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#122
define word TR
address letter = " TIP RAD "
address width = 9
scale factor = 1
field width = 8
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#133
define word TLH
address letter = " LENGTH "
address width = 8
scale factor = 1
field width = 8
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#144
define word TOL
address letter = "( TOLERANCE = "
address width = 14
field width = 5
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#154
define word THK
address letter = "( ALLOWANCE = "
address width = 14
field width = 7
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = true
sign = always
end define
#166
define word VER
address letter = "( DP Version "
address width = 13
field width = 4
tape position = 1
end define
#173
define word OFN
address letter = " Option File : "
address width = 16
field width = 32
tape position = 0
end define
#180
define word CB
address letter = ")"
address width = 1
field width = 0
end define
#186
define word NT
address letter = "N"
address width = 1
field width = 2
end define
#192
define word M3
address letter = "M"
address width = 1
field width = 3
tape position = 1
end define
#199
define word DW
address letter = "P"
address width = 1
metric formats
scale factor = 100
decimal places = 0
decimal point = false
trailing zeros = true
tape position = 1
end define
#210
define word tpt
address letter = ""
address width = 0
field width = 0
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = false
end define
#221
define word secs
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#231
define word mins
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#241
define word hrs
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#251
define word act
address letter = ""
address width = 0
field width = 0
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = false
end define
#262
define format ( G4 H )
leading zeros = true
end define
#266
define format ( P )
field width = 4
leading zeros = true
end define
#271
define format ( A )
field width = 9
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
sign = if negative
modal
end define
#281
define format ( %h %m %s )
leading zeros = true
trailing zeros = true
end define
#286
word order = ( + NT M3 P DW CB )
word order = ( + %D %M %Y %h %m %s )
word order = ( + TPN TNO TN TT TD TR TLH TOL THK VER OFN )
#290
define keys
drill peck depth = Q1
drill hole depth = Z2
clearplane = R2
cycle dwell = DW
azimuth axis not used
elevation axis = A
end define
#299
define codes
cycle retract = G6 98
drill = G4 82
break chip = G4 83
deep drill = G4 83
tap = G4 84
bore 1 = G4 85
bore 2 = G4 76
coolant on mist = M2 51
end define
#310
message output = false
block order = true
incremental centre = true
tool reset coordinates = 3
counter start = 1
counter increment = 1
integer 69 = 2
zero = "0.0"
#319
spindle azimuth rotation = false
azimuth axis units = degrees
azimuth axis direction = positive
azimuth centre = ( 0.0 0.0 0.0 )
azimuth axis param = ( 0.0 0.0 0.0 0.0 0.0 0.0 )
#
spindle elevation rotation = false
elevation axis units = degrees
elevation axis direction = positive
elevation centre = ( 0.0 0.0 0.0 )
elevation axis param = ( 0.0 0.0 0.0 1.0 0.0 0.0 )
#
pcs origin = ( 0.0 0.0 0.0 0.0 0.0 0.0 )
linear axis limits = ( -9999.0 9999.0 -9999.0 9999.0 -9999.0 9999.0 )
rotary axis limits = ( -0.0 0.0 -3600000.0 3600000.0 0.05 1 )
#
initial tool vector = ( 0 0 1 )
workplane angles = none
retract at angular limit = false
unwind at tool change = false
multiaxis coordinate transform = true
linearise multiaxis moves = false
withdrawal amount = 100.0
integer 3 = 1
#344
define block tape start
"(CNC Leaders)"
"(Phone No. 0126303022)"
"(Machine Model: 2025-8H-Rotary)"
%D Day ; %M Month ; %Y Year ; %h Hour ; %m Minutes ; %s Seconds ; " )"
end define
#397
define block cldat 1094
set swa
end define
#401
define block move rapid
if ( swa )
"( ======== )"
TPN ToolPathName ; " )"
#
"( ToolPath Time" ;
tpt ToolPathTime ;
secs ( Word{tpt} % 60 ) ;
mins ( Word{tpt} - Word{secs} / 60 % 60 ) ;
hrs ( Word{tpt} / 60 - Word{mins} / 60 ) ; act ( Word{act} + Word{tpt} ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
#
if ( Word{act} > Word{tpt} )
"( Accumulative Time " ;
secs ( Word{act} % 60 ) ;
mins ( Word{act} - Word{secs} / 60 % 60 ) ;
hrs ( Word{act} / 60 - Word{mins} / 60 ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
end if
"( ======== )"
unset swa
end if
N ; G1 ; G2 ; G4 ; G5 ; G6 ; x coord ; y coord ; z coord ;
elevation axis ; tool length ; spindle ; M1 ; M2
end define
#427
define block move linear
if ( swa )
"( ======== )"
TPN ToolPathName ; " )"
#
"( ToolPath Time" ;
tpt ToolPathTime ;
secs ( Word{tpt} % 60 ) ;
mins ( Word{tpt} - Word{secs} / 60 % 60 ) ;
hrs ( Word{tpt} / 60 - Word{mins} / 60 ) ; act ( Word{act} + Word{tpt} ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
#
if ( Word{act} > Word{tpt} )
"( Accumulative Time " ;
secs ( Word{act} % 60 ) ;
mins ( Word{act} - Word{secs} / 60 % 60 ) ;
hrs ( Word{act} / 60 - Word{mins} / 60 ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
end if
"( ======== )"
unset swa
end if
N ; G1 ; G2 ; x coord ; y coord ; z coord ;
elevation axis ; tool length ; spindle ; feedrate ; M1 ; M2
end define
#453
define block move circle
N ; G1 ; G2 ; G3 ; x coord ; y coord ; z coord ; radius =C ; feedrate
end define
#457
define block cycle start
if ( cycle = 2 or cycle = 3 or cycle = 5 )
# DRILL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; drill peck depth ;
DW cycledwell ; feedrate
end if
if ( cycle = 6 )
# Bore
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; Q1 300 =C ; feedrate
end if
if ( cycle = 1 and cycledwell > 0 )
# G82 DRILL AND DWELL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; DW cycledwell ; feedrate
end if
if ( cycle = 1 and cycledwell = 0)
# G82 DRILL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; feedrate
end if
if ( cycle = 4 )
# TAP
N ; M1 29 ; S ToolSpeed =C ; M2 3 =C
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; feedrate
end if
end define
#482
define block move cycle
N ; x coord ; y coord ; z coord ; feedrate
end define
#486
define block move tap
N ; x coord ; y coord ; z coord ; feedrate
end define
#490
define block cycle end
if ( cycledwell = 0 )
N ; G4 80 ; M2 9 ; M3 59
end if
if ( cycledwell > 0 )
N ; G4 05 =C ; " P0"
end if
end define
#499
define block tape end
N ; M2 5
N ; M1 30
end define
end
machine fanuc15m
#################################################
# Company - CNCLeaders #
# Machine - 2025-8H-Rotary #
# Control - Fanuc 15m #
# #
# Axis Configuration Code : 4200 #
# --------------- #
# | HEAD | TABLE | #
# ---------------|-------|-------| #
# | A axis | - | X | #
# |---------------|-------|-------| #
# | B axis | - | - | #
# |---------------|-------|-------| #
# | C axis | - | - | #
# ------------------------------- #
# Absolute output | 1 | #
# Cutter Compensation | 1 | #
# Drilling cycles | 1 | #
# Drilling cycles 200 series | 0 | #
# RTCP | 0 | #
# Active Working Plane | 0 | #
# Connection moves enabled | 1 | #
# Spline machining | 0 | #
# #
#################################################
#
#
#
#
#
##
#40
define word %D
address letter = "( Date - "
address width = 9
field width = 2
end define
#46
define word %M
address letter = "."
address width = 1
field width = 2
end define
#52
define word %Y
address letter = "."
address width = 1
field width = 2
end define
#58
define word %h
address letter = " - "
address width = 3
field width = 2
end define
#64
define word %m
address letter = ":"
address width = 1
field width = 2
decimal places = 0
decimal point = false
end define
#72
define word %s
address letter = ":"
address width = 1
field width = 2
end define
#78
define word TPN
address letter = "( TOOLPATH - "
address width = 13
field width = 20
leading zeros = false
end define
#85
define word TNO
address letter = "( TOOL NO. "
address width = 11
field width = 3
decimal places = 0
decimal point = false
leading zeros = false
trailing zeros = false
end define
#95
define word TN
address letter = "( TOOL ID "
address width = 12
field width = 30
end define
#101
define word TT
address letter = "( TOOL TYPE "
address width = 12
field width = 32
decimal places = 0
decimal point = false
leading zeros = false
trailing zeros = false
end define
#111
define word TD
address letter = "( TOOL DIA. "
address width = 12
field width = 8
scale factor = 2
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#122
define word TR
address letter = " TIP RAD "
address width = 9
scale factor = 1
field width = 8
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#133
define word TLH
address letter = " LENGTH "
address width = 8
scale factor = 1
field width = 8
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#144
define word TOL
address letter = "( TOLERANCE = "
address width = 14
field width = 5
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
end define
#154
define word THK
address letter = "( ALLOWANCE = "
address width = 14
field width = 7
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = true
sign = always
end define
#166
define word VER
address letter = "( DP Version "
address width = 13
field width = 4
tape position = 1
end define
#173
define word OFN
address letter = " Option File : "
address width = 16
field width = 32
tape position = 0
end define
#180
define word CB
address letter = ")"
address width = 1
field width = 0
end define
#186
define word NT
address letter = "N"
address width = 1
field width = 2
end define
#192
define word M3
address letter = "M"
address width = 1
field width = 3
tape position = 1
end define
#199
define word DW
address letter = "P"
address width = 1
metric formats
scale factor = 100
decimal places = 0
decimal point = false
trailing zeros = true
tape position = 1
end define
#210
define word tpt
address letter = ""
address width = 0
field width = 0
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = false
end define
#221
define word secs
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#231
define word mins
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#241
define word hrs
address letter = ""
address width = 0
field width = 0
decimal places = 0
decimal point = false
leading zeros = true
trailing zeros = true
end define
#251
define word act
address letter = ""
address width = 0
field width = 0
decimal places = 3
scale factor = 1
decimal point = true
leading zeros = false
trailing zeros = false
end define
#262
define format ( G4 H )
leading zeros = true
end define
#266
define format ( P )
field width = 4
leading zeros = true
end define
#271
define format ( A )
field width = 9
decimal places = 3
decimal point = true
leading zeros = false
trailing zeros = false
sign = if negative
modal
end define
#281
define format ( %h %m %s )
leading zeros = true
trailing zeros = true
end define
#286
word order = ( + NT M3 P DW CB )
word order = ( + %D %M %Y %h %m %s )
word order = ( + TPN TNO TN TT TD TR TLH TOL THK VER OFN )
#290
define keys
drill peck depth = Q1
drill hole depth = Z2
clearplane = R2
cycle dwell = DW
azimuth axis not used
elevation axis = A
end define
#299
define codes
cycle retract = G6 98
drill = G4 82
break chip = G4 83
deep drill = G4 83
tap = G4 84
bore 1 = G4 85
bore 2 = G4 76
coolant on mist = M2 51
end define
#310
message output = false
block order = true
incremental centre = true
tool reset coordinates = 3
counter start = 1
counter increment = 1
integer 69 = 2
zero = "0.0"
#319
spindle azimuth rotation = false
azimuth axis units = degrees
azimuth axis direction = positive
azimuth centre = ( 0.0 0.0 0.0 )
azimuth axis param = ( 0.0 0.0 0.0 0.0 0.0 0.0 )
#
spindle elevation rotation = false
elevation axis units = degrees
elevation axis direction = positive
elevation centre = ( 0.0 0.0 0.0 )
elevation axis param = ( 0.0 0.0 0.0 1.0 0.0 0.0 )
#
pcs origin = ( 0.0 0.0 0.0 0.0 0.0 0.0 )
linear axis limits = ( -9999.0 9999.0 -9999.0 9999.0 -9999.0 9999.0 )
rotary axis limits = ( -0.0 0.0 -3600000.0 3600000.0 0.05 1 )
#
initial tool vector = ( 0 0 1 )
workplane angles = none
retract at angular limit = false
unwind at tool change = false
multiaxis coordinate transform = true
linearise multiaxis moves = false
withdrawal amount = 100.0
integer 3 = 1
#344
define block tape start
"(CNC Leaders)"
"(Phone No. 0126303022)"
"(Machine Model: 2025-8H-Rotary)"
%D Day ; %M Month ; %Y Year ; %h Hour ; %m Minutes ; %s Seconds ; " )"
end define
#397
define block cldat 1094
set swa
end define
#401
define block move rapid
if ( swa )
"( ======== )"
TPN ToolPathName ; " )"
#
"( ToolPath Time" ;
tpt ToolPathTime ;
secs ( Word{tpt} % 60 ) ;
mins ( Word{tpt} - Word{secs} / 60 % 60 ) ;
hrs ( Word{tpt} / 60 - Word{mins} / 60 ) ; act ( Word{act} + Word{tpt} ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
#
if ( Word{act} > Word{tpt} )
"( Accumulative Time " ;
secs ( Word{act} % 60 ) ;
mins ( Word{act} - Word{secs} / 60 % 60 ) ;
hrs ( Word{act} / 60 - Word{mins} / 60 ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
end if
"( ======== )"
unset swa
end if
N ; G1 ; G2 ; G4 ; G5 ; G6 ; x coord ; y coord ; z coord ;
elevation axis ; tool length ; spindle ; M1 ; M2
end define
#427
define block move linear
if ( swa )
"( ======== )"
TPN ToolPathName ; " )"
#
"( ToolPath Time" ;
tpt ToolPathTime ;
secs ( Word{tpt} % 60 ) ;
mins ( Word{tpt} - Word{secs} / 60 % 60 ) ;
hrs ( Word{tpt} / 60 - Word{mins} / 60 ) ; act ( Word{act} + Word{tpt} ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
#
if ( Word{act} > Word{tpt} )
"( Accumulative Time " ;
secs ( Word{act} % 60 ) ;
mins ( Word{act} - Word{secs} / 60 % 60 ) ;
hrs ( Word{act} / 60 - Word{mins} / 60 ) ;
%h Word{hrs} ; %m Word{mins} ; %s Word{secs} ; " )"
end if
"( ======== )"
unset swa
end if
N ; G1 ; G2 ; x coord ; y coord ; z coord ;
elevation axis ; tool length ; spindle ; feedrate ; M1 ; M2
end define
#453
define block move circle
N ; G1 ; G2 ; G3 ; x coord ; y coord ; z coord ; radius =C ; feedrate
end define
#457
define block cycle start
if ( cycle = 2 or cycle = 3 or cycle = 5 )
# DRILL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; drill peck depth ;
DW cycledwell ; feedrate
end if
if ( cycle = 6 )
# Bore
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; Q1 300 =C ; feedrate
end if
if ( cycle = 1 and cycledwell > 0 )
# G82 DRILL AND DWELL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; DW cycledwell ; feedrate
end if
if ( cycle = 1 and cycledwell = 0)
# G82 DRILL
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; feedrate
end if
if ( cycle = 4 )
# TAP
N ; M1 29 ; S ToolSpeed =C ; M2 3 =C
N ; G4 ; G5 ; G6 ; drill hole depth ; clearplane ; feedrate
end if
end define
#482
define block move cycle
N ; x coord ; y coord ; z coord ; feedrate
end define
#486
define block move tap
N ; x coord ; y coord ; z coord ; feedrate
end define
#490
define block cycle end
if ( cycledwell = 0 )
N ; G4 80 ; M2 9 ; M3 59
end if
if ( cycledwell > 0 )
N ; G4 05 =C ; " P0"
end if
end define
#499
define block tape end
N ; M2 5
N ; M1 30
end define
end
Похожие темы:
4-х или 5-ти осевой постпроцессор PowerMill
Вопрос по постпроцессору для PowerMill