MLPNAxisCreate

Pipe Network motion icon

 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

  • This one-based number specifies the axis on the drive.
  • For a single-axis drive, this number should be 1.

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.

Figure 1: MLPNAxisCreate

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

PipeNetwork.AXIS1 := MLPNAxisCreate('AXIS1','SercosDriver',0,1001);