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, 10:25:59 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
using brains to turn a switch on
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: using brains to turn a switch on (Read 319 times)
0 Members and 1 Guest are viewing this topic.
widpyro
Active Member
Offline
Posts: 61
using brains to turn a switch on
«
on:
December 10, 2011, 06:01:51 PM »
I am going to use a brain to activate a switch. How do I specify an output switch call in the program? Please show me a sample of code that calls for an output switch that I will then link to a brain?
Thanks,
-jim
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #1 on:
December 10, 2011, 06:37:37 PM »
What are you meaning by a switch? Switches are normally pressed and thus would be an input.
Hood
Logged
widpyro
Active Member
Offline
Posts: 61
Re: using brains to turn a switch on
«
Reply #2 on:
December 10, 2011, 07:10:03 PM »
OK Hood, Let me rephrase this.
I am going to use the mist command (m7) to control a switch. I need to have this happen while the motors are turning so it was recommended to use a brain. So I would like the mist command to activate an output (4) to control my switch. The question is do I check compare immediately, or no action to get output 4 to trigger from the mist command using a brain? How exactly should I use a brain to achieve this?
Thanks,
-jim
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #3 on:
December 10, 2011, 07:16:02 PM »
Still not sure how you control a switch from an output, I presume you are meaning a relay will be controlled?
Anyway no brain needed, just set output number you wish to use (4 you said) in Config, Ports and Pins, Spindle Control against the M7 setting
Hood
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #4 on:
December 10, 2011, 07:19:09 PM »
Like this, ignore the 3 I have in Flood as you may already be using something there, if not set 4 if you want for it also.
Hood
ScreenHunter_03 Dec. 11 00.18.jpg
(66.87 KB, 583x353 - viewed 28 times.)
Logged
widpyro
Active Member
Offline
Posts: 61
Re: using brains to turn a switch on
«
Reply #5 on:
December 10, 2011, 07:54:47 PM »
The problem is, to operate the mist control, you must stop the axis, which i do not want to do. This is why i must use brain, so that the command can happen without stopping the motors. If I want to control the output with the mist LED, what do I use: "no operation" or "compare immediately" with what value?
-jim
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #6 on:
December 10, 2011, 08:00:11 PM »
How are you going to operate the mist output? Thought you were going to use code?
Hood
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #7 on:
December 10, 2011, 08:15:17 PM »
If using M7 in code to switch on you would just have it on the same line as some motion code, dont actually have to stop motion to switch coolant on.
If you will be using some other means to switch on the mist let me know and I will maybe see what you are trying to achieve and be able to advise more.
Hood
Logged
widpyro
Active Member
Offline
Posts: 61
Re: using brains to turn a switch on
«
Reply #8 on:
December 10, 2011, 08:44:38 PM »
What I want to do is use the m7 command to turn a switch on for the first second or so of a motor command that lasts for about 20-30 seconds. I do not want the motor to stop or pause when the M9 command is given.
-jim
Logged
Hood
Active Member
Offline
Posts: 17,368
Carnoustie, Scotland
Re: using brains to turn a switch on
«
Reply #9 on:
December 11, 2011, 05:28:10 AM »
Still not clear what you are wanting to do I am afraid, the " turn a switch on" is the first thing that has me confused, how can you turn a switch on? Are you meaning a relay? Next thing that has me a bit puzzled is do you wish the signal to be turned off halfway through a move or when? Is the On state to be for a predefined length of time or is it just when you command it to be off? If the latter how are you going to command this off?
I can tell you that it would just be a do nothing pass signal but that may not be the case as it all depends on what you are wanting to achieve and afraid I am no closer to understanding that
Hood
Logged
Pages:
1
2
»
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...