Spindle ccw hanging

More
16 Mar 2019 17:14 #128757 by biqut2
Replied by biqut2 on topic Spindle ccw hanging

newbynobi wrote: Hallo @all,

I checked with
gmoccapy 1.5.9 from linuxcnc 2.7
gmoccapy 2.3.5 from master
gmoccapy 3.0.2 from my development branch

All do work as expected, if you set a min spindle rev to 500 rpm on the settings page and than change to MDI mode and enter
S100 M4
you will have a spindle running reverse with 500 rpm and label shows S -500
enter S100 M3
you will have a spindle running forward with 500 rpm and label shows S 500

IMHO in the case mentioned here, it has had another reason, that reverse did not run. May be spindle.speed-out is not accepted by the VFD, as that value is negative, many VFD need absolute values to work properly.

So in short, I am not bale to find an error in gmoccapy code.

Norbert


Its working correctly now so I'm happy with the solution of changing the minimum speed in the pref file. The only side effect I can think of is that its now possible to command a speed lower than what the machines capable of. That shouldn't ever be a problem unless someone programming the machine makes a typo.

The two concerns I have with your latest post are that this problem is being produced by touching/clicking the button in the gmoccapy gui, not from the MDI screen and also spindle.speed-out has no control over the vfd. The way everything is hooked up we're basically tuning one relay on for CW and turning another relay on for CCW. Its essentially being run open loop. As long as the output changes state that is all that matters and the screenshots posted earlier in this thread show that the output state was not changing in hal before the config change and it started changing state after the config change.

Either way thank you for your work on gmoccapy and linuxcnc, I am in the process of setting it up for all of my cnc machines to create a consistent interface from machine to machine.

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

More
17 Mar 2019 08:50 #128801 by newbynobi
Replied by newbynobi on topic Spindle ccw hanging
Thak youfor your feedback. I am very interested in finding out what happen with your config and a solution for the feature. Could you please test with min spindle rev set and MDI command?

Does that work as expected?

Could i get your complete config folder to check all in there and that way find what happened?

Norbert

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

More
17 Mar 2019 09:16 #128804 by Mike_Eitel
Replied by Mike_Eitel on topic Spindle ccw hanging
In my gmoccapy plus huanyang config I had to add a small feature. If run stays on a change of direction is not accepted by the VFD. When changing direction I disable the run signal for a few msec. Works perfect in all modes.
Mike

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

More
18 Mar 2019 11:57 #128884 by biqut2
Replied by biqut2 on topic Spindle ccw hanging

newbynobi wrote: Thak youfor your feedback. I am very interested in finding out what happen with your config and a solution for the feature. Could you please test with min spindle rev set and MDI command?

Does that work as expected?

Could i get your complete config folder to check all in there and that way find what happened?

Norbert


Had a busy weekend, I'll get my config directory copied and uploaded hopefully this afternoon when I get to the shop.

@Mike the vfd doesn't play a part in the issues I was experiencing, you can recreate it with the outputs not even connected to anything, Hal isn't changing the output state for whatever reason.

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

More
18 Mar 2019 19:58 #128918 by Mike_Eitel
Replied by Mike_Eitel on topic Spindle ccw hanging
That was what I understood..
Just don't be surprised when your outputs work later on as they should, only motor not. ;-)

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

More
18 Mar 2019 22:14 #128933 by biqut2
Replied by biqut2 on topic Spindle ccw hanging

newbynobi wrote: Thak youfor your feedback. I am very interested in finding out what happen with your config and a solution for the feature. Could you please test with min spindle rev set and MDI command?

Does that work as expected?

Could i get your complete config folder to check all in there and that way find what happened?

Norbert


Here it is, just copied it from the machine. It is working as is. This is after I edited the minimum rpm line.
Attachments:

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

More
18 Mar 2019 22:23 #128935 by biqut2
Replied by biqut2 on topic Spindle ccw hanging

Mike_Eitel wrote: That was what I understood..
Just don't be surprised when your outputs work later on as they should, only motor not. ;-)


I do appreciate the concern. I can go straight from CW to CCW or vise versa with no ill effects. The VFD is configured to coast to a stop and comes to a stop and then immediately reverses. This particular model doesn't have a braking circuit hence the reason its configured to coast. I'll link a video of it going from a stop to 1000rpm CW to 1000rpm CCW to 1000rpm CW to a stop.

drive.google.com/file/d/1vSIZohK_h-mSk8s...AAI/view?usp=sharing

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

Moderators: newbynobi
Time to create page: 0.096 seconds
Powered by Kunena Forum