Spinx1 to 7i85
25 Nov 2015 22:43 #65804
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Okay, I attached the error log and my hal and ini files.
It's looking very messy. I didn't get very far today
It's looking very messy. I didn't get very far today
Please Log in or Create an account to join the conversation.
25 Nov 2015 23:51 #65806
by andypugh
Replied by andypugh on topic Spinx1 to 7i85
Actually, you are really close...
The names=.... pid.0, pid.1 in the first HAL file is a clever way to make things work. All you need to do now is remove the loadrt pid from the spindle HAL file.
All instances of a component normally have to be loaded at the same time. There is a way round that using two-pass scanning.
The names=.... pid.0, pid.1 in the first HAL file is a clever way to make things work. All you need to do now is remove the loadrt pid from the spindle HAL file.
All instances of a component normally have to be loaded at the same time. There is a way round that using two-pass scanning.
Please Log in or Create an account to join the conversation.
28 Nov 2015 03:19 #65915
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Thanks Andy.
I got it to load but I lost the spindle enable somehow. I'm not getting any spindle motion yet.
Line 61 down in the latest spindle hal file things get messy. addf abs.0. servo- thread wasn't liked, so that is turned off. After that are the pwm components you helped me with earlier. That needs looking at as well.
Also I comented out all the simulated spindle components under line 55 in the lathe_v7hal. Do I need any of those turned on?
I got it to load but I lost the spindle enable somehow. I'm not getting any spindle motion yet.
Line 61 down in the latest spindle hal file things get messy. addf abs.0. servo- thread wasn't liked, so that is turned off. After that are the pwm components you helped me with earlier. That needs looking at as well.
Also I comented out all the simulated spindle components under line 55 in the lathe_v7hal. Do I need any of those turned on?
Please Log in or Create an account to join the conversation.
28 Nov 2015 03:43 #65917
by andypugh
Replied by andypugh on topic Spinx1 to 7i85
Odd that the addf didn't work. Is there really as space in "servo- thread" ? There shouldn't be.
As a general rule, commenting-out a HAL line just defers the problem. You need to work it out, not mask it.
One problem is that every instance of each module type needs to be loaded at the same time, which somewhat limiting. You often need to go back to an earlier-loading HAL file and add some extras.
There is the option to name each component instance and use two-pass processing. It's nice, if you start off that way.
linuxcnc.org/docs/2.7/html/hal/twopass.html
As a general rule, commenting-out a HAL line just defers the problem. You need to work it out, not mask it.
One problem is that every instance of each module type needs to be loaded at the same time, which somewhat limiting. You often need to go back to an earlier-loading HAL file and add some extras.
There is the option to name each component instance and use two-pass processing. It's nice, if you start off that way.
linuxcnc.org/docs/2.7/html/hal/twopass.html
Please Log in or Create an account to join the conversation.
28 Nov 2015 15:39 #65948
by andypugh
This turns out to have been an accident, the orient.0.is-oriented pin won't exist until LinuxCNC v 2.8.
Replied by andypugh on topic Spinx1 to 7i85
That pin will exist in the next 2.7 release. (I thought it was due in 2.8, until I checked)
This turns out to have been an accident, the orient.0.is-oriented pin won't exist until LinuxCNC v 2.8.
Please Log in or Create an account to join the conversation.
28 Nov 2015 15:43 #65949
by OT-CNC
No , just a typo me trying to explain where to look in the hal.
If I un-comment it, the error is addf requires 2 arguments 1 given.
I'll continue reading the manual...
Replied by OT-CNC on topic Spinx1 to 7i85
Is there really as space in "servo- thread"
No , just a typo me trying to explain where to look in the hal.
If I un-comment it, the error is addf requires 2 arguments 1 given.
I'll continue reading the manual...
Please Log in or Create an account to join the conversation.
28 Nov 2015 15:49 #65950
by andypugh
Well, actually, it is a _missing_ space that is the problem.
#addf abs.0.servo-thread
should be
addf abs.0 servo-thread
ie, add the abs.0 function to the servo-thread.
Replied by andypugh on topic Spinx1 to 7i85
Is there really as space in "servo- thread"
No , just a typo me trying to explain where to look in the hal. .
Well, actually, it is a _missing_ space that is the problem.
#addf abs.0.servo-thread
should be
addf abs.0 servo-thread
ie, add the abs.0 function to the servo-thread.
Please Log in or Create an account to join the conversation.
28 Nov 2015 16:04 #65952
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
Thank you, you saved me a few hours staring at the screen to fix that line.
It loads up but I'm still not getting spindle motion. I'm not seeing a status change on the spinx for ccw rotation. CW led is lit, also no enable or pwm led lit. This is if I try to control it via the GUI spindle buttons and or M03 S1000 codes.
I'm looking over the section for cw/ccw in the hal to see if I can link them to your earlier examples. Unless you see something else obviously wrong?
It loads up but I'm still not getting spindle motion. I'm not seeing a status change on the spinx for ccw rotation. CW led is lit, also no enable or pwm led lit. This is if I try to control it via the GUI spindle buttons and or M03 S1000 codes.
I'm looking over the section for cw/ccw in the hal to see if I can link them to your earlier examples. Unless you see something else obviously wrong?
Please Log in or Create an account to join the conversation.
28 Nov 2015 16:39 - 28 Nov 2015 16:40 #65954
by andypugh
Time to fire up halmeter and see what is happening. You can start at either end, but I would make sure that the pwmgen.enable pin is going true when the spindle is on, for example.
(You can get halmeter from the Machine menu, it lets you look at signals and pins).
Replied by andypugh on topic Spinx1 to 7i85
Thank you, you saved me a few hours staring at the screen to fix that line.
It loads up but I'm still not getting spindle motion. I'm not seeing a status change on the spinx for ccw rotation. CW led is lit, also no enable or pwm led lit.
Time to fire up halmeter and see what is happening. You can start at either end, but I would make sure that the pwmgen.enable pin is going true when the spindle is on, for example.
(You can get halmeter from the Machine menu, it lets you look at signals and pins).
Last edit: 28 Nov 2015 16:40 by andypugh.
Please Log in or Create an account to join the conversation.
28 Nov 2015 17:10 - 28 Nov 2015 17:11 #65959
by OT-CNC
Replied by OT-CNC on topic Spinx1 to 7i85
It goes TRUE on cw/ccw. I also get a value for the pwm. Interesting to see that the number is climbing. I can slow it down when I rotate the spindle manually. So some of the pid is working.
Something is off in the hal.
Something is off in the hal.
Last edit: 28 Nov 2015 17:11 by OT-CNC.
Please Log in or Create an account to join the conversation.
Time to create page: 0.110 seconds