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, 08:04:46 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
Enternal E-STOP Leds
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: Enternal E-STOP Leds (Read 659 times)
0 Members and 1 Guest are viewing this topic.
johnv
Active Member
Offline
Posts: 40
Enternal E-STOP Leds
«
on:
June 21, 2010, 12:38:04 PM »
Hi All!
On my Cntrl Pnl, I mounted a MACH3 RESET switch along with two red leds (one on each side of switch). I got the Mach3 Reset switch to work (OEM 1021), but I can't get the red leds to go on (or blink) as the "Program Run Alt-1" screen red leds do (when the E-stop is triggered). Any help would be appreciated.
Johnv
Logged
BOGIE
Active Member
Offline
Posts: 12
Re: Enternal E-STOP Leds
«
Reply #1 on:
June 21, 2010, 01:19:15 PM »
I don't understand half of what you all are talking but it sure is interesting. I hope my problem is permanently solved if not the solutions seem endless and sure have a lot of things to try.
Bogie
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Enternal E-STOP Leds
«
Reply #2 on:
June 22, 2010, 01:28:09 AM »
Hi Johnv,
As far as I am aware the LED is OEM code 800 but this is for a virtual panel. If you are talking about a physical control panel then you will need to assign an output to drive the led and then I think the best bet is to use two 'flashing LEDs'.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
johnv
Active Member
Offline
Posts: 40
Re: Enternal E-STOP Leds
«
Reply #3 on:
June 22, 2010, 07:42:27 AM »
Thanks Tweakie,
The leds I have mounted are flashing leds, I need to find a way to power them when reset fault has been triggered (blinking red on screen).
Johnv
Logged
PeterF
Active Member
Offline
Posts: 42
Re: Enternal E-STOP Leds
«
Reply #4 on:
June 22, 2010, 08:23:54 AM »
There could be a section in the documentation, called "Input/Output signals, Modbus I/O, a serial port and "foreign" ports" and a function "SetTriggerMacro". Documentation starts here:
http://www.machsupport.com/MachCustomizeWiki/index.php?title=Main_Page
maybe this helps, partially. It claims to contain the function(s) to control an output line, triggered from an input.
added: OEM Triggers are set in Config->Ports and Pins->Input Pins. (it is worth to try whether the EStop port+pin can simultaneously be a OEM Trigger port+pin.)
«
Last Edit: June 22, 2010, 08:36:05 AM by PeterF
»
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Enternal E-STOP Leds
«
Reply #5 on:
June 22, 2010, 08:46:07 AM »
Hi Johnv,
I think PeterF is correct you need to do a little reading but to get you started......
I haven't actually tried this but the following code placed in the macropump should do it.
If GetOemLED(800)=True 'reads the reset LED
ActivateSignal(OUTPUT1) 'turns on output #1 (or whatever output you choose)
Else
DeActivateSignal(OUTPUT1) 'turns off output #1
EndIf
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
stirling
Global Moderator
Offline
Posts: 1,189
UK
Re: Enternal E-STOP Leds
«
Reply #6 on:
June 22, 2010, 10:45:13 AM »
Mach deactivates all outputs when in reset condition. So if you create a macro with the single line activateSignal(OUTPUT#) and append it to the initialization string you'll have the state change you need. Whether you choose active high or low depends on how you want to power your LEDs as PP outputs can sink as well as source current and they usually can sink a lot more than they can source. Depends on your PP and LEDs current specs as to which is the best way to go.
Ian
Logged
PeterF
Active Member
Offline
Posts: 42
Re: Enternal E-STOP Leds
«
Reply #7 on:
June 22, 2010, 10:54:57 AM »
Quote from: stirling on June 22, 2010, 10:45:13 AM
Mach deactivates all outputs when in reset condition.
Stirling this could be a problem, but it could lead to the following theoretical solution: turn on the external leds when the output is high (via pull-up). Write a simple vbscript and put it into the RESET button, to (if it is currently in reset condition:) pull the output low, and propagate reset anyway.
Logged
johnv
Active Member
Offline
Posts: 40
Re: Enternal E-STOP Leds
«
Reply #8 on:
June 22, 2010, 11:28:34 AM »
Hi All,
* I added Tweakie's macro to the Mach3\Macros\'my profile'\Reset LEDs.m1s (my name for the file). Substitutes Output2 for Tweakie's Output1 and turned on Run MacroPump. With a hi-lo audio probe on Port 1, Output 16, I get a constant lo sound when reset is enables. When Rest is at fault (blinking red) I get an occasional Hi sound. It appears that the output does not stay triggered high to keep LED's lit.
* Stirling, What do I append, and to what initialization string? Thanks to you all for sharing your knowledge and time.
Johnv
Logged
Tweakie.CNC
Active Member
Offline
Posts: 3,258
Super Kitty.
Re: Enternal E-STOP Leds
«
Reply #9 on:
June 22, 2010, 11:52:14 AM »
Hi Johnv,
As Ian said Mach deactivates all outputs in reset. So when Mach is running your output #2 is used to keep the LEDs off - when Mach is in reset the output #2 is deactivated and the LEDs come on. Simple.
Tweakie.
Logged
Success consists of going from failure to failure without loss of enthusiasm. Winston Churchill.
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...