MLPmpStatus

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. - Returns the status of the PMP block generator.

Inputs

Input

Data Type

Range

Unit

Default

Description

EN

BOOL

0, 1

N/A

No default

Enables execution.

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID name of a PMP function block in the Pipe Network.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

N/A

Returns TRUE when the function successfully executes.

See Pipe Network - General Rules for more information.

Default (.Q)

DINT

 

N/A

Returns the status of the PMP block generator.

Value

Description

0

Indicates the PMP block is idle.

No command is currently running in the generator.
It can be used to determine that a previous move is complete.

1

Indicates the PMP block is either accelerating to a position or speed, or is decelerating to a position or speed.

2

Indicates the PMP block is running at a constant speed.

Remarks

FBD Language Example

MLPmpStatus: FBD example

FFLD Language Example

MLPmpStatus: LD example

IL Language Example

Not available.

ST Language Example

PMP_Status := MLPmpStatus ( PipeNetwork.PmpMaster )  ;
Done :=TRUE;