WriteData
Calculates the entire cam table from a new set of data points.
Returns 0 on success or a non-zero error code.
Syntax
Definition:
METHOD WriteData : UDINT
VAR_INPUT
SourceAddress : Pointer To MotionFunctionPoint;
NumberOfPoints : UDINT;
Periodic : BOOL;
ContinuityRequirement : EContinuity;
END_VAR
Inputs
Name | Type | Description |
|---|---|---|
SourceAddress | Pointer To MotionFunctionPoint | Pointer to the new set of data points. |
NumberOfPoints | UDINT | Number of data points in the source array. |
Periodic | BOOL | TRUE for a periodic cam table. |
ContinuityRequirement | Minimum continuity requirement. The higher the requirement, the stricter the point validation. |
Return value
UDINT
Mögliche Fehlercodes
Für diesen Funktionsbaustein sind unter anderem die folgenden Werte für den Ausgang ErrorId möglich:
Fehler(Hex) | Fehler(Dez) | Fehlertyp | Beschreibung |
|---|---|---|---|
0x8120 | 33056 | Umgebung | Ungültige Objektkonfiguration (z.B. in der TwinCAT-3-Entwicklungsumgebung (XAE)). Die statische Konfiguration des Objekts (Parameter, Init-Werte, verlinkte Symbole) ist unvollständig oder unzulässig und das Objekt kann daher nicht in den Zielzustand übergehen. |
Eine Übersicht aller NC-Fehlercodes finden Sie hier: