MLAxisInit

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. - Initializes an axis object.

Inputs

Input

Data Type

Range

Unit

Default

Description

Acceleration

LREAL

No range

User unit/sec2

No default

Sets the Axis Acceleration value.

See Set the Axis Block Position Units for more information.

AxisID

DINT

No range

N/A

No default

ID Name of the Axis block.

Deceleration

LREAL

No range

User unit/sec2

No default

Sets the Axis Deceleration value.

See Set the Axis Block Position Units for more information.

FeedbackUnitPerTurn

DINT

No range

User units

No default

 

InitialPosition

LREAL

No range

User units

No default

Initial position value expressed in user logical units.

Modulo

BOOL

0, 1

N/A

No default

Define the mode which can be Modulo (True) or not (False).

ModuloPosition

LREAL

No range

User units

No default

The value of the period of a cyclic system expressed in User units.

The parameter is defined to correctly manage the periodicity (modulo) of the input values.

Speed

LREAL

No range

User units

No default

Sets the Axis Speed.

See Set the Axis Block Position Units for more information.

UserUnitPerTurn

LREAL

No range

User units

No default

Define the unit equivalent to one revolution of the physical motor.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

No range

N/A

Returns TRUE when the function successfully executes.

See Pipe Network - General Rules for more information.

Remarks

  • Returns TRUE if the function succeeded.
  • The axis object can be mapped to servo or stepper drives.

FBD Language Example

MLAxisInit: FBD example

FFLD Language Example

MLAxisInit: LD example

IL Language Example

Not available.

ST Language Example

MLAxisInit( PipeNetwork.Axis1, 360.0, 360.0, SHL(1,20), 500.0, 100000.0, 100000.0, 0.0, true ) ;