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
[Top]




