NAME
orient - Provide a PID command input for orientation mode based on current spindle position, target angle and orient modeSYNOPSIS
loadrt
orient [count=
N|names=name1[,name2...]]
DESCRIPTION
This component is designed to support a spindle orientation PID loop by providing a command value, and fit with the motion spindle-orient support pins to support the M19 code.HAL USAGE
On spindle.N.orient disconnect the spindle control and connect to the orient-pid loop:FUNCTIONS
- orient.N (requires a floating-point thread)
- Update command based on enable, position, mode and angle.
PINS
- orient.N.enable bit in
- enable angular output for orientation mode
- orient.N.mode s32 in
- 0: rotate - shortest move; 1: always rotate clockwise; 2: always rotate counterclockwise
- orient.N.position float in
- spindle position input, unit 1 rev
- orient.N.angle float in
- orient target position in degrees, 0 <= angle < 360
- orient.N.command float out
- target spindle position, input to PID command
- orient.N.poserr float out
- in degrees - aid for PID tuning
- orient.N.is-oriented bit out
- This pin goes high when poserr < tolerance. Use to drive spindle.N.is-oriented
- orient.N.tolerance float in (default: 0.5)
- The tolerance in degrees for considering the align completed
AUTHOR
Michael HaberlerLICENSE
GPL2023-02-10 | LinuxCNC Documentation |