FunctionMLMstForcePosPipe Network motion icon

Description

Forces the position of a Master Block to a specified position. This block can only be executed when motion is not occurring. It can be used to force the master starting position to the desired values from which to start motion.

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

Position

Description

Defines the Master starting position when the motion starts

 

Data type

LREAL

 

Range

 

Unit

User unit

 

Default

Output

Default (.Q)

Description

Returns true when function successfully executes

See more details here

 

Data type

BOOL

 

Unit

n/a

Related Functions

MLMstReadInitPos

Example

Structured Text

//Reset the output position of the Master Pipe Block named “Master” to 2500.0
MLMstForcePos(PipeNetwork.Master, 2500.0);

Ladder Diagram

MLMstForcePos: LD example

Function Block Diagram

MLMstForcePos: FBD example

Go back to the top of the page [Top]