Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Kenneth on April 01, 2013, 02:33:05 PM

Title: Disable Sound
Post by: Kenneth on April 01, 2013, 02:33:05 PM
is there a way to disable sound in mach3 Version R3.043.062 ?
tired of the hum/click noise i get when i click buttons or open a
new set file.
Thanks !
Title: Re: Disable Sound
Post by: BR549 on April 01, 2013, 02:47:55 PM
Config/GenConfig/  Off center to the right ,center of page.

Use Key Clicks

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 01, 2013, 02:50:30 PM
thanks TP,
is it suppose to be checked ? it's not.
Title: Re: Disable Sound
Post by: BR549 on April 01, 2013, 05:58:57 PM
Must be broken then, if checked you get key clicks if not you should not get anything.

Just a thought, (;-) TP
Title: Re: Disable Sound
Post by: BR549 on April 01, 2013, 06:13:15 PM
IF you are talking about the sounds like IF you press RESET those are windows sounds just hit the MUTE button on your volume control.

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 02, 2013, 05:55:25 AM
thanks TP,
i am talking about the reset button also. but i use the window
sound for other programs.
Title: Re: Disable Sound
Post by: Kenneth on April 02, 2013, 06:54:27 AM
did a run-a-round.
disabled exclaimation in win sound.
hope this gets fix in newer vesion.
Thanks TP
Title: Re: Disable Sound
Post by: Kenneth on April 02, 2013, 07:56:43 AM
also,is there a way to disable the "Are You Sure?"
exit message in mach3  ?
Thanks
Title: Re: Disable Sound
Post by: Kenneth on April 02, 2013, 11:38:42 AM
what about another "Error" label. trying to use to get
send massage different area then current area of the label
and don't want to send error messages.
Thanks
Title: Re: Disable Sound
Post by: BR549 on April 02, 2013, 10:11:40 PM
Kenneth ALL you do to mute the sound is click on the windows sound icon on the RH lower toolbar then push the mute button. Then when you want sound just uncheck the mute button.

You can place a user label anywhere you want and send messages to it. Check the Mach Customising manual for details.

(;-)TP
Title: Re: Disable Sound
Post by: Kenneth on April 03, 2013, 05:44:45 AM
where's this manual ?
Title: Re: Disable Sound
Post by: RICH on April 03, 2013, 05:50:08 AM
Select SUPPORT then scroll down to DOCUMENTATION.
RICH
Title: Re: Disable Sound
Post by: Kenneth on April 03, 2013, 05:53:19 AM
forgive me for being a little dunce, but support in what program/forum ?
Thanks RICH
Title: Re: Disable Sound
Post by: Tweakie.CNC on April 03, 2013, 05:59:38 AM
Does this help ?  http://www.machsupport.com/documentation.php

Tweakie.
Title: Re: Disable Sound
Post by: Kenneth on April 03, 2013, 06:02:22 AM
ok...ok..... forgive me for being a lot dunce :)
Title: Re: Disable Sound
Post by: Kenneth on April 03, 2013, 09:38:25 AM
juat a inch/mm converter. Mach3 and MachScreen ROCK !
Thanks ALL !


You can place a user label anywhere you want and send messages to it. Check the Mach Customising manual for details.

(;-)TP

Title: Re: Disable Sound
Post by: BR549 on April 03, 2013, 09:50:50 AM
RUT ROW, what have we unleashed (;-)

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 04, 2013, 06:26:26 AM
now, when i start mach3 the message Inch/Metric is not shown.
is there a way to have it show last state when restarting mach3 ?
Thanks
Title: Re: Disable Sound
Post by: Kenneth on April 04, 2013, 07:48:19 AM
this is how mach3 starts.
Title: Re: Disable Sound
Post by: Klaus1311 on April 04, 2013, 11:54:28 AM
Hallo Kenneth,

what text did you set to your label?



Klaus
Title: Re: Disable Sound
Post by: BR549 on April 04, 2013, 12:03:58 PM
Kenneth try a new label and call it MDI  When Mach3 changes state of the G20/21 it will show Inches, MM

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 04, 2013, 12:22:07 PM
i know, wanted to not have those in this label.
is there a UserMDI1 ? :)

Kenneth try a new label and call it MDI  When Mach3 changes state of the G20/21 it will show Inches, MM

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 04, 2013, 12:23:27 PM
the user label ?  UserLabel1

Hallo Kenneth,

what text did you set to your label?



Klaus
Title: Re: Disable Sound
Post by: Klaus1311 on April 04, 2013, 03:04:59 PM
set the text you want to have displayed in the property dialog.

(http://)


Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 08, 2013, 05:42:11 AM
if i use Inch and not UserLabel1, it will just be a label.
i want it to change as i click the Convert button.
unless i don't understand which lael you mean.
Title: Re: Disable Sound
Post by: Kenneth on April 08, 2013, 06:14:45 AM
a better picture

Metric =  UserLabel1
12.000 = user input dro
Convert = button
led = user led
Lit is MM = stand label
Title: Re: Disable Sound
Post by: Kenneth on April 08, 2013, 06:51:54 AM
also...is there a way to change/enlarge the font on buttons(without enlarging the button) ?
ie. Convert above
Title: Re: Disable Sound
Post by: Klaus1311 on April 08, 2013, 12:08:15 PM
Hi Kenneth,

write a macro containing:

SetUserLabel(nr, "text")

where text would be the default (Inch / metric).
Put that macro in the General Logic configuration  Initialization String field.


Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 08, 2013, 12:12:19 PM
i have this....
but do you mean to write SetUserLabel(1,"Inch/Metric") ?
and it will pick between the two words ?

If GetUserLED(1012) Then
SetUserDRO(1010 , GetUserDRO(1010) / 25.400)
SetUserLabel(1,"Inch")  'displays Inch
SetUserLED(1012,0)
Else
SetUserDRO(1010 , GetUserDRO(1010) * 25.400)
SetUserLabel(1,"Metric")   'displays Metric
SetUserLED(1012,1)
End If
End
Title: Re: Disable Sound
Post by: Klaus1311 on April 08, 2013, 01:58:06 PM
Hi Kenneth,

no, you must use the initialization text, either Inch or metrics.




Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 08, 2013, 02:10:50 PM
i'm completely lost as to what you asked of me :)
so i'm back to my orginal question. i CAN"T have the words
Inch/Metric be displayed when mach3 starts ?

also, any way to change font size without changing button's size ?

now, when i start mach3 the message Inch/Metric is not shown.
is there a way to have it show last state when restarting mach3 ?
Thanks

Title: Re: Disable Sound
Post by: Klaus1311 on April 09, 2013, 06:07:13 AM
Hi Kenneth,

as I've pointed out in an earlier answer, write a macro with that content:

SetUserLabel(nr, "text")

nr is label number
text is either Metrics, or Inch, depending what you want as default text when the screen set is opened.

name that macro m1010.m1s e.g.
add that macro to Config -> General Config -> Initializing String line without the trailing ".m1s"
When Mach3 is not in emergency mode, this text will be displayed, the first time the screen set is opened.


re font size:
if I remember right, there where some discussions about font size. Please use the search function to get more information about that.


Klaus

Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 06:17:59 AM
Thanks Klaus,
understand what you mean now.
but that will set it to what ever is in the general setting.
NOT the last state when closed. if i set(in General) it to
inch but the last state before close is metric. then it will open
as inch and the dro will me metric. hope this explains better.
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 06:57:11 AM
think i need something like below. working on it....

If GetUserDRO(1010) And GetUserLED(1012) = 1 Then
SetUserLabel(1,"Inch")
SetUserLED(1012,0)
Else
SetUserLabel(1,"Metric")
SetUserLED(1012,1)
End If
End   
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 07:08:55 AM
i've got this to do what i wanted. when mach3 opens, label is metric
if dro is metric( i know, dro doesn't know it :) ) and inch if dro is inch.
Thanks Klaus !

If GetUserDRO(1010) And GetUserLED(1012) = 0 Then
SetUserLabel(1,"Inch")
SetUserLED(1012,0)
Else
SetUserLabel(1,"Metric")
SetUserLED(1012,1)
End If
End     
Title: Re: Disable Sound
Post by: Klaus1311 on April 09, 2013, 09:27:49 AM
Hi Kenneth,

if you want to remember the last state, you could write the actual state into a file. Every time you start Mach3 you read the last state from the file and set your label accordingly. The reading could be done in the macro we named m1010.m1s.


Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 10:11:56 AM
just write inch or metric in a file? ext type ?
don't know ho wto get last state.
Title: Re: Disable Sound
Post by: Klaus1311 on April 09, 2013, 12:53:46 PM
Hi Kenneth,

it's hard to give you the correct code, since I don't know what function codes you have assigned to your controls. Please insert the following code into your code
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Inch"

  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Metric"

  Close #1


as shown in the sample.


If Get userLED(1010) = 1 Then
  Set UserLabel(1, "Inch")
  Set UserLED(1012 , 1)
  Set UserLED(1010 , 0)
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Inch"
Else
  Set UserLabel(1, "Metric")
  Set UserLED(1012 , 0)
  Set UserLED(1010 , 1)
  Open "C:\Mach3\OldState" For output As #1
  Write #1, "Metric"
End If
Close #1



and use this code for your macro m1010.m1s:



Sub init_units
On Error GoTo file_not_found
Open "C:\Mach3\OldState" For Input As #1
Input #1, unit
Close #1

If (StrComp(unit, "Inch") = 0) Then
  setuserlabel(1, unit)
elseif (StrComp(unit, "Metric") = 0) Then
  setuserlabel(1, unit)
Else
  setuserlabel(1, "default")
End If
exit sub
file_not_found:
  setuserlabel(1, "default")
End Sub

please replace the label text "Default" by Inch or metric, what ever you need.



Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 01:19:58 PM
i don't have a file/folder OldState. do i make a folder ?
make a file ?   file ext ?
Title: Re: Disable Sound
Post by: Klaus1311 on April 09, 2013, 01:26:36 PM
the file OldState will be created automatically.

Klaus
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 02:08:25 PM
cool...
i have all that but getting error "file\path access error"
so i'm assuming i don't have the file in the correct folder.
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 02:24:07 PM
oh...btw.
it did make the folder
Title: Re: Disable Sound
Post by: BR549 on April 09, 2013, 02:25:26 PM
Kenneth you do realize that none of the modal values are persistant on shutdown/startup.

Just a thought, (;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 02:29:10 PM
ok......so it's NOT possible to have the label show last state
on shut down and start up ?   ok, Thanks

i'll move on
Title: Re: Disable Sound
Post by: BR549 on April 09, 2013, 02:44:22 PM
NOW it is possible to SET the values you want on Startup ,You do that in the initialization string as Klaus suggested.

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 09, 2013, 02:48:04 PM
think that's what he's trying to get me to understand.
having a "LONG" Monday !
Thanks TP
Title: Re: Disable Sound
Post by: BR549 on April 09, 2013, 07:42:54 PM
Not a problem We can go at it as long as you need to help you understand. Can you explain what it is that you want to do . Simple terms (;-)

(;-) TP
Title: Re: Disable Sound
Post by: Kenneth on April 10, 2013, 05:40:22 AM
in the pic i have user dro(1010). below standard button then the userlabel1.
the button has the below script. i type a number in the dro and click convert.
the label then changes to Inch or Metric. just a simple inch/metric converter.
when i close mach3 and later open, the userlabel1 is not shown. i would like it to
show the last state it was in when i last close mach3.

If GetUserDRO(1010) And GetUserLED(1012) = 0 Then
SetUserLabel(1,"Inch")
SetUserLED(1012,0)
Else
SetUserLabel(1,"Metric")
SetUserLED(1012,1)
End If
End   
Title: Re: Disable Sound
Post by: Kenneth on April 10, 2013, 05:56:50 AM
the above gives that error.had to go back to what i had.
this is the code...

If GetUserLED(1012) Then
SetUserDRO(1010 , GetUserDRO(1010) / 25.400)
SetUserLabel(1,"Inch")  'displays Inch
SetUserLED(1012,0)
Else
SetUserDRO(1010 , GetUserDRO(1010) * 25.400)
SetUserLabel(1,"Metric")   'displays Metric
SetUserLED(1012,1)
End If