Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
German Forum
Italian Forum
Portugese Forum
Resources
Links
User Reviews
User Videos
Contact Us
CNCZone
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
November 23, 2008, 10:10:54 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
FAQs
How to Implement Logical IF Then Expressions in MACH3
Pages:
1
Go Down
« previous
next »
Author
Topic: How to Implement Logical IF Then Expressions in MACH3 (Read 570 times)
0 Members and 1 Guest are viewing this topic.
Osker
Active Member
Offline
Posts: 5
How to Implement Logical IF Then Expressions in MACH3
«
on:
December 25, 2007, 11:47:41 AM »
Hello, I am transitioning from TurboCNC to MACH3 and need assistance with implementing Logical IF Then Statements within MACH3. The following code snippet within TurboCNC would be used to cut a profile on a lathe (Radius, with X.0 being the Center) by comparing the current cutting depth to the targeted profile depth of cut. If the target profile depth of cut is below the current depth of cut, there is no change in the depth of the X axis. If the target profile depth of cut is greater than the current depth of cut, the profile depth of cut is used. This approach uses the results of a Logical "IF Less Than or Equal to". If there is a way within MACH3 to implement a similar approach, please point me in the right direction.
Thanks in advance for your consideration.
Regards,
Dan
The concept is to start as some X position that is greater than the stock radius, and decrement the value each pass, until the target depth is achieved. #3 is the starting radius, #4 is the target X profile coordinate. #6 is the target Z profile depth of cut. For example,
N10 #3 = 0.1
N20 #4 = 0.0375 #6 = -0.2878 M98o770
N30 #4 = 0.0575 #6 = -0.3108 M98o770
%RH Profile Subroutine
N770 If #4 LE #3 M97o800 //If target X <= Current X , then cut at current X depth
N780 G01 X#4 Z#6 F#2 //Else cut at X & Z coordinates
N790 M99 //Return to Main Program
N800 G01 X#3 Z#6 F#2 //Cut at current X depth
N810 M99 //Return to Main Program
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.
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*e*i*n*g
=> Mach Screens
=> Feature Requests
=> Non English Forums
=> FAQs
===> Finished Plugins for Download
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
-----------------------------
*****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
=> Lazy Cam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Promote and discuss your product .
=> Sieg Machines
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
=> One on one phone support.
=> Forum suggestions and report forum problems.
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
Loading...