Servo Tuning FF

More
14 years 3 months ago #21877 by andypugh
LAIR82 wrote:

I have gone through my hal file over and over again with a fine tooth comb and cannot find anything. Talking with my boss he was wondering if maybe the firmware is the problem.k


Can you post your HAL file here?

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

More
14 years 3 months ago #21879 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
I posted my hal and ini.


Thanks

Rick

File Attachment:

File Name: rick.txt
File Size:16.96 KB

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

More
14 years 3 months ago #21880 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
Heres my ini

File Attachment:

File Name: cinlathe.txt
File Size:2.84 KB

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

More
14 years 3 months ago #21881 by andypugh
I haven't spotted anything wrong in the HAL files.
I would be tempted to look at the pwmgen value pins in Halmeter (or the watch tab of Halconfig) to see if the signal is getting there.
Also have a look at the thread periods to make sure that the threads are running.
If the pwmgen values are non-zero and the enables are set, then it must be a problem outside HAL, I think.

I would suspect the /ENA pins, except that you have one working channel.

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

More
14 years 3 months ago #21882 by LAIR82
Replied by LAIR82 on topic Re:Servo Tuning PID and FFn
I can see the value going up and down on the +/- 10v on the pwmgen.02.value pin in the "show hal config" watch screen.

Im not sure what you mean though by thread periods?


Rick

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

More
14 years 3 months ago #21883 by andypugh
LAIR82 wrote:

I can see the value going up and down on the +/- 10v on the pwmgen.02.value pin in the "show hal config" watch screen.


And you definitely have the hardware hooked up to analogue outputs 2 and 4 ?

Im not sure what you mean though by thread periods?

Halconfig also lets you see the execution time of the realtime modules and the thread periods. A number that doesn't change can indicate a crashed function.

Resolver support in LinuxCNC is fairly new. It might be worth loading the HAL with num_resolvers=0 to eliminate the possibility of a resolver driver bug. Just be aware that this means no feedback...

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

Time to create page: 0.143 seconds
Powered by Kunena Forum