FunctionMLGearReadOffsetPipe Network motion icon

Description

Returns the Offset value of a selected Gear Block from the Pipe Network.

The output of a Gear Block = Input value * Ratio + Offset

Arguments

Input

BlockID

Description

ID number of an initiated an initialized Gear object

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

n/a

 

Default

Output

Offset

Description

The offset value currently assigned to the selected Gear Pipe Block

 

Data type

LREAL

 

Unit

User unit

Related Functions

MLGearWriteOff

MLGearInit

Example

Structured Text

//Find the Offset value of Gear1 Pipe Block
Gear1Offset := MLGearReadOffset( PipeNetwork.GEAR1 );

Ladder Diagram

MLGearReadOffset: LD example

 

Function Block Diagram

MLGearReadOffset: FBD example

Go back to the top of the page [Top]