Hello Guest it is April 27, 2024, 01:18:27 AM

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 - zealous

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 »
101
Mach Screens / Re: Help.about screen designing
« on: June 26, 2009, 11:52:38 PM »
I am not sure what you need but I think you are asking how to make a "Toggle" button.

You only have a "OnPress" in Screen 4, you would need to use Flash to use a "Onrelease" and the other 6 button states.

In Screen 4 you would past VB code on a button to make it toggle, maybe something like this would help you:


Code: [Select]
If GetUserLED(1000) = 0 Then

SetUserLed(1000,1)
MsgBox "Turn it on"

Else

SetUserLed(1000,0)
MsgBox "Turn it Off"

End If

102
Mach Screens / Re: Help me
« on: June 25, 2009, 03:47:09 PM »
Grab the UserDRO's you have on your screen, then call on a Gcode command either adding to the current position using G90 or using incremental G91.

This is the idea, but you might need to check a number of things depending on your application to make sure the G0 call will be safe ;) and/or if you need to return the machine to a G90.

G91 Example:

Code: [Select]
amount_to_move =  GetUserDro(1000)
Code "G91 G0 Z" & amount_to_move

G90 Example:

Code: [Select]
amount_to_move = GetOEMDRO(802) + GetUserDro(1000)
Code "G90 G0 Z" & amount_to_move

Please first understand your machine and Gcode before running any code on your machine ;)

103
VB and the development of wizards / Re: turret tool macro
« on: June 25, 2009, 03:37:25 PM »
Could you try replacing
Code: [Select]
code "g4p1"   with
Code: [Select]
sleep(1000) and let me know if that fixes it.

104
Mach Screens / Re: Help me
« on: June 23, 2009, 04:43:44 PM »
Not sure what you are asking, but if you are having trouble "Jogging" the machine you will need to included a "Jog on/off" button.

105
VB and the development of wizards / Re: VB Button: Pause and Raise Z
« on: June 20, 2009, 06:33:36 PM »
Thank you for pointing that out...that is my bad!

Code: [Select]
'FeedHold
DoOEMButton(1001)

'What mode are we in
mode = GetOEMLed(49)

'Wait for machine to stop
While IsMoving()
Sleep 100
Wend

'Sent command you can use G1 as well if need
Code "G90 G0 Z2"

'If we have changed from abs to inc mode then change back
If mode = true Then
   code "G91"
End If

106
VB and the development of wizards / Re: VB Button: Pause and Raise Z
« on: June 19, 2009, 01:02:15 PM »
Yes in ABS it will go down to 2 inchs...so if your machine is at 2.000 and you run the script the machine will just sit there ;)
If you are at 3.000 it will come down/up (depending on your machine)  to 2.000.

If you want to increament in ABS you can:

Code: [Select]
DoOEMButton(1001)

'Wait for machine to stop
While IsMoving()
Sleep 100
Wend

'Get current Z
current_Z = GetOEMDRO(802)

'Add 2' to z
inc_z = current_Z + 2

'Sent command you can use G1 as well if need
Code "G0 Z" & inc_z

107
VB and the development of wizards / Re: VB Button: Pause and Raise Z
« on: June 19, 2009, 11:57:49 AM »
Hi Anthony,
When you feedhold the machine the amount of time it takes to come to a stop will depend on your motor tuning Accel/Velocity.
You can either change this if your motors permit or use the "stop" (1003) rather than a "FeedHold" (1001)

108
Mach Screens / Re: Font size problem
« on: June 19, 2009, 01:12:09 AM »
Yes Mach can do all of those and much more :)
Take a look at:
http://www.machsupport.com/MachCustomizeWiki/index.php?title=Main_Page

This will list some of the functions available and how to set/retrieve them.

109
Mach Screens / Re: Font size problem
« on: June 18, 2009, 10:42:22 AM »
Try Right click on your desktop/Properties/Advance
Change your Font size to "Normal"

110
Flash Screens / Re: Can't get Mach Nation to work
« on: June 04, 2009, 01:39:53 PM »
Sorry I didn see your message!
The flash update will come out around the same time as Mach4 with a number of components/elements.

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 »