MLPhaWritePhase

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. - Set the phase value of a phaser block.

Arguments

Input

BlockID

Description

ID Name of a Phaser function block in the Pipe Network

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

N/A

 

Default

Phase

Description

Phase value

  Data type LREAL
  Range
  Unit User unit/sec
  Default Value defined in the setup of a phaser Block within a Pipe Network. It is in the “PHASE” field in the parameter tab

Output

Default (.Q)

Description

Returns True if the function block is successfully executing

See Function - General Rules for more information.
 

Data type

BOOL

 

Unit

N/A

Related Functions

MLPhaReadPhase

Example

Structured Text

 

MLPhaWritePhase( PipeNetwork.PhaseAdjust , 30 );

 

Ladder Diagram

MLPhaWritePhase: LD example

Function Block Diagram

MLPhaWritePhase: FBD example

Go back to the top of the page[Top]