Hello Guest it is April 29, 2024, 01:04:11 PM

Author Topic: Mach3 to Mach4 Macro  (Read 310 times)

0 Members and 1 Guest are viewing this topic.

Mach3 to Mach4 Macro
« on: January 15, 2024, 01:11:33 AM »
Looking to upgrade to Mach4 from Mach3. I use VB in macros which are ran through the GCode. With that I can trigger on / off IP based devices like water coolant pumps and dust collector and so on with the GCode. This allows me to modify the post processor to add the Macro i want along with various pauses after the actions for remote IP control of things in my shop with our relays and crazy wiring. This is by far the best feature of any CNC software I have seen. Does Mach4 support something similar to basically run a HTTP post via GCode macro?

Here is one of my macros the turns on my coolant pump.

M2112.m1s

dim xHttp: Set xHttp = createobject("MSXML2.ServerXMLHTTP")

xHttp.Open "GET", "http://192.168.54.219:8091/JSON?request=controldevicebyvalue&ref=1202&value=100", False
xHttp.setOption 2, 13056
xHttp.Send