Skip to main content

Dialog: Properties – Cam

Function: Use this dialog to define the global variables of the cam.

Table 41. Dimensions

Master start/end position

The start and end positions of the master define the range of the master values and therefore the scale of the horizontal axis of the cam. The default settings are given in angular degrees with 0 and 360 as limiting values.

Slave start/end position

The associated slave positions are determined by the graph type that is defined for the cam. However, the segment depicted by the curves (this is also the scale of the vertical axis) can be defined by the start and end positions of the slave that are given here.



Table 42. Period

These settings affect the work in the cam editor and cam table. Depending on these parameters, the slave starting point is adjusted automatically when the end point is changed, as well as the other way around. This adjustment optimizes the period transition to be as smooth and jerk-free as possible.

Smooth transition

standard icon: The values for position, velocity, and acceleration are adjusted automatically.

Slave period

Indicates when the slave period is repeated mechanically. Then the slave position at the start and end of the master period may deviate by one integer multiple of this value.

This value is effective only if the Smooth transition check box is selected.



Table 43. Continuity Requirements

Activation of these options for the continuity of the curve does not have any effect when editing the cam. However, it does prompt a continuity check, which reports any violations to the message view (CAM category). It is not possible to edit jumps in the position curve. The default setting also requires the continuity of velocity and acceleration. You can clear these options, for example in the special case of a curve that consists of only linear segments. However, this can lead to breaks in the position curve. By default, the jerk (4th derivative) is not tested for jumps.

Position

standard icon: The curve is checked for jumps.

Velocity

Acceleration

Jerk



Table 44. Compile Format

When compiling, MC_CAM_REF structure variables are generated. A cam is described according to the following options:

polynomial (XYVA)

Polynomial description of the individual points, consisting of master position, slave position, slave velocity, and slave acceleration.

one dimensional point array

1D table of slave positions

two dimensional point array

2D table of composite master/slave positions

Elements

Number of elements for the 1- or 2-dimensional point arrays. This array has already been created in SM3_Basic for the standard cases 128 and 256. If you type in another value, then you need to create the structure in your application. See the following example for this.

Segments

Standard compile format; supports all segment types



Example 11. Example of an array with 720 elements
TYPE SMC_CAMTable_LREAL_720_2 :
STRUCT
        Table: ARRAY[0..719] OF ARRAY[0..1] OF LREAL;
        fEditorMasterMin, fEditorMasterMax: REAL;
        fEditorSlaveMin, fEditorSlaveMax: REAL;
        fTableMasterMin, fTableMasterMax: REAL;
        fTableSlaveMin, fTableSlaveMax: REAL;
END_STRUCT
END_TYPE


For more information, see: How to create a cam