Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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 !
-
Config/GenConfig/ Off center to the right ,center of page.
Use Key Clicks
(;-) TP
-
thanks TP,
is it suppose to be checked ? it's not.
-
Must be broken then, if checked you get key clicks if not you should not get anything.
Just a thought, (;-) TP
-
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
-
thanks TP,
i am talking about the reset button also. but i use the window
sound for other programs.
-
did a run-a-round.
disabled exclaimation in win sound.
hope this gets fix in newer vesion.
Thanks TP
-
also,is there a way to disable the "Are You Sure?"
exit message in mach3 ?
Thanks
-
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
-
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
-
where's this manual ?
-
Select SUPPORT then scroll down to DOCUMENTATION.
RICH
-
forgive me for being a little dunce, but support in what program/forum ?
Thanks RICH
-
Does this help ? http://www.machsupport.com/documentation.php
Tweakie.
-
ok...ok..... forgive me for being a lot dunce :)
-
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
-
RUT ROW, what have we unleashed (;-)
(;-) TP
-
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
-
this is how mach3 starts.
-
Hallo Kenneth,
what text did you set to your label?
Klaus
-
Kenneth try a new label and call it MDI When Mach3 changes state of the G20/21 it will show Inches, MM
(;-) TP
-
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
-
the user label ? UserLabel1
Hallo Kenneth,
what text did you set to your label?
Klaus
-
set the text you want to have displayed in the property dialog.
(http://)
Klaus
-
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.
-
a better picture
Metric = UserLabel1
12.000 = user input dro
Convert = button
led = user led
Lit is MM = stand label
-
also...is there a way to change/enlarge the font on buttons(without enlarging the button) ?
ie. Convert above
-
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
-
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
-
Hi Kenneth,
no, you must use the initialization text, either Inch or metrics.
Klaus
-
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
-
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
-
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.
-
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
-
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
-
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
-
just write inch or metric in a file? ext type ?
don't know ho wto get last state.
-
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
-
i don't have a file/folder OldState. do i make a folder ?
make a file ? file ext ?
-
the file OldState will be created automatically.
Klaus
-
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.
-
oh...btw.
it did make the folder
-
Kenneth you do realize that none of the modal values are persistant on shutdown/startup.
Just a thought, (;-) TP
-
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
-
NOW it is possible to SET the values you want on Startup ,You do that in the initialization string as Klaus suggested.
(;-) TP
-
think that's what he's trying to get me to understand.
having a "LONG" Monday !
Thanks TP
-
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
-
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
-
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