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, 08:19:49 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
Double check when measuring tool
Pages:
1
Go Down
« previous
next »
Author
Topic: Double check when measuring tool (Read 263 times)
0 Members and 1 Guest are viewing this topic.
swanner
Active Member
Offline
Posts: 57
Double check when measuring tool
«
on:
September 29, 2011, 12:31:06 AM »
I have my router setup to measure tools from a fixed switch. I'm trying to modify it to where it touches twice, compares the values, and let's me know if it's out more than .002 off, then I want a message box to pop up with the difference in it. I'm getting a syntax error, probably something simple...
M15 new.m1s
(1.11 KB - downloaded 16 times.)
M15 old.m1s
(0.8 KB - downloaded 9 times.)
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: Double check when measuring tool
«
Reply #1 on:
September 29, 2011, 04:22:40 AM »
Not great at VB but think most of the syntax errors are because you have = > where likely it should just be > with no =
Also you have miissed out " at the end of the following
MsgBox("Check switch - " & Zpos - ZposC & "measurement error)
Should be
MsgBox("Check switch - " & Zpos - ZposC & "measurement error")
Then there is the CodeSingle, dont know what that is but Mach is not happy so presume it should just be Code rather than CodeSingle
I think you will likely have to put
While IsMoving()
Wend
after each movement command also.
Hood
Logged
Sargon
Active Member
Offline
Posts: 99
Re: Double check when measuring tool
«
Reply #2 on:
September 29, 2011, 04:58:40 AM »
For "greater than or equal to" the correct syntax is
">="
not
"= >"
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: Double check when measuring tool
«
Reply #3 on:
September 29, 2011, 09:36:58 AM »
Also has CodeSingle been released yet?
You also missed a couple of closing " around a statement or two.
(;-) TP
Logged
swanner
Active Member
Offline
Posts: 57
Re: Double check when measuring tool
«
Reply #4 on:
September 29, 2011, 12:45:17 PM »
Thanks guys! Works great now. The 'CodeSingle'...that's just the way the software came setup. I'm running an Industry Control MCB-1 and it uses a modified version of Mach, under the version it says R4.000.000 Test...anyway, I've attached the finished file with corrections if anyone else is interested in it.
M15 final.m1s
(1.11 KB - downloaded 10 times.)
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: Double check when measuring tool
«
Reply #5 on:
September 29, 2011, 01:10:29 PM »
YEP that won't run on a standard Mach ver.
(;-) TP
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...