MLPrfWriteIScale

Pipe Network motion icon

 Function - Sets the Input Ratio value of a selected CAM Profile.

Inputs

Input

Data Type

Range

Unit

Default

Description

ProfileID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initialized CAM Profile.

Ratio

LREAL

Positive

N/A

No default

Desired new value of Input Ratio.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

FALSE, TRUE

N/A

Returns TRUE if the Input Ratio is changed to the new value.

See Function - General Rules.

Remarks

  • Previous function name: MLPrfSetIRatio
  • 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.

Figure 1: MLPrfWriteIScale

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Change value of input ratio
MLPrfWriteIScale( Profiles.Profile_A, 360 );

See Also