ANTI CAVITATION TRIM CAGE CNC MACRO PROGRAMME






#anti_cavitation_trim #controlvalves #contol_valve_noise-cage #low_desibel_cage #Noise_Abatement_Cages #cnc_manufacturing #cnc #programming #macro_programming #fanuc #mitsubishi











Here I like to share a very useful and successful cnc macro programme which we can use for the manufacturing such types of anti cavitation trim cages. This programme we can use in all types of machines which have fanuc, mitsubhishi, and similar type control system uses.

In this programme the operator need to edit the values which comes after the "=" regarding with the specific drawing and don't change any values or arguments or any words in the subprogram.
While after starting the programme first time, we can change the value of #30 from "0" to "1", and there by whenever we needed to stop the machine by means of power failure, machine maintenance, tool damage, shift handover and even in holidays also, when we will start the machine next time we don't need to make any type of editing on the programme. we can start the programme will resume itselves. We should make the #30=0 after the completion of the programme, otherwise the same programme will resume for the next operation also. This an 100% proved programme and if anyone needs any types of help please contact me.

email id: sanilpallayi@gmail.com
MAIN PROGRAMME
%
:1005(MAIN PROGRAMME)
N1
G0G90G55G80G17G15G69G49
M6T2H2
G91G28Z0M03S1800
G28A0
M00(#33)
#33=0(POWER)
#25=0(STARTING ANGLE)
#1=90(ANGLE)
#3=4.57(HOLE TO HOLE)
#5=11.2(DEPTH)
#6=.8(PECK)
#7=50(FEED)
#8=4.88(STARTING*X*)
#10=4(*L*) 
#11=3(NUMBER OF SECTON)
#14=1(STARTING SECTION)
#2=10(NUMBER OF HOLES)(A)
#20=9(B)
#21=9(C)
#22=0(D)
G0G90G55X#8Y0A#25
G0G90G43Z50
M98P8888L1
G0G90G80M09Z50
G91G28M05Z0
M30
%

L= how often one section will repeats i.e: if the first raw of holes will repeat in 12degree then the value of #10 will be 360/12=30, and if the first section will repeat in 90 degree then the value of #10 will be 360/90=4 

SUB PROGRAMME
%
:8888( SUB PROGRAMME)
#12=1
#13=[#1/#11]
#4=[#3/#11]
#9=#14-1
M08


IF[#33EQ1]THEN#30=#510
IF[#33EQ1]THEN#12=#506
IF[#33EQ1]GOTO1
#503=[#25+[#13*#9]]
#504=#8
#505=[[#10*#11]-#9]
#506=#12
#507=#14
GOTO5
N1
G0G80G90X#504Y0A#503


G90G99G83Z-#5Q#6R1F#7
#12=#12+1

#506=#12
IF[#506GT#30]GOTO4
#504=#504+#3
GOTO1

N4
#507=#507+1
#503=#503+#13
#505=#505-1
#12=1
#506=#12

N5
IF[#507GT#11]THEN#507=1
IF[#507EQ1]THEN#30=#2
IF[#507EQ2]THEN#30=#20
IF[#507EQ3]THEN#30=#21
IF[#507EQ4]THEN#30=#22
#510=#30

IF[#507EQ1]THEN#504=#8
IF[#507EQ2]THEN#504=[#8+#4]
IF[#507EQ3]THEN#504=[#8+[#4*2]]
IF[#507EQ4]THEN#504=[#8+[#4*3]]


IF[#505LE0]GOTO6
IF[#506LE#30]GOTO1

N6
M09
N30M99
%





Comments

Post a Comment

Popular posts from this blog

THREAD MILLING

TAPER THREAD MILLING