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, 02:17:57 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
Third party software and hardware support forums.
PoKeys
(Moderator:
NeoTO
)
How to use Mach and Pokeys to control LED status lights?
Pages:
1
Go Down
« previous
next »
Author
Topic: How to use Mach and Pokeys to control LED status lights? (Read 1278 times)
0 Members and 2 Guests are viewing this topic.
philipw
Active Member
Offline
Posts: 2
How to use Mach and Pokeys to control LED status lights?
«
on:
May 11, 2010, 03:55:49 PM »
First time working with pokeys and mach3 and my small DIY cnc router.
I'm trying to add LED status lights to my control panel with pokeys but must be missing something as my light is on all the time for my first and second tests.
My environment is vista, .040 licensed Mach, pokeys 55 with the latest pokeys plugin from machsupport and software from pokeys.
I have the pokeys software installed and the mach3 pokeys plug in installed.
I have used the pokeys to connect a momentary switch that emulates alt-a on the keyboard for going to x y z on the movement control with my MPG, which is connected directly to one of my C10 boards, I know at least that function works great.
I'd like to list my recipe below for what I did to have an LED (light) illuminate when the spindle is on. I can turn the spindle on and off with the mach3 button or M3 / M5 g-code commands.
In the mach pokeys plug in I mapped user led i/o to a range starting at 2000, and set uled input range to 33 - 55, which is supposed to correlate to pins 33 - 55 on the pokeys I believe.
In the LED brain I created, I set LED input to look for spindle on, had it pass the signal to oem led 2001. 2001 should be pin 34 on the pokeys if I have all that correct.
I connected the led to pokeys 34 and ground with the proper resistor. + to the actual pin 34. I
tested it separately and it works fine.
Using the pokeys software, I set pin 34 for digital output.
the light comes on the moment I send the update to the pokeys and never goes off.
I turn the spindle on in mach, turn the spindle off, led stays lit no matter what I do.
Talking with Arturo he suggested I try a forumla for spindle speed >0 instead, but I couldn't get that to work either.
Then, worried that I had some other issue related to the spindle after talking with Arturo, I did the same setup but checking for estop, but had the same result, LED (light) is always lit.
I read through the pokeys manual and did not see this setup explained, though I did verify that I had the LED (light) installed correctly.
I'm sure I have a step above that's wrong or missing and would appreciate any help on this I can get.
Thanks...philip
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: How to use Mach and Pokeys to control LED status lights?
«
Reply #1 on:
May 12, 2010, 01:29:53 AM »
Hey Phillip,
Then NUT shell version of what you want to do is this: If the spindle is ON, you want your external LED on Pin 34 of the PK to be ON as well, and OFF when the spindle is OFF correct???
If that is true above.
NOTE: If your using OEMLED 11, (the overal spindle is active LED, for your input then it will not work as you want), The OEMLED 11 the first time you activate the Spindle it will come on and STAY on, unless you hit the Reset. So, You want to look instead at the OEMLED 164 CW (I think), and/or OEMLED 165 CCW, you can "OR" these two OEM LEDs to an "AND" block in your Brian, and then send the result to UserLED 2033 (which represents pin 34 in your example).
NOTE2: you will need to set the OUTPUT of the PoKeys to "Invert" Outputs for any pin your using to drive LEDs if you want the external LEDs to track the same state as the internal ones in mach3.
NOTE3: Realize that PIN 1 of the PoKeys given the conditions above, will Map to UserLED 2000, NOT 2001!!
Look at the PoKeys Screen in Mach3, (If you are using the "PoKeys.set" that comes with the installer). For an experiment, map PK pins 1 as INPUT (note you will have to set them to INVERT for them to show correct logic in Mach3). What you will see is that when Pin 1 goes "Hot", ULED 2000 will turn on. What you want to check is this, on the PoKeys Diagnostic page, you will see an "On/Off" button next to a user LED that represents PIN 34 on your Pokeys, hook a REAL LED to your pin 34, and flip the button that turns on/off that pin will be ULED2033 (I think, double check me on this, I am NOT at my Mach computer, and trying to do this from memory, which isnt always good...........), ULED2034, would control Pin 35........ So varify that.
scott
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/
philipw
Active Member
Offline
Posts: 2
Re: How to use Mach and Pokeys to control LED status lights?
«
Reply #2 on:
May 12, 2010, 08:47:26 AM »
Thanks poppabear.
I had tried those two inputs with no better result.
Testing more now, I think the issue isn't related to mach at all because in the pokeys software the moment I change pin 34 to digital output and send it the light turns on, whether or not it's inverted or not. It only goes off if I set the pin to inactive.
Maybe this is a question for Boris instead because this sure seems strange.
Logged
arturod
Active Member
Offline
Posts: 90
Re: How to use Mach and Pokeys to control LED status lights?
«
Reply #3 on:
May 13, 2010, 07:36:48 PM »
Phil,
What happens if you disconnect the LED wiring, and just test the terminal using a multimeter?
Please test this with different pins.
Arturo Duncan
http://cnc4pc.com
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...