MLAxisGenPos

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 generator position of the axis Returns TRUE if the internal generator axis is ready.

Arguments

Input

ID

Description

ID Name of the Axis block

 

Data type

DINT

 

Range

—

 

Unit

N/A

 

Default

—

Output

Default (.Q)

Description

Returns true when function successfully executes

See Function - General Rules for more information.

 

Data type

BOOL

 

Unit

N/A

Position

Description

Returns Axis generator position value

 

Data type

LREAL

 

Unit

User unit

Related Functions

MLAxisReadActPos

MLAxisFBackPos

MLAxisPipePos

MLAxisCmdPos

MLAxisWritePipPos

Example

Structured Text

 

Axis1_Generator_Position := MLAxisGenPos(PipeNetwork.Axis1 ) ;

 

Ladder Diagram

MLAxisGenPos: LD example

 

Function Block Diagram

MLAxisGenPos: FBD example