Académique Documents
Professionnel Documents
Culture Documents
1. variable
general workpiece program appoints G code and ship distance with numerical value directly; for example,
GO1 and X100.0. When user macro is used, numerical value can be appointed directly or by variable.
When variable is used, variable value can be changed by program or operation in MDI panel.
#1 #2 100
G01 X# 1 F 300
illustration
variable expression
variable is permitted by computer, but user macro is not. Variable is appointed by variable number #
and latter variable number.
for example #1
expression can be used to appoint variable number. Here, expression must be closed in bracket.
for example #[#1+#2-12]
variable type
variable can be divided into four types according to variable number .
variable
number
#0
#1-#33
#100-#199
#500-#999
common
variable
#1000
system
variable
for example When value of variable #1 is 0 and value of #2 is empty, the executing outcome of
G00X#1 Y# 2 is G00X0.
common variable of double locus(double locus control)
for double locus control, system provides every locus individual macro variable. But, some common
variables can use two locus at one time according to the setting of parameter N0.6036 and 6037.
undefined variable
when variable value is undefined, this variable becomes empty variable. Variable #0 is always empty. And
it can not be written but only be read.
citation
when an undefined variable is cited, address itself is ignored.
when #1=< empty >
when#10
G90 X100 Y#1
G90 X100 Y#1
G90 X100
G90 X100 Y0
(b) operation
<empty> is the same with 0 except the condition that use <empty> to assign.
when #1=< empty >
when #10
#2#1
#2<>
#2#1
#20
#2#*5
#20
#2#*5
#20
#2#1+#1
#20
#2#1+#1
#20
#1EQ#0 false
#1 NE #0 true
#1 NE #0 false
#1 GE #0 true
#1 GE #0 false
#1 GT #0 false
#1 GT #0 false
limitation
program number, sequence number and optional segment jumping number can not use variable.
foe example variable can not be used in below conditions
0#1
/# 2G 00X100.0;
N#3Y200.0;
2. arithmetic and logic operation
the operations listed below can be executed in variable. expression at the right of operator can include
constant and variable composed with function or operator. Variable #j and #k can be assigned by constant.
the left variable can be assigned by expression.
function
definition
addition
format
#i=#j
#i=#j+#k;
subtraction
#i=#j-#k;
multiplication
#i=#j*#k;
division
sin
#i=#j/#k ;
#i=sin[#j;
arcsine
#i=asin[#j];
cos
#i=cos[#j];
arccosine
#i=acos[#j];
tangent
#i=tan[#j]
arc tangent
square root
#i=atan[#j]/[#k]
#i=SQRT[#j];
absolute value
#i=ABS[#j];
rounding
#i=ROUNG[#j];
up rounding
#i=FIX[#j];
down rounding
#i=FUP[#j];
natural logarithm
#i=LN[#j];
exponential
function
Or
#i=EXP[#j];
Xor
#i=#jXOR#k;
and
Change BCD to
BIN
#i=#jAND#k;
Change BIN to
BCD
#i=BCD[#j];
remark
#i=#jOR#k;
logic operation is executed one bit by one bit according to binary
number.
#i=BIN[#j];
used for handshaking with PMC.
illustration
angle unit
angle unit of function SIN ,COS,ASIN,ACOS,TAN and ATAN is degree, for example 90 30' denote 90.5
degree.
ARCSIN # i= ASIN[#j]
1 numeric area
when parameter NO.6004#0 NAT bit place is set to 0, 270 90
when parameter NO.6004#0 NAT bit place is set to 1, 90 90
2 when #j overstep the range of 1 to 1, P/S warning NO.111 is issued.
3 variable #j can be replaced by constant.
ARCCOS #iACOS[#j] numeric area is from 180 to 0 . When #j overstep the range of 1 to 1,
P/S warning NO.111 is issued. Variable #j can be replaced by constant.
3. program example
mill ellipse
locus
locus
G01 Z0 F300
WHILE[#1LE10]DO1
#7= #1/TAN[#5]+#3
G1Z-#1 X#7
#8=#6/2-ROUND[#6/2]
IF[#8EQ0]GOTO10
G1Y0
GOTO20
N10 Y#4
N20#1=#1+#2
#6=#6+1
END1
G0
Z100
mill semisphere
locus
#1=#1+1
IF [#1 LE 90] GOTO 11
G0 Z30
M30
Remote assistance can make students' computer be eyeable to teachers' computer, and the students'
can even be controled by teachers'.
1.Set teachsers' computer in server
3.Teachers' computer accept application of students' computer, and start remote assistance.So it
can observe and control students' computer
Swan has published software accessory tool(SGD)-- visualized NC code debug tool
SWANSC G-code debug tool.
SWANSC G-code debug tool (for short SGD) is issued by Swan NC simulation software recently. It is a
simple and effective built-in tool which can call simulation NC code intuitionisticly, simplely and rapidly.
SGD help you call G code rapidly and correctly and check format of each command intuitionisticly. With
SGD you can even check every G code and check every corresponding locus in the condition of a
visualized three-dimensional graphics.
SGD support kernel code of many NC systems such as FANUC SIEMENS HUAZHONG NC
MITSUBISHI.
Example SINUMERIK 802DM
FANUC0iT
ELSE
ENDIF
Format (ii) IF conditional expression
ENDIF
ENDW
Using of conditional judgment statement see also example of macro programming
Using of loop statement see also example of macro programming
5. example
locus
program code
%0010
#10=10.0
#11=10.0
#12=124.0
#13=124.0
#101=8.0
#102=6.5
#103=6.0
N01 G92 X0.0 Y0.0 Z10.0
#0=0
N06 G00 X[-#12] Y[-#13]
N07 G01 Z[-#10] M03 S600 F200
WHILE #0 LT 3
N[08+#0*6] G01 G42 X[-#12/2] Y[-90/2] F280.0 D[#0+50]
N[09+#0*6] X[0] Y[-90/2]
N[10+#0*6] G03 J[90/2]
N[11+#0*6] G01 X[#12/2] Y[-90/2]
N[12+#0*6] G40 X[#12] Y[-#13]
N[13+#0*6] G00 X[-#12] Y[-#13]
#0=#0+1
ENDW
N100 Z[-#10-#11]
#2=90/SQRT[2]*COS[55*PI/180]
#3=90/SQRT[2]*SIN[55*PI/180]
#4=90*COS[10*PI/180]
#5=90*SIN[10*PI/180]
#0=0
WHILE #0 LT 3
N[101+#0*8]G01 G42 X[-#12/2] Y[-90/2] F280.0 D[#0+50]
N[102+#0*8]X[-#2] Y[-#3]
N[103+#0*8]G91 X[+#4] Y[+#5]
N[104+#0*8]X[-#5] Y[+#4]
N[105+#0*8]X[-#4] Y[-#5]
N[106+#0*8]X[+#5] Y[-#4]
N[107+#0*8] G90 X[#12/2] Y[-90/2]
N[108+#0*8]G00 G40 X[-#12] Y[-#13]
#0=#0+1
ENDW
G00 X0 Y0 M05 M30
Illustration
GOTOF
Forwards jumping
GOTOB
Backwards jumping
Lable
Selected marker
IF
condition
operator
meaning
==
equal to
unequal
greater than
smaller than
These comparison operations denote jumping condition. Computation expression can be used for
comparison operation.
There are two outcomes of comparison operation: one is satisfaction, the other is dissatisfaction.
When it is dissatisfaction, the end value of operation is 0.
(4).comparison operation programming example
R1 1 R1 greater than 1
1 R1 1 smaller than R1
R1 R2+R3 R1 smaller than R2 adding R3
R6 =SIN(R7*R7) R6 greater than or equal to SIN(R7)2
5. program jumping example
L1( semisphere ):
L2( ellipse ):
Effect drawing :
code
G54X0Y0Z10F100M03S100
R10=-15 R11=-9.06
L1
R10=15 R11=-9.06
L1
R10=0
L2
Code of subprogram L1 :
G0 X=R10+12.5-4 Y=R11
G1 Z-6 F100
G3 I=4-12.5
G1 X=R10+8 Y=R11
G41 D1 X=R10+4 Y=R11
G2 I-4
G0 Z5
R1=4
R2=90
AAA:
R3=R1*COS(R2)+4+R10
R4=R1*SIN(R2)-R1
G0 X=R3 Y=R11
G1 Z=R4 F300
G2 I=R10-R3
G0 Z1
R2=R2-1
IF R2>=0 GOTOB AAA
G0 Z10
M17
Code of subprogram L2 :
R1=35
R2=15
R3=0
G0 X=R1+R10 Y=R11
G1 Z-5 F100
AAA:
R4=R1*COS(R3)+R10
R5=R2*SIN(R3)+R11
G1 X=R4 Y=R5 F100
R3=R3+1
IF R3<=360 GOTOB AAA
G0 Z5
M17
6. subprogram
(1). application
in principle there is no difference between main program and subprogram
Use subprogram to program often repeated machining, such as a certain figure. One form that subprogram
is in main program is machining cycle including generally universal working procedure such as thread
cutting. Many concrete machining is realized through specified counting parameter assigning.
(2). structure
The structure of subprogram is the same with main program's, and subprogram is stopped by M 2 in the
last segment. main program return after subprogram end.
(3). end of program
You can end subprogram by using RET besides M2.
When use RET to end subprogram or return main program G64 continuous path mode is not interrupted,
while using M2 will interrupt G64 and come into halt state.
SINUMERIK802D T
SINUMERIK802D T
FAGOR8055M
FAGOR8055T
FANUC0i-T
BEIJING-FANUC Series 0i Mate-TB
FANUC0i T
Param CNC
ParamCNC finishs three advanced manufacturing technology experiments on the simulation experiment
platform.
M function code
M
code
M00
M01
M02
M03
M04
M05
M06
M08
M09
M16
M28
M30
M48
M49
M60
M80
M81
M98
M99
illustration
Program stop
Optional stop
End of program
Spindle on clockwise (CW)
Spindle on counterclockwise (CCW)
Spindle stop
Toochange
Coolant on
Coolant off
Cutter joining tool rest
Tool rest return to orgin
Program end and reset
Cancel M49
Bypass Override
APC cycle start
Rotary table corotation (CW)
Rotary table reversion (CCW)
Subprogram call
Subprogram end
Fig.1
A three-dimensional display of software machining
Fig.2
B program
M03S1000
T0101
G0X70Z2
G73U5W0R4
G73P10Q11U0.2W0.1F0.1
N10G01X50Z0
G3X40Z-15R22
G2Z-45R25
N11G1Z-50
G70P10Q11
G0X100Z200
T0100
C two-dimensional graphic
Fig.3
Fig.4
2.3 precondition
diameter programming command G23 must be effective.
System must has installed SGUD.DEF.
You can call this cycle from third program interface in program nesting at
most two level nesting .
2.4 Parameter
parameter
R105
R106
R108
R109
R110
R111
R112
illustration
R105 parameter of machining mode. Use parameter to conform following
machining modes:
portrait machining / cross direction machining
interior machining / exterior machining
roughing / finish machining / Integration machining
feeding is processed in the direction of cross direction axis when portrait
machining, while feeding is processed in the direction of portrait axis when
cross direction machining.
value
portrait/
cross
direction
exterior/
interior
1
2
3
4
5
6
7
8
9
10
11
12
portrait
cross direction
portrait
cross direction
portrait
cross direction
portrait
cross direction
portrait
cross direction
portrait
cross direction
exterior
exterior
interior
interior
exterior
exterior
interior
interior
exterior
exterior
interior
interior
roughing / finish
machining /
Integration
machining
roughing
roughing
roughing
roughing
finish
finish
finish
finish
Integration
Integration
Integration
Integration
axis.
integration machining is after last roughing, and dose not return to initial
point of interior computing any more.
A three-dimensional display of software machining
Fig.5
B. program
main program mpf
T1D1
M03S800
G0X50Z2
_CNAME="L42"
R105=1 R106=0.3 R108=2 R109=7
R110=1.5 R111=0.4 R112=0.25
LCYC95
R105=5 R106=0
LCYC95
G0X200Z200
T1D0
T3D1
G0X40Z-43
R100=38 R101=-45 R102=38 R103=-60
R104=1.5 R105=1 R106=0.2 R109=2
R110=3 R111=0.975 R112=0 R113=4
R114=1
LCYC97
G0X100
Z100
T3D0
M05
M02
L42.spf
G1X0Z0
G3X20.8Z-25.8K-15I0
G2X31.6Z-39.5CR=8
G1Z-45
X35
X38Z-46.5
Z-58.5
X35Z-60
Z-65
X39
X42Z-66.5
Z-75
M02
C. two-dimension display
Fig.6
chamfers are al 45*1.5
3. SINUMERIK 802D 3.1 programming
CYCLE95(NPPMIDFALZFALXFALFF1FF2FF3VARID
TDAM_VRT)
NPP
MID
String
Rcal
FALZ
Rcal
FALX
Rcal
FAL
Rcal
FF1
Rcal
FF2
Rcal
FF3
Rcal
VARI
Rcal
DT
Rcal
DAM
Rcal
_VRT
Rcal
3.2function
Using the rough turning cycle, you can produce a contour, which has been
programmed in a subroutine, from a blank by paraxial stock removal. The
contour may contain relief cut elements.
It is possible to machine contours using longitudinal and face machining,
both externally and internally. The technology can be freely selected
(roughing, finishing, complete machining).
When roughing the contour, paraxial cuts from the maximum programmed
infeed depth are programmed and burrs are also removed parallel to the
contour after an intersection point with the contour has been reached.
Roughing is carried out up to the programmed finishing allowance.
3.3 sequence
Position reached prior to cycle start:
The starting position is any position from which the contour starting point can
be approached without collision.
The cycle creates the following sequence of motions:
The cycle starting point is calculated internally and approached with G0 in
both axes at the same time.
Roughing without relief cut elements:
The paraxial infeed to the current depth is calculated internally and
approached with G0.
Approach of paraxial roughing intersection point with G1 and at feedrate
FF1.
Rounding parallel to the contour along the contour + finishing allowance
with G1/G2/G3 and FF1.
Retraction by the amount programmed under _VRT in each axis and
Fig.7
B workpiece programme
main program
T1D1
M03S800
G0X0Z2
CYCLE95("L18",1.5,0.3,0.3,0.2,0.2,0.2,0.2,9,0,0,1)
G0X100Z100
T1D0
T2D1
G0X32Z-30.5
G1X27
G0X100
Z100
T2D0
T3D1
G0X28Z-14
CYCLE97(1.5,3,-16,-27.5,30,30,2,2,1.35,0.1,0,0,3,2,3,1)
G0X100
Z100
T3D0
M05
M02
L18.spf
G1X0Z0F0.2
G03X20Z-10CR=10
G1Z-16
X27
X30Z-17.5
Z-30.5
X40
Z-35.5
G02Z-50CR=20
G1X50Z-58
Z-70
RET
C two-dimension display of machining
Fig.8
chamfer 45*1.5
Brief summary Through parsing above, we can see that FANUC
series editing way of excircle cycle processes cycle through G71, and
SINUMERIK series process cycle through 95 by calling subprogram.
FANUC 0TD
1. Machining program listing
O002
N010M3
N015S1500T0101
N020G96S150
N025G00X65.Z0.T0101
N030G01X-1.6F0.5
N035G00X65.Z3.
N040G71U2.R0.5
N045G71P50Q115U0.4W0.2F0.4
N050G00X10.
N055G01Z0.
N060X18.
N065Z-2.X20.
N070Z-15.
N075Z-30.X26.
N080G03Z-35.X36.K-5.I0.
N085G01Z-45.X36.
N090Z-55.X45.
N095Z-70.
N100X56.
N105Z-72.X60.
N110Z-75.
N115X61.
N120G00Z30.
N125X150.Z150.T0100
N130G00X65.Z30.T0202
N135G70P50Q115
N140G00X150.Z150.T0200
N145M05
N150M02
2. 3DM machining window
FANUC 0MD
1. Machining program listing
%
N0001G40G49G80
N0002G21
N0003G91G28Z0.
G28X0.Y0.
G90G92X450Y250Z260.
N0005M06T01
N0006G00X0.Y0.Z150.
N0007M3S800
N0008M08
N0009X10.Y10.
N0010Z100
N0011G01X20.F100
N0012G42Y20.D1
N0013Z50
N0014X115.
N0015X120.Y40.
N0016X115.
N0017G02X85.R15.
N0018X57.268Y49.378R20.
N0019X57.Y50.624R3.03
N0020G01Y65.
N0021G03X47.R5.
N0022G01Y50.
N0023G02X25.R11.
N0024G01X20.
N0025Y20.
N0026Z50
N0027G40
N0028X10.
N0029Y10.
N0030G00X10.Y10.
N0031Z150.
N0032M05
N0033M30
%
2. 3DM machining window
3. Machining trochoid
FANUC 0i T
1. Machining program listing
N1T0101
N2M03S400
N3G00X6Z3
G72W1.2R1
G72P5Q15X-0.2Z0.5F100
N5G00x0z0
G01x66
Z-10
X46Z-20
Z-30
G03U-8W-4R4
G01X30
Z-44
N15X0
N16G00Z80
N17X100
N18M05
N19M30
2.3DM machining window
FANUC 0iM
1. Machining program listing
N10 G40 G49 G80 G17 M06 T01
FANUC 18iT
1. Part drawing
N20M03S100
N30G01X75.Z0.F100.M8
N50G71U2.R0.5
N60G71P70Q140U0.4W0.2F0.4
N70G0X20.Z0.
N80G01X30.Z-5.
Z-34.
N90G02X38.Z-38.R4.
N100G01Z-51.
N110X50.
N120G01Z-70.
N130G01X60.
N140G01Z-90.
N150G00X100.Z100.T0100
N160T0202
N170G70P70Q140
N180G0Z200T0200
N181T0303
N182G0X27.Z2.
N182G76P051060Q100200
N183G76X27.Z-34.P1083Q300F1.5
N184G0X150.Z200.T0300
N185T0404
N186G0X0Z5.
N187G01Z-60.
N188G01Z5.
N194G0X150.Z200.
N195M05
3. Two-dimensional machining trochoid
FANUC 18iM
1Machining program listing
N01G54X0Y0Z100.0
N02G90G00X-35.0Y35.0S800M03
N03Z-15.0M08
N04G41G01X-10.0Y35.0D01F100
N05X0
N06G02X30.668Y16.867R35.0
N07G02X31.15Y15.603R5.0
N08G02X25.502Y-17.628R43.65
N09G02X25.396Y-17.777R5.0
N10G02X-25.396Y-17.777R31.0
N11G02X-25.502Y-17.628R5.0
N12G02X-31.15Y15.603R43.65
N13G02X-30.668Y16.867R5.0
N14G02X0Y35.0R35.0
N15G01X10.0
N16G40G00X35.0Y35.0M09
N17Z100.0
N18X0Y0
M05
M19M30
2Two-dimensional machining trochoid
(2).programming
GOTOF Lable Forwards jumping
GOTOB Lable Backwards jumping
AWL illustration
GOTOF Forwards jumping
GOTOB Backwards jumping
Lable Selected marker
4. conditional jumping
(1).function
Conditional jumping can be denoted with IF- conditional statement. If
jumping condition is satisfied, jump. Jumping aim must be program segment
with marker. The program segment must lie in this program.
Conditional jumping instruction must occupy an undependent program
segment. There are several Conditional jumping instructions in one program
segment.
(2).programming
IF condition GOTOF Lable Forwards jumping
IF condition GOTOB Lable Backwards jumping
AWL
Illustration
GOTOF
Forwards
jumping
Backwards
jumping
Selected
marker
Conditional
lay in symbol
for jumping
Counting
parameter as
condition,
computation
expression
GOTOB
Lable
IF
condition
meaning
equal to
unequal
=
=
greater than
smaller than
greater than
or equal to
smaller than
or equal to
L1( semisphere ):
L2( ellipse ):
Effect drawing :
code
G54X0Y0Z10F100M03S100
R10=-15 R11=-9.06
L1
R10=15 R11=-9.06
L1
R10=0
L2
Code of subprogram L1 :
G0 X=R10+12.5-4 Y=R11
G1 Z-6 F100
G3 I=4-12.5
G1 X=R10+8 Y=R11
G41 D1 X=R10+4 Y=R11
G2 I-4
G0 Z5
R1=4
R2=90
AAA:
R3=R1*COS(R2)+4+R10
R4=R1*SIN(R2)-R1
G0 X=R3 Y=R11
G1 Z=R4 F300
G2 I=R10-R3
G0 Z1
R2=R2-1
IF R2>=0 GOTOB AAA
G0 Z10
M17
Code of subprogram L2 :
R1=35
R2=15
R3=0
G0 X=R1+R10 Y=R11
G1 Z-5 F100
AAA:
R4=R1*COS(R3)+R10
R5=R2*SIN(R3)+R11
G1 X=R4 Y=R5 F100
R3=R3+1
IF R3<=360 GOTOB AAA
G0 Z5
M17
6. subprogram
(1). application
in principle there is no difference between main program and subprogram
Use subprogram to program often repeated machining, such as a certain
figure. One form that subprogram is in main program is machining cycle
including generally universal working procedure such as thread cutting.
Many concrete machining is realized through specified counting parameter
assigning.
(2). structure
The structure of subprogram is the same with main program's, and
subprogram is stopped by M 2 in the last segment. main program return
after subprogram end.
(3). end of program
You can end subprogram by using RET besides M2.
When use RET to end subprogram or return main program G64 continuous
path mode is not interrupted, while using M2 will interrupt G64 and come into
halt state.
attention that machining cycle also belongs to four grades program interface.
(8). illustration
Take attention to parameter R too, and please do not change counting
parameter of lower lever program interface by using the used counting
parameter in higher lever program interface .
_MIDA real
_FALD real
_FFP1 real
Fig.11
Fig.12
notation Swan published a accessory tool SGD on a near
dayvisualized NC code debugging tool (SGD)
SWANSC G-code debug tool (for short SGD) is a simple and effective builtin tool which can call simulation NC code intuitionisticly, simplely and rapidly.
SGD help you call G code rapidly and correctly and check format of each
command intuitionisticly. With SGD you can even check every G code
and check every corresponding locus in the condition of a visualized threedimensional graphics. SGD support kernel code of many NC systems such
as FANUC SIEMENS HUAZHONG NC MITSUBISHI.
1.6 program G code
M03S1000
M06 T1D1
N110 G17 G0 G90 G94 F2000
G54 X0 Y0 Z20
CYCLE71( 10, 0, 2,-11, 0, 0,
100, 100, 0, 6, 3, 5, 0, 4000, 11, 2)
N125 G0 G90 X0 Y0
N130 M30
1.7 graphic display of Swan 3DM machining
Fig.13
2square pocketPOCKET3
2.1 programming specification format
POCKET3 (_RTP, _RFP, _SDIS, _DP, _LENG, _WID, _CRAD, __PA, _PO,
_STA, _MID, _FAL, _FALD, _FFP1, _FFD, _CDIR, _VARI, _MIDA, _AP1,
_AP2, _AD, _RAD1, _DP1)
2.2 function
The cycle can be used in roughing and finish machining. A face mill is asked
in finish machining
cutting feed in depth direction start from center of groove, or upright feeding
there. So, you can pre-mill a hole in this place.
2.3 parameter explanation
_RTP
_RFP
_SDIS
_DP
real
real
real
real
_LENG real
_WID
real
_CRAD real
_PA
real
Fig.21
2.5 Generated trochoid by visualized NC code debugging tool (SGD)
Fig.2-2
Fig.22
2.6 program G code
M3S800
M06T01D01
G54G0X0Y0Z50
POCKET3 (5, 0, 1, -31, 50,
50, 6, 0, 0, 30, 3, 0.5,
0.5, 100, 100, 2, 11, 3)
M5
M30
2.7 graphic display of Swan 3DM machiningFig.2-3
Fig.23
3milling a circumferential slotSOLT2
3.1 programming specification format
SLOT2 (RTP, RFP, SDIS, DP, DPR, NUM, AFSL, WID, CPA, CPO, RAD,
STA1, INDA,
FFD, FFP1, MID, CDIR, FAL, VARI, MIDF, FFP2, SSF, _FFCP)
3.2 function
Cycle SLOT2 is a combined roughing finish machining cycle. This cycle
can machine ring slot, and these slots lie on an arc.
3.3
_RTP
_RFP
real
real
_SDIS
real
_DP
real
_DPR
real
_NUM
_AFSL
integer
real
_WID
real
_CPA
real
_CPO
real
_RAD
_STA1
_INDA
_FFD
_FFP1
real
real
real
real
real
_MID
real
_CDIR
integer
_FAL
real
_VARI
integer
_MIDF
_FFP2
_SSF
_FFCP
real
real
real
real
sign)
Circumferential slot width (enter without
sign)
Center point of circle of holes (absolute),
1st axis of the plane
Center point of circle of holes (absolute),
2nd axis of the plane
Radius of the circle (enter without sign)
Starting angle
Incrementing angle
Feedrate for depth infeed
Feedrate for surface machining
Maximum infeed depth for one infeed
(enter without sign)
Mill direction for machining the
circumferential slot
Values: 2 (for G2) 3 (for G3)
Finishing allowance at the slot edge (enter
without sign)
Machining type
Values: 0 = complete machining
1 = roughing
2 = finishing
Maximum infeed depth for finishing
Feedrate for finishing
Speed when finishing
Interfix feed, circular orbit, unit:mm/m
Fig31
Fig.32
3.6 program G code
M3S1000
T01D01
G54G0X0Y0Z20
SLOT2 (10, 0, 5, -10, 10,
4, 40, 15, 0, 0, 25, 60,
0, 100, 100, 3, 3, 0.5, 2,
3)
M5
M30
3.7 graphic display of Swan 3DM machiningFig.3-3
Fig.33
SIEMENS 801
1Program listing
M03S100T01D01
G00X100
Z50
R100=80R101=0R102=100R103=-100
R104=2R105=1R106=0.5
R109=5R110=35R111=15
R112=0R113=8R114=1
LCYC97
M05
M2
2Generating two-dimensional trochoid
SIEMENS 802ST
1Part drawing
2Program listing
main program
T1D1
M03S800
G0X50Z2
_CNAME="L42"
R105=1 R106=0.3 R108=2 R109=7
R110=1.5 R111=0.4 R112=0.25
LCYC95
R105=5 R106=0
LCYC95
G0X200Z200
T1D0
T2D1
G0X40Z-43
R100=38 R101=-45 R102=38 R103=-60
R104=1.5 R105=1 R106=0.2 R109=2
R110=3 R111=0.975 R112=0 R113=4
R114=1
LCYC97
G0X100
Z100
T2D0
M05
M02
L42.spf
G1X0Z0
G3X20.8Z-25.8K-15I0
G2X31.6Z-39.5CR=8
G1Z-45
X35
X38Z-46.5
Z-58.5
X35Z-60
Z-65
X39
X42Z-66.5
Z-75
M02
3.Generating two-dimensional trochoid