FunctionMLPrfWriteIScalePipe Network motion icon

Description

Set the Input 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 input ratio is equivalent to stretching the CAM Profile on the X (or Input) Axis.

MLPrfWriteIScale

Figure 8-87: MLPrfWriteIScale

Arguments

Input

ProfileID

Description

ID number of initialized CAM Profile

Data type

DINT

Range

[-2147483648, 2147483648]

Unit

N/A

Default

Ratio

Description

Desired new value for Input Ratio

Data type

LREAL

Range

Positive

Unit

N/A

Default

Output

Default (.Q)

Description

Returns TRUE if the Input Ratio is changed

See more details here.

Data type

BOOL

Unit

N/A

Return Type

BOOL

Related Functions

MLPrfReadIScale

MLProfileCreate

MLProfileInit

Previous Function Name

MLPrfSetIRatio

Example

Structured Text

 

//Change value of input ratio

MLPrfWriteIScale( Profiles.Profile_A, 360 );

 

Ladder Diagram

MLPrfWriteIScale: LD example

Function Block Diagram

MLPrfWriteIScale: FBD example

Go back to the top of the page [Top]