Hello Guest it is March 29, 2024, 07:32:51 PM

Author Topic: User defined DROs in MACH4  (Read 2082 times)

0 Members and 1 Guest are viewing this topic.

Offline Julie

*
  •  18 18
    • View Profile
User defined DROs in MACH4
« 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.   :)
Re: User defined DROs in MACH4
« Reply #1 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.
Chad Byrd

Offline Julie

*
  •  18 18
    • View Profile
Re: User defined DROs in MACH4
« Reply #2 on: April 02, 2017, 01:44:28 AM »
Your reply has been helpful.
Great thanks.