Back or front tool

More
01 Nov 2021 12:38 #224871 by andypugh
Replied by andypugh on topic Back or front tool
linuxcnc.org/docs/2.8/html/man/man9/moti....html#SPINDLE%20PINS

spindle.0.reverse - TRUE when the spindle should rotate backward

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

More
01 Nov 2021 13:26 #224876 by john11668
Replied by john11668 on topic Back or front tool
Fine but is that all that i need to add to my hal .
Somehow I suspect not
Please remember Andy that I am a novice here
My Hal was generated by initially by stepconfig and although I have progressively added a number of functions I have not needed to alter the spindle commands so i am floundering here !

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

More
01 Nov 2021 13:29 #224878 by andypugh
Replied by andypugh on topic Back or front tool
Which output pin (if any) is connected to your reversing relay?

Is it safe to reverse with the spindle on?

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

More
01 Nov 2021 13:38 - 01 Nov 2021 13:39 #224879 by john11668
Replied by john11668 on topic Back or front tool
Was planning for 14 or 16 unless you advise otherwise
Would not be safe to call for M4 if spindle running under M3 and Vice versa .
Was planning to call for a pause but if that can automated then all the better
Last edit: 01 Nov 2021 13:39 by john11668.

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

More
01 Nov 2021 19:51 #224909 by rider-83
Replied by rider-83 on topic Back or front tool
I hope you find this use full.

I'm using a servo motor for my spindle as the original DC motor was failing.
I have a dual 5v relay board from Ebay for around £4 for the control switching of the spindle.
The servo drive requires:
- Spindle enable
- Analogue 0-10v for its speed control, therfore:

Spindle Enable (Relay)
setp parport.0.pin-16-out-invert 1
net spindle-on => parport.0.pin-16-out


Spindle Direction (Relay)
net spindle-cw => parport.0.pin-17-out

Pin 17 output is connected to a small 5v relay wired normally open in series to the Polarity Reversing Modual
When CW is required, then 5v relay energises the Polarity Modual and +10v swaps to -10v for example.


www.modellingelectronics.co.uk/products/...arity-switch-module/

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

More
01 Nov 2021 21:22 #224919 by john11668
Replied by john11668 on topic Back or front tool
Not sure this fits my need s Ride
My pin 17 switches on the spindle and speed increase via the 0-10 v dc analogue output increases the speed .
I dont think I can change this to minus 10v .
My reversing relay simply reverses polarityat my DC motor which can be plus 170v to run forward and up to minus 170v to run backwards

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

More
01 Nov 2021 22:49 #224928 by andypugh
Replied by andypugh on topic Back or front tool
If you absolutely must not reverse the motor when it is running then that can be achieved with HAL trickery, but it would require that there be a spindle encoder so that the system can know that the spindle is stopped or moving.

But, the logic shown by rider-83 should work for you anyway, in that a parport pin will be set high in reverse. What happens in the hardware past that point is up to you.

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

More
02 Nov 2021 00:10 #224941 by john11668
Replied by john11668 on topic Back or front tool
Will try this and report back

Thanks

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

More
02 Nov 2021 16:11 #225006 by john11668
Replied by john11668 on topic Back or front tool
So the following is a c/p from my Hal

setp parport.0.pin-01-out-invert 1
net spindle-pwm => parport.0.pin-01-out
net xstep => parport.0.pin-02-out
setp parport.0.pin-02-out-reset 1
setp parport.0.pin-03-out-invert 1
net xdir => parport.0.pin-03-out
net zstep => parport.0.pin-06-out
setp parport.0.pin-06-out-reset 1
net zdir => parport.0.pin-07-out
net spindle-on => parport.0.pin-17-out
net spindle-cw => parport.0.pin-16-out

I seem to need this format for my spindle to start and for me to have speed control
I am looking for pin 16 to operate my reversing relay

i do not see this as different from yours rider-83 except I have transposed 16 and 17 unless I am missing something

I am not getting any error messages But my reversing relay is not being operated
Is there anything wrong with the above

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

More
02 Nov 2021 17:29 #225020 by tommylight
Replied by tommylight on topic Back or front tool
Try:
net spindle-ccw => parport.0.pin-16-out

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

Moderators: newbynobiHansU
Time to create page: 0.106 seconds
Powered by Kunena Forum