1 data block 0, Data block 0, Interface plc <˘> nc operating system – Lenze ETC Motion Control User Manual
Page 242
Interface PLC <˘> NC operating system
Definitions
Data block 0
5.1
5.1.1
l
242
EDSTCXN EN 2.0
5.1.1
Data block 0
When using DB0, bear in mind that the data may only be evaluated in the
2nd PLC task (PLC_PRG2/ OB20). This is necessary because the data is upda-
ted in DB0 before the 2nd task is called and the NC evaluates the data after
execution. The error interface is an exception as it is synchronized by a strobe
(error counter) and an acknowledgement signal (error acknowledgement).
Data word
CoDeSys system variable
Direction
001.00 – 001.15
db0_sps2nc_nc_fehlerquittung_w
PLC
® NC
016.00 – 095.15
db0_nc2sps_fehlertext_s
PLC
¬ NC
096.00 – 127.15
db0_nc2sps_fehlerinfo_s
PLC
¬ NC
128.00 – 128.15
db0_nc2sps_aktuelles_menu_w
PLC
¬ NC
129.00 – 129.15
db0_nc2sps_ob20_ereignis_w
PLC
¬ NC
132.00 – 132.15
db0_nc2sps_funktionsstatus_w
PLC
¬ NC
133.00 – 133.15
db0_nc2sps_nc_fehlerzaehler_w
PLC
¬ NC
134.00 – 134.15
db0_nc2sps_nc_fehlerklasse_w
PLC
¬ NC
135.00 – 135.15
db0_nc2sps_nc_fehlermodul_w
PLC
¬ NC
136.00 – 136.15
db0_nc2sps_nc_fehlernummer_w
PLC
¬ NC
137.00 – 137.15
db0_nc2sps_aktuelles_untermenu_w
PLC
¬ NC
148.00 – 255.15
db0_nc2sps_g253_textausgabe_s
PLC
¬ NC
All of the areas that are not listed explicitly are reserved.
Data word
Name
Direction
Type of signal
001
Error acknowledgement
PLC
® NC
static
This data word can be used by the PLC to recognize error messages and to
acknowledge error messages if the PLC has to evaluate an output error mes-
sage. If DW001 is unequal to DW133 (error counter), a new error message is
pending. Once the PLC has evaluated the error message, DW001 must be set
to the value of DW133. This way, the error in the NC computer is acknowled-
ged.
Data word
Name
Direction
Type of signal
016.00 – 095.15
Error text
NC
® PLC
static
From DW016 onwards, the error text of the currently pending error is stored
as null−terminated string.
Data word
Name
Direction
Type of signal
096.00 – 127.15
Additional error information
NC
® PLC
static
From DW096 onwards, additional information (e.g. axis letter) on the cur-
rently pending error is stored, if applicable, as a null−terminated string.
Assignment
Description of the signals