MLAxisWriteUUnits

Pipe Network motion icon

 Function - Set the user units per revolution value of the axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

AxisID

DINT

No range

N/A

No default

ID Name of the Axis block.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

See Function - General Rules.

UserUnitsPerRev

LREAL

No range

N/A

Sets the Axis User Units per revolution.

Remarks

  • User units are user-defined position units used in 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 unit/sec] and accelerations in [User unit/sec2].

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

MLAxisWriteUUnits(PipeNetwork.Axis1, 360 ) ;