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, 02:42:33 PM
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
Spindle OFF and DoOemButton(110) problem
Pages:
1
Go Down
« previous
next »
Author
Topic: Spindle OFF and DoOemButton(110) problem (Read 469 times)
0 Members and 1 Guest are viewing this topic.
giannis121
Active Member
Offline
Posts: 128
Spindle OFF and DoOemButton(110) problem
«
on:
January 20, 2011, 08:50:51 AM »
I face a problem with spindle speed as following:
I have made a macro "M900" in the middle of a program, which includes:
If GetOemLed(164) then
DoOemButton(110)
End If
which means, if the CW rotation LED is active, switch off spindle.
The spindle is switched OFF, but the Oem 164 LED is still ON.
It goes OFF only at the end of the program when "Turn OFF spindle" under "General config" is selected.
My problem is that i want to start and stop it during the program flow,
by reading the 164 Oem LED.
Exaclty the same happens if i read the OemLed(11) instead of (164).
Do you have any ideas?
Thanks,
giannis
Logged
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #1 on:
January 20, 2011, 09:32:44 AM »
If GetOemLed(11) Then
Code "M5"
End If
This might work for you Giannis.
Try with caution, I'm guessing.
Russ
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Hood
Active Member
Offline
Posts: 17,362
Carnoustie, Scotland
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #2 on:
January 20, 2011, 09:38:59 AM »
Try having DoSpinStop() instead of the DoOemButton(110)
Hood
OOPs RC got there first, if his doesnt work try mine
Logged
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #3 on:
January 20, 2011, 09:52:22 AM »
I notice (screen4) that 110 is a OEM Code Funtion under the spindle toggle button, not an OEM Button.
110 in the button list is "Spindle CW, reset THC height".
Would both do the same thing ?
How would you (can you) call a Function code in the script ?
Thanks Hood
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Hood
Active Member
Offline
Posts: 17,362
Carnoustie, Scotland
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #4 on:
January 20, 2011, 10:01:01 AM »
Should be the same thing Russ, will have to check the list later.
Hood
Logged
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #5 on:
January 20, 2011, 10:09:21 AM »
Could also use LED 852, provided CW is set up to use Output 1.
I dont see GetOemLed(164) anywhere.
Where did it come from ?
Russ
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
Overloaded
Global Moderator
Offline
Posts: 3,072
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #6 on:
January 20, 2011, 10:15:23 AM »
ahh.....found it in Bretts list,
Thanks
Logged
"I haven't failed. I've just found 10,000 ways that won't work." Edison
"You cannot help men permanently by doing for them what they could and should do for themselves."
Abe Lincoln
giannis121
Active Member
Offline
Posts: 128
Re: Spindle OFF and DoOemButton(110) problem
«
Reply #7 on:
January 20, 2011, 12:43:47 PM »
Thank you for the posts!
I will try and let you know soon.
Logged
giannis121
Active Member
Offline
Posts: 128
Re: Spindle OFF and DoOemButton(110) problem (SOLVED)
«
Reply #8 on:
January 21, 2011, 03:31:21 AM »
OK finally M5 and DoSpinStop() work,
but only if they are in a seperate command.
Does not work if i call M5 from other macro (code "M5").
But anyway, i do what i want now,
thank you for the posts!
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...