Help with homing issue

More
8 years 3 months ago #115041 by andypugh
Replied by andypugh on topic Help with homing issue
You are using stepgens in PID mode (which generally works better) but and your settings are what suit the typical 1mS servo thread. Is there any chance that your servo thread is running faster or slower than that?

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

More
8 years 3 months ago #115056 by MAG45
Replied by MAG45 on topic Help with homing issue
I am not even sure what a servo thread is or how to check it.

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

More
8 years 3 months ago - 8 years 3 months ago #115133 by andypugh
Replied by andypugh on topic Help with homing issue
The servo thread rate will be in the INI file.

The LinuxCNC realtime system has one or two "threads". All systems will have the "servo-thread" which typically runs every 1mS. Systems that use the parallel port typically also have a "base-thread" that runs every 50uS or thereabouts.

Every HAL module has one or more "functions" that are called every time the thread runs. Each function runs in strict sequence, reading the input HAL pins and writing to the output HAL pins.

So, your PID calculations are run every time the servo thread runs, and the PID parameters are set up on the assumption that the servo-thread runs at 1mS.
Last edit: 8 years 3 months ago by andypugh.

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

Time to create page: 0.288 seconds
Powered by Kunena Forum