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, 12:41:26 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
Linking DRO to program, program uses whatever is put in the DRO..
Pages:
1
Go Down
« previous
next »
Author
Topic: Linking DRO to program, program uses whatever is put in the DRO.. (Read 848 times)
0 Members and 2 Guests are viewing this topic.
Darc
Active Member
Offline
Posts: 177
Linking DRO to program, program uses whatever is put in the DRO..
«
on:
February 22, 2007, 06:15:31 AM »
I've got this topic in another of my posts, but thought it may get a few more looks in it's own topic.
I've searched the forums and looked in Mach3 but I can't seem to work out how to get a DRO and a button that runs a program to interact.
I think I'm close, I want to have a DRO that you can put a measurement into and when you press a button it will use this measurement in the program, this is what I have.
Create a DRO, I assigned it to DIAMETER OF CURRENT TOOL (which I think is OEM code 105), should I select DIAMETER OF CURRENT TOOL from the drop down or should I enter the OEM code 105?
Create a button and assign VB code to it as follows:
Material = GetOEMDRO (105)
CODE "#1=Material" ;In theory if 20 is entered into the DRO, Material should =20
CODE "G90 G55 G21
CODE "G00 Y[#1*2] ;Rapid to Y40
CODE "G01 Y#1 F100 ;Linear travel to Y20
CODE "G00 Y[#1*2] ;Rapid back to Y40
CODE "M30"
What am I doing wrong?
Logged
Scott
Active Member
Offline
Posts: 139
Re: Linking DRO to program, program uses whatever is put in the DRO..
«
Reply #1 on:
February 22, 2007, 12:50:13 PM »
Either 'DIAMETER OF CURRENT TOOL' or 105 should work, but I'd use 105 because I've come across a couple of the drop downs that didn't seem to work (I can't remember which ones) and the numbers have always worked.
Try this...
ToolDia=GetOEMDRO (105)
CODE "G90 G55 G21"
CODE "G00 Y" &ToolDia*2
CODE "G01 Y" &ToolDia & " F" &100
CODE "G00 Y" &ToolDia*2
CODE "M30"
Pay attention to the "" marks and the &'s. If you want to use #1 instead of ToolDia, then just declare it that way instead.
Logged
Scott
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...