MLBlkCreate

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. - Creates a new Pipe Block object.

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

Default

Description

ID

DINT

N/A

N/A

No default

Assigned ID number of the created Block.

Remarks

  • Before a Pipe Block is Initialized, the block needs to be created and assigned an ID number.
  • The MLBlkCreate function block 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 to their programs.
    The code with MLBlkCreate commands are automatically generated and called in a program with Pipe Network(MLPN_CREATE_OBJECTS).

FBD Language

MLBlkCreate: FBD example

FFLD Language

MLBlkCreate: LD example

ST Language

//Create a new  GEAR Pipe Block named “MyGear”
MyGear := MLBlkCreate( 'MyGear', 'GEAR' );

See Also