MLMstReadDecel

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. - Get the presently used value for deceleration of a master block.

Arguments

Input

EN

Description

Enables FB to be executed

 

Data type

BOOL

 

Range

0, 1

 

Unit

N/A

 

Default

Block ID

Description

ID name of the Master Block

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

N/A

 

Default

Output

OK

Description

Returns true when function successfully executes

See Function - General Rules for more information.
 

Data type

BOOL

 

Unit

N/A

Deceleration

Description

Returns Deceleration value

 

Data type

LREAL

 

Unit

User unit/sec2

Example

Structured Text

// Read the present  deceleration  of a  Pipe Block named “MASTER”
MLMstReadDecel( PipeNetwork.MASTER );

Ladder Diagram

MLMstReadDecel: LD example

 

Function Block Diagram

MLMstReadDecel: FBD example

Go back to the top of the page[Top]