MLPhaInit

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - Initializes a phaser Pipe Block.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID name of a phaser function blockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. in the Pipe Network.

ModuloPosition

LREAL

No range

User units

360.0

Rollover positionClosed Position means a point in space which is described by different coordinates. Depending on the used system and transformation it can consist of a maximum of six dimensions (coordinates).This means three Cartesian coordinates in space and coordinates for the orientation. In ACS there can be even more than six coordinates. If the same position is described in different coordinate systems the values of the coordinates are different. of the phaser block.

Phase

LREAL

No range

N/A

0.0

Amount of phase adjustment.

UseUserSlope

BOOL

0, 1

N/A

Max Slope

Determines if the Max Slope or user-defined slope is used.

PhaseSlope

LREAL

No range

User unit/sec

0.0

User-defined slope for making the phase adjustment.

StandbyValue

LREAL

No range

N/A

0.0

This is the output from the Phaser Block, when the pipe is active, until the MLPhaWritePhase function is executed.

Outputs

Input

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Returns TRUE if the function or function block is successfully executing.

See Pipe Network - General Rules.

Remarks

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Initialize  a Phaser  Pipe Block named “PhaseAdjust” to a Modulo of 720, phase offset value of 30, use the Max Slope
MLPhaInit( PipeNetwork.PhaseAdjust , 720, 30, false, 30 , 10 );

See Also