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, 02:25:13 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
VB and the development of wizards
I need someone to varify my code please.........
Pages:
1
Go Down
« previous
next »
Author
Topic: I need someone to varify my code please......... (Read 1371 times)
0 Members and 2 Guests are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
I need someone to varify my code please.........
«
on:
November 04, 2008, 04:29:28 PM »
Greetings,
I think I am having a "Brain Fart", can you look over my code below and tell me if it works right on your machine.........??
I am trying to do one of those solid Aluminum Touch off plates for a router and I am not sure if I am doing it right.
I am taking tool #1, and Zeroing it on the Table itself, then I am putting the metal plate as the tool length setter plate.
The probe down macro I have works fine for getting the Plate thickness which it sets in UDRO2202.
I then fill in the Feed rate and the Probing distance in the below user dros...
So, can some one look to see if it will set properly the Tool Hiegth Offset into the Tool Table library??
Once I have the Tool Ht. guadge setter ht., done, I again reprobe with my longest tool as tool#1, then move on to tool#2 etc.
Using this scenerio here, could you check my code and see if it is doing Tool hiegth offsets properly into the Tool library?
'===========Start Tool Plate hiegth touch off code===============
ToolNum = GetDRO (24)
SetVar(2002,0)
If ToolNum <>0 Then
Feed = GetUserDRO(2200)
ProbeDepth = GetUserDRO(2201)
Code "G31 Z-" & ProbeDepth & " F" & Feed
ZShift = GetOEMDRO (2202) 'guage ht.
ZOffset = GetVar(2002) 'Z Probe var
AxisPos = GetOEMDRO(85) 'Machine Z
ToolOffset = (AxisPos - ZOffset) -ZShift
Call setOEMDRO(42, ToolOffset) 'set Tool offset
End if
'===========End Tool Plate hiegth touch off code===============
'Scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
zarzul
Active Member
Offline
Posts: 273
Wyoming, USA
Re: I need someone to varify my code please.........
«
Reply #1 on:
November 05, 2008, 01:13:09 PM »
Scott,
If nobody has, I will give it a try tonight.
Arnie
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: I need someone to varify my code please.........
«
Reply #2 on:
November 05, 2008, 02:04:43 PM »
Thank you for your time Zarzul,
Graham discussed it with me via skype last night, BUT, I would LOVE for your to test it on your machine!!
Please let me know what you get.
scott
«
Last Edit: December 15, 2008, 02:59:04 PM by Graham Waterworth
»
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
vmax549
Guest
Re: I need someone to varify my code please.........
«
Reply #3 on:
December 14, 2008, 08:14:14 PM »
Scott what is is NOT doing correct? I see several things that will cause a problem using the g31 in a macro.
(;-) TP
«
Last Edit: December 14, 2008, 08:17:12 PM by vmax549
»
Logged
Graham Waterworth
Administrator
Online
Posts: 1,665
West Yorkshire, England
Re: I need someone to varify my code please.........
«
Reply #4 on:
December 15, 2008, 02:58:42 PM »
I think I have him sorted, thanks for looking though.
Graham
Logged
G-Code is on the cutting edge
Autovalues Engineering, CNC machining specialists, Bradford, England
vmax549
Guest
Re: I need someone to varify my code please.........
«
Reply #5 on:
December 15, 2008, 04:59:20 PM »
GUYS beware(;-) the G31 is acting really squirrelly with V.020 IT does not play well with the While Ismoving() Wend
THe g31 without the Whle Ismoving AND updating parameters on the fly has problems also. Mach seems to run out of time to get it all done and will skip code on you. (does here ) I had to resort to using, after the G31, a G04 P0 to make mach pause and do all the math before resuming(art's trick)
Also using Variables G1 Z-(#100) will not work , Mach does not recognise the - as a directional indicator with a variable. You have to solve the var to a negative number. (;-(
Just a thought, (;-) TP
«
Last Edit: December 15, 2008, 05:06:05 PM by vmax549
»
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...