Mill with auxilarry spindle

More
28 Feb 2020 16:37 #158761 by bobhare
Replied by bobhare on topic Mill with auxilarry spindle
Pin 'stepgen.3.position-cmd' does not exist 4677

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

More
28 Feb 2020 16:47 #158763 by tommylight
Replied by tommylight on topic Mill with auxilarry spindle

Pin 'stepgen.3.position-cmd' does not exist 4677

Pretty sure that vould have to be change to :
'stepgen.3.velocity-cmd'
but how exactly, i do not know
have a look
www.google.com/search?sxsrf=ALeKk039hgYk...QJQ&biw=1056&bih=604

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

More
28 Feb 2020 21:13 #158788 by Todd Zuercher
Replied by Todd Zuercher on topic Mill with auxilarry spindle
That isn't surprising that it would not load. When you change a stepgen from position to velocity mode, it changes what the pin names are for that stepgen. So the pin named stepgen.3.position-cmd no longer existed causing a hal file error and Linuxcnc not to start.

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

More
29 Feb 2020 11:51 #158807 by bobhare
Replied by bobhare on topic Mill with auxilarry spindle
Thanks again for your reply and as you can guess my knowledge of these things is woefully inadequate; please bear with me. I studied the HAL tutorial last night and am now a little wiser but not wise enough.
I found another Linux post, "4th Axis rotational angle limit problem" where the issue was similar to mine and changed the hal file in a similar way but without success.
I attach the modified hal file.
If you can help i would be grateful.

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

More
29 Feb 2020 11:55 #158808 by bobhare
Replied by bobhare on topic Mill with auxilarry spindle
Doesn't look like the file got attached. Also the debug message was 'axis.3.motor-vel-cmd' does not exist.

File Attachment:

File Name: Mill_Lathe...2-29.hal
File Size:4 KB
Attachments:

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

More
29 Feb 2020 14:02 #158810 by tommylight
Replied by tommylight on topic Mill with auxilarry spindle
setp stepgen.3.velocity-cmd [AXIS_3]SCALE
setp stepgen.3.steplen 1
setp stepgen.3.stepspace 0
setp stepgen.3.dirhold 36000
setp stepgen.3.dirsetup 36000
setp stepgen.3.maxaccel [AXIS_3]STEPGEN_MAXACCEL
net avel-cmd axis.3.motor-vel-cmd => stepgen.3.velocity-cmd
net avel-fb axis.3.motor-vel-cmd => axis.3.motor-vel-fb net avel-fb axis.3.motor-vel-fb => axis.3.motor-vel-fb
net astep <= stepgen.3.step
net adir <= stepgen.3.dir
net aenable axis.3.amp-enable-out => stepgen.3.enable
Also attach the errror part where it says
debug info

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

More
02 Mar 2020 16:02 #158987 by bobhare
Replied by bobhare on topic Mill with auxilarry spindle
I added, "net avel-fb axis.3.motor-vel-fb => axis.3.motor-vel-fb" to the hal file and the resulting debug message was:-
./ Mill-Lathe.hal.103: Pin 'axis.3.motor-vel-cmd' does not exist 4004.
The hal file is attached.

File Attachment:

File Name: Mill_Lathe...3-02.hal
File Size:4 KB
Attachments:

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

More
02 Mar 2020 16:09 #158989 by Todd Zuercher
Replied by Todd Zuercher on topic Mill with auxilarry spindle
That is because that pin does not in fact exist
There is a pin axis.N.joint-vel-cmd. (but not a motor version)

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

More
04 Mar 2020 09:53 #159182 by bobhare
Replied by bobhare on topic Mill with auxilarry spindle
Thanks again.
I modified the hal file in line with the post i mentioned earlier and Linuxcnc now opens. With the settings i had for position control i get the error, " joint 3 following error. I've played around with the max velocity and acceleration as well as ferror and min ferror without success. I've tried using m3s1000 to no avail.

File Attachment:

File Name: MLV1_2020-03-04.hal
File Size:4 KB

File Attachment:

File Name: MLV1_2020-03-04.ini
File Size:2 KB

I've also tried changing Axis 3 in the ini file that suggested in the above post again without success. The change was to delete the Axis 3 element and replace it with:-
[AXIS_3]
STEPGEN_MAXACCEL = 1125.0
SCALE = 100
I've reduced these two parameters; no joy.
I'm sailing round in a sea of uncertainty and perhaps the problem still lies in the hal file!
Attachments:

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

More
04 Mar 2020 12:09 - 04 Mar 2020 12:16 #159187 by PCW
Replied by PCW on topic Mill with auxilarry spindle
To combine both position mode (for A Axis use) and velocity mode (for spindle use)
is fairly complicated. I think it can be done with one stepgen in velocity mode
but requires a PID component and a bunch of signal re-routing depending on mode
plus dealing with the following error issue.

With software stepping, I suspect the simplest way would be to
have two stepgens (adding one to your existing configuration) ,
one setup in normal position mode for the A axis and one setup in velocity
mode for spindle use.

Then whatever signal you use for changing modes routes either the A axis
step/dir pins or the spindle step/dir pins to the physical parallel port pins
using either a mux_generic or a couple of lut5 components in hal to select which
stepgens step/dir pins get routed to the hal parallel port pins that drive the A axis/spindle.

If you dont need A axis gcode at all but just a variable speed, its much simpler .
You would just delete all the A Axis setup in your ini file and connections in you hal
file and just set the spindle velocity in the gcode.
Last edit: 04 Mar 2020 12:16 by PCW.

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

Time to create page: 0.145 seconds
Powered by Kunena Forum