Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 06:48:06 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Machine coordinate by a VB fonction
Pages: 1   Go Down
Print
Author Topic: Machine coordinate by a VB fonction  (Read 1121 times)
0 Members and 1 Guest are viewing this topic.
Freddy Bastard
Active Member

Offline Offline

Posts: 5


View Profile
« on: August 21, 2009, 10:19:19 AM »

Do we have a way to switch from Machine coordinate to Program Coordinate with a VB fonction?
Logged
Chaoticone
South Carolina, US
Administrator
*
Offline Offline

Posts: 3,598


Precision Chaos



View Profile WWW
« Reply #1 on: August 21, 2009, 01:50:15 PM »

Yup,

Code "G53"

Brett
Logged

Grin If you could see the things I have in my head, you would be laughing too. Grin
www.precisionchaos1.com
My guard dog is not what you need to worry about!
Freddy Bastard
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #2 on: August 24, 2009, 10: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
Guest
« Reply #3 on: August 24, 2009, 10: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
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #4 on: August 24, 2009, 10: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
Guest
« Reply #5 on: August 24, 2009, 03:38:11 PM »

(;-)

" There is also an LED that indicates when Mach is in machine coord mode."

(;-) TP
Logged
Freddy Bastard
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #6 on: August 25, 2009, 07: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
Active Member

Offline Offline

Posts: 5


View Profile
« Reply #7 on: August 25, 2009, 07: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
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!