MLBlkCreate
Inputs
Input |
Data Type |
Range |
Unit |
Default |
Description |
---|---|---|---|---|---|
Name |
STRING |
No range |
N/A |
No default |
Designated name for the newly created Pipe Block. |
Type |
STRING |
No range |
N/A |
No default |
The type of Pipe Block to create. Examples: MASTER, GEAR, PHASER, etc. |
Outputs
Output |
Data Type |
Range |
Unit |
Description |
---|---|---|---|---|
ID |
DINT |
|
|
Assigned ID number of the created Block. |
Remarks
- Before a Pipe Block is Initialized, the function needs to be created and assigned an ID number.
- The MLBlkCreate function is automatically called if a Block is added to the Pipe Network.
-
-
Pipe Blocks are normally created in the Pipe Network using the graphical engine.
You do not have to add MLBlkCreate function blocks A function block groups an algorithm and a set of private data. It has inputs and outputs. to their programs The act of performing a sequence of instructions or commands..
The code with MLBlkCreate commands are automatically generated and called in a program with Pipe Network(MLPN_CREATE_OBJECTS).
-
-
This function should be called after MLMotionInit is called and before MLMotionStart is called.
FBD Language Example
FFLD Language Example
IL Language Example
Not available.
ST Language Example
//Create a new GEAR Pipe Block named “MyGear”
MyGear := MLBlkCreate( 'MyGear', 'GEAR' );
See Also
- MLAxisInit
- See Step 3 in Initialize and Start a Pipe Network.