Back or front tool

More
03 Nov 2021 16:14 #225115 by john11668
Replied by john11668 on topic Back or front tool
No Different
The state of pin 16 is not changing when I call for spindle rev
Pin 17 changes when I call for spindle on

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

More
03 Nov 2021 18:32 #225131 by tommylight
Replied by tommylight on topic Back or front tool
If the spindle-on turns the actual spindle on, it is not set properly in hal for reverse and PWM.
The spindle-cw and spindle-ccw should be used with bidirectional PWM.

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

More
03 Nov 2021 23:11 #225162 by john11668
Replied by john11668 on topic Back or front tool

If the spindle-on turns the actual spindle on, it is not set properly in hal for reverse and PWM.
The spindle-cw and spindle-ccw should be used with bidirectional PWM.


 

I have come to this conclusion Tommy
But what Are the "proper settings in Hal to reverse this spindle and to regulate its speed ?

I have good  regulation of speed in forward direction . It is a DC motor so so only requires a reversing relay to change the direction so I dont quite understand what is wrong with operating a reversing relay on M4  , Spindle start  and speed  seem to follow naturally.

I am not looking to understand the Hal file either  , just to have the reverse function working so if someone could tell me which hal entries will give me what i want , then i will be happy

 

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

More
04 Nov 2021 00:43 #225174 by tommylight
Replied by tommylight on topic Back or front tool
Sorry, i am aware that was of not much help, but i could not recall what exactly has to be changed where, long time since i used spindles.
Can you please upload the .hal and .ini files here so we can have a look, or did i miss them ?
Did you try to set the pin 16 to spindle-ccw in hal? that should activate the relay when using M4 or pressing F10 on the keyboard.

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

More
04 Nov 2021 10:46 - 04 Nov 2021 10:51 #225225 by john11668
Replied by john11668 on topic Back or front tool
Hi tommy
Files are in this thread (top of page 5)
I did add the instructions in the following two posts to give me a dummy y axis but i dont think that should affect what we are trying to do here

Tried both  cw  and ccw as a pin 16  command as in     "  net spindle-ccw => parport.0.pin-16-out  "
also tried  "pin -16 -in "    but was "not recognised "

Thanks
Last edit: 04 Nov 2021 10:51 by john11668.
The following user(s) said Thank You: tommylight

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

More
04 Nov 2021 21:29 #225271 by andypugh
Replied by andypugh on topic Back or front tool
spindle-ccw in your config is not connected to anything other than the parallel port pin.

Try
net spindle-ccw spindle.0.reverse => parport.0.pin-16-out
instead
The following user(s) said Thank You: tommylight, john11668

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

More
04 Nov 2021 23:28 #225299 by john11668
Replied by john11668 on topic Back or front tool
Thank you but no difference Andy
Pin 16 stays low on both M3 and M4

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

More
05 Nov 2021 06:29 #225362 by rider-83
Replied by rider-83 on topic Back or front tool
I think as a sanity check I would see if it is a hardware issue. As an experiment try swapping the LPT pins around.


Example:
net spindle-ccw spindle.0.reverse => parport.0.pin-17-out

Also swap 16 around
And have a look at what is going on at 17
The following user(s) said Thank You: john11668

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

More
05 Nov 2021 15:21 #225403 by andypugh
Replied by andypugh on topic Back or front tool
Open halmeter and look if the spindle.0.reverse pin and the spindle-ccw signal are doing the right things.

Also note that you need a non-zero spindle speed set too. So M4 S10 to test.
The following user(s) said Thank You: john11668

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

More
05 Nov 2021 22:42 - 05 Nov 2021 22:49 #225443 by john11668
Replied by john11668 on topic Back or front tool
Right !
So I am in Gmoccapy screen and using (onscreen) spindle forward, stop , and reverse buttons . Also watching LEDs in halshow(watch)
So I select spindle forward
Pin 17 shows illuminated Led, spindle runs ccw and selected speed shows 300.
spindle stop causes both Leds to go out spindle stops
Spindle reverse brings on both Leds, spindle still runs ccw
At Bob Led illuminated yellow corresponds with 5v at pin ( red gives 0v)
At this stage in Hal      net spindle-on => parport .0.pin-17-out
And            net spindle-ccw spindle.0.reverse => parport.0.pin-16-out



So In hal file I transpose 16 into spindle "on" command and 17 into spindle "reverse" command .

Now repeating the process:-
spindle start clockwise button does not cause spindle to run at all but pin 16 Led illuminates
Spindle stop both Leds go red
Spindle reverse button illuminates both leds and both pins go to 5V
Spindle still  runs ccw and speed indicator shows minus 300

With regard to the hardware  , if I ground the signal wire to my relay board  the  relay indicator lamp comes on and my reversing relay operates so I am happy that is operating as it should !

So folks . does this tell you anything?

Might it be an Idea for me to try this with a new stepconfig calling for spindle forward on pin 17 and reverse on 16
Last edit: 05 Nov 2021 22:49 by john11668.

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

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