Plc programming – Lenze ETC Motion Control User Manual

Page 372

Advertising
background image

PLC programming

Library
General functions

8

8.8
8.8.1

l

372

EDSTCXN EN 2.0

8.8.1.20

SETLANGUAGE (only ETCxM)

FUNCTION SETLANGUAGE: BOOL

VAR_INPUT

Language

: INT;

END_VAR

This function switches between different output text languages. Language
= 0 selectes the output text files ncrspch0.txt/spsspch0.txt, language = 1 the
files ncrspch1.txt/spsspch1.txt etc.

The return value of the function is of no consequence.

SETLANGUAGE(4);

Output text files ncrspch4.txt and spsspch4.txt are selected.

8.8.1.21

STRTOF

FUNCTION STRTOF: REAL

VAR_INPUT

SString

: STRING(255);

PIndex

: POINTER TO INT;

END_VAR

The function converts the characters in sString after position Index into a
REAL. Index contains the read−in end position after execution.

8.8.1.22

STRTOL10

FUNCTION STRTOL10: DINT

VAR_INPUT

SString

: STRING(255);

PIndex

: POINTER TO INT;

END_VAR

The function converts the characters in sString after position Index into a
DINT. Index contains the read−in end position after execution.

Declaration

Description

Example

Declaration

Description

Declaration

Description

Advertising