Hello Guest it is March 28, 2024, 06:13:18 AM

Author Topic: Stuck on brain  (Read 12416 times)

0 Members and 1 Guest are viewing this topic.

Stuck on brain
« on: November 26, 2010, 10:54:52 AM »
I know I can turn things on and off based on conditional logic, but what I need to do is set a userDRO = to an OEMDRO if OEMLED(36) or torch lit input is active.  In an if statement it would look like this...

If "Torch Lit" then
   USERDRO(2000) = XPOSITION
End If


Another possible way to do this would instead of continously updating the USERDRO(2000), just set it to XPOSITION the moment "Torch Lit" is lost.

In the brain editor I see an input for "torch lit" and I see the DRO's, just not sure how to connect them all in a brain.   

TIA

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Stuck on brain
« Reply #1 on: November 26, 2010, 06:01:36 PM »
Give this a try, X Axis value should be written to the user DRO (1234) when OEM LED36 is on.
Hood
Re: Stuck on brain
« Reply #2 on: November 26, 2010, 06:31:52 PM »
That's what I've been trying to do.  I just can't seem to figure out how to set up that logic in a brain.  I can do it in a macro pump, but I like the low overhead of the brains.  Things like this always seem to run smoother in brains.
Re: Stuck on brain
« Reply #3 on: November 26, 2010, 06:33:15 PM »
Sorry Hood.  I didn't see the brain file you attached.  I'll give it a try.  Thanks very much.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Stuck on brain
« Reply #4 on: November 26, 2010, 06:39:13 PM »
Should work fine, if not let me know.
Hood
Re: Stuck on brain
« Reply #5 on: November 26, 2010, 06:51:50 PM »
That's pretty close.  What's happening is that the user DRO is changing to 0 when the LED goes out.  What I'm after is for the user DRO just stop recording when the LED goes out so I know the exact point at which arc OK was lost.  You gave me a good starting point.  Is there a good manual on brains somewhere?  I haven't been able to find anything other than a doc in the user section about setting up brains with modbus.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Stuck on brain
« Reply #6 on: November 26, 2010, 06:57:40 PM »
Ah OK never thought of that, will mess a bit and see if I can figure something out.
Regards the brains manual, not that I know of, I just mess around and view the Brain as  I operate the triggers and see what happens. I have attached the SRO brain I use which might give you an idea about Modbus.
Hood

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Stuck on brain
« Reply #7 on: November 26, 2010, 07:32:35 PM »
Try this
Hood
Re: Stuck on brain
« Reply #8 on: November 26, 2010, 07:53:08 PM »
Hmm...Interesting...I noticed this earlier when I was playing around with the AND and OR statements.  When it increments the user DRO, it only increments the whole number, not the decimal.  IE:  Everything between 3 and 3.9999 on the oem dro shows as 3.0000 on the user dro.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Stuck on brain
« Reply #9 on: November 26, 2010, 07:57:39 PM »
Never noticed that as the DRO I was writing to on the screen was one I was messing about for my toolchange macro so had no decimals in it.
Dont know what can be done there, will have a mess about and see if I can figure something out.
Hood