MLAxisWritePos

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. - 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 Function - General Rules for more information.
 

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]