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. - Sets 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

ID number of an initialized CAM Profile.

Offset

LREAL

No range

N/A

No default

Desired new value of Input Offset.

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

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

See Pipe Network - General Rules for more information.

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.

MLPrfWriteIOffset

Figure 6-175: MLPrfWriteIOffset

FBD Language Example

MLPrfWriteIOffset: FBD example

FFLD Language Example

MLPrfWriteIOffset: LD example

IL Language Example

Not available.

ST Language Example

//Change the value of input offset
MLPrfWriteIOffset( Profiles.Profile_A , 45 );

See Also