Function to correct the phase position of a controlled axis (slave), which must move according to the position of a reference master (e.g., for controlling phasor belts).
HINT: We recommend using the more performant function mv_phase_adj2().
Syntax |
real mv_phase_adj (i32 state, stru_phadj stru) |
||||||||
---|---|---|---|---|---|---|---|---|---|
state |
Variable containing information about the state of the function (see returns codes).
|
||||||||
stru |
Structure of type stru_phadj containing parameters related to the movement |
||||||||
Result |
Updated velocity value of the slave axis returned by the function |
||||||||
Validity |
Rule |
||||||||
Note |
The master axis can also evolve in the negative direction; the function provides for treating the incoming parameters masterCycle and deltaMaster as absolute values. The slave axis must always evolve in the positive direction, and its velocity vRef must be positive |
Example on oscilloscope of a possible output of the function: For a concrete example see in the RDE environment: Workspace -> Specials -> Examples Library. |