FunctionMLGearWriteOSlpPipe Network motion icon

Description

Sets the Offset Slope value of a selected Gear Pipe Block. Offset Slope sets the limit in User Units per Second at which step changes in offset are implemented. The default value when creating a Gear Block is OFFSET_SLOPE_MAX or infinite.


  • Values lower then 1.0 can be entered, but require a leading zero (for example 0.8 instead of .8)

Arguments

Input

BlockID

Description

ID number of an initialized Gear Pipe Block

 

Data type

DINT

 

Range

[-2147483648, 2147483648]

 

Unit

n/a

 

Default

Slope

Description

New Offset Slope value to be assigned to selected Gear Pipe Block. Values lower then 1.0 can be entered, but require a leading zero (for example 0.8 instead of .8)

 

Data type

LREAL

 

Range

 

Unit

User unit/sec

 

Default

Output

Default (.Q)

Description

Returns TRUE if Offset Slope value is changed in the selected Gear Pipe Block

See more details here

 

Data type

BOOL

 

Unit

n/a

Return Type

BOOL

Related Functions

MLGearReadOffSlp

MLGearInit

Example

Structured Text

 

//Set the Offset Slope value of Gear1 Pipe Block to 100

MLGearWriteOSlp(PipeNetwork.GEAR1, 100.0);

 

Ladder Diagram

MLGearWriteOSlp: LD example

Function Block Diagram

MLGearWriteOSlp: FBD example

Go back to the top of the page [Top]