MLIntInit

Pipe Network motion icon

 Function - Initializes an integrator object.

  • The function is automatically called if an Integrator Block is added to the Pipe Network.
    • User-defined settings are entered in the Pipe Blocks Properties screen.
  • The Integrator object can operate in modulo or not modulo mode.
    • While in modulo mode, the output values are adapted according to the entered ModuloPosition value.

Figure 1: MLIntInit



    • Integrator objects are normally created in the Pipe Network using the graphical engine.
    • You do not have to add MLIntInit functions to their programs.
    • Parameters are entered directly in pop-up windows; the code is automatically added to the current project.

Inputs

Input

Data Type

See Data Types.

Range

Unit

Default

Description

BlockID

DINT

1 to 1024

N/A

No default

ID number of a created Pipe Block.

ModuloPosition

LREAL

No range

User units

No default

  • When mode is set to Modulo, integrate the input values with respect to time.
  • The OUTPUT_MODULO_POSITION is defined to correctly manage the periodicity (modulo) of the output values.

Modulo

BOOL

FALSE, TRUE

N/A

No default

  • TRUE when mode is modulo.
  • Modulo mode adapts the output values according to the ModuloPosition (modulo).

Outputs

Output

Data Type

See Data Types.

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Initiate an Integrator Pipe Block named “MyIntegrator” with a Modulo of 360
MLIntInit(MyIntegrator, 360.0, true );

See Also