MLAxisWriteUUnits
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
Function Block Diagram