MLPrfReadOScale

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. - Returns the Output Ratio value of a selected CAM Profile.

Inputs

Input

Data Type

Range

Unit

Default

Description

ProfileID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initialized CAM Profile.

Outputs

Output

Data Type

Range

Unit

Description

Ratio

LREAL

 

 

Returns the Output Ratio value of a selected CAM Profile.

Remarks

  • Previous function name: MLPrfGetORatio
  • Ratios can be changed on the fly to modify the CAM Profile while maintaining its basic shape.
  • A change in output ratio is equivalent to stretching, and flipping if negative, the CAM Profile on the Y (or Output) Axis.

MLPrfReadOScale

Figure 6-174: MLPrfReadOScale

FBD Language Example

MLPrfReadOScale: FBD example

FFLD Language Example

MLPrfReadOScale: LD example

IL Language Example

Not available.

ST Language Example

//Save value of output ratio
CamRatio := MLPrfReadOScale( Profiles.Profile_A );

See Also