spindle encoder help
08 Mar 2020 14:52 #159471
by PCW
Replied by PCW on topic spindle encoder help
Right, so as I mentioned the encoder number is wrong.
(you dont need 3 encoders and if you create 3 encoders
you will still not have encoder number 3 ( just encoders 0,1,2 )
In your custom.hal, replace
loadrt encoder num_chan=3
with
loadrt encoder
The replace all instances of "encoder.3" with "encoder.0"
and you should be a lot closer.
(you dont need 3 encoders and if you create 3 encoders
you will still not have encoder number 3 ( just encoders 0,1,2 )
In your custom.hal, replace
loadrt encoder num_chan=3
with
loadrt encoder
The replace all instances of "encoder.3" with "encoder.0"
and you should be a lot closer.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
08 Mar 2020 20:16 - 09 Mar 2020 02:49 #159506
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic spindle encoder help
Thank you PCW.
I tried that trick.
but no digits displa in the spindle speed dialogue but spindle at speed becomes green to red.
without inputting encoder to stepconf spindle speed dialogue in axis gui becomes 0 to 1 when i spndle CW
I tried that trick.
but no digits displa in the spindle speed dialogue but spindle at speed becomes green to red.
without inputting encoder to stepconf spindle speed dialogue in axis gui becomes 0 to 1 when i spndle CW
Last edit: 09 Mar 2020 02:49 by Dinuka_Shehan.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
08 Mar 2020 20:34 - 08 Mar 2020 20:46 #159508
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic spindle encoder help
Spindle Enable
If you need a spindle enable signal, link your output pin to motion.spindle-on. To link these pins to a parallel port pin put something like the following in your .hal file, making sure you pick the pin that is connected to your control device.
net spindle-enable motion.spindle-on => parport.0.pin-14-out
4. Spindle Direction
If you have direction control of your spindle the HAL pins motion.spindle-forward and motion.spindle-reverse are controlled by M3 and M4. Spindle speed Sn must be set to a positive non-zero value for M3/M4 to turn on spindle motion.
To link these pins to a parallel port pin, put something like the following in your .hal file making sure you pick the pin that is connected to your control
device.
net spindle-fwd motion.spindle-forward => parport.0.pin-16-out
net spindle-rev motion.spindle-reverse => parport.0.pin-17-out
1) Linux cnc spindle configuration documentation says pin 14 as spindle enable to hal.
If i add net spindle-enable motion.spindle-on => parport.0.pin-14-out
What should be the hardware configuration.
2) As well as i am using a 5 axis chinese breakout board.use pin 17 as spindle cw.i hook up wire like this.
Pin 17 > bob relay normally open > auxiliary 5v coil (it connect to 230V contactor coil)
> it will run the 3 phase motor.
How can i run spindle ccw and i want to run both directions by on off by bob instead do it manually.
Any suggestions?
By
Shehan
If you need a spindle enable signal, link your output pin to motion.spindle-on. To link these pins to a parallel port pin put something like the following in your .hal file, making sure you pick the pin that is connected to your control device.
net spindle-enable motion.spindle-on => parport.0.pin-14-out
4. Spindle Direction
If you have direction control of your spindle the HAL pins motion.spindle-forward and motion.spindle-reverse are controlled by M3 and M4. Spindle speed Sn must be set to a positive non-zero value for M3/M4 to turn on spindle motion.
To link these pins to a parallel port pin, put something like the following in your .hal file making sure you pick the pin that is connected to your control
device.
net spindle-fwd motion.spindle-forward => parport.0.pin-16-out
net spindle-rev motion.spindle-reverse => parport.0.pin-17-out
1) Linux cnc spindle configuration documentation says pin 14 as spindle enable to hal.
If i add net spindle-enable motion.spindle-on => parport.0.pin-14-out
What should be the hardware configuration.
2) As well as i am using a 5 axis chinese breakout board.use pin 17 as spindle cw.i hook up wire like this.
Pin 17 > bob relay normally open > auxiliary 5v coil (it connect to 230V contactor coil)
> it will run the 3 phase motor.
How can i run spindle ccw and i want to run both directions by on off by bob instead do it manually.
Any suggestions?
By
Shehan
Last edit: 08 Mar 2020 20:46 by Dinuka_Shehan.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
09 Mar 2020 02:51 #159556
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic spindle encoder help
something wrong i have done?
can't i check my encoder if it working or not.
s their any solution?
can't i check my encoder if it working or not.
s their any solution?
Please Log in or Create an account to join the conversation.
09 Mar 2020 03:01 - 09 Mar 2020 03:01 #159557
by PCW
Replied by PCW on topic spindle encoder help
Read the encoder position with halmeter
The encoder position (encoder.0.position)
should increase by 1.000 every spindle rotation
if your scaling (and wiring etc) is correct.
The encoder position (encoder.0.position)
should increase by 1.000 every spindle rotation
if your scaling (and wiring etc) is correct.
Last edit: 09 Mar 2020 03:01 by PCW.
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
09 Mar 2020 03:55 #159560
by Dinuka_Shehan
always 0 (encoder.0.position) when it rotation in hal meter
i connect pins like this
pin 10 to phase A
pin 11 to phase B
pin 12 to index
pc 5V to encoder 5V to 12VDC
pc gnd to encoder 0V (common)
GND(sheild) not connected
Replied by Dinuka_Shehan on topic spindle encoder help
Read the encoder position with halmeter
The encoder position (encoder.0.position)
should increase by 1.000 every spindle rotation
if your scaling (and wiring etc) is correct.
always 0 (encoder.0.position) when it rotation in hal meter
i connect pins like this
pin 10 to phase A
pin 11 to phase B
pin 12 to index
pc 5V to encoder 5V to 12VDC
pc gnd to encoder 0V (common)
GND(sheild) not connected
Please Log in or Create an account to join the conversation.
09 Mar 2020 04:23 #159563
by PCW
Replied by PCW on topic spindle encoder help
How are A and B connected? If you are using a standard 5 AXIS type
BOB, the BOB inputs are not 5V compatible AFAIK
BOB, the BOB inputs are not 5V compatible AFAIK
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
09 Mar 2020 04:50 #159565
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic spindle encoder help
i connect pin 10 to phase A
And pin 11 to phase B.
Is my bob not compatible for encoder input or bob 5V is not enough for encoder.
Or both matters for this probelem.
Nexr thing is 0V and gnd wires should connect together?
And pin 11 to phase B.
Is my bob not compatible for encoder input or bob 5V is not enough for encoder.
Or both matters for this probelem.
Nexr thing is 0V and gnd wires should connect together?
Please Log in or Create an account to join the conversation.
- Dinuka_Shehan
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 346
- Thank you received: 26
09 Mar 2020 04:53 #159566
by Dinuka_Shehan
Replied by Dinuka_Shehan on topic spindle encoder help
yes pin 10 and gnd have 12V voltage.
Bob is 5 axis chinese breakout board.$5 one when i bought from ebay.
Bob is 5 axis chinese breakout board.$5 one when i bought from ebay.
Please Log in or Create an account to join the conversation.
Time to create page: 0.111 seconds