Hello Guest it is May 13, 2025, 01:08:04 PM

Author Topic: THCon() ???  (Read 9088 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
THCon() ???
« on: March 19, 2012, 05:56:58 PM »
Can anyone confirm if the CB function THCon() works for you.  Testing here Mach3 does not recognize it . THCoff() works.  V.043.022

Thanks,(;-) TP
Re: THCon() ???
« Reply #1 on: March 19, 2012, 06:23:39 PM »
What is THCon ?
if i step through a simple check program

dim a as double
a=THCoff()
a=a
seems that i get a = 0

a=THCon
a=a
seems that i get a = 26
 
a=THCon()
compiler error

a=THCon(0)
unrecoverable error

Offline BR549

*
  •  6,965 6,965
Re: THCon() ???
« Reply #2 on: March 19, 2012, 06:51:11 PM »
It is a CB call to Turn on the THC control. Mach does not even recognize the thcon() But it is in the book along with THCoff().

THCon()     ' Turns on the THC
THCoff()    'Turns Off the THC

That should turn the THC on then off IF you step through the code BUT you get a syntax error on the THCon()

(;-) TP

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • www.razordance.co.uk
Re: THCon() ???
« Reply #3 on: March 27, 2012, 06:25:55 AM »
Hi Terry

THCOn broken here too (same V as you). However startTHC and endTHC calls appear to work.

Cheers

Ian

Offline BR549

*
  •  6,965 6,965
Re: THCon() ???
« Reply #4 on: March 27, 2012, 11:33:05 AM »
Thanks Ian, I guess I am getting old I never thought about a duplicate command being available. I must have had my blinders on(;-)

I was working on a ARC slowdown routine for plasma where IF you had an arc less than ********* Radius AND arc angle Greater than XXdeg then THCoff() and reduce Feedrate by XX%
Then when the arc is complete THCon() and resume cutting.

Shee Cam can do the Gcodeing for it using a MCODE to signal the slowdown BUT running a MCODE there is a delay that causes the Machine to dwell while cutting leaving a divot(;-)

So I did a routine with a macropump aand a routine with a brain to see IF I could get rid of the dwell.

(;-) TP
« Last Edit: March 27, 2012, 11:40:03 AM by BR549 »

Offline Davek0974

*
  •  2,606 2,606
Re: THCon() ???
« Reply #5 on: April 10, 2014, 05:54:38 AM »
Do any of these functions work, not very clear from the thread :)

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • www.razordance.co.uk
Re: THCon() ???
« Reply #6 on: April 10, 2014, 07:00:02 AM »
Do any of these functions work, not very clear from the thread :)

Really?

THCOn broken here too (same V as you). However startTHC and endTHC calls appear to work.

Offline Davek0974

*
  •  2,606 2,606
Re: THCon() ???
« Reply #7 on: April 10, 2014, 07:29:33 AM »
Ok, Ok, i'm having a bad day :)


thanks