MLPrfReadIOffset

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

Inputs

Input

Data Type

Range

Unit

Default

Description

ProfileID

DINT

-2147483648 to 2147483647

N/A

No default

Name of an initialized CAM Profile.

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

No range

N/A

Returns TRUE when the function successfully executes.

See Pipe Network - General Rules for more information.

Offset

LREAL

No range

N/A

Returns the Input Offset of the selected CAM Profile.

Remarks

  • 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 6-171: MLPrfReadIOffset

FBD Language Example

MLPrfReadIOffset: FBD example

FFLD Language Example

MLPrfReadIOffset: LD example

IL Language Example

Not available.

ST Language Example

//Save value of input offset
CamOffset := MLPrfReadIOffset( Profiles.Profile_A );

See Also