Hello Guest it is June 23, 2024, 05:55:06 PM

Author Topic: THCOn () what am I doing wrong?  (Read 2238 times)

0 Members and 1 Guest are viewing this topic.

Offline Greolt

*
  •  956 956
THCOn () what am I doing wrong?
« on: March 13, 2016, 06:59:11 PM »
Trying to make a simple macro to turn THC on.

Mach3 Version 3.x  Macro Programmers Reference Manual has "THCOn ()" and "THCOff ()" as function calls.

THCOff () works fine

THCOn () comes up with a syntax error

I must be doing something really dumb but I can't for the life of me figure out what it is.

Version R3.043.062

Offline Greolt

*
  •  956 956
Re: THCOn () what am I doing wrong?
« Reply #1 on: March 13, 2016, 07:01:58 PM »
I should add that all I want it for is to set THC on by default.   Default upon startup is off.

Simple macro to include in the initialisation string to set THC on.

There may even be a better way to have THC to default to ON.

Offline Greolt

*
  •  956 956
Re: THCOn () what am I doing wrong?
« Reply #2 on: March 13, 2016, 07:13:35 PM »
OK I found some info.

I did search before posting but had no luck.

Then I tried again and found an old post on this issue.

THCOn () does in fact not work even though it is documented in the above manual.

However startTHC does work

And it is also in the manual.  Should have looked a little harder.  :)

EDIT:  that leaves the implied question above.

Is there another or better way to have THC default to the ON condition?
« Last Edit: March 13, 2016, 07:18:51 PM by Greolt »