UCCNC Dwell timer starts before ARC OK is received

If you think you've found a bug post it here.

UCCNC Dwell timer starts before ARC OK is received

Postby xnaron » Sat Aug 22, 2020 2:00 pm

Software:
- UCCNC 1.2113

Hardware:
- AXBB-E

Observed behavior:
- The dwell timer (pierce delay) starts and finishes before the ARC OK signal is triggered. This really manifests itself as a problem when doing a plasma drill op on thinner material with around 400ms pierce delay. The dwell timer expires before the torch even has a time to fire. However it also means that the pierce delay will be incorrect on all operations as the dwell timer starts before ARC OK is established.

Expected behavior:
- The dwell timer should only start once the ARC OK signal is triggered.

Evidence:
- see video evidence of the behavior https://www.youtube.com/watch?v=b8nmplTOTYM

Attached:
- Pro file for the machine

Gcode used in video:

Code: Select all
N0010 (Filename: outline.tap)
N0020 (Post processor: Plasma PriceCNC AVHC10 THC zFloat  2 Les With Pierce Delay- G31 ROB edit.scpost)
N0030 (Date: 19/08/2020)
N0040 G20 (Units: Inches)
N0050 G53 G90 G40
N0060 F1
N0070 S500
N0080 (Part: test)
N0090 (Process: Outside Offset, OUTLINE, T69: 85 amp 5/8" stainless steel)
N0100 M06 T69  (85 amp 5/8" stainless steel)
N0110 G00 X6.1755 Y6.1280 Z1.5000
N0120 F19.685
N0130 G31 Z -100
N0140 G92 Z0.0
N0150 G00 Z0.09
N0160 G92 Z0.0
N0170 Z0.1800
N0180 M03
N0190 G04 P2000
N0200 G01 X6.1755 Y6.1280 Z0.0600 F150.0
N0210 M211 (On arcs)
N0220 G03 X6.0475 Y6.0000 I0.0000 J-0.1280 F21.0
N0230 G01 Y5.9000
N0240 M212 (On arcs)
N0250 Y0.2000 F28.0
N0260 M211 (On arcs)
N0270 Y0.0000
N0280 G02 X6.0000 Y-0.0475 I-0.0475 J0.0000 F21.0
N0290 G01 X5.9000 F28.0
N0300 M212 (On arcs)
N0310 X0.2000
N0320 M211 (On arcs)
N0330 X0.0000
N0340 G02 X-0.0475 Y0.0000 I0.0000 J0.0475 F21.0
N0350 G01 Y0.1000 F28.0
N0360 M212 (On arcs)
N0370 Y5.8000
N0380 M211 (On arcs)
N0390 Y6.0000
N0400 G02 X0.0000 Y6.0475 I0.0475 J0.0000 F21.0
N0410 G01 X0.1000 F28.0
N0420 M212 (On arcs)
N0430 X5.8000
N0440 M211 (On arcs)
N0450 X6.0000
N0460 G03 X6.0960 Y6.1435 I0.0000 J0.0960 F21.0
N0470 M212 (On arcs)
N0480 M05
N0490 G04 P500
N0500 G00 Z1.5000
N0510 G0X0.0Y0.0
N0520 M05 M30
Attachments
Plasma.pro
(35.77 KiB) Downloaded 547 times
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC Dwell timer starts before ARC OK is received

Postby xnaron » Sun Aug 23, 2020 2:47 pm

I developed a work around for this with a macro that is run right before the pierce delay (set it in your post processor). The macro is dead simple and waits for the ARC OK led to become true and then exits. Initial test shows it functionally works. I am not sure if there is an appreciable delay added while it is waiting to detect the LED state change.

https://youtu.be/IlPplq0UAgw

int ArcOKInputLED = 71; // Port 2 pin 4

while (exec.GetLED(ArcOKInputLED) == false)
{
// Lets wait hear until we get ARC OK
}

// End and proceed to pierce delay

Code snippet showing placement

Code: Select all
N0150 M1031 (TouchOff)
N0160 G00 Z0.1800
N0170 M03 (Torch Fire)
N0180 M1032
N0190 G04 P2000
N0200 G01 X6.1755 Y6.1280 Z0.0600 F150.0
N0210 M211 (On arcs)
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC Dwell timer starts before ARC OK is received

Postby dezsoe » Mon Aug 24, 2020 8:41 am

You should change your macro to this:

Code: Select all
int ArcOKInputLED = 71; // Port 2 pin 4

while (!exec.GetLED(ArcOKInputLED) && !exec.Ismacrostopped())
{
  // Lets wait hear until we get ARC OK
  exec.Wait(10);
}

// End and proceed to pierce delay

The check for exec.Ismacrostopped() is to handle the Stop or Reset state, exec.Wait(10) makes a 10 ms delay is to give some time to other stuff to run.
dezsoe
 
Posts: 2093
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: UCCNC Dwell timer starts before ARC OK is received

Postby xnaron » Mon Aug 24, 2020 4:26 pm

Thank you. I will make those changes.


Code: Select all

int ArcOKInputLED = 71; // Port 2 pin 4

while (!exec.GetLED(ArcOKInputLED) && !exec.Ismacrostopped())
{
  // Lets wait here until we get ARC OK
  exec.Wait(10);
}

// End and proceed to pierce delay
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm

Re: UCCNC Dwell timer starts before ARC OK is received

Postby xnaron » Thu Sep 03, 2020 4:19 pm

Just a note for anyone that may use this and have the same pinout as me. I had a typo. The pin 4 port 2 maps to LED 72 not 71

int ArcOKInputLED = 71; // Port 2 pin 4 (wrong led mapping)

Should be

int ArcOKInputLED = 72; // Port 2 pin 4
xnaron
 
Posts: 25
Joined: Wed Jul 29, 2020 10:41 pm


Return to Report a bug

Who is online

Users browsing this forum: No registered users and 15 guests