UCCNC, ARC OK and Dwell

If you have a question about the software please ask it here.

Re: UCCNC, ARC OK and Dwell

Postby xnaron » Fri Aug 14, 2020 8:55 pm

I am hoping someone from cncdrive support can tell me what is going on here.

I tried giving it a small movement. This code is very similar to the line code which does work with ARC OK. This code does not wait for ARC OK either. It should as it is the same as the line code but with only a 0.0001 movement. I still say there is some timing issue going on here inside of UCCNC. It's like this all happens before UCCNC starts listening for an ARC OK.

Code: Select all
N0010 (Filename: stepper mount - rob edit 16g v8 DRILLS.tap)
N0020 (Post processor: UCCNC_M1031.scpost)
N0030 (Date: 13/08/2020)
N0040 G20 (Units: Inches)
N0050 G17 G40 G49 G50 G64 G69
N0060 G80 G90 G94
N0070 M205 (THCON)
N0080 F1
N0090 S1
N0100 (Part: stepper mount beefy v5)
N0110 M06 T103  (finecut 16g steel)
N0120 G64 Q0.023
N0130 (Operation: Drill, DRILL, T103: finecut 16g steel, 0 in Deep)
N0140 G00 X1.1675 Y1.4567 Z1.5000
N0150 M1031 (TouchOff)
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G04 P0.400
N0190 G01 X1.1675 Y1.4567 Z0.0600 F150.0
N0195 X1.1676
N0200 M05 (Torch Off)
N0210 G04 P0.200
N0220 G00 Z1.5000
N0230 X2.3880
N0240 M1031 (TouchOff)
N0250 G00 Z0.1500
N0260 M03 (Torch Fire)
N0270 G04 P0.400
N0280 G01 X2.3880 Y1.4567 Z0.0600 F150.0
N0285 X2.3881
N0290 M05 (Torch Off)
N0300 G04 P0.200
N0310 G00 Z1.5000
N0320 X1.1675 Y0.2362
N0330 M1031 (TouchOff)
N0340 G00 Z0.1500
N0350 M03 (Torch Fire)
N0360 G04 P0.400
N0370 G01 X1.1675 Y0.2362 Z0.0600 F150.0
N0375 X1.1676
N0380 M05 (Torch Off)
N0390 G04 P0.200
N0400 G00 Z1.5000
N0410 X2.3880
N0420 M1031 (TouchOff)
N0430 G00 Z0.1500
N0440 M03 (Torch Fire)
N0450 G04 P0.400
N0460 G01 X2.3880 Y0.2362 Z0.0600 F150.0
N0465 X2.3881
N0470 M05 (Torch Off)
N0480 G04 P0.200
N0490 G00 Z1.5000
N0500 G0 X0.0 Y0.0
N0510 M05 M30



Line code. This code does work and waits for ARC OK. The only difference is that it takes longer to run

Code: Select all
N0010 (Filename: line.tap)
N0020 (Post processor: UCCNC_M1031.scpost)
N0030 (Date: 14/08/2020)
N0040 G20 (Units: Inches)
N0050 G17 G40 G49 G50 G64 G69
N0060 G80 G90 G94
N0070 M205 (THCON)
N0080 F1
N0090 S1
N0100 (Part: line)
N0110 M06 T103  (finecut 16g steel)
N0120 G64 Q0.023
N0130 (Operation: No Offset, LAYER_1, T103: finecut 16g steel)
N0140 G00 X0.0000 Y0.0000 Z1.5000
N0150 M1031 (TouchOff)
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G04 P0.400
N0190 G01 X0.0000 Y0.0000 Z0.0600 F150.0
N0200 X2.7165
N0210 M05 (Torch Off)
N0220 G04 P0.200
N0230 G00 Z1.5000
N0240 G0 X0.0 Y0.0
N0250 M05 M30
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC, ARC OK and Dwell

Postby laki » Sat Aug 15, 2020 2:32 pm

View this topic
viewtopic.php?f=16&t=2575&start=10

In order to function properly, the movement along the X or Y axis must be immediately after m3
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCCNC, ARC OK and Dwell

Postby xnaron » Sat Aug 15, 2020 2:43 pm

laki wrote:View this topic
viewtopic.php?f=16&t=2575&start=10

In order to function properly, the movement along the X or Y axis must be immediately after m3


This does not make sense to have X or Y movement directly after an M3. You do not want to have an X/Y move before the pierce delay is complete. I did test the attached gcode that does have a small X movement added after the DROP TO CUT HEIGHT but it does not wait work the ARC OK. I'd like to hear from cncdrive on this.

The flow should be:

SET POSITION TO PIERCE HEIGHT
TORCH ON
WAIT FOR ARC OK
PIERCE DELAY DWELL
DROP TO CUT HEIGHT
START CUT MOVES
TORCH OFF

aka

This which is tested and will wait for ARC OK (cuts a line)
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G04 P0.400
N0190 G01 X0.0000 Y0.0000 Z0.0600 F150.0
N0200 X2.7165
N0210 M05 (Torch Off)

This which is effectively the same code but only moves a small amount on X and does not wait for the ARC OK
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G04 P0.400
N0190 G01 X1.1675 Y1.4567 Z0.0600 F150.0
N0195 X1.1676
N0200 M05 (Torch Off)


Code: Select all
N0010 (Filename: stepper mount - rob edit 16g v8 DRILLS.tap)
N0020 (Post processor: UCCNC_M1031.scpost)
N0030 (Date: 13/08/2020)
N0040 G20 (Units: Inches)
N0050 G17 G40 G49 G50 G64 G69
N0060 G80 G90 G94
N0070 M205 (THCON)
N0080 F1
N0090 S1
N0100 (Part: stepper mount beefy v5)
N0110 M06 T103  (finecut 16g steel)
N0120 G64 Q0.023
N0130 (Operation: Drill, DRILL, T103: finecut 16g steel, 0 in Deep)
N0140 G00 X1.1675 Y1.4567 Z1.5000
N0150 M1031 (TouchOff)
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G04 P0.400
N0190 G01 X1.1675 Y1.4567 Z0.0600 F150.0
N0195 X1.1676
N0200 M05 (Torch Off)
N0210 G04 P0.200
N0220 G00 Z1.5000
N0230 X2.3880
N0240 M1031 (TouchOff)
N0250 G00 Z0.1500
N0260 M03 (Torch Fire)
N0270 G04 P0.400
N0280 G01 X2.3880 Y1.4567 Z0.0600 F150.0
N0285 X2.3881
N0290 M05 (Torch Off)
N0300 G04 P0.200
N0310 G00 Z1.5000
N0320 X1.1675 Y0.2362
N0330 M1031 (TouchOff)
N0340 G00 Z0.1500
N0350 M03 (Torch Fire)
N0360 G04 P0.400
N0370 G01 X1.1675 Y0.2362 Z0.0600 F150.0
N0375 X1.1676
N0380 M05 (Torch Off)
N0390 G04 P0.200
N0400 G00 Z1.5000
N0410 X2.3880
N0420 M1031 (TouchOff)
N0430 G00 Z0.1500
N0440 M03 (Torch Fire)
N0450 G04 P0.400
N0460 G01 X2.3880 Y0.2362 Z0.0600 F150.0
N0465 X2.3881
N0470 M05 (Torch Off)
N0480 G04 P0.200
N0490 G00 Z1.5000
N0500 G0 X0.0 Y0.0
N0510 M05 M30
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC, ARC OK and Dwell

Postby laki » Sat Aug 15, 2020 4:20 pm

I did not write that the program should work this way.
This is just a workaround.
https://streamable.com/3ism7u
It is a plasma cut and a movement of 0.1mm (or less) will not be visible on the final product.
I agree that the workflow you suggested is correct.
The lack of an ARC OK signal when THC is on should prevent further execution of the G-code.
This applies to the PIERCE DELAY DWELL and any movement of the machine.
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCCNC, ARC OK and Dwell

Postby xnaron » Sat Aug 15, 2020 4:41 pm

OK thanks for the clarification and I appreciate you pointing out the work around. I will have to see if there is some way I can get this into the gcode automatically with the sheetcam post processor I am using.
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC, ARC OK and Dwell

Postby laki » Sat Aug 15, 2020 8:22 pm

I don't know which post processor you use.
I use Mach3 THC with scriber.
If this can help you
In the post processor search
function OnPenDown ()
post.Text ("\ n M03 \ n")
Mach3 THC.png

after this add the "movements" you need
Mach3 THC_DRILL.png
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCCNC, ARC OK and Dwell

Postby xnaron » Sat Aug 15, 2020 9:52 pm

Thanks. I can definitely work that into my post processor. I will try it and post results. Are you running in mm? I am thinking because I am running in inches I need to tweak 0.1 to 0.001.
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC, ARC OK and Dwell

Postby laki » Sat Aug 15, 2020 10:26 pm

Yes, what I am sending refers to mm.
POSTP.png
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCCNC, ARC OK and Dwell

Postby laki » Sat Aug 15, 2020 10:38 pm

I suggest you use this modified postprocessor only for drilling operations.
In SheetCam you have the option to use multiple post processors.
You can add another postprocessor here:
PluginOP.png

You can use it by pressing this button:
SecPost.png
laki
 
Posts: 111
Joined: Thu Jul 19, 2018 12:46 am
Location: Belgrade, Serbia

Re: UCCNC, ARC OK and Dwell

Postby xnaron » Sat Aug 15, 2020 10:56 pm

Can you check something for me. Import this dxf file into sheetcam and then use the drilling op in sheetcam. You will probably need to increase the max hole size in the drilling operation to 3.5mm. Then run it through the post processor and take a look at the results. I made changes like you suggest and the results look fine on a cutting op but on a drilling op they are not right. I tried it with the stable and latest dev version of sheetcam. I am curious if you get similar results with the drill op.

Code: Select all
N0010 (Filename: 4holes.tap)
N0020 (Post processor: UCCNC_M1031.scpost)
N0030 (Date: 15/08/2020)
N0040 G20 (Units: Inches)
N0050 G17 G40 G49 G50 G64 G69
N0060 G80 G90 G94
N0070 M205 (THCON)
N0080 F1
N0090 S1
N0100 (Part: 4holes)
N0110 M06 T14  (T14: Plasma, 0.065 in kerf)
N0120 G64 Q0.033
N0130 (Operation: Drill, LAYER_1, T14: T14: Plasma, 0.065 in kerf, 0 in Deep)
N0140 G00 X0.0591 Y2.7719 Z1.5000
N0150 M1031 (TouchOff)
N0160 G00 Z0.1500
N0170 M03 (Torch Fire)
N0180 G01 X11811023643691953000000000000000000000.0000
N0190 G01 X11811023643691953000000000000000000000.0000
N0200 G01 X0.0591 Y2.7719 Z0.0600 F150.0
N0210 M05 (Torch Off)
N0220 G04 P0.500
N0230 G00 Z1.5000
N0240 X2.3198 Y2.8457
N0250 M1031 (TouchOff)
N0260 G00 Z0.1500
N0270 M03 (Torch Fire)
N0280 G01 X0.0591
N0290 G01 X0.0591
N0300 G01 X2.3198 Y2.8457 Z0.0600 F150.0
N0310 M05 (Torch Off)
N0320 G04 P0.500
N0330 G00 Z1.5000
N0340 X0.0775 Y0.1375
N0350 M1031 (TouchOff)
N0360 G00 Z0.1500
N0370 M03 (Torch Fire)
N0380 G01 X2.3198
N0390 G01 X2.3198
N0400 G01 X0.0775 Y0.1375 Z0.0600 F150.0
N0410 M05 (Torch Off)
N0420 G04 P0.500
N0430 G00 Z1.5000
N0440 X2.3936 Y0.0591
N0450 M1031 (TouchOff)
N0460 G00 Z0.1500
N0470 M03 (Torch Fire)
N0480 G01 X0.0775
N0490 G01 X0.0775
N0500 G01 X2.3936 Y0.0591 Z0.0600 F150.0
N0510 M05 (Torch Off)
N0520 G04 P0.500
N0530 G00 Z1.5000
N0540 G0 X0.0 Y0.0
N0550 M05 M30
Attachments
4holes.dxf.txt
(8.08 KiB) Downloaded 456 times
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

PreviousNext

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 19 guests