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 27, 2012, 03:46:47 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
Is this possible?
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Is this possible? (Read 816 times)
0 Members and 1 Guest are viewing this topic.
rrc1962
Active Member
Offline
Posts: 434
Is this possible?
«
on:
October 17, 2010, 07:02:18 PM »
Is it possible to change a pin assignment via VB? for instance, change the probe input for pin 11 to pin 12 using a VB script.
Thanks
Logged
BR549
Active Member
Offline
Posts: 2,555
Re: Is this possible?
«
Reply #1 on:
October 17, 2010, 09:23:35 PM »
Not directly that I know of. What would be the purpose? It could be done indirectly.
(;-) TP
«
Last Edit: October 17, 2010, 09:26:19 PM by BR549
»
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,347
Re: Is this possible?
«
Reply #2 on:
October 17, 2010, 09:47:20 PM »
No, there is no way to do that.
Regards,
Ray L.
Logged
Regards,
Ray L.
Tweakie.CNC
Active Member
Offline
Posts: 3,261
Super Kitty.
Re: Is this possible?
«
Reply #3 on:
October 18, 2010, 02:19:56 AM »
I have to disagree with Ray (in a nice way) because there is the probability that "everything is possible".
With regard to the question - the Probe input is Input 22 and it's pin assignment is stored in the .xml. It would not be too difficult to create a VB routine to modify the .xml (change the pin assignment) but it may need a restart for the change to take effect.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
rrc1962
Active Member
Offline
Posts: 434
Re: Is this possible?
«
Reply #4 on:
October 18, 2010, 08:34:47 AM »
I have 2 inputs for 2 probes that do different things based on some conditional logic. My initial thought was to just switch the pin assignment for the probe function. I could write a probe macro and instead of using G31, just use "G01 Z-1" and in the While isMoving loop, look for a low input. In other words, if condition 1 is met, check input 1 for low. If condition 2 is met, check input 2. When the input goes low, stop motion and exit while loop.
How would I check an input from a VB script?
Thanks
Logged
HimyKabibble
V4 Screen Contributor
Offline
Posts: 1,347
Re: Is this possible?
«
Reply #5 on:
October 18, 2010, 08:58:04 AM »
Quote from: rrc1962 on October 18, 2010, 08:34:47 AM
I have 2 inputs for 2 probes that do different things based on some conditional logic. My initial thought was to just switch the pin assignment for the probe function. I could write a probe macro and instead of using G31, just use "G01 Z-1" and in the While isMoving loop, look for a low input. In other words, if condition 1 is met, check input 1 for low. If condition 2 is met, check input 2. When the input goes low, stop motion and exit while loop.
How would I check an input from a VB script?
Thanks
Get ready to break a lot of probes. You have NO guarantee your VB code will be running nearly often enough to sense when the probe makes contact with any reliability at all.
Regards,
Ray L.
Logged
Regards,
Ray L.
Tweakie.CNC
Active Member
Offline
Posts: 3,261
Super Kitty.
Re: Is this possible?
«
Reply #6 on:
October 18, 2010, 09:54:14 AM »
Quote
How would I check an input from a VB script?
I think you may have gone full circle here because the best way must be to use the G31. (If GetOemLED (825) = True Then.......).
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
BR549
Active Member
Offline
Posts: 2,555
Re: Is this possible?
«
Reply #7 on:
October 18, 2010, 10:15:04 AM »
2 ways to do what you need.
1. wire ALL probes in series on one set of pins. Then which ever one trips the input THAT is the active probe. Very simple logic.
2. Use a mach output signal to drive a flip flop relay to reverse the probe input between 2 probes. Call it from VB monitor the flip flop to see which is active. More complicated logic.
Logged
LarryL
Active Member
Offline
Posts: 46
Re: Is this possible?
«
Reply #8 on:
October 18, 2010, 10:41:04 AM »
Hey Tweakie,
Got a question for you! Is it possible to assign a hotkey value to an external switch?
Larry
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,261
Super Kitty.
Re: Is this possible?
«
Reply #9 on:
October 18, 2010, 11:00:33 AM »
Not quite sure of the question there Larry.
Do you want the hotkey to operate an external relay or something ? or do you want an external switch / button to have the same function as a hotkey ?
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
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...