FunctionMLAxisWriteUUnitsPipe Network motion icon

Description

Set the user units per revolution value of the axis. Returns TRUE if the function succeeded. User units are user-defined position units used within the KAS application Selected units must be as natural as possible and must make sense for the machine It must be related to the final moving object (e.g. the driven belt rather than the axis shaft) The same unit must be used for all related axes for simplicity reasons Speeds are defined in [user units / second] and accelerations in [user units / second2]

Arguments

Input

AxisID

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 more details here

 

Data type

BOOL

 

Unit

n/a

UserUnitsPerRev

Description

Sets the Axis User Units per revolution

 

Data type

LREAL

 

Unit

n/a

Example

Structured Text

 

MLAxisWriteUUnits(PipeNetwork.Axis1, 360 ) ;

 

Ladder Diagram

MLAxisWriteUUnits: LD example

 

Function Block Diagram

MLAxisWriteUUnits: FBD example

Go back to the top of the page [Top]