FunctionMLAxisWritePosPipe Network motion icon

Description

Sets a new value to an axis’ current location. After this function is called, the axis’ current location will have a value equal to the Position argument.

Arguments

Input

ID

Description

ID Name of the Axis block.

 

Data type

DINT

 

Range

 

Unit

N/A

 

Default

Position

Description

The new value for the axis’ current location.

 

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

Previous Function Name

MLAxisSetZero

Example

Structured Text

 MLAxisWritePos(PipeNetwork.Axis1, 0) ;

Ladder Diagram

MLAxisWritePos: LD example

Function Block Diagram

MLAxisWritePos: FBD example

Go back to the top of the page [Top]