MLPrfWriteOOffset
Function 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. - Changes the Output Offset value of a selected CAM Profile.
Offsets are changed on the fly to modify the CAM Profile while maintaining its shape. A change in output offset is equivalent to shifting the CAM Profile on the Y (or Output) Axis.
Figure 7-84: MLPrfWriteOOffset
Arguments
Input
ProfileID |
Description |
ID number of an initialized CAM Profile |
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
N/A |
|
Default |
— |
|
Offset |
Description |
Desired new value of Output Offset |
Data type |
LREAL |
|
Range |
— |
|
Unit |
N/A |
|
Default |
— |
Output
Default (.Q) |
Description |
Returns TRUE if the Output Offset value is changed See Function - General Rules for more information. |
Data type |
BOOL |
|
Unit |
N/A |
Return Type
BOOL
Related Functions
Example
Structured Text
//Change value of output offset MLPrfWriteOOffset( Profiles.Profile_A , 45 );
|
Ladder Diagram
Function Block Diagram