Skip to content

orient.comp: Add modes with preceding referencing to index signal#4249

Open
Sigma1912 wants to merge 1 commit into
LinuxCNC:masterfrom
Sigma1912:orient.comp_add_modes_with_index_referencing
Open

orient.comp: Add modes with preceding referencing to index signal#4249
Sigma1912 wants to merge 1 commit into
LinuxCNC:masterfrom
Sigma1912:orient.comp_add_modes_with_index_referencing

Conversation

@Sigma1912

Copy link
Copy Markdown
Contributor

Some spindle encoder setups cannot track the encoder position when using high spindle speeds and thus cannot use the current 'orient' component due to lost encoder position.
This PR expands the orient component with three additional modes that offer referencing to an index signal prior to orienting the spindle.

Current behavior is unchanged. All modes have been tested on real hardware.

Based on work by @andypugh

For more:
https://forum.linuxcnc.org/10-advanced-configuration/42792-m19-and-spindle-index-enable-issues?start=10

Comment on lines +72 to +73
static double target_angle;
static double latched_position;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not a singleton component so these should be instance variables declared as such, next to the other instance variables. Making them static will overwrite these values when another instance runs and that is not what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants