Dialog Box ‘Properties - Cam’¶
Function: Use this dialog box to define the global variables of the cam.
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 slave start and end positions given here. |
These settings affect the work in the cam editor and cam table. Depending on these parameters, the slave start 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 | ![]() |
Slave period | Indicates when the slave period is repeated mechanically. The slave position at the start and end of the master period may then be in an interval of a whole number multiple of this value. This value is effective only if the Smooth transition check box is selected. |
Activation of these options for the continuity of the curve does not have any effect when editing the cam. It does, however, prompt a continuity check, which reports any violations to the message view (CAM). 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 will lead to kinks in the position curve. By default, the jerk (3rd derivative) is not tested for jumps. | |
Position | ![]() |
Velocity | |
Acceleration | |
Jerk |
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 the 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 in the arrays. This array has already been created in SM3_Basic for the default cases 128 and 256. If you type in another value, you must create the structure in your application (see the following example). |
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