FunctionMLPrfReadIScalePipe Network motion icon

Description

Returns the Input 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 input ratio is equivalent to stretching the CAM Profile on the X (or Input) Axis. A negative value is not allowed.

MLPrfReadIScale

Figure 7-83: MLPrfReadIScale

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 Input Ratio of the selected CAM Profile

Data type

LREAL

Unit

n/a

Related Functions

MLPrfWriteIScale

MLProfileCreate

MLProfileInit

Previous Function Name

MLPrfGetIRatio

Example

Structured Text

 

//Save value of input ratio

CamRatio := MLPrfReadIScale( Profiles.Profile_A );

 

Ladder Diagram

MLPrfReadIScale: LD example

Function Block Diagram

MLPrfReadIScale: FBD example

Go back to the top of the page [Top]