FunctionMLPrfReadOScalePipe Network motion icon

Description

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

Arguments

Input

ProfileID

Description

ID number of an initialized CAM Profile

Data type

DINT

Range

[-2147483648, 2147483648]

Unit

N/A

Default

Output

Ratio

Description

Returns the Output Ratio of the selected CAM Profile

Data type

LREAL

Unit

N/A

Related Functions

MLPrfWriteOScale

MLProfileCreate

MLProfileInit

Previous Function Name

MLPrfGetORatio

Example

Structured Text

 

//Save value of output ratio

CamRatio := MLPrfReadOScale( Profiles.Profile_A );

 

Ladder Diagram

MLPrfReadOScale: LD example

Function Block Diagram

MLPrfReadOScale: FBD example

Go back to the top of the page [Top]