Welcome, Guest. Please login or register.
Did you miss your activation email?
July 23, 2014, 06:18:03 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
  Show Posts
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
441  Mach Discussion / VB and the development of wizards / E-stop VB script on: June 06, 2006, 05:24:37 AM
How do you trigger an event from the message ticker or the "active" on/off state of the emergency function(Estop).

I'd like to call on some type of event to trigger a "wave file script getter" for the active on/off state of the E-Stop.

If some one could help with the code then we can incorporate a wave file function to the estop. Grin


Here is the basic function code to call on a wave sound placed on a button:

Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long


    sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1


Here is the code to place on the "Display" button(This is a two state button with two diffrent state sounds!)

value = GetParam("Boundry")
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

If  value = 1 Then
'SetButtonText " Job "
SetParam "Boundry" , 0
 sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1
 Else
SetParam "Boundry" , 1
'SetButtonText "Machine"
sndPlaySound "C:\WINDOWS\MEDIA\tada.wav", &H1
End If

  Currently I haven't found the code to trigger a wave sound for the E-Stop, need some help

442  Mach Discussion / Mach Screens / Attaching wave file to button on: June 06, 2006, 05:20:17 AM
I thought I'd post this here for the screen designers.

If you'd like to attach a wave file to a single state or multiple state button use the code provided.

1. In screen designer you'll change your button to "VB",
2. then in Mach 3 you'll apply the button comand and the wave file code.
3. All you have to do is change the directory of your wave files or the directory in the code.
*Example:(sndPlaySound "C:\WINDOWS\MEDIA\tada.wav", &H1)

Here is the basic function code to call on a wave sound placed on a button:

Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long


    sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1



Here is the code to place on the "Display" button(This is a two state button with two diffrent state sounds!)

value = GetParam("Boundry")
Public Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" _
    (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long

If  value = 1 Then
'SetButtonText " Job "
SetParam "Boundry" , 0
 sndPlaySound "C:\WINDOWS\MEDIA\ding.wav", &H1
 Else
SetParam "Boundry" , 1
'SetButtonText "Machine"
sndPlaySound "C:\WINDOWS\MEDIA\tada.wav", &H1
End If


 Angry Currently I haven't found the code to trigger a wave sound for the E-Stop, need some help Grin

443  Mach Discussion / General Mach Discussion / Adding a wave file on: June 05, 2006, 02:45:41 AM
Was wondering if any one has added there own sounds to Mach 3 and how it can be done.

I'd like to add a sound for the:
Emergency active,
Jog mode on/off,
X,Y,Z zeroing and moving sound indicator
Limit switch active

Looked in a few place for information, but couldn't find any Cry.
444  Support / Post Processors / Re: ArtCam on: June 02, 2006, 03:10:07 AM
Which vertion of Artcam are you using?
Here you can see that Artcam 8.1 has a post processor for Mach 2 that will work as well with Mach 3.

http://forum.artcam.com/viewtopic.php?t=2331&highlight=mach+3
445  Mach Discussion / Mach Screens / Re: Any version after 1.90.026 the screen won't auto enlarge both ways?? on: June 02, 2006, 02:41:37 AM
Very cool screen!
Darc,
Your screen stretches to fit in the last version of Mach 3 but not in the newest version?

Double check to see if there are any hidden buttons any where.
446  Mach Discussion / Mach Screens / Re: Gauges on: May 26, 2006, 01:30:33 AM
Thank you for the encouragement and feedback. I hope that very soon I'll have these gauges up and running.

Wayne,
That's a great idea!!!
Recreate "Real World" machine interface layout for Mach 3/4.
If someone was trained using a Hass, Bridgeport, Heidenhain and Mazatrol they would have the same interface when using Mach 3. I like the way you think Cool

When Art comes out with the new -Mach 4 Developers Edition Extreme-(good name for it Grin), I hope to create interfaces that look and feel like real world interfaces(with added bonuses).

I run a cnc machine daily and have been around machines since I was a kid, sweeping up the metal shavings at my fathers work. I'll continue to fumble around with new ideas to make the CNC machining environment safer and more user friendly. I might stumble onto some good idea's along the way Smiley
447  Mach Discussion / Works in progress / Re: Screenset for my touch screen on: May 22, 2006, 03:07:53 AM
Very functional! I like the added touch of sparkles on the Drod's.
One thing I came across is the "Load last wizard", it will open to a blank screen if you hadn't loaded a wizard, but I believe this is a Mach 3 problem
448  Mach Discussion / Mach Screens / Re: Changes to Mach appearance features. on: May 22, 2006, 02:17:53 AM
Very cool!!,
Benny could you post these topic's on the Screen forum, I keep missing out on all this information! I mostly look at the screen forum and rarely come to the General topic's.
Can't wait to see your screens that incorporate these new functions Grin
449  Mach Discussion / Mach Screens / Re: Problem starting Screen4 on: May 22, 2006, 01:42:37 AM
Donn,
I have a working version, the current version that is available for downloading is not working properly.
Benny please verify, because the available Screen for download is not working.

Donn I attached a working version for you.
450  Mach Discussion / Mach Screens / Re: Gauges on: May 22, 2006, 01:08:33 AM
Benny,
I'm a little slow, Ynneb is Benny backwards Roll Eyes
I'm very much looking forward to these new developments, the new interface will be amazing Shocked
Thanks for pushing for these new enhancements.
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!