Limit Switches, EStop and Spindle

More
21 Jan 2021 09:00 - 21 Jan 2021 09:01 #196069 by Marsbar
I also just found this on
en.industryarena.com/forum/breakout-boar...-wiring--373194.html

It looks like I may have mine wired as an NPN
and might try this to see if I get a result!
Attachments:
Last edit: 21 Jan 2021 09:01 by Marsbar.

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 11:05 #196073 by Marsbar
I just tried the circuit but all it does is limit the voltage change to something tiny.
with the existing setup I get a voltage drop from around 9 volts to close to 0.
I have tried inverting the pin but still no response from the GUI.

I tried your suggestion with the EStop line of code but then I cannot toggle the GUI power switch rendering everything inactive!

With the spindle Hal meter, the pwmgen.0.value changes as expected from 0 upwards/downwards as the +/- button is pressed in the GUI
I have inverted/uninverted the spindle signal using the Stepconfig Wizard several times but I always get +10volts form the BOB pin

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 12:55 #196082 by tommylight

I just tried the circuit but all it does is limit the voltage change to something tiny.
with the existing setup I get a voltage drop from around 9 volts to close to 0.

Diode is reversed.

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 13:50 #196088 by Marsbar
Swopped the Diode round and got a 0 to 1 volt rise when the switch is activated.
I'm assuming the previous wiring is correct without the resistor & diode as this gives near to 9 volts.

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 17:39 #196120 by tommylight
What is the voltage on the other inputs that are not connected to anything?

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 19:20 #196128 by aleksamc
Simply buy NPN sensors and don't waste your time.

Also I didn't anderstand about

I tried your suggestion with the EStop line of code but then I cannot toggle the GUI power switch rendering everything inactive!

Now your E-stop switch is working fine?

If you always get 10V nevertheless, your variable "value" changes, it seems, that analog output is defective.

Then if you want to controll speed from LCNC, try to use discreate PWM signal to your freaquency drive.
Freaquency drive also could be operated by PWM signal (not analog output)

Please Log in or Create an account to join the conversation.

More
21 Jan 2021 21:28 #196149 by tommylight

A resistor of 2.2 to 4.7K should do just fine.
Attachments:

Please Log in or Create an account to join the conversation.

More
22 Jan 2021 08:10 #196183 by Marsbar
Hi tommylight,

I get 9 volts

Please Log in or Create an account to join the conversation.

More
22 Jan 2021 08:52 #196184 by Marsbar
I added a 3.3K resistor but still no signal.
I checked the hal meter signal and no change.
(The voltage between gnd and pin 10 with the resistor reads 6.7 volts)

I am beginning to wonder if the Parallel Port is the suspect.
It is a dual parallel port of which I am just using the first one.
It is a StarTech PEX2PECP2 which uses the MCS9865 chipset which in my research has been cited as good for LinuxCNC

Please Log in or Create an account to join the conversation.

More
22 Jan 2021 09:02 #196185 by Marsbar
The Estop is still ineffective.

The way my drive works is that it accepts an analogue signal.
I can control this with a potentiometer so this problem can be overcome 'manually' - not relying on LCNC.

As I mentioned just now in my reply to tommylight, I may need to investigate the parallel port further.

Please Log in or Create an account to join the conversation.

Time to create page: 0.221 seconds
Powered by Kunena Forum