MLSyncInit

Pipe Network motion icon

 Function - Initializes a synchronizer Pipe Block.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID name of the Pipe Network Block.

ModuloPosition

LREAL

No range

User units

No default

The modulo distance.

CurveType

DINT

1, 2

N/A

No default

The curve type to the motion when starting and stopping synchronization.

The options are:

  • 1 = Parabolic
  • 2 = Polynomial

DeltaS

LREAL

No range

User units

No default

The Distance to get in or out of synchronization.

This parameter is used in MLSyncStart and MLSyncStop.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

N/A

Function block executed successfully.

See Function - General Rules.

Remarks

  • Returns TRUE if the function succeeded.
  • This FB is automatically created in the compiled code of a Pipe Network.
  • This function block is part of the MLPN_CREATE_OBJECT to initialize the Pipe Network.
    • It is called at the beginning of an application program with the function call:
PipeNetwork(MLPN_CREATE_OBJECTS);

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Initialize  a synchronizer  Pipe Block named “ SYN” with a modulo of 360, Curve Type of Parabolic, and a distance (DeltaS) of 30 to get in and out of synchronization
MLSyncInit( PipeNetwork.SYN, 360, 1, 30 );

See Also

MLSyncWriteDeltaS