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, 01:31:58 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
VB and the development of wizards
limits on off in vb code
Pages:
1
Go Down
« previous
next »
Author
Topic: limits on off in vb code (Read 625 times)
0 Members and 1 Guest are viewing this topic.
Bill_O
Active Member
Offline
Posts: 104
limits on off in vb code
«
on:
April 28, 2010, 04:07:44 PM »
I am sure it is somewhere but I can not find it. How do I turn the limit
switches on and off in a vb script?
Bill
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: limits on off in vb code
«
Reply #1 on:
April 29, 2010, 08:14:29 PM »
While you cannot turn the switches on and off you can use a relay to shunt across the circuit so they are not seen by mach as tripped(;-)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: limits on off in vb code
«
Reply #2 on:
April 30, 2010, 02:51:39 AM »
Hey Bill,
It's been a while..... I could do it in a plugin for you, in where you could push a button that would send a "NotifyPlugins(*********xx)" *********xx = your number code here. for Enable Limits, and then another notifyplugins(yyyyy), that would disable the limits. OR, you could tell me what ULED you want to watch, or I could make it where you can pick/set the ULED to watch, so that when it is active the limits would disable, etc. BUT, the Notifyplugins might be safer, since you dont have to worry about someone accidently turning on that LED in a random VB script, etc....
Let me know,
scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Bill_O
Active Member
Offline
Posts: 104
Re: limits on off in vb code
«
Reply #3 on:
April 30, 2010, 02:05:57 PM »
Scott,
I just want to turn the Y off when I go for a tool change. I did not want to put 2 switches, one for homing and one for a limit. I wanted to use one switch. When I do a machine reference it would stop on the switch and it would also be a limit, but when I go for a tool change it would pass the switch and continue to the tool change position. I can put 2 switches I just did not want to do it that way.
Bill
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: limits on off in vb code
«
Reply #4 on:
May 01, 2010, 01:22:55 AM »
well I guess that would leave you with two choices then:
do the cut relay thing like the guy said above, or do a custom plug.
scott
Logged
Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
BR549
Active Member
Offline
Posts: 2,551
Re: limits on off in vb code
«
Reply #5 on:
May 01, 2010, 08:22:15 AM »
Just out of curiousity WHY would you want to move beyond a limit switch to do a tool change. Limits are normally at the outer most travel of your machine to protect the machine and every thing takes place inside that envelope.
Logged
ger21
Global Moderator
Offline
Posts: 2,612
Re: limits on off in vb code
«
Reply #6 on:
May 01, 2010, 10:59:26 AM »
Quote from: BR549 on May 01, 2010, 08:22:15 AM
Just out of curiousity WHY would you want to move beyond a limit switch to do a tool change.
He already said why. He uses one switch for homing and limits, and his tool change position is behind his home position
Logged
Gerry
2010 Screenset
http://home.comcast.net/~cncwoodworker/2010.html
BR549
Active Member
Offline
Posts: 2,551
Re: limits on off in vb code
«
Reply #7 on:
May 02, 2010, 10:44:05 AM »
Yea I read that part, but that does not explain the logic behind it. IF you never ask you never learn beyond your limited exposure to things.
Logged
Bill_O
Active Member
Offline
Posts: 104
Re: limits on off in vb code
«
Reply #8 on:
May 03, 2010, 09:29:34 AM »
During the normal operation of the machine I want it to have the limit at the same location as the ref location. Only when I want to do a tool change will I go past this point. I will have a block for the limit to trigger at this location if the machine overruns the atc location. I will probably use an air cylinder to raise and lower the switch if I can not turn it on and off.
Bill
Logged
BR549
Active Member
Offline
Posts: 2,551
Re: limits on off in vb code
«
Reply #9 on:
May 03, 2010, 09:24:58 PM »
Thansk Bill (;-)
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...