Hello
Guest
it is
April 23, 2024, 10:03:25 PM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
VB and the development of wizards
/
Machine coordinate by a VB fonction
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Machine coordinate by a VB fonction (Read 5322 times)
0 Members and 1 Guest are viewing this topic.
Freddy Bastard
5
Machine coordinate by a VB fonction
«
on:
August 21, 2009, 11:19:19 AM »
Do we have a way to switch from
Machine coordinate
to
Program Coordinate
with a VB fonction?
Logged
Chaoticone
5,624
Precision Chaos
Re: Machine coordinate by a VB fonction
«
Reply #1 on:
August 21, 2009, 02:50:15 PM »
Yup,
Code "G53"
Brett
Logged
If you could see the things I have in my head, you would be laughing too.
My guard dog is not what you need to worry about!
Freddy Bastard
5
Re: Machine coordinate by a VB fonction
«
Reply #2 on:
August 24, 2009, 11:13:27 AM »
Ok thank's
Here's another question... In a VB script, how can we know if the machine coords button is active? Some kind of protection.
ie: if machine coords is active, stop the routine and show a alarm.
Thank's
Logged
vmax549
Re: Machine coordinate by a VB fonction
«
Reply #3 on:
August 24, 2009, 11:21:10 AM »
(;-) THere are 3-4 ways to switch to MACHINE coord depending on exactly what you need. There is also an LED that indicates when Mach is in machine coord mode.
They are listed in the cutomizing mach2 manual(;-)
(;-) TP
Logged
Freddy Bastard
5
Re: Machine coordinate by a VB fonction
«
Reply #4 on:
August 24, 2009, 11:26:25 AM »
I don't really want to switch to machine coordinates. I want a warning if I try to run a VB script (ie: z probing) and machine coordinates is active.
Fred
Logged
vmax549
Re: Machine coordinate by a VB fonction
«
Reply #5 on:
August 24, 2009, 04:38:11 PM »
(;-)
" There is also an LED that indicates when Mach is in machine coord mode."
(;-) TP
Logged
Freddy Bastard
5
Re: Machine coordinate by a VB fonction
«
Reply #6 on:
August 25, 2009, 08:34:07 AM »
Dim Test as Boolean
Code "G80G90G50"
Thank's, here's my solution for my problem. I added this portion of code to all my probing macros...
Test = GetOEMLed(16)
If Test then
Message "***DONT PROBE IN MACHINE COORDS"
Exit Sub
Else
End if
Logged
Freddy Bastard
5
Re: Machine coordinate by a VB fonction
«
Reply #7 on:
August 25, 2009, 08:43:03 AM »
oups sorry...
Dim Test as Boolean
Code "G80G90G50"
Test = GetOEMLed(16)
If Test then
Message "***DONT PROBE IN MACHINE COORDS"
Exit Sub
Else
End if
Logged
Print
Pages:
1
Go Up
« previous
next »