spindelkonfiguration stepdir problem

More
3 years 2 months ago #277214 by wuyatom
 

Attachment not found

,I use the latest spindle orientation configuration code from Talla83, which can achieve spindle positioning. The current problem is that after running G code to M3 code to open the spindle, the entire G code will stop. Can you help me check where the problem is? 

Please Log in to join the conversation.

More
3 years 2 months ago #277227 by tommylight
The gcode has M3 but does not have S1000 or the spindle RPM in it, try adding that.
Also the spindle.0.at-speed is still off.

Please Log in to join the conversation.

More
3 years 2 months ago #277231 by wuyatom
Now it's M3. After turning on the spindle, all joints stop working

Please Log in to join the conversation.

More
3 years 2 months ago #277232 by tommylight
In gcode:
M3 S1000

Please Log in to join the conversation.

More
3 years 2 months ago #277234 by wuyatom
 

Attachment not found

Please Log in to join the conversation.

More
3 years 2 months ago #277235 by wuyatom
Will get stuck in this place

Please Log in to join the conversation.

More
More
3 years 2 months ago #277242 by wuyatom
Sorry, I'm not familiar with HAL and various components, and I don't know what to modify,Can you help me make the necessary modifications? Thank you very much

Please Log in to join the conversation.

More
3 years 2 months ago #277263 by Aciera
Try the 'halshow' tool to look at the 'spindle-at-speed' component (which is a 'near' component).
linuxcnc.org/docs/devel/html/hal/halshow.html

With 'halshow' look at the pins
'spindle-at-speed.in1' connected to your spindle spindle speed command
'spindle-at-speed.in2' connected to your spindle encoder feedback
'spindle-at-speed.out' connected to the spindle.0.at-speed (which needs to be true for the motion to begin)
'spindle-at-speed.difference' sets the tolerance


In your hal file you have:

setp spindle-at-speed.difference [SPINDLE_0]MAX_ERROR

and in your ini the value is set to:

MAX_ERROR = 0.1

So you may want to try larger values for MAX_ERROR.

Please Log in to join the conversation.

More
3 years 2 months ago #277638 by andypugh
This looks like a spindle-at-speed problem.

But, assuming that emcoder.00 is the spindle encoder, it looks like a genuine not-at-speed.

spindle.0.speed-out is 1000 rpm, and the encoder velocity is zero.
So, for some reason, the spindle isn't turning.

Is the stepgen enabled?

Please Log in to join the conversation.

Time to create page: 0.070 seconds
Powered by Kunena Forum