MLBlkWriteModPos

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. - Sets the value of the period of a block in user units.

Inputs

Input

Data Type

Range

Unit

Default

Description

ID

DINT

-2147483648 to 2147483648

N/A

No default

ID number of a created Pipe Block.

ModuloPosition

LREAL

No range

User unit

No default

Designated new Period Value for selected Pipe Block.

Outputs

Output

Data Type

Range

Unit

Default

Description

Default (.Q)

BOOL

N/A

N/A

N/A

Returns TRUE if the function block executes.

See Function - General Rules for more information.

Remarks

  • The output value of a block is reset each time it reaches its period value.

MLBlkReadModPos

Figure 7-77: MLBlkReadModPos

FBD Language

MLBlkWriteModPos: FBD example

FFLD Language

MLBlkWriteModPos: LD example

ST Language

//Set the Period of a Pipe Block to 300  
MLBlkWriteModPos( PipeNetwork.MyGear, 300 );

See Also