Machsupport Forum
		Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started 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
 
- 
				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.
- 
				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:
- 
				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?
			
- 
				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
- 
				this may help.
 
 ' counts M1001  resets M1002
 DRO = GetUserDRO(1011)
 SetUserDRO(1011 , (DRO + 1))
 While IsMoving()
 Wend