AddEntry

Fügt ein oder mehrere Einträge zum Ringpuffer hinzu und aktualisiert automatisch den letzten Eintragsindex. Die Eintragsanzahl wird erhöht und der neue nLastEntry wird mit Modulo-Operation berechnet:
nLastEntry := nMinBound + ((nEntryCount-1) MOD Size)Syntax
METHOD AddEntry : BOOL
VAR_INPUT
nCount : DINT := 1;
END_VAR
Eingänge
Name | Typ | Beschreibung |
|---|---|---|
nCount | DINT | Anzahl der hinzuzufügenden Einträge. |
![]() |
|
