Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Julie on March 30, 2017, 08:52:13 PM

Title: User defined DROs in MACH4
Post by: Julie on March 30, 2017, 08:52:13 PM
Hello,

I am a new in Mach4, am trying to create user defined DROs in Mach 4.
I had used that user defined LEDs and DROs were setup with values 1000 to 1254 in the OEM code field in MACH3.
How can I do user defined DROs setup in Mach4?

Thanks in advance.   :)
Title: Re: User defined DROs in MACH4
Post by: Cbyrdtopper on March 31, 2017, 10:57:08 AM
Hey Hyojung,
To setup LEDs and DROs you will use the Screen Editor and add whatever you like to your screen.  The attached picture will show how to Get and Set a screen DRO.  The lua script uses the "Name" field to find the screen property.  In the example picture, I have a button that will increment the Plung Feedrate DRO by 1.  So it gets the current value and adds one to it and then updates the DRO. 
I Have a macro that uses the LEDs, but I will have to find it.  From what I remember, you use the same "Get" and "Set" command, only it will be looking for a 1 or 0. 
Hope this helps.
Title: Re: User defined DROs in MACH4
Post by: Julie on April 02, 2017, 01:44:28 AM
Your reply has been helpful.
Great thanks.