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, 02:33:26 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
digitize led on OemLed code
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: digitize led on OemLed code (Read 305 times)
0 Members and 1 Guest are viewing this topic.
thespindoctor
Active Member
Offline
Posts: 73
digitize led on OemLed code
«
on:
September 09, 2011, 07:05:29 PM »
I have a limit switch connected to my breakout board A axis home on port 1 pin 15 which is set to be a probe input in ports and pins in Mach. When I trip the switch, the digitize led turns green on the Diagnostics page as it should. I need to be able to recognize when the switch is tripped. I have tried several GetOEMLED codes including 855, 852 and no joy. What would be the correct one? Do I need the 60000 series codes now?
Thanks
«
Last Edit: September 09, 2011, 07:18:58 PM by thespindoctor
»
Logged
Overloaded
Global Moderator
Offline
Posts: 3,073
Re: digitize led on OemLed code
«
Reply #1 on:
September 09, 2011, 07:27:02 PM »
Try 825
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
thespindoctor
Active Member
Offline
Posts: 73
Re: digitize led on OemLed code
«
Reply #2 on:
September 09, 2011, 09:11:29 PM »
thanks! i will try again but i don't think it works
Logged
Overloaded
Global Moderator
Offline
Posts: 3,073
Re: digitize led on OemLed code
«
Reply #3 on:
September 09, 2011, 09:53:16 PM »
I was just guessing.
Not sure what you are wanting.
You say "When I trip the switch, the digitize led turns green ............. I need to be able to recognize when the switch is tripped."
Where else do you need to "recognize" it ?
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,073
Re: digitize led on OemLed code
«
Reply #4 on:
September 09, 2011, 09:57:38 PM »
The switch cannot be both "A" HOME and PROBE.
It could be Home and Limit though.
Maybe that is what you are wanting ?
?
I'm getting lost.
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
BR549
Active Member
Offline
Posts: 2,557
Re: digitize led on OemLed code
«
Reply #5 on:
September 09, 2011, 10:48:07 PM »
Perhaps if you explain exactly what it is you are trying to do someone could help.
Just a thought, (;-) TP
Logged
thespindoctor
Active Member
Offline
Posts: 73
Re: digitize led on OemLed code
«
Reply #6 on:
September 10, 2011, 04:27:53 AM »
Sorry, I am trying to use the switch to touch off on a grinding wheel to get a tool offset.
Logged
BR549
Active Member
Offline
Posts: 2,557
Re: digitize led on OemLed code
«
Reply #7 on:
September 10, 2011, 09:14:41 AM »
OK easy enough set up the switch as a probe then just probe with the axis that holds the grinder wheel. Use the G31 probing function to create the motion and capture the positional values with a CB script.
Are you trying to determene the wheel diameter or just trying to find the edge of the wheel?
IF just finding the edge of the wheel then set it up as a HOME then run the G28.1 gcode routine.
There are many ways to do just depends on your needs.
(;-) TP
Logged
thespindoctor
Active Member
Offline
Posts: 73
Re: digitize led on OemLed code
«
Reply #8 on:
September 10, 2011, 10:44:52 AM »
Ok, now I am really frustrated! The GetOEMLED() function does not function. I can see on the Diag screen that
the Home led lights up so I put a led on my screen to probe the grinding wheel. I wrote a program to move the
wheel until the switch trips. The switch trips and the led illuminates but GetOEMLED(839) always returns a zero
or false. It does not matter where I use GetOEMLED() or how I use it - it is not working. This must be a bug
of some kind where Mach is not communicating with this function. GetOEMDRO() is working however. I have
tested printing GetOEMLED(389) in loops with variables substituted and defined as integers etc and never can
get anything but zero. The switch is set as Home A and the Diag screen Home A led is set to OEM 839. Everything
looks correct except the basic function not working. Any ideas? Is there a way to reinstall or reactivate basic?
My program is something like this and GetOEMLED(839) is always false even after the switch trips and the diag led
is on. It should go to true when the switch trips?
'output file opened to #1
Yval=.001
for i=1 to 100
code "G1 Y-" & Yval & "F1" 'moves toward switch at .001 increments
print #1, Yval, GetOEMLED(839) ' writes y position and led condition to file
Yval=Yval+.001
next i
«
Last Edit: September 10, 2011, 11:01:51 AM by thespindoctor
»
Logged
thespindoctor
Active Member
Offline
Posts: 73
Re: digitize led on OemLed code
«
Reply #9 on:
September 10, 2011, 11:16:21 AM »
Continuing on - The switch is wired to A home and defined in ports and pins as A home not probe but it does
not work either as A home or as probe.
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...