MLPrfWriteIOffset

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

MLPrfWriteIOffset

Figure 7-82: MLPrfWriteIOffset

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 Input Offset

Data type

LREAL

Range

Unit

N/A

Default

Output

Default (.Q)

Description

Returns TRUE if the Input Offset is changed to the new value

See Function - General Rules for more information.

Data type

BOOL

Unit

N/A

Return Type

BOOL

Related Functions

MLPrfReadIOffset

MLProfileCreate

MLProfileInit

Example

Structured Text

 

//Change the value of input offset

MLPrfWriteIOffset( Profiles.Profile_A , 45 );

 

Ladder Diagram

MLPrfWriteIOffset: LD example

Function Block Diagram

MLPrfWriteIOffset: FBD example

Go back to the top of the page[Top]