Machsupport Forum

Mach Discussion => Brains Development => Topic started by: rkowash on August 07, 2008, 07:01:01 PM

Title: Using a DRO in a Brain
Post by: rkowash on August 07, 2008, 07:01:01 PM
I am trying to use a Y axis DRO to trigger clamps to release.  What I would like is to watch the DRO, and when it is between 10 and 20 inches from Z, to release an air cylinder (over ModIO).  I have control of the cylinder in a different brain.

I set up a brain that uses the Y axis DRO, then a >10, then a <20, then a NOP, then the modio address.  When I watch it and move the axis, the DRO value doesn't change.

Any thoughts?
Title: Re: Using a DRO in a Brain
Post by: poppabear on August 07, 2008, 08:18:04 PM
Yea, simple solution.

an example brain is attached.

but

YDro>compare(>10)
                               >AND these two drocompares>Output(x)
YDro>compare(<20)

See attached Brain,

Scott
Title: Re: Using a DRO in a Brain
Post by: rkowash on August 08, 2008, 09:51:13 AM
Thanks Scott, I figured out that I need to enable the brain if I actually want it to work.

Roger
Title: Re: Using a DRO in a Brain
Post by: aluplastvz on April 26, 2014, 04:14:34 PM
please how to write a macro and brain that will compare the current position of the x and y axes that use the bending machine with a default position that if the current position in the range of + - 50mm of default at the time when I have INPUT 1 one active program stops and activates OUTPUT 1
greeting
Title: Re: Using a DRO in a Brain
Post by: maxs3210 on June 02, 2014, 08:30:38 AM
Post this to educate people who want to really study it.