FunctionMLPmpReadInitPosPipe Network motion icon

Description

Get the Initial Position parameter of a PMP block. This value is the position the Pmpblock starts at when the Pipe Network is enabled. This position can be set when adding a Pmp Block to a Pipe Network and defining the parameters for that block.

Arguments

Input

BlockID

Description

ID Name of a PMP function block in the Pipe Network

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

n/a

 

Default

Output

InitialPosition

Description

Present Initial Position of the PMP PipeNetork FunctionClosedA 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.  Block

 

Data type

LREAL

 

Unit

User unit

 

Default

Value defined in the setup of a PMP Block within a Pipe Network. It is in the “INITIAL_POSITION” field in the parameter tab.

Related Functions

MLPmpInit

Example

Structured Text

 

PmpInitPos := MLPmpReadInitPos( PipeNetwork.PmpMaster ) ;

 

Ladder Diagram

MLPmpReadInitPos: LD example

Function Block Diagram

MLPmpReadInitPos: FBD example

Go back to the top of the page [Top]