MLAxisGenWriteDec

Pipe Network motion icon

 Function - Sets the deceleration of the internal generator of an axis.

Inputs

Input

Data Type

Range

Unit

Default

Description

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 generator Deceleration value.

  • The axis deceleration rate is limited so the velocity cannot change by more than the value of the declared velocity limit in a single iteration.
  • The Pipe Network Axis block uses the TRAVEL_SPEED parameter to scale this limit.
    • The maximum deceleration is affected by the Pipe Network Axis Block parameter TRAVEL_SPEED and the axis update rate.
  • See Set the Axis Block Position Units.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE when the function successfully executes.

See Function - General Rules.

Remarks

Returns TRUE if the internal generator axis is ready.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

MLAxisGenWriteDec(PipeNetwork.Axis1, 100000 )  ;

See Also