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 26, 2012, 02:05:36 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
controlling outputs through g-code
Pages:
1
Go Down
« previous
next »
Author
Topic: controlling outputs through g-code (Read 1017 times)
0 Members and 1 Guest are viewing this topic.
ASC
Active Member
Offline
Posts: 64
controlling outputs through g-code
«
on:
July 22, 2010, 10:38:57 AM »
Hey guys, I'm having trouble wrapping my stupid head around Mach's control of outputs. I have a mill with a spindle and a dispenser mounted on separate air actuators to move them into the work area and act as a float. I want Mach to be able to switch these actuators on and off when they're needed through the g-code. Has anyone had any experience with an application like this, or can anyone recommend a visual basic script to get me started?
Logged
Mr. Creosote
Hood
Active Member
Offline
Posts: 17,352
Carnoustie, Scotland
Re: controlling outputs through g-code
«
Reply #1 on:
July 22, 2010, 11:35:04 AM »
Open notepad and type in your VB, for example to switch on OutPut 3 you would have
ActivateSignal(OutPut3)
Save the file as m****.m1s where the **** is a number you wish, for example it could be m1234.m1s.
Yousave it to the macro folder of the profile you are using, exaple if using standard Mach3Mill profile it would be saved to
C:\Mach3\macros\Mach3Mill
Then when you have m1234 in your code or call from MDI that output will be activated. Similarly for shutting it off write another macro as above and call it for example m1235.m1s. In the macro you would have
DeActivateSignal(OutPut3)
So when your code calls m1235 the output will switch off.
Hood
Logged
ASC
Active Member
Offline
Posts: 64
Re: controlling outputs through g-code
«
Reply #2 on:
July 22, 2010, 12:06:51 PM »
thanks Hood! Seems so simple once someone knowledgeable explains it!
Logged
Mr. Creosote
LarryL
Active Member
Offline
Posts: 46
Re: controlling outputs through g-code
«
Reply #3 on:
October 30, 2010, 12:14:25 PM »
Hey Hood,
A macro question for you! Is there a way to constantly provide the updated position of an axis so that it can be acted upon by an if then operation?
Larry
Logged
Hood
Active Member
Offline
Posts: 17,352
Carnoustie, Scotland
Re: controlling outputs through g-code
«
Reply #4 on:
October 30, 2010, 06:19:58 PM »
The macropump or a Brain may be able to but depends I suppose what you actually are wanting to do.
Hood
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...