Plc programming – Lenze ETC Motion Control User Manual

Page 370

Advertising
background image

PLC programming

Library
General functions

8

8.8
8.8.1

l

370

EDSTCXN EN 2.0

8.8.1.19

SPSERROR

FUNCTION SPSERROR: BOOL

VAR_INPUT

fehler_di]

: DINT;

(* error number *)

klasse_dw

: DWORD;

(* error class *)

formatstring

: STRING(80); (* Format string *)

PARAMETER_P

: DINT;

(* Address of a structure containing the parameters *)

END_VAR

The function places an error message which is displayed on a connected
control terminal. The error number fehler_di also serves as a reference for an
error text. The error texts can be displayed on a connected PC (for both ETC
variants) or on the ETC MMI (only ETCxC).

The error classes klasse_dw are divided as follows:

1: local minor error

2: local major error

3: global minor error

4: global major error

Error classes 3 and 4 cause the program to be cancelled or result in an axis
movement.

Via the error texts references by the error numbers additional information
can also be output. Via the format string additional text or numerical values
can be transferred.

Declaration

Description

Advertising