Lenze ETC Motion Control Bedienungsanleitung Seite 383

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 428
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 382
PLC programming
Library
FILE IO functions
8
8.8
8.8.3
l
383
EDSTCXN EN 2.0
8.8.3 FILE IO functions
8.8.3.1 LOAD
FUNCTION LOAD: DINT
VAR_INPUT
Name : STRING(15); (* ’device:file name’ *)
daten_paten_p : DINT; (* Address after which the data should be stored *)
len : INT; (* Length of the data in bytes *)
END_VAR
This function is used to read data from a device ( 390).
From the file name len bytes will be read from the defined device and stored
after the the memory address daten_p. Without device definition it will be
attempted to read the file from the FLASHPROM.
A return value smaller than 0 signals an error ( 391).
werte_adi : ARRAY[0..5] OF DINT;
anzahl_di : DINT;
anzahl_di := LOAD(’RD:daten.dat’, ADR(werte_adi), 24);
Six DINT values from the file "daten.dat" are read from the RAM disc and
stored in the Array werte_di .
8.8.3.2 SAVE
FUNCTION SAVE: DINT
VAR_INPUT
Name : STRING(15); (* ’device:file name’ *)
daten_p : DINT; (* Address after which the data should be stored *)
len : INT; (* Length of the data in bytes *)
END_VAR
This function can be used to save data on a device ( 390).
Under name len bytes are stored after memory address daten_p on the
stated device. Without device definition the file will be written to the
FLASHPROM.
A return value of less than 0 indicates an error while saving ( 391).
werte_adi : ARRAY[0..5] OF DINT;
anzahl_di : DINT;
anzahl_di := SAVE(’RD:daten.dat’, ADR(werte_adi), 24);
Six DINT values from the array werte_di are saved in the file " daten.dat" on
the RAM disk.
Declaration
Description
Example
Declaration
Description
Example
Seitenansicht 382
1 2 ... 378 379 380 381 382 383 384 385 386 387 388 ... 427 428

Kommentare zu diesen Handbüchern

ama 11 Jan 2025 | 19:35:39

rasha