Hello Guest it is March 28, 2024, 01:24:08 PM

Author Topic: THC Codes upset corners???  (Read 23791 times)

0 Members and 1 Guest are viewing this topic.

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
THC Codes upset corners???
« on: April 03, 2014, 10:49:21 AM »
In preparation for fitting a THC unit, I thought I'd try adding the M101/M102 THC on/off codes to my sheetcam post.

I have a test job, a 50mm square that has 5mm loops on the corners to keep nice sharp corners, however with the THC M codes added, when I dry-run this code in Mach3 Plasma it runs to a corner, stops, cuts the loop, stops, cuts the next edge then repeats on all corners??

Is there a reason it does this or is Mach not set correctly, surely just adding THC on/off codes should not upset the smoothness of the code?

Without the codes it runs smoothly????
Re: THC Codes upset corners???
« Reply #1 on: April 03, 2014, 04:53:15 PM »
Try using G64 at the beginning of your code.

G64 = constant velocity

G61 = exact stop

Jeff

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: THC Codes upset corners???
« Reply #2 on: April 03, 2014, 04:55:27 PM »
what is in the m101/102 macros?
Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: THC Codes upset corners???
« Reply #3 on: April 04, 2014, 02:17:01 AM »
Try using G64 at the beginning of your code.

G64 = constant velocity

G61 = exact stop

Jeff

Neither of those codes appear in my G-code, I will add the G64

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: THC Codes upset corners???
« Reply #4 on: April 04, 2014, 02:17:37 AM »
what is in the m101/102 macros?
Hood

Good point, I presumed they were standard Mach macros?

I will have a look

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: THC Codes upset corners???
« Reply #5 on: April 04, 2014, 02:48:12 AM »
Macros over 100 are user macros so they are not standard.
Hood

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: THC Codes upset corners???
« Reply #6 on: April 04, 2014, 02:52:04 AM »
Ah, My bad. :)

Is there a "Proper way" to do THC on/off???

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: THC Codes upset corners???
« Reply #7 on: April 04, 2014, 03:44:44 AM »
Just checked and there are no M101/102 macros in the macros folder, would that explain the behaviour ??

How is this feature enabled??

Offline Davek0974

*
  •  2,606 2,606
    • View Profile
Re: THC Codes upset corners???
« Reply #8 on: April 04, 2014, 05:00:46 AM »
Just tried creating a couple of macros, 101 & 102, inside i just placed DoOEMButton(222) Or (223)

It makes no difference, the movement still pauses for probably 10-20ms then starts again at each direction change.

The G-code looks identical, just has M101/2 sprinkled about in it.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: THC Codes upset corners???
« Reply #9 on: April 04, 2014, 07:05:34 AM »
Having ANY m call will delay things, Mach needs to process the info and can not possibly continue at a  CV due to that.
Depending on what you are actually doing with the THC signal ( I dont know much abot plasma) you may be able to use m11/m10, with tem there should be no delay.

Hood