Interface plc <˘> nc operating system – Lenze ETC Motion Control User Manual

Page 243

Advertising
background image

Interface PLC <˘> NC operating system

Definitions

Data block 0

5

5.1

5.1.1

l

243

EDSTCXN EN 2.0

Data word

Name

Direction

Type of signal

128

Current menu

NC

® PLC

static

This is where the current menu is identified:

0 = invalid
1 = main menu
2 = set−up
3 = automatic
4 = programming
5 = diagnostics
6 = user

If you want the PLC program to change to a standard menu, the identifica-
tion of the new menu must be stored in DW128 prior to executing the func-
tion "New state()".

Data word

Name

Direction

Type of signal

129

Event

NC

® PLC

static

This is where the NC stores an identification, for which reason the 2nd PLC
task is to be carried out, before the 2nd PLC task is called (PLC_PRG2/ OB20).
This is to ensure a corresponding reaction can be triggered. The contents are
updated in each PLC cycle and do not have to be reset.

0 = cyclic call
1 = key message => evaluate DW130
2 = input termination => evaluate DW131
3 = new machine constants were loaded
4 = key message during active input => evaluate DW130
5 = block search limit reached
6 = block search target position reached

Data word

Name

Direction

Type of signal

132

State after termination of function

NC

® PLC

static

Each called function (Ba_Einrichten(), Ba_Automatik(), etc.) reports back a
state here:

0 = operating mode still active.
1 = operating mode no longer active. System must be set to the initial state
(main menu).

This state must be checked by the PLC program after the function has been
terminated. If DW132 has the value 1, it means that the initial state was set
in the function that was terminated previously.

Advertising