Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: Overloaded on May 14, 2009, 05:30:35 PM

Title: Can you make a DRO Read only ?
Post by: Overloaded on May 14, 2009, 05:30:35 PM
 :)
I put this counter DRO and reset button on my TURN screen.
It increments UP 1 per Cycle Start button press. (Actually an external button to INPUT 1).
Can the DRO be made so that it cannot be selected and a have a value entered by an operator ?
Thanks,
RC
Title: Re: Can you make a DRO Read only ?
Post by: ger21 on May 14, 2009, 07:10:32 PM
This came up a few weeks ago and there were a few workarounds posted. Can't find it though. :(

I seem to recall something about placing a transparent button on top of it so it can't be accessed? And a way to use a label to display the DRO contents without actually using the DRO.
Title: Re: Can you make a DRO Read only ?
Post by: Overloaded on May 14, 2009, 07:20:00 PM
I'll dig around a bit more with the search utility.
Thanks Ger.
Another question.
       What can I do to make the counter see the on screen RUN button press as well as seeing the INPUT 1 from the external button ?
Thanks,
RC

Here is the Brain:
Title: Re: Can you make a DRO Read only ?
Post by: ger21 on May 14, 2009, 07:30:40 PM
Change the run button to some VB script and use an OEM trigger for the external button? Then either one should do the same thing?
Title: Re: Can you make a DRO Read only ?
Post by: Overloaded on May 14, 2009, 08:08:27 PM
Changed the Brain input to OEM TRIGGER#1. Works well with the external button.
Cant get the proper script in the VB'd RUN button to cycle the counter DRO.
Can you give me an example of the script/syntax ?
Thanks,
RC
Title: Re: Can you make a DRO Read only ?
Post by: Kenneth on February 03, 2014, 07:46:39 AM
this may help.

' counts M1001  resets M1002
DRO = GetUserDRO(1011)
SetUserDRO(1011 , (DRO + 1))
While IsMoving()
Wend