- Posts: 22
- Thank you received: 0
Limit Switches, EStop and Spindle
5 years 9 months ago #196069
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
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!
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!
Attachment not found
Please Log in to join the conversation.
5 years 9 months ago #196073
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
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
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 to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
5 years 9 months ago #196082
by tommylight
Replied by tommylight on topic Limit Switches, EStop and Spindle
Diode is reversed.Marsbar wrote: 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.
Please Log in to join the conversation.
5 years 9 months ago #196088
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
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.
I'm assuming the previous wiring is correct without the resistor & diode as this gives near to 9 volts.
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
5 years 9 months ago #196120
by tommylight
Replied by tommylight on topic Limit Switches, EStop and Spindle
What is the voltage on the other inputs that are not connected to anything?
Please Log in to join the conversation.
5 years 9 months ago #196128
by aleksamc
Replied by aleksamc on topic Limit Switches, EStop and Spindle
Simply buy NPN sensors and don't waste your time.
Also I didn't anderstand about
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)
Also I didn't anderstand about
Now your E-stop switch is working fine?I tried your suggestion with the EStop line of code but then I cannot toggle the GUI power switch rendering everything inactive!
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 to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22010
- Thank you received: 3
5 years 9 months ago #196149
by tommylight
A resistor of 2.2 to 4.7K should do just fine.
Replied by tommylight on topic Limit Switches, EStop and Spindle
Attachment not found
A resistor of 2.2 to 4.7K should do just fine.
Please Log in to join the conversation.
5 years 9 months ago #196183
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
Hi tommylight,
I get 9 volts
I get 9 volts
Please Log in to join the conversation.
5 years 9 months ago #196184
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
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
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 to join the conversation.
5 years 9 months ago #196185
by Marsbar
Replied by Marsbar on topic Limit Switches, EStop and Spindle
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.
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 to join the conversation.
Time to create page: 0.119 seconds
