Gear

Name

Description

MLGearInit

Initializes a Gear Pipe Block with user-defined settings and for use in a PLCClosed Programmable Logic Controller - A digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events. programClosed The act of performing a sequence of instructions or commands..

MLGearReadOffset

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

MLGearReadOffSlp

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

MLGearReadRatio

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

MLGearReadRatSlp

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

MLGearWriteOff

Sets the Offset value of a selected Gear Pipe Block.

MLGearWriteOSlp

Sets the Offset Slope value of a selected Gear Pipe Block.

MLGearWriteRatio

Sets the Ratio value of a selected Gear Pipe Block.

MLGearWriteRatSlp

Sets the Ratio Slope value of a selected Gear Pipe Block.

Examples of Gear Functions

The output value starts with offset = 0 and gain = 1 (blue line)

Call the MLGearWriteOff 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. to modify the Offset.

This is where Offset_Slope is set with the MLGearWriteOSlp function.

After setting the Offset (Q=TRUE in the previous figure), call the MLGearWriteRatio function to modify the gear Ratio.

This is where Gain_Slope is set with the MLGearWriteRatSlp function.

The output value is adapted with the gear offset and ratio (blue line).