Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: 2000mph on September 07, 2014, 02:51:22 AM

Title: LED for Polar/Cartesian Coordinates
Post by: 2000mph on September 07, 2014, 02:51:22 AM
I am decent with making my own screensets using MachScreen, but I can't seem to figure out how I might accomplish this.

I have recently been using polar coordinates in my G-Code. I find it would be handy to have an LED to indicate if Polar (G16) or Cartesian (G15) coordinates is active. I looked through the OEM codes for LEDs and didn't find anything that showed an already existing LED.

So my thinking is that I can look for "G15" or "G16" in the "Mode" label using VB script, but it doesn't look like the label is available to VB like a DRO is.

Does anyone have any ideas for how to test for a specific G-Code to be used to set an LED?