FunctionMLPrfReadIOffsetPipe Network motion icon

Description

Returns the Input Offset value of a selected CAM Profile. Offsets can be 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.

MLPrfReadIOffset

Figure 7-82: MLPrfReadIOffset

Arguments

Input

ProfileID

Description

Name of an initialized CAM Profile

Data type

DINT

Range

[-2147483648, 2147483648]

Unit

n/a

Default

Output

OK

Description

Returns true when function successfully executes

See more details here

 

Data type

BOOL

Offset

Description

Returns the Input Offset of the selected CAM Profile

 

Data type

LREAL

 

Unit

n/a

Related Functions

MLPrfWriteIOffset

MLProfileCreate

MLProfileInit

Example

Structured Text

 

//Save value of input offset

CamOffset := MLPrfReadIOffset( Profiles.Profile_A );

 

Ladder Diagram

MLPrfReadIOffset: LD example

Function Block Diagram

MLPrfReadIOffset: FBD example

Go back to the top of the page [Top]