4th Axis rotation angle limit problem

More
14 years 6 months ago #19347 by SvenH
Ok, awesome you (and maybe others) are willing to have a look!

Here is the sample config, made fresh from a working 4axis configuration, just the spindle added.

File Attachment:

File Name: config_clean.zip
File Size:5.76 KB

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

More
14 years 6 months ago #19360 by andypugh
I have fiddled the INI and HAL.

Now M3 S10 (for example) will start the A axis moving. M5 will (probably) stop it moving.

This _only_ allows A to work as a lathe spindle, but it ought to be possible to configure such that A acts as an axis when the "spindle" is stopped by switching modes on spindle.is-on. Let me know if you want me to try that.

File Attachment:

File Name: CNC_XYZ_A_lathe.zip
File Size:4.48 KB

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

More
14 years 6 months ago #19361 by SvenH
Thanks a lot Andy!
I'll give it a spin tomorrow.

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

More
14 years 6 months ago #19369 by SvenH
Hi Andy,

Gave it a try, the 4th will not move but the spindle controls in axis say the "spindle" does respond.

I tried to look up if the pins are ok but could not find any reference that seemed to be incorrect to my very limited understanding :)

I noticed that on line 8 of .hal you give loadrt stepgen ctrl_type=p,p,p,v step_type=0,0,0,0 where I would expect loadrt stepgen ctrl_type=p,p,p,v step_type=0,0,0,1. (expected because of reading it, not understanding of any kind..)

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

More
14 years 6 months ago #19370 by andypugh
SvenH wrote:

Gave it a try, the 4th will not move but the spindle controls in axis say the "spindle" does respond.


Ah, yes. And I know why. I forgot to connect the stepgen to the parport. You need to add:
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
to the HAL.

I noticed that on line 8 of .hal you give loadrt stepgen ctrl_type=p,p,p,v step_type=0,0,0,0 where I would expect loadrt stepgen ctrl_type=p,p,p,v step_type=0,0,0,1. (expected because of reading it, not understanding of any kind..)

step_type 1 is up/down, not step and direction. Is the A-axis stepper drive of a different type?

Note that you probably need to alter the [AXIS_3] scale in the INI to get the right mapping between S and actual rpm.

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

More
14 years 6 months ago #19372 by SvenH
Woohaaaaaaaaaaaaaaaaaaaaaa!
It works!

At least with the manual commands in axis

Now lunch and then try it with a program!

Thanks a lot Andy!

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

Time to create page: 0.073 seconds
Powered by Kunena Forum