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 27, 2012, 11:56:06 PM
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
Zeroing Z
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Zeroing Z (Read 392 times)
0 Members and 1 Guest are viewing this topic.
dfurlano
Active Member
Offline
Posts: 246
Zeroing Z
«
on:
June 30, 2011, 08:46:17 PM »
I want to go to the Z limit switch and then set G54 Z to zero.
It does not consistently work. If I run the macro twice it sets zero, just once it will not set zero.
I added the dwells figuring it needed time. Still does not work.
In desperation I post.
DoButton( 24 )
Code "G04 P2"
SetVar(5223,0)
Code "G04 P2"
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )
TIA,
Dan
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: Zeroing Z
«
Reply #1 on:
June 30, 2011, 09:43:31 PM »
The code"G4P2" dwell is NOT for a vb macro it is for a gcode file.
Use the While Ismoving() wend to separtate the functions AND keep them in time order.
DoButton( 24 )
WhileIsmoving()
Sleep(20)
Wend
SetVar(5223,0)
WhileIsmoving()
Sleep(20)
Wend
DoButton( 23 )
WhileIsmoving()
Sleep(20)
Wend
DoButton( 22 )
WhileIsmoving()
Sleep(20)
Wend
DoButton( 25 )
WhileIsmoving()
Sleep(20)
Wend
(;-) TP
Logged
dfurlano
Active Member
Offline
Posts: 246
Re: Zeroing Z
«
Reply #2 on:
June 30, 2011, 09:57:04 PM »
I thank you sir, I will try this in the morning.
I need to turn it off... sometimes you just need to turn it off.
Logged
dfurlano
Active Member
Offline
Posts: 246
Re: Zeroing Z
«
Reply #3 on:
July 01, 2011, 07:58:32 AM »
Still does not set G54 Z to zero.
Any ideas?
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: Zeroing Z
«
Reply #4 on:
July 01, 2011, 08:34:42 AM »
Maybe I am not understanding but instead of SetVar why not just DoOEMButton (1008), (1009) etc?
Hood
Logged
dfurlano
Active Member
Offline
Posts: 246
Re: Zeroing Z
«
Reply #5 on:
July 01, 2011, 08:39:34 AM »
I am sure I am the one that is confused. What does DoOEMButton actually do?
Again, I am only interested in setting the G54 Z to zero.
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: Zeroing Z
«
Reply #6 on:
July 01, 2011, 08:41:48 AM »
It will zero the work offset that you are currently in. If you will not be in G54 then you will need to call that before you do that OEM button.
Hood
Logged
dfurlano
Active Member
Offline
Posts: 246
Re: Zeroing Z
«
Reply #7 on:
July 01, 2011, 08:42:26 AM »
In the wiki it states that DoOEMButton 1010 zeros the Z.
I'm going to go try that now.
Thanks
Logged
Hood
Active Member
Offline
Posts: 17,366
Carnoustie, Scotland
Re: Zeroing Z
«
Reply #8 on:
July 01, 2011, 08:43:37 AM »
Yes, 1008 is X, 1009 is Y etc
Hood
Logged
dfurlano
Active Member
Offline
Posts: 246
Re: Zeroing Z
«
Reply #9 on:
July 01, 2011, 08:57:47 AM »
Worked!
Thanks, much appreciated!
Dan
Logged
Pages:
1
2
»
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...