hahaha Yeah...... marathon today, got the tv cranked up in the living room for background noise..... Helps me think....
It works fine.
I have an AM1-A0-2A sensor connected to my G540 right now. The brown wire is connected to terminal 1. The blue wire is connected to terminal 12. In Mach 3 I've assigned X++ to pin 10, active low. When I put a piece of metal close enough to the sensor, the diagnostic screen shows that the M1++ limit has been sensed, and I have to push the reset button to continue.
Those are NO switches.
How did you overcome the chance of them failing?
A proximity senses metal. It's up to you to decide how you're going to use it. Gerald at MechMate designed his machine so that the sensor detects a 'hole', i.e. a metal strip is in close enough proximity to the sensor so that the sensor is always active until it comes to a hole in the metal strip, then it goes inactive.
You could do the same if you choose to use a N/O sensor.
On my Shopbot PRT-Alpha, I used N/O sensors to sense a bolt head. In my case, a defective sensor would not have been able to sense the bolt head; however, my startup routine included zeroing the X-axis and the Y-axis. That safety check verified that the sensor was working - before work started for the day.
The machines that I use have very robust stop blocks that are designed to stop a run-away axis. Before adding proximity sensors to my machine, I hit those blocks a few times. No damage was done to the machine, but my ego took a hit every time that happened.
Have you tried running multiple ones in parallel?
I understand the idea of NC and I understand how you have yours configured as well. hmmm...some things to think about.
No, I haven't tried using proximity sensors in parallel. Because I don't have control of the entire circuit, I always build my process controllers to have only one input per signal.
If the input is truly Open Collector, you could use several SINKING sensors in parallel. If ANY ONE of the sensors went active, the Open Collector would be pulled LOW and the circuit would activate. If more than one sensor went active, no harm would be done - if the circuit truly had an Open Collector input.
A lot of people like to visualize proximity sensors as though they were mechanical switches. That visualization leads to problems. Mechanical switches can be connected in series or in parallel, but most electronic switches cannot. When it only costs a few dollars to AND or to OR proximity sensors using off-the-shelf electronics, I always go to the trouble of designing a circuit that properly handles multiple signals.
I am new to the forum, searching about proximity switches connection for G540.
These are the switches I have bought Sorotec - Induktiver Näherungsschalter
I have been trying to connect them to my gecko g540 but with no luck at all. I have the same setup as yours, a 36V DC for the gecko and motors and a 12V Dc for the
Could you please tell me what relay did you use and how you have connect it?
It looks like the Sorotec units have the standard wire colors, i.e. Brown = +12VDC, Black = sensor output, Blue = Ground. Connect +12VDC to the Brown wire. Connect the Blue wire to Ground and then connect the Black wire to one of the G540 inputs. When the proximity sensor "sees" metal, it will pull the sensor input to Ground. The units are NPN, which means that they "sink" current. (PNP units "source" current.)
Look at the schematics for the G540 and you'll see that the inputs are connected via optocouplers that require the signal to pull the input to ground to turn on the optocoupler. That's exactly what the NPN proximity switch does. The anode of the optocoupler is connected internally to +12VDC. The cathode is connected to your device through a 4.7K resistor. That means that the NPN sensor will pull about 2.5mA through the diode part of the optocoupler, which is enough to turn on the transistor that pulls the parallel port pin LOW.
I tried it and it works!
I wanted to connect all 3 switches in parallel so I could have 2 more available inputs in G540, as I already have a zero tool connected.
My previous, mechanical switches were connected that way.
But, as you wrote proximity switches cannot be connected in parallel.
So, I thought to connect the X and Y axis and leave the Z unconnected, I want the last input for a relay for my spindle.
Buy an Arduino Uno (or similar) microcontroller and let the microcontroller provide a single output for multiple inputs. The Arduinos that I have on my test bench have at least 20 I/O lines available, more than enough to handle proximity sensors. Where I live, an Arduino Uno R3 costs about $30 U.S. The software is OpenSource (no cost). Breadboard layout and schematic capture software is also OpenSource, so designing a circuit costs nothing but your time. Tutorials are available to teach you how to build anything from simple circuits blink a single LED to more complex interrupt driven designs that can provide a pulse train to drive a stepper motor (via a Geckodrive stepper controller) at high speed.
Visit the Ardunio website at arduino.cc. You'll quickly see just how much you can do with a $30 Arduino. (Currently, I have seven Arduinos sitting on my test bench, each running different 'sketches' that will go to final design next week. I test things on the Ardunio, work out the bugs in the design or software, then burn an ATmega328P microcontroller chip (about $2.00 each) and finally have circuit boards made. For one-off work, you can just use a "shield" and mount your connectors/parts to the shield, plug the shield into the Arduino and then run the "custom" project.)
Double post, sorry
Last edited by SteliosA; 03-11-2013 at 05:40 AM.