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:47:36 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 3 Guests are viewing this topic.
BR549
Active Member
Online
Posts: 2,553
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #10 on:
July 11, 2010, 04:24:42 PM »
This may help when you get to that part in your project. It is a simple routine to test conditions and either continue or stop and message user. I would test your spindle to time it from stop to full RPM to establish a wait time
Sub Main()
Line# = GetDro(16) 'GetCurrent line#
DoSpinCW() 'Start Spindle
Sleep(3000) 'Wait for spindle to spool
If GetOemDro(11) = 1 And Isactive(input2) Then GoTo 2 'Check inputs if good then else
Message" Spindle Failed To SPOOL UP"
GoTo 3
2:
Message"Spindle Good for M3 start"
GoTo 4
3:
DOButton(1) 'Feedhold
DoButton(3) 'Stop
DoButton(2) 'Rewind
MSGBOX ("Spindle Failed To Spool Up On Line#") & Line# 'Message to
Goto 4
4:
End Sub
End
Logged
SimonRafferty
Active Member
Offline
Posts: 14
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #11 on:
July 12, 2010, 08:01:57 AM »
Thanks - that's great. I'll give it a go in a few days once the mill + PC is a bit more together!
Si
Logged
Hood
Active Member
Offline
Posts: 17,347
Carnoustie, Scotland
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #12 on:
July 13, 2010, 03:19:16 AM »
Not great with VB but thinking you may need a few
While IsMoving()
Wend
In there.
Hood
Logged
BR549
Active Member
Online
Posts: 2,553
Re: Mentor2 Spindle Drive - Using 'Speed Achieved'
«
Reply #13 on:
July 13, 2010, 08:38:24 PM »
Sub Main()
Line# = GetDro(16) 'GetCurrent line#
DoSpinCW() 'Start Spindle
Sleep(3000) 'Wait for spindle to spool
If GetOemDro(11) = 1 And Isactive(input2) Then GoTo 2 'Check inputs if good then else
Message" Spindle Failed To SPOOL UP"
GoTo 3
2:
Message"Spindle Good for M3 start"
GoTo 4
3:
DOButton(1) 'Feedhold
While Ismoving()
Sleep(1000)
Wend
DoButton(3) 'Stop
DoButton(2) 'Rewind
MSGBOX ("Spindle Failed To Spool Up On Line#") & Line# 'Message to
Goto4
4:
End Sub
End
(;-) GOOD catch Hood , yep need to WAIT until the feedhold stops motion.
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...