MLSyncInit
Function 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 a synchronizer Combines an axis or axes group (as slave) with an axis as master. The slave executes its path with synchronization to the progress of the master. This is linked to a one dimension source for synchronization. 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:
|
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 A function block groups an algorithm and a set of private data. It has inputs and outputs. executed successfully. |
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 The act of performing a sequence of instructions or commands. 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