Machsupport Forum

Mach Discussion => Brains Development => Topic started by: giannis121 on June 14, 2012, 04:20:26 AM

Title: Write a value to a DRO problem...
Post by: giannis121 on June 14, 2012, 04:20:26 AM
I want to write a zero value (0) to a user DRO,
only when a userLED is ON.

I have tried many combinations but i still cannot make this brain.
Any ideas will help.

Regards,
giannis
Title: Re: Write a value to a DRO problem...
Post by: giannis121 on June 14, 2012, 05:34:04 AM
I finally made it with macropump just checking the led:

if getuserled(1030) then
   setuserdro(1150,0)
end if

I dont think it can be done with brain.

But anyway mach had the way!