FunctionMLPrfWriteOScalePipe Network motion icon

Description

Set the Output Ratio value of a selected CAM Profile. Ratios are 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 (as shown on figure below), the CAM Profile on the Y (or Output) Axis.

MLPrfWriteOScale

Figure 7-89: MLPrfWriteOScale

Arguments

Input

ProfileID

Description

ID number of an initialized CAM Profile

Data type

DINT

Range

[-2147483648, 2147483648]

Unit

n/a

Default

Ratio

Description

Desired new value of Output Ratio

Data type

LREAL

Range

Unit

n/a

Default

Output

Default (.Q)

Description

Returns TRUE if the Output Ratio is changed

See more details here

Data type

BOOL

Unit

n/a

Return Type

BOOL

Related Functions

MLPrfReadOScale

MLProfileCreate

MLProfileInit

Previous Function Name

MLPrfSetORatio

Example

Structured Text

 

//Change value of output ratio

MLPrfWriteOScale( Profiles.Profile_A , -180 );

 

Ladder Diagram

MLPrfWriteOScale: LD example

Function Block Diagram

MLPrfWriteOScale: FBD example

Go back to the top of the page [Top]