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, 11:44:35 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
Tool changer routine with hot swap
Pages:
«
1
2
3
4
5
6
7
8
Go Down
« previous
next »
Author
Topic: Tool changer routine with hot swap (Read 7922 times)
0 Members and 2 Guests are viewing this topic.
vmax549
Guest
Re: Tool changer routine with hot swap
«
Reply #70 on:
March 28, 2008, 01:47:15 PM »
HI IAN, I am quickly starting to SEE the simplicity of YOUR solution (:-) (;-) If I can just figure out how to make it UPdate the dros on the page but yet work like your solution.
(;-) TP
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: Tool changer routine with hot swap
«
Reply #71 on:
March 28, 2008, 02:30:06 PM »
Hi Terry
No problem. I order by tool, you order by slot. Just loop through my tools and read each slot. Then use the slot to index the appropriate DRO.
e.g.
assuming your first gcode var is #1000 and your slot 1 DRO number is 1000 AND that you use consecative vars and DROs (which would be weird if you didn't)
numTools=8
gcodeVarBase=999 (or whatever i.e. 1 less than the first you use)
droBase=999 (or whatever i.e. 1 less than the first you use)
for tool = 1 to numTools
slot = GetVar(gcodeVarBase + tool)
SetUserDRO(droBase + slot, tool)
next
Ian
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Tool changer routine with hot swap
«
Reply #72 on:
March 28, 2008, 03:42:03 PM »
Very Nice work!!
Here is a pic of the ATC setup page on my "Night Vision" flash Screens, it is set up for the Swap Arm type ATC.
Scott
ATCpageScreenShot.png
(178.53 KB, 1074x759 - viewed 265 times.)
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/
vmax549
Guest
Re: Tool changer routine with hot swap
«
Reply #73 on:
March 28, 2008, 04:19:20 PM »
Scott that is a really nice looking page.
IAN, I think I am lost BUT, mach is crashing the vb and program run and mdi so I can't tell if it is me or mach that is crazy.
I guess I will have to wait untill Brian sorts this out OR back up to an OLD version.
I am not sure if I have the last piece of the code in the right place yet. I beat on it for a while then change it and beat on it some more.(;-)
(;-) TP
Logged
vmax549
Guest
Re: Tool changer routine with hot swap
«
Reply #74 on:
March 28, 2008, 05:20:03 PM »
OK I have the tool changer INITIALIZATION Button working , I can load up the tool slots and push the button and set all the neccasary VARS correctly.
THe hotswap is still eluding me brain. One thing I noticed is that when I remove a tool from the slot it needs to reset to zero until the next cycle occurs where it gets set back to the returned tool number. That will show the slot vacant when a tool is in the spindle. THat way IF I have to stop incycle the tool slots will be correct and SHOW the empty slot.
(;-) TP
Logged
vmax549
Guest
Re: Tool changer routine with hot swap
«
Reply #75 on:
March 28, 2008, 08:11:53 PM »
YEP just as I thought, Hopelessly lost in LOGIC again(;-) I have tried various ways that I could think of to tie it together but NOT.
THe original intention was to fill in the dros on the page to match up the slots and tool#. Then press the initialize Button to set the system VARs .
In A program the first T# would set the Next Tool Up dro. Then the m6start will transfer the NTU over to the Tool In Spindle dro. As the next T3 is read it will again fill in the NTU dro. As the NTU dro changes then the BRAINS will trigger a holding relay to RELEASE and start a motor to turn the carousel. The Brains will then monitor the encoder on the carousel untill it sees the proper ID code then STOP the motor and lock the carousel in position.
THen the m6start macro would do the actual swap based on the t#s being held by the
macro
So far i have everything working BUT the actual hotswapping of the DROs.
Listed are the parts of the m6start macro I have to work with: THe brains part I have not listed.
********************************************************************************
********************************************************************************
Tool = GetSelectedTool() '* Original code in M6start from mach
Setcurrenttool(tool)
Setuserdro(1300,tool)
'***************************************************************
Option Explicit '* Code to run hotswap
Const numTools=8
Dim currentTool As Integer
Dim selectedTool As Integer
Dim selectedSlot As Integer
Dim crlf As String
Dim msg As String
Dim i As Integer
' what is the selected tool?
selectedTool = GetSelectedTool()
' in which slot in the carousel is the required tool?
selectedSlot = GetVar(1000 + SelectedTool)
' remind ourselves what the current tool is
currentTool = GetVar(1000)
' stick the current tool in the selected tool's slot
SetVar(1000 + currentTool, selectedSlot)
' remember for next time which tool we're now using
SetVar(1000, selectedTool)
' tell Mach which tool is selected
SetCurrentTool( selectedTool )
' dump the carousel state for our reading Pleasure
crlf = Chr(13) & Chr(10)
If currentTool = 0 Then
msg = "Getting tool " & selectedTool & " from slot " & selectedSlot
Else
msg = "Swapping tool " & currentTool & " for tool " & selectedTool & " in slot " & selectedSlot
End If
msg = msg & crlf & crlf
'for each tool
For i=1 To numTools
If i = selectedTool Then
msg = msg & "Tool " & i & " is in the spindle" & crlf
Else
msg = msg & "Tool " & i & " is in slot " & GetVar(1000 + i) & crlf
End If
Next
'******************************************************************************
'* Last piece of code to update DROs
'* assuming your first gcode var is #1000 and your slot 1 DRO number is 1000 AND
'* that you use consecative vars and DROs (which would be weird if you didn't)
numTools=8
gcodeVarBase=1000 '* (or whatever i.e. 1 less than the first you use)
droBase=1149 '* (or whatever i.e. 1 less than the first you use)
for tool = 1 to numTools
slot = GetVar(gcodeVarBase + tool)
SetUserDRO(droBase + slot, tool)
next
*********************** For now I am at a stalemate that is limited by my faulty programer GENE If you can help out please do and please notate for better understanding if you can.
Thanks (;--) TP
tcpage4.jpg
(39.29 KB, 640x480 - viewed 176 times.)
«
Last Edit: March 28, 2008, 08:17:19 PM by vmax549
»
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: Tool changer routine with hot swap
«
Reply #76 on:
March 31, 2008, 07:11:39 AM »
Hi Terry - Have you got the actual tool changer mechanics built yet? if not, would it be poss for you to do that?
I will get back to you asap but at the moment I'm pretty tied up time wise.
Cheers
Ian
Logged
vmax549
Guest
Re: Tool changer routine with hot swap
«
Reply #77 on:
March 31, 2008, 09:25:36 AM »
Hi IAN, THere is NO hurry(;-). I am in the process of finishing up the carousel. I am starting to see the logic picture the more I work with the pieces so it may CLICK on its own(;-). That has always been my flaw, I seem to be missing the logic GENE. Once I have a logic pattern to work with I can do just fine with modifications and add ons.
Again NO HURRY, Thanks for all the help
(;-) TP
Logged
Pages:
«
1
2
3
4
5
6
7
8
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...