Hello Guest it is March 28, 2024, 03:18:46 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Bodini

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »
1
Brains Development / Re: Can a brain trigger a wave file?
« on: March 30, 2015, 06:08:40 PM »
Nothing comes to mind.  I think that would be macropump territory. 

2
Once you get your Brain set up, you can easily see it in action.  In the Brain Control window, click the brain you want to see and then click ViewBrain.  It will show up in a new window.  When the logic is active, it will turn green; when not active, it will be blue and read like when you set it up.  This is a great way to figure out problems, as you can see how much of the brain is working properly by what has turned green.  That is a great feature, IMO.

-Nick

3
There is a how-to video somewhere on this site about brains. Like lots of things Mach, they are a bit quirky to set up, but once you get the hang of it, it's not hard.

I don't have the time right now to do a 100% step by step to tell you how (sorry, I'd like to, I just can't.)  So the below might be a bit cryptic, depending on what you know (but is not so intentionally)

Attached is a very simple brain that does this:

-Watches for Tool Change light
(when tool change light is lit)
-starts a 5 second timer
-turns on output 6
-turns off output 6 after 5 seconds.
(restarts next time tool change light is lit)

Of course, this is assuming that your alarm is on output 6.  To use this brain, put it in your mach3 brain folder.  Go to mach pull down menus> operator > brain control > reload all brains (it should now show up).  Highlight it and click Enable (DO NOT MISS THIS STEP).

I put it on output 6 for safety sake, as i am assuming that nothing important is on output 6.  BE CAREFUL.  You can change it to whatever output you want by opening the brain with Brain Editor.  Click on the timer module of the brain and click the green upside down T button to reterminate the lobe and set it to what you like.

I know this all sounds mystifying, but it really is the easiest way to go short of a macropump.

-Nick

4
VB and the development of wizards /
« on: March 28, 2015, 09:21:56 AM »
I do this and use Brains in Mach3.  Just have a Brain watch for the tool change LED and activate the output for your alarm when the tool change LED is active.  Seriously, its a 1 minute job.

5
With kudos to Bodini for the ides of reading out the values,

Phfft. Scott (poppabear) and Craig (ya-nvr-no) and bfr549 (Terry) have provided a lot more info on this stuff than I ever could.  I was just able to hone in on what you needed to hear this time. ;-)

-Nick

6
I poked at it a little here.
Code: [Select]
color = scr.GetProperty('led73','Color')
wx.wxMessageBox (color)

It reported back some numbers a string as I changed the Led. Red is 0, Purple is 32, Blue is 4. If these follow some convention, tell me about it. :)


A little further info:

Oops, it actually reported back color as a string.  That can make a difference, depending on what you want to do with it.

Things such as 'Value' (whether an led is on or off) is actually a number of 0 or 1.

There is always the "type" function in Lua to check.

Code: [Select]
color = scr.GetProperty('led73','Color')
colortype = type(color)
wx.wxMessageBox (colortype)

-Nick


7
I poked at it a little here.
Code: [Select]
color = scr.GetProperty('led73','Color')
wx.wxMessageBox (color)

It reported back some numbers as I changed the Led. Red is 0, Purple is 32, Blue is 4. If these follow some convention, tell me about it. :)



8
Mach4 General Discussion / Mach4 screen GRAPHICS -- makin' it Purdy
« on: March 10, 2015, 06:26:17 PM »
I'm not at a computer right now, by try (tostring('VALUE') on the value you want to pass.
Damn phone, damn Tapatalk... (tostring('VALUE')) is what I meant.

9
Mach4 General Discussion / Mach4 screen GRAPHICS -- makin' it Purdy
« on: March 10, 2015, 06:24:28 PM »
I'm not at a computer right now, by try (tostring('VALUE') on the value you want to pass.

10
Mach4 General Discussion / Re: Mach 4 Tool Auto Zero
« on: March 07, 2015, 07:42:35 PM »
2) Like in Mach3, it's up to the user to implement the Auto Zero. I'm not aware of anyone doing it with Mach4 yet.

Auto touch-off was the first thing I looked at in M4.  I tried converting over the script from the VB version in M3 to Lua in M4 but "IsMoving" does not work properly. I submitted the bug in the forum about 9 months ago I think, but it still didn't work when I checked a few days ago.  :-\

-Nick

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 »