MLPhaWriteSlope

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.

Returns TRUE if the function succeeded.

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

 

Description

Set  slope of phase adjust

  Data type LREAL
  Range
  Unit User unit/sec
  Default Value defined in the setup of a Phaser Block within a Pipe Network. Depending on the phase slope type setting, it is the VALUE in “PHASE_SLOPE_USER”, “PHASE” or  the max slope.

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

MLPhaReadSlope

Example

Structured Text

 

MLPhaWriteSlope( PipeNetwork.PhaseAdjust , 10 );

 

Ladder Diagram

MLPhaWriteSlope: LD example

 

Function Block Diagram

MLPhaWriteSlope: FBD example

Go back to the top of the page[Top]