MLPNAxisCreate
Function - Creates a new axis object.
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Name |
STRING |
No range |
N/A |
No default |
Name of the created Axis. |
DriverName |
STRING |
No range |
N/A |
No default |
Is the Motion bus driver name or Simulated. |
DriveAxisNumber |
UINT |
1, 256 |
N/A |
No default |
|
Address |
DINT |
No range |
N/A |
No default |
Axis motion bus address. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
OK |
BOOL |
FALSE, TRUE |
N/A |
Returns TRUE when the function successfully executes. |
Remarks
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.
Figure 1: MLPNAxisCreate
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
PipeNetwork.AXIS1 := MLPNAxisCreate('AXIS1','SercosDriver',0,1001);