Plc programming – Lenze ETC Motion Control User Manual
Page 375

PLC programming
Library
General functions
8.8
8.8.1
l
375
EDSTCXN EN 2.0
8.8.1.28
WRITE_PARAM_REAL (only ETCxC)
FUNCTION WRITE_PARAM_REAL: BOOL
VAR_INPUT
IDX_DI
: DINT;
(* Parameter index *)
VAL_R
: REAL;
(* value *)
END_VAR
The function writes the value val_i at the location idx_di into the P field. The
return value FALSE indicates an error.
8.8.1.29
WRITE_PARAM_LREAL (only ETCxC)
FUNCTION WRITE_PARAM_LREAL: BOOL
VAR_INPUT
IDX_DI
: DINT;
(* Parameter index *)
VAL_LR
: LREAL;
(* value *)
END_VAR
The function writes the value val_i at the location idx_di into the P field.
The return value FALSE indicates an error.
8.8.1.30
WRITE_SYSPARAM (only ETCxC)
FUNCTION WRITE_SYSPARAM: BOOL
VAR_INPUT
IDX_I
: INT;
(* 0 ... 127 *)
VAL_W
: WORD;
END_VAR
WRITE_SYSPARAM writes the value val_w to the location idx_i in the
operating data.
Return value 0 means wrong index.
ret_bit
: BOOL;
et_bit
:= WRITE_SYSPARAM(101, 100);
Writes the value 100 into the operating data word 101. This defines that the
PROGRAM PLC_PRG2 (if available) will be called cyclically every 100 * 10 ms.
Declaration
Description
Declaration
Description
Declaration
Description
Example