Phaser
|
Names |
Description |
|
Initializes a phaser Pipe Block. |
|
|
Gets the actual phase value of a phaser block. |
|
|
Gets the phase value of a phaser block. |
|
|
Gets the phase slope value of a phaser block. |
|
|
Sets the phase value of a phaser block. |
|
|
Sets the phase slope value of a phaser block. |
-
-
There is a delay when using an external encoder.
The delay is five cycles:
2 cycles to read the encoder from the AKD via EtherCAT,
1 cycle for computing,
2 cycles for sending the new position set point to the AKD).
This lag error is speed proportional (5 cycles * speed).
A Phaser block can be used to compensate for this lag.
Purpose
A Phaser produces a flow of output values which are offset (phase shifted) a specified amount from its input. A typical application of a Phaser is to provide independent phase adjustment capability on an axis.
The Phaser has some similarities with the Gear pipe block, however its intended use is quite different.
- The typical application for a Phaser pipe block is to drive a periodic system: a machine where the axes are globally increasing (or decreasing) their position.
- The Gear pipe block, with OFFSET and RATIO parameters, is intended for bounded applications (applications where the integral of speed on a
complete cycle is zero).
- Using the wrong one at the wrong place will cause unnecessary complications.
- In addition, you must always consider the position as the input value (and not the speed).
When executing, the phaser block is in one of these states:
|
State |
Description |
|---|---|
|
Applying Phase |
|
|
Changing Phase |
|
|
Standby |
|
Parameters
|
Parameter |
Description |
|---|---|
|
Phase |
The amount of phase adjustment.
|
|
PhaseSlope |
|
|
StandbyValue |
|
Examples: Phaser Function
- Call MLPhaWritePhase function to modify the Phase value. (Figure 1)
- Call MLPhaWriteSlope to modify the rate of change of phase or slope.
- This is applied when the Phase value is changed. (Figure 2)
-
-
% MODULO_POSITION is in the equation to take into account the modulo (periodicity) of the value.
Associated Data
- OutputValue: Output value of the data flows.
- IsReady: Boolean set to TRUE when the pipe block is ready.






