FC_InitCamPoint

 

FC_InitCamPoint - General Information

Overview

Type:

Function

Available as of:

V1.1.0.0

Support for:

PacDrive3 pilot template architecture

Versions:

Current version

Task

Function for initialization of an axis that is controlled by the FB_AxisModule function block.

Description

This function is used to assign values to a cam point. It also assigns the cam point to a MultiCam table. The table is specified with i_etParId and the axis is specified with iq_stAxisModuleItf.

This function returns the MultiCam table number (i_etParId) to allow multiple interfaces to be specified as shown below. The function returns -1 if the specified MultiCam table number (i_etParId) is not 0, 1, 2, 3, or 4.

G-SE-0064626.1.gif-high.gif

 

 

Each interface requires a unique number specified by i_diCamPoint. The first cam point is set to 0, the second 1, and so forth up to 32. The total quantity of cam points for a MultiCam table is automatically set.

The i_etParId input specifies the cam to follow to the next motion point and the PDL.ET_CamType enumeration type contains all the possible cam types.

 

Interface

Input

Data type

Description

i_etParId

ET_ParId

Specifies which MultiCam table this cam point belongs to

i_diCamPoint

DINT

Specifies which cam point this is (0 to 32)

i_lrMasterPosition

LREAL

Specifies the master’s position at this cam point in units

i_lrSlavePosition

LREAL

Specifies the axis’s position at this cam point in units

i_lrSlope

LREAL

Specifies the slope of the curve at this cam point (Horizontal line = 0, 45 degree line = 1)

i_etCamType

PDL.ET_CamType

Specifies the type of curve used to connect to the next cam point

Input/Output

Data type

Description

iq_stAxisModuleItf

ST_ModuleInterface

The axis interface structure of the associated axis