Plc programming – Lenze ETC Motion Control User Manual

Page 374

Advertising
background image

PLC programming

Library
General functions

8

8.8
8.8.1

l

374

EDSTCXN EN 2.0

8.8.1.25

WordWrap

FUNCTION WordWrap: INT

VAR_INPUT

string_s

: STRING(255);

(* String, which is to be reformatted *)

linelen_di

: DINT;

(* maximum line length *)

END_VAR

The function automatically enters a line break into the string if the line
length exceeds the value stated. The return value is the resulting total length
of the string.

Ensure that the string variable declared is large enough to accommodate the
resulting string!

8.8.1.26

WRITE_PARAM_INT (only ETCxC)

FUNCTION WRITE_PARAM_INT: BOOL

VAR_INPUT

IDX_DI

: DINT;

(* Parameter index *)

VAL_I

: INT;

(* 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.27

WRITE_PARAM_DINT (only ETCxC)

FUNCTION WRITE_PARAM_DINT: BOOL

VAR_INPUT

IDX_DI

: DINT;

(* Parameter index *)

VAL_DI

: DINT;

* 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.

Declaration

Description

Declaration

Description

Declaration

Description

Advertising