MLPrfWriteOScale
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.
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
Previous Function Name
Example
Structured Text
//Change value of output ratio MLPrfWriteOScale( Profiles.Profile_A , -180 );
|
Ladder Diagram
Function Block Diagram