What's new
What's new

Add bar feeder to program

dennishusell

Plastic
Joined
Aug 5, 2021
Hi!

Im banging my head against a wall here and really need som help.

I recently acquired my first lathe, Preestech TH25F with GSK980TB3i controller and a Fedek DH65L S2 bar feeder(Ive only had mills until now).
Its worth mentioning that i bought it from China, so support is.. not exactly up to par (which i was already expecting).

The program for the part itself is finished, however im really struggling with the bar feeder since ive never tried anything like it before.
I have an M13 (open chuck) and M12 (close chuck), and inbetween there a move to use the toolpost as a stop.
The bar feeders parameters are all set up and once it sees the M13 it will push out a new part, and when it sees the M12 it will retract the pusher a bit.
The issue is that the lathe does not listen to the feeder at all, it will simply run through its code wether the feeder is done or not.
To temporarily fix this, ive put a 1sec time delay before the M12 to give the feeder time to finish, however this obviously screws up as soon as we get close to the end of the bar.

What i want (i think, im open to suggestions if im attacking it wrong) is to add something before M12 that tells the lathe "wait until you get the ok from the bar feeder", so for example if the feeder needs to pickup a new bar it can do its thing and then go "okay im done" and the lathe will close the chuck and continue the program.

I did get a sample program for bar feeding from the seller, however im afraid im not sure what im looking at, im assuming it has something to do with macros, which ive never dealt with before.

Heres my current program:
Code:
O01004
O1004(223R52G)
N10 G98 G18
N11 G21
N12 G50 S4000

(Face1)
N15 T0101
N16 G99
N17 G97 S4000 M3
N18 G54
N20G0X10.Z0.207
N21 G0 X8.
N22 X8.014
N23 G1 X6.6 Z-0.5 F0.085
N24 X-0.8

(Profile Finishing1)
N32 Z-0.429
N33 X-0.133 Z-0.5
N34 G18 G3 X1.068 Z-0.902 R0.65
N35 X5.698 Z-10.874 R31.4
N36 G1 X5.7 Z-10.887
N37 Z-11.288
N38 G3 X5.485 Z-11.774 R1.15
N39 G1 X5.405 Z-11.859
N40 X5.4 Z-11.882
N41 Z-11.918
N42 X5.406 Z-11.942
N43 X5.424 Z-11.965
N44 G3 X5.7 Z-12.512 R1.15
N45 G1 Z-12.788
N46 G3 X5.485 Z-13.274 R1.15
N47 G1 X5.405 Z-13.359
N48 X5.4 Z-13.382
N49 Z-13.418
N50 X5.406 Z-13.442
N51 X5.424 Z-13.465
N52 G3 X5.7 Z-14.012 R1.15
N53 G1 Z-14.288
N54 G3 X5.485 Z-14.774 R1.15
N55 G1 X5.405 Z-14.859
N56 X5.4 Z-14.882
N57 Z-14.918
N58 X5.406 Z-14.942
N59 X5.424 Z-14.965
N60 G3 X5.7 Z-15.512 R1.15
N61 G1 Z-15.788
N62 G3 X5.485 Z-16.274 R1.15
N63 G1 X5.405 Z-16.359
N64 X5.4 Z-16.382
N65 Z-16.418
N66 X5.406 Z-16.442
N67 X5.424 Z-16.465
N68 G3 X5.7 Z-17.012 R1.15
N69 G1 Z-17.927
N70 G3 X5.539 Z-19.217 R10.4
N71 G1 X4.903 Z-21.762
N72 G3 X4.749 Z-22.03 R0.9
N73 G1 X3.634 Z-23.225
G0X5
G0Z-22.322X13.2
G1F0.02Z-22.522X13.8
F0.1 X17
F0.01X18
F0.1X18.5
G0Z-21.272
M05
G0 X100.0
M13 (chuck release)
G4X1P1
G0Z-1.6 
M12 (chuck clamp)
G0 Z1.0
G0 X10.0

N770M1
N79M99
%

And heres the sample program from the seller:
Code:
O01111
G65H81P111Q#1000R1
T0101
G0Z0
X0
M13
M00
M12
G04X1
G00Z50
T102
M3S800
G0X13
Z0
G1X-1F100
G0X20
Z50
M5
M99
N111G00Z150
M13
M00
M12
T0101
G00X0Z0
M13
M00
M12
M99

%

Any advice is greatly appreciated, even it its a "you're in over your head, go read this first".
 
Hello Dennis,
Its a very clumsy way of doing it with a bar feeder, given that the common consensus is that the bar feeder is a device that can allow the machine to work and repeat on its own, but in the example program you received from the bar feeder seller, M00 (Compulsory Program Halt) is used between M13 and M12 to halt the program. Using M00 would give the Bar Feeder all the time in the world to finish and an operator would always have to be at the machine ready to press the Cycle Start Button after the Bar Feeder had finished it's task so that M12 and the remainder of the program is executed.

Do you have a copy of the contents of Program O111, the Subprogram called by the G65H81P111Q#1000R1 Block?

Many Bar Feeders have a Bar End signal that is sent to the PLC of the lathe control. This signal can be read by the CNC Program and a different Subprogram called for when Bar Loading is being carried out as opposed to that when simply Bar Feeding. This would require a change to the PLC Ladder Program (if it doesn't already exist). I suspect that you will have to go back to the bar feed seller.

If the Bar Feeder had to depend on an M00 to operate, I wouldn't have wasted my money and simply used a spindle Liner and a Bar Pulling device. Having to have the operator as part of the Bar Feeding exercise is tantamount to buying a dog and then having to bark for it.

Regards,

Bill
 
Thanks for the input!

When using the 1sec time delay after M13, it was behaving exactly like i wanted it. The bar feeder would push right after chuck open, then the toolpost/stop would move back along with the bar to the desired position and execute M12 which would retract the bar feeder push rod.
However this obviously only worked perfectly for little more than half a bar, as soon as the feeder needed more than 1sec to travel to the bar (it will retract to outside the spindle) it would screw up at set an alarm from the feeder since it wouldnt have time to feed.

I actually tried last night to replace the time delay with an M00.
Apparently the bar feeder can call a cycle start/cancel the M00 because when using that line the bar feeder will do its thing and return to the retract position and the lathe will then continue the program.
Theres two problems with this though.
1. The lathe waits a little too long before continuing so in total it added 2sec to my cycle time (where running 10sec cycle times so 2sec is quite alot), this might just be something i have to live with though.
2. It will run fine for the entire bar but set an alarm in the bar feeder at the end of the bar instead of picking up a new one.
I was thinking it was due to the toolpost being in the way so the end couldnt be pushed out, so i tried altering the parameters in the bar feeder to make the bar end shorter than the part length, thinking this way the end would fall out even if the toolpost didnt move.
The end does fall out, so the bar feeder isnt bottoming out on the tool post anymore, but it still isnt picking up a new bar, it just sits there for a while before throwing the alarm (im unsure of what the alarm said right now, ill have to run it again to see)

Heres all the programs that where on the machine from the factory, except for the O0111 which was in the original post.
Code:
O00002
T0101
G0Z0.5
G1Z0F20
G4X2
G0Z150
G4X1
M99
%
Code:
O00003
T0101
G0X0.5
G1X0F20
G4X2
G0X500
G4X1
M99
%
Code:
O02345
T0101
M12
M3S3500
G0X0Z0
G1X50Z50F500
G0Z200
X500
M5
G4X5
M3S800
G0X50Z50
G92X40Z20F2
X39
X38.5
X38
X37.2
G0Z200
X500
M5
M13
G4X5
M99
%
Code:
O07998;
(³ÌÐòÁã¼þÃû±¸×¢ÀýʾDC-01)
G50X0Z0
N2
G18G00X80Z80
T0100X80Z80
G04P2000
T0101;
M3 S50
G00X80Z2
G94X0Z0F300
G90X70Z-80G98F500
X65
R-2.5
G00X20
G01Z-10G98F400
G02X30Z-30.125R24.351
G03X40Z-45R21
G01Z-50
X50Z-60
G2X60Z-80R120F800
G3X70Z-100R55
G1Z-120
G1X80Z-150
G00Z2
G42G00X20
G01Z-10G98F500
G02X30Z-30.125R24.351
G03X40Z-45R21
G01Z-50
X50Z-60F800
G01Z-120
G00G40X100Z100
T0202
G00X80Z2
G71U5R1
G71P1Q2U0.5W0.5G98F500
N1G0Z2X10
G1Z-10
X20Z-15
G03X40Z-30R25
G02X60Z-45R35
G01Z-60
N2X75Z-80
G70P1Q2F250
G00X100Z100
G00X70Z2
G72W5.2R1.1
G72P30Q40U0.5W1G98F350
N30G0Z-70
G1X65
X55Z-55
Z-40
G02X30Z-25R30
G03X10Z-10R25
N40G1Z0
G70P30Q40F380
G00X100Z100
T0303
G00X80Z2
G73U8W8R4
G73U0.1W0.1P15Q26F500
N15G0X30Z0
G01Z-15
G03X50Z-30R30
G02X30Z-45R30
G01Z-50
G03X60Z-70R35
G01X70Z-80
N26X70Z-100
G70P15Q26F600
G0X100Z200
T0404
G00X50Z2
G00G42U-25
G01W-10F150
U5W-10
G02U-10W-20R20
G01W-15
U20W-20
U8
G00G40W75
G0X100Z150
T0101
G00X-80Z2
G94X0Z0F300
G90X-70Z-100F500
X-65
R-5
G00X-20
G01Z-10G98F600
G02X-30Z-30.125R24.351
G03X-40Z-45R21
G01Z-50
X-50Z-60
G01Z-120
G00Z2
G42G0X-20
G01Z-10G98F400
G02X-30Z-30.125R24.351
G03X-40Z-45R21
G01Z-50
X-50Z-60
G01Z-120
G00G40X-80Z100
T0202
G00X-80Z2
G71U5R1
G71P21Q22U-0.5W0.5G98F500
N21G0Z2X-10
G01Z-10F100
X-20Z-15
G02X-40Z-30R25
G03X-60Z-45R35
G01Z-60
N22X-75Z-80
G70P21Q22F1550
G00X-80Z100
T0202
G00X-70Z2
G72W5.2R1.1
G72P53Q54U-0.5W1
N53G00Z-70
G01X-65F80
X-55Z-55
Z-40
G02X-30Z-25R30
G03X-10Z-10R25
N54G01Z0
G70P53Q54G98F380
G0X-80Z100
T0303
G0X-80Z2
G73U8W1R4
G73P125Q126U1W1F500
N125G00X-30Z0
G01Z-15
G02X-50Z-30R30
G02X-30Z-45R30
G01Z-50
G03X-60Z-70R35
G01X-70Z-80
N126Z-100
G70P125Q126F400
G00X-80Z100
T0404
G00X-50Z2
G00G42U25
G01W-10F150
U-5W-10
G03U10W-20R20
G01W-15
U-20W-20
U-8
G00G40W75
G00X100Z100
T0101
G00X80Z-2
G94X0Z0F500
G90X70Z100F600
X65
R-5.5
G00X20
G01Z10G98F300
G02X30Z30.125R24.351
G03X40Z45R21
G01Z50
X50Z60
G01Z120
G00Z2
G42G0X20
G01Z10G98F400
G03X30Z30.125R24.351
G02X40Z45R21
G01Z50
X50Z60
G00G40X100Z100
T0202
G00X80Z-2
G71U5R1
G71P100Q8U0.5W-0.5F500
N100G00Z-2X10
G01Z10
X20Z15
G03X40Z30R25
G02X60Z45R35
G01Z60
N8X75Z80
G70P100Q8F580
G00X100Z100
T0202
G00X70Z-2
G72W3.5R0.6
G72P33Q34U0.5W-1F450
N33G00Z70
G01X65
X55Z55
Z40
G02X30Z25R30
G03X10Z10R25
N34G1Z0
G70P33Q34F780
G00X100Z-100
T0303
G00X80Z2
G73U10W10R4
G73U0W0P35Q36F500
N35G00X30Z0
G01Z15
G02X50Z30R30
G02X30Z45R30
G01Z50
G03X60Z70R35
G01X70Z80
N36Z100
G70P35Q36F800
G00X100Z-100
T0404
G00X80Z-2
G00G42U-25
G01W10F150
U05W10
G03U-10W20R20
G01W15
U20W20
U8
G00G40W-75
G00X100Z100
T0101
G00X-80Z-2
G94X0Z0F400
G90X-70Z100F600
X-65
R5.5
G00X-20
G01Z10G98F400
G02X-30Z30.125R24.351
G03X-40Z45R21
G01Z50
X-50Z60
G00X100Z20
G0X-20
G01Z10G98F800
G02X-30Z30.125R24.351
G03X-40Z45R21
G01Z50
X-50Z60
G01Z120
G00X-80Z0
T0202
G00X-80Z-2
G71U5R1
G71P70Q80U-0.5W-0.5F900
N70G00Z-2X-10
G01Z10
X-20Z15
G03X-40Z30R25
G02X-60Z45R35
G01Z60
N80X-75Z80
G70P70Q80F850
G00G40X-80Z100
T0202
G00X-70Z-2
G72W3.2R1
G72P110Q120U-0.5W-1F650
N110G00Z70
G01X-65
X-55Z55
Z40
G02X-30Z25R30
G03X-10Z10R25
N120G1Z0
G70P110Q120F680
G00X-80Z-100
T0303
G00X-80Z2
G73U8W8R4
G73U0W0P130Q140F500
N130G00X-30Z0
G01Z15
G03X-50Z30R30F800
G03X-30Z45R30
G01Z50
G02X-60Z70R35
G01X-70Z80
N140Z100
G70P130Q140F900
G00X-80Z100
T0404
G00X-50Z-2
G00G42U25
G01W10F150
U-5W10
G03U10W20R20
G01W15
U-20W20
U-8
G00G40W-75
G00X80Z80
M5
GOTO2
M99
Code:
O07999;
(ÅÜ»ú²âÊÔ³ÌÐò)
//G18G50X0Z0;//»ú´²ÐгÌÖÐÐÄ
T0101;//Åŵ¶¼Ü»òÎÞµ¶¼Üʱ´ò¿ª¸¨ÖúËø»òÉèK1.0Ϊ0
//ÎÞÖ÷ÖáתËÙ·´À¡Ôò´ò¿ª¿ÕÔËÐÐ
/G04P2000;
G0X0Z0;
M3S200G98;
G01X80F300;
Z100F330;
X-80F360;
Z-100F400;
X80F430;
Z0F460;
X0F500;
G02X80Z0R50;
Z100R220;
X0R90;
X-80R60;
Z0R220;
W-100R220;
U80R90;
U80R60;
W100R220;
U-80R50;
G0X0Z0;
G03X80Z0R50;
Z100R220;
X0R90;
X-80R60;
Z0R220;
W-100R220;
U80R90;
U80R60;
W100R220;
U-80R50;
G0X0Z0;
T0101;
M3 S50
G00X80Z2
G94X0Z0F300//¾¶ÏòÇÐÏ÷Ñ*»·
X70Z-30
X60
U-30
U-35
X70R5
X60
U-30W-30
U-35W-35
G90X70Z-80G98F500//ÖáÏòÇÐÏ÷Ñ*»·
X65
X60
U-25
R-2.5
U-30W-70
G92X70Z-40F2J3K3//ÂÝÎÆÇÐÏ÷Ñ*»·
X68L2
X66L1R5
X64
G0X80Z2
G0X60
G32Z-40F3J3K3
G0Z2
G32Z-40F3J3K3
G0Z2
G34Z-30F1J3K3R0.1
G0X60Z2
G34Z-30F1J3K3R0.1
G0X60Z2
G76P011060Q0.3R0.2
G76X40Z-30F3P2Q0.5
G76P011060Q0.3R0.2
G76X40Z-30F3P2Q0.5R3
G00X20
G01Z-10G98F400
G02X30Z-30.125R24.351
G03X40Z-45R21
G01Z-50
X50Z-60
G2X60Z-80R120F800
G3X70Z-100R55
G1X80Z-100
G00Z2
G42G00X20//µ¶¾ß²¹³¥
G01Z-10G98F500
G02X30Z-30.125R24.351
G03X40Z-45R21
G01Z-50
X50Z-60F800
G01Z-80
G00G40X100Z0
T0202
G00X80Z2
G71U5R1//ÖáÏò´Ö³µÑ*»·
G71P1Q2U0.5W0.5G98F500
N1G0Z2X10
G1Z-10
X20Z-15
G03X40Z-30R25
G02X60Z-45R35
G01Z-60
N2X75Z-80
G70P1Q2F250//¾«¼Ó¹¤Ñ*»·
G00X100Z100
G00X70Z2
G72W5.2R1.1//¾¶Ïò´Ö³µÑ*»·
G72P30Q40U0.5W1G98F350
N30G0Z-70
G1X65
X55Z-55
Z-40
G02X30Z-25R30
G03X10Z-10R25
N40G1Z0
G70P30Q40F380//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0303
G00X80Z2
G73U8W8R4//·â±ÕÇÐÏ÷Ñ*»·
G73U0.1W0.1P15Q26F500
N15G0X30Z0
G01Z-15
G03X50Z-30R30
G02X30Z-45R30
G01Z-50
G03X60Z-70R35
G01X70Z-80
N26X70Z-100
G70P15Q26F600//¾«¼Ó¹¤Ñ*»·
G0X100Z0
T0404
G00X50Z2
G00G42U-25
G01W-10F150
U5W-10
G02U-10W-20R20
G01W-15
U20W-20
U8
G00G40W75
G0X80Z2
G74R3//ÖáÏòÇв۶àÖØÑ*»·
G74X60Z-50P5Q5R1F300
G74R3
G74U-50W-60P5Q5R1F300
G75R3//¾¶ÏòÇв۶àÖØÑ*»·
G75X60Z-50P5Q5R1F300
G75R3
G75U-50W-60P5Q5R1F300
G0X100Z0
/G04P60000;
T0101
G00X-80Z2
G94X0Z0F300//¾¶ÏòÇÐÏ÷Ñ*»·
X-70Z-30
X-60
U30
U35
X-70R5
X-60
U30W-30
U35W-35
G90X-70Z-100F500//ÖáÏòÇÐÏ÷Ñ*»·
X-65
X-60
U25
R-5
U30W-70
G00X-20
G92X-70Z-40F2J3K3//ÂÝÎÆÇÐÏ÷Ñ*»·
X-68L2
X-66L1R5
X-64
G0X-80Z2
G0X-60
G32Z-40F3J3K3
G0Z2
G32Z-40F3J3K3
G0Z2
G34Z-30F1J3K3R0.1
G0X-60Z2
G34Z-30F1J3K3R0.1
G0X-60Z2
G76P011060Q0.3R0.2
G76X-40Z-30F3P2Q0.5
G76P011060Q0.3R0.2
G76X-40Z-30F3P2Q0.5R3
G00X20
G01Z-10G98F600
G02X-30Z-30.125R24.351
G03X-40Z-45R21
G01Z-50
X-50Z-60
G01Z-80
G00Z2
G42G0X-20//µ¶¾ß²¹³¥
G01Z-10G98F400
G02X-30Z-30.125R24.351
G03X-40Z-45R21
G01Z-50
X-50Z-60
G01Z-80
G00G40X100Z0
T0202
G00X-80Z2
G71U5R1//ÖáÏò´Ö³µÑ*»·
G71P21Q22U-0.5W0.5G98F500
N21G0Z2X-10
G01Z-10F100
X-20Z-15
G02X-40Z-30R25
G03X-60Z-45R35
G01Z-60
N22X-75Z-80
G70P21Q22F1550//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0202
G00X-70Z2
G72W5.2R1.1//¾¶Ïò´Ö³µÑ*»·
G72P53Q54U-0.5W1
N53G00Z-70
G01X-65F80
X-55Z-55
Z-40
G02X-30Z-25R30
G03X-10Z-10R25
N54G01Z0
G70P53Q54G98F380//¾«¼Ó¹¤Ñ*»·
G0X100Z0
T0303
G0X-80Z2
G73U8W1R4//·â±ÕÇÐÏ÷Ñ*»·
G73P125Q126U1W1F500
N125G00X-30Z0
G01Z-15
G02X-50Z-30R30
G02X-30Z-45R30
G01Z-50
G03X-60Z-70R35
G01X-70Z-80
N126Z-80
G70P125Q126F400//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0404
G00X-50Z2
G00G42U25
G01W-10F150
U-5W-10
G03U10W-20R20
G01W-15
U-20W-20
U-8
G00G40W75
G0X-80Z2
G74R3//ÖáÏòÇв۶àÖØÑ*»·
G74X-60Z-50P5Q5R1F300
G74R3
G74U50W-60P5Q5R1F300
G75R3//¾¶ÏòÇв۶àÖØÑ*»·
G75X-60Z-50P5Q5R1F300
G75R3
G75U50W-60P5Q5R1F300
G00X100Z0
/G04P60000;
T0101
G00X80Z-2
G94X0Z0F500//¾¶ÏòÇÐÏ÷Ñ*»·
X70Z30
X60
U-30
U-35
X70R5
X60
U-30W30
U-35W35
G90X70Z100F600//ÖáÏòÇÐÏ÷Ñ*»·
X65
X60
U-25
R-5.5
U-30W70
G00X20
G92X70Z40F2J3K3//ÂÝÎÆÇÐÏ÷Ñ*»·
X68L2
X66L1R5
X64
G0X80Z2
G0X60
G32Z40F3J3K3
G0Z2
G32Z40F3J3K3
G0Z2
G34Z30F1J3K3R0.1
G0X60Z2
G34Z30F1J3K3R0.1
G0X60Z2
G76P011060Q0.3R0.2
G76X40Z30F3P2Q0.5
G76P011060Q0.3R0.2
G76X40Z30F3P2Q0.5R3
G00X20
G01Z10G98F300
G02X30Z30.125R24.351
G03X40Z45R21
G01Z50
X50Z60
G01Z80
G00Z2
G42G0X20//µ¶¾ß²¹³¥
G01Z10G98F400
G03X30Z30.125R24.351
G02X40Z45R21
G01Z50
X50Z60
G00G40X100Z0
T0202
G00X80Z-2
G71U5R1//ÖáÏò´Ö³µÑ*»·
G71P100Q8U0.5W-0.5F500
N100G00Z-2X10
G01Z10
X20Z15
G03X40Z30R25
G02X60Z45R35
G01Z60
N8X75Z80
G70P100Q8F580//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0202
G00X70Z-2
G72W3.5R0.6//¾¶Ïò´Ö³µÑ*»·
G72P33Q34U0.5W-1F450
N33G00Z70
G01X65
X55Z55
Z40
G02X30Z25R30
G03X10Z10R25
N34G1Z0
G70P33Q34F780//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0303
G00X80Z2
G73U10W10R4//·â±ÕÇÐÏ÷Ñ*»·
G73U0W0P35Q36F500
N35G00X30Z0
G01Z15
G02X50Z30R30
G02X30Z45R30
G01Z50
G03X60Z70R35
G01X70Z80
N36Z100
G70P35Q36F800//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0404
G00X80Z-2
G00G42U-25
G01W10F150
U05W10
G03U-10W20R20
G01W15
U20W20
U8
G00G40W-75
G0X80Z-2
G74R3//ÖáÏòÇв۶àÖØÑ*»·
G74X60Z50P5Q5R1F300
G74R3
G74U-50W60P5Q5R1F300
G75R3//¾¶ÏòÇв۶àÖØÑ*»·
G75X60Z50P5Q5R1F300
G75R3
G75U-50W60P5Q5R1F300
G00X100Z0
/G04P60000;
T0101
G00X-80Z-2
G94X0Z0F400//¾¶ÏòÇÐÏ÷Ñ*»·
X-70Z30
X-60
U30
U35
X-70R5
X-60
U30W30
U35W35
G90X-70Z100F600//ÖáÏòÇÐÏ÷Ñ*»·
X-65
X-60
U25
R5.5
U30W70
G00X-20
G92X-70Z40F2J3K3//ÂÝÎÆÇÐÏ÷Ñ*»·
X-68L2
X-66L1R5
X-64
G0X-80Z2
G0X-60
G32Z40F3J3K3
G0Z2
G32Z40F3J3K3
G0Z2
G34Z30F1J3K3R0.1
G0X60Z2
G34Z30F1J3K3R0.1
G0X60Z2
G76P011060Q0.3R0.2
G76X-40Z30F3P2Q0.5
G76P011060Q0.3R0.2
G76X-40Z30F3P2Q0.5R3
G00X20
G01Z10G98F400
G02X-30Z30.125R24.351
G03X-40Z45R21
G01Z50
X-50Z60
G00X100Z20
G0X-20
G01Z10G98F800
G02X-30Z30.125R24.351
G03X-40Z45R21
G01Z50
X-50Z60
G01Z80
G00X100Z0
T0202
G00X-80Z-2
G71U5R1//ÖáÏò´Ö³µÑ*»·
G71P70Q80U-0.5W-0.5F900
N70G00Z-2X-10
G01Z10
X-20Z15
G03X-40Z30R25
G02X-60Z45R35
G01Z60
N80X-75Z80
G70P70Q80F850//¾«¼Ó¹¤Ñ*»·
G00G40X80Z0
T0202
G00X-70Z-2
G72W3.2R1//¾¶Ïò´Ö³µÑ*»·
G72P110Q120U-0.5W-1F650
N110G00Z70
G01X-65
X-55Z55
Z40
G02X-30Z25R30
G03X-10Z10R25
N120G1Z0
G70P110Q120F680//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0303
G00X-80Z2
G73U8W8R4//·â±ÕÇÐÏ÷Ñ*»·
G73U0W0P130Q140F500
N130G00X-30Z0
G01Z15
G03X-50Z30R30F800
G03X-30Z45R30
G01Z50
G02X-60Z70R35
G01X-70Z80
N140Z100
G70P130Q140F900//¾«¼Ó¹¤Ñ*»·
G00X100Z0
T0404
G00X-50Z-2
G00G42U25
G01W10F150
U-5W10
G03U10W20R20
G01W15
U-20W20
U-8
G00G40W-75
G00X80Z80
G0X-80Z-2
G74R3//ÖáÏòÇв۶àÖØÑ*»·
G74X-60Z50P5Q5R1F300
G74R3
G74U50W60P5Q5R1F300
G75R3//¾¶ÏòÇв۶àÖØÑ*»·
G75X-60Z50P5Q5R1F300
G75R3
G75U50W60P5Q5R1F300
M5
M99
%
 
I actually tried last night to replace the time delay with an M00.
Apparently the bar feeder can call a cycle start/cancel the M00 because when using that line the bar feeder will do its thing and return to the retract position and the lathe will then continue the program.
Hello dennis,
If that's what happens with the use of M00, it could be that M00 is calling a Macro Program. With most controls, Macro Program can be called with the Macro Call G Code, or via Custom G and M codes by registering a a number, that corresponds to the Custom G or M Code being created, in a parameter that corresponds to a particular Program Number.

With Fanuc and many other controls, there are some G and M codes that can't be used as Custom Macro G and M call codes; M00 is one of them. It would be a good idea to establish for sure what goes on with the Bar Feeder and M00. Does the Bar Feeder have the functionality to programmatically press the Cycle Start Button, or does M00 actually call a Macro Program.

You could perhaps find this out by writing a small program that includes M00 and with the Bar Feeder turned off, see if the program restarts after a pause when M00 is executed.

M00 (Program Compulsory Stop) serves a special purpose in a program; it unconditionally halts the program and waits for the operator to press the Cycle Start Button to restart the program. Some uses, but not limited to, are stopping the program after the first operation so that the part can be reversed in the chuck for the second operation. Stopping the program for an important feature to be measured before the program can proceeds.

If M00 has been used to call a Macro Program, this important feature of unconditional halt of the program has been taken away and is very poor form, in my opinion, if that's the case.

Regards,

Bill
 
Hi Bill

Thank you for the indepth explanation.

I just tried a short program:
G54 G00 Z150
M00
G00 Z10
M99

With the bar feeder turned off, and the M00 did exactly what its supposed to and i had to press cycle start for it to continue. So i would guess that the bar feeder is somehow capable of "pressing" cycle start after it completes a feeding cycle.
And it only starts a feeding cycle if the bar feeder is on, set to "Auto" and sees an open chuck.
 
Hi Bill

Thank you for the indepth explanation.

I just tried a short program:
G54 G00 Z150
M00
G00 Z10
M99

With the bar feeder turned off, and the M00 did exactly what its supposed to and i had to press cycle start for it to continue. So i would guess that the bar feeder is somehow capable of "pressing" cycle start after it completes a feeding cycle.
And it only starts a feeding cycle if the bar feeder is on, set to "Auto" and sees an open chuck.
Hello Dennis,
Most Bar Feeders that are capable of more than just pushing, are controlled via a PLC. Its customary for a hard copy, or a digital copy of the PLC Ladder to be supplied with the device. If you have this, its possible to see the sequence of events and if there are any variables, such as timers, that can be changed to make the Bar Feeder function more to your liking.

Regards,

Bill
 








 
Back
Top