MLPNAxisCreate

Pipe Network motion icon

 FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. - 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 driverClosed In computing and electronics, a driver is a software component allowing higher-level computer programs to interact with a computer hardware device. A driver typically communicates with the device through the computer bus or communications subsystem to which the hardware is connected. 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.

Figure 1: MLPNAxisCreate

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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