MLPNAxisCreate
Description
Creates a new axis object. Returns the ID of the newly created axis object or 0 if the function failed
-
-
This function should be called after MLMotionInit is called and before MLMotionStart is called.
Arguments
Input
Name | Description | Name of the created Axis |
Data type | STRING | |
Range | — | |
Unit | n/a | |
Default | — | |
DriverName | Description | Is the Motion bus driver name or Simulated |
Data type | STRING | |
Range | — | |
Unit | n/a | |
Default | — | |
DriveAxisNumber | Description | This one-based number specifies the axis on the drive. For a single-axis drive, this number should be 1. |
Data type | UINT | |
Range | [1,256] | |
Unit | n/a | |
Default | — | |
Address | Description | Axis motion bus address |
Data type | DINT | |
Range | — | |
Unit | n/a | |
Default | — |
Output
OK | Description | Returns true when function successfully executes |
Data type | BOOL | |
Unit | n/a |
Example
Structured Text
PipeNetwork.AXIS1 := MLPNAxisCreate('AXIS1','SercosDriver',0,1001);
Ladder Diagram
Function Block Diagram