MLPrfWriteIScale

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. - 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 7-83: 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 Function - General Rules for more information.

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]