Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 28, 2012, 11:52:34 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
General Mach Discussion
SWITCH OFF AXIS
Pages:
1
Go Down
« previous
next »
Author
Topic: SWITCH OFF AXIS (Read 139 times)
0 Members and 1 Guest are viewing this topic.
GRAYHIL
Active Member
Online
Posts: 59
SWITCH OFF AXIS
«
on:
January 30, 2012, 03:33:51 PM »
Apart from disconnecting an axis motor from the board, is it possible to to switch an axis off
via G code
to go from 3 axis milling to 2 axis turning?
ie xyz milling to xz turning to avoid unintentional movement in the y unused axis which would be locked/clamped.
Graham
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: SWITCH OFF AXIS
«
Reply #1 on:
January 30, 2012, 04:08:53 PM »
You can disable the axis from VB so you could have a macro in your code to do it
Hood
Logged
ger21
Global Moderator
Offline
Posts: 2,620
Re: SWITCH OFF AXIS
«
Reply #2 on:
January 30, 2012, 04:20:13 PM »
Can you just set up two profiles?
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
GRAYHIL
Active Member
Online
Posts: 59
Re: SWITCH OFF AXIS
«
Reply #3 on:
January 31, 2012, 04:54:31 AM »
I understand the two profiles reply, but what is VB AND MACRO is it a kind of subcode within the G code?
Graham
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: SWITCH OFF AXIS
«
Reply #4 on:
January 31, 2012, 02:34:19 PM »
DoOemButton(251) is the oem code to toggle the axis inhibit for the Y axis so you could add that to a text file and save as something like m1111.m1s and save it to your profiles macro folder. Any time you call m1111 from MDI or code it will toggle the Y axis inhibit, ie if its inhibited it will turn it back on, if its already on it will inhibit.
You could write two macros and have them looking at the Y axis inhibit LED and that way you could make sure that when you want to inhibit it will and turn back on it will. For example if you saved the following as m1111.m1s it would inhibit the Y even if its already inhibited, ie it wouldnt toggle it back on.
If Not GetOemLED(87) Then
DoOemButton(251)
End If
If you saved the following as m1112.m1s then it would turn the axis back on even if it is already on, ie it wouldnt toggle it to inhibit it.
If GetOemLED(87) Then
DoOemButton(251)
End If
So you could call m1111 when you want to inhibit and m1112 when you want to enable and you would be safe in the knowledge that you wouldnt inadvertently toggle to the opposite of what you want.
Hood
Logged
GRAYHIL
Active Member
Online
Posts: 59
Re: SWITCH OFF AXIS
«
Reply #5 on:
January 31, 2012, 02:47:52 PM »
Thanks Hood
This is a new to language/code to me. Will experiment tomorrow if all goes well and I do not have to go on a shopping trip
Graham
Logged
Pages:
1
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...