Sheetcam Mach3 und THC

General chat and non SheetCam related discussion
Post Reply
asd1234
Posts: 8
Joined: Mon Nov 14, 2022 1:38 pm

Sheetcam Mach3 und THC

Post by asd1234 »

Hallo

Ich kann leider kein Englich.

Habe das Problem das mir Mach3 fast immer stehen bleibt wenn THC beim Programmdurchlauf automatisch ausgeschaltet wird.
(einschalten funktioniert immer)
Egal ob bei Kreisen beim Anfahren beim wegfahren usw.

Zum Beispiel:
N0370 M102; Thc off (Beim Anfahren)
N0380 G02 X136.7015 Y41.8385 I-0.7546 J-1.7655 F1900.0

Zwischen N0370 und N0380 bleibt das Programm stehen.

Ohne THC läuft das Programm immer durch.



Mit folgenden Makros schalte ich THC ein und aus:


THC ein mit M101




Rem THC On
If GetOEMLED(24) = FALSE Then
DoOEMButton(123)
End If




THC aus mit M102



Rem THC Off
If GetOEMLED(24) = TRUE Then
DoOEMButton(123)
End If

Im Anhang mal der vollständige GCode


Was mache ich falsch?
Attachments
GCode lena.txt
(10.99 KiB) Downloaded 172 times
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Re: Sheetcam Mach3 und THC

Post by robertspark »

that is how THC works in mach3

it is a non synchronous macro, so when it is called motion must slow down, the macro is triggered, and then motion accelerates back up to the feedrate.
asd1234
Posts: 8
Joined: Mon Nov 14, 2022 1:38 pm

Re: Sheetcam Mach3 und THC

Post by asd1234 »

Hallo

Nach dem Makro M102 bleibt die Anlage die meiste Zeit
stehen und rührt sich dann nicht mehr.

Wenn ich das Programm ohne THC (ohne M101 und M102)
laufen lasse funktioniert es ohne Probleme.
asd1234
Posts: 8
Joined: Mon Nov 14, 2022 1:38 pm

Re: Sheetcam Mach3 und THC

Post by asd1234 »

Hi


Found the bug.
It was probably the THC controller (interference).
Now everything works as it should.
Also, I've got M10 and M11 working now made to run
(pokeys57cnc Mach3 and Plasmasens)

But I can't judge whether the M10 and M11 are really faster under my configuration
robertspark
Posts: 257
Joined: Thu Feb 26, 2015 12:11 am

Re: Sheetcam Mach3 und THC

Post by robertspark »

M10/m11 is not really faster, it's a different type of macro, it is a synchronous macro, so it does not stop motion, toggle and the continue with motion, it just triggers when the gcode being read sees it.

it needs to have a motion command DIRECTLY after it or it will not be seen
try
M10
G0 C1

and
M11
G0 C0

that way the macro (M10/m11) is always seen and enacted upon.

if you do
G1 X100 F50
M10
M5
M30

it won't be seen and enacted upon.

better to do
G1 X100 F50
M10
G0 C1
M50
M30

also M10 and M11 work the opposite way in mach3 to other softwares (such as uccnc). m11 = output ON and M10 = output OFF

check that pokeys ACTUALLY supports M10 and M11.... most motion controllers did not used to support it.
asd1234
Posts: 8
Joined: Mon Nov 14, 2022 1:38 pm

Re: Sheetcam Mach3 und THC

Post by asd1234 »

Hi

got it going
M10 and M11 works at pokeys57cnc
I use it to toggle THC on and off now.
I already had the one with the C axis and C0 inside. But it also works without.

I switch the output pin 45 with M10/M11. I connected pin 45 to pin 43 on the pokeys. Thus, when switching M10 / M11, I have a win signal on the input pin 43. I have assigned pin 43 to enabled 1. With enabled 1 I then switch on via Brain Thc.
Post Reply