FunctionMLPrfWriteIOffsetPipe Network motion icon

Description

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-86: 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 more details here.

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]