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, 11:45:43 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
Mentor2 Spindle Drive - Using 'Speed Achieved'
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Mentor2 Spindle Drive - Using 'Speed Achieved' (Read 712 times)
0 Members and 1 Guest are viewing this topic.
SimonRafferty
Active Member
Offline
Posts: 14
Mentor2 Spindle Drive - Using 'Speed Achieved'
«
on:
July 11, 2010, 06:40:19 AM »
I'm in the process of Mach-converting a Bridgeport Interact 1Mk2 which has a Mentor2 Spindle VFD.
The spindle motor has a tacho output which connects directly to the Mentor2. It appears the way the Bridgeport used it was to send the Mentor a voltage (0 to 10v as usual) and when the Mentor achieved the requested speed, it closed a relay - allowing the CNC controller to move to the next line.
Since the Mentor's PID parameters are nicely tuned to the machine - it makes sense to use it in this mode.
Can Mach accept a 'speed achieved' input instead of a spindle tacho?
Alternatively, would I be better just fitting another tacho and connecting that to Mach as normal?
Si
Logged
Hood
Active Member
Offline
Posts: 17,347
Carnoustie, Scotland
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #1 on:
July 11, 2010, 10:09:08 AM »
I am thinking it may be possible to use a M3/M4 macros to look at the signal and loop until its seen.
Hood
Logged
SimonRafferty
Active Member
Offline
Posts: 14
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #2 on:
July 11, 2010, 10:17:39 AM »
Thanks Hood - that was kind of the conclusion I was coming to.
How would it react if I wired it up as a limit switch / end-stop? Presumably that would stop any of the axes moving until it had achieved the requested speed?
Si
Logged
Hood
Active Member
Offline
Posts: 17,347
Carnoustie, Scotland
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #3 on:
July 11, 2010, 10:21:44 AM »
Not a good idea I dont think, would cause an E-Stop in Mach if you did that.
Having the M3/M4 macros loop until the signal is seen would stop any movement until the macro completes, so thats the way I would go.
Hood
Logged
BR549
Active Member
Online
Posts: 2,553
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #4 on:
July 11, 2010, 10:31:38 AM »
Justa thought, mach has a feature that prevents the Gcode from running if a safety input is active(door open)
I would use a brain to
If spindle is active AND waittimer for 3secs and IF input from VFD is NOT active then apply Mach safety to prevent the machine from running code.
That would stop the Gcode from running IF the M3/M4 was active AND after 3 secs the VFD does not give the OK signal to move
I would also map the function on out to a BIG yellow LED to show the state of the control for trouble shooting down the road. It would be like the out of lube function we use to stop the machine function if the lube is LOW. Hard to remember without that LED flashing at ya
«
Last Edit: July 11, 2010, 10:36:09 AM by BR549
»
Logged
SimonRafferty
Active Member
Offline
Posts: 14
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #5 on:
July 11, 2010, 11:29:50 AM »
Quote from: Hood on July 11, 2010, 10:21:44 AM
Not a good idea I dont think, would cause an E-Stop in Mach if you did that.
Having the M3/M4 macros loop until the signal is seen would stop any movement until the macro completes, so thats the way I would go.
Hood
Maybe I meant home switches rather than limit? It cannot eStop on these as you use them to reference the axes? I wouldn't swear to this as I can't remember the last time I homed the axes on my Lathe (previous Mach conversion).
Although doing it in software is straightforward - If possible I'd like it to be hardware simply because, several years down the line when I have to rebuild the PC - or worse still, it's next owner does - I would like it to work with a fairly standard copy of Mach. Then it will run with only the ports & pins set.
Si
«
Last Edit: July 11, 2010, 11:31:28 AM by SimonRafferty
»
Logged
Hood
Active Member
Offline
Posts: 17,347
Carnoustie, Scotland
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #6 on:
July 11, 2010, 12:01:50 PM »
Your idea with home switch wouldnt work as far as I can see. A home switch is used for homing and that is all, it doesn't prevent the axis from moving if it is active and Mach only pays attention to it when you are doing a homing move, all other times its ignored..
You need to put the input into Mach and either have a brain look at it like Terry has said or have your M3/M4 macro do the looking, either of these will work.
No problems with swapping computers or users in the future as long as you keep a backup of the brain/macro for future use.
Hood
Logged
SimonRafferty
Active Member
Offline
Posts: 14
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #7 on:
July 11, 2010, 12:04:48 PM »
Fair enough - thanks for your help.
I'll just modify the macros and see how it goes.
Si
Logged
BR549
Active Member
Online
Posts: 2,553
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #8 on:
July 11, 2010, 02:14:59 PM »
Carefull in the Macro that you don't create an endless loop if the VFD does not trip the signal some wait for loops are hard to get out of(;-) you need an escape route if it happens.
The brains are 100 times faster and take up no real CPU time with wait for loops. VB can hogg resources if you are not carefull.
Just a thought, (;-)
Logged
SimonRafferty
Active Member
Offline
Posts: 14
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #9 on:
July 11, 2010, 03:13:32 PM »
I've only written a couple of macros for things like peck drilling on my lathe - in VB. I'll watch out for resource hogging though.
I had figured on something like testing every couple of seconds to see if the speed has been reached. If it has not after say 6 sec, then terminate the program.
Si
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...