Plc programming – Lenze ETC Motion Control User Manual

Page 368

Advertising
background image

PLC programming

Library
General functions

8

8.8
8.8.1

l

368

EDSTCXN EN 2.0

8.8.1.15

SAVE_PARAM (only ETCxC)

FUNCTION SAVE_PARAM: DINT

VAR_INPUT

dateiname_s

: STRING(15);

(* "device:filename" *)

pindex_di

: DINT;

(* P field index *)

anzahl_di

: DINT;

(* number of the P field values *)

END_VAR

SAVE_PARAM saves anzahl_di P field values after index pindex_di under the
file name " dateiname_s" on the RAM disk (device: rd), in the FLASHPROM
(device: sd) or on a floppy disk (device: fd).

A return value other than 0 signals an error (

391).

ret_di

: DINT;

ret_di

: = SAVE_PARAM(’rd:daten.dat’, 1200, 30);

30 P field values are saved after index 1200 in the file "daten.dat" on the RAM
disk.

8.8.1.16

SETINPUT_BIT

FUNCTION SETINPUT_BIT: BOOL

VAR_INPUT

WORD_W

: WORD;

(* No. of the data word *)

bit_w

: WORD;

(* input of the IO card *)

END_VAR

The function sets a bit in the input process image. In the inputprocess image
of the data word word_w (value range 0 ... 63) a bit bit_w (value range 0 ... 31)
is set. This allows for a test environment to be created (without hardware).

The return value FALSE indicates a wrong transfer parameter.

Declaration

Description

Example

Declaration

Description

Advertising