3
07.96
Description
3-16
6ZB5 430–0BH02–1AA0
Siemens AG 1996 All Rights Reserved
SINUMERIK 805SM / 840C (BS)
3.2.6
Diagnostics functions in the S5 program of the master
The STEP 5 program of the IM 328–B master can request and evaluate the
following diagnostics messages via the IM 328–N slave:
Diagnostics type
Request
Description
Diagnostics “Overview”
127,0
Records all the stations for which
diagnostics data exist
Diagnostics “Parameter as-
signment and addressability”
126,n
Records all stations that can be para-
meterized and addressed
Station status
n,0
n,1
n,2
Provides information about the status
of the slave station
Device–related diagnostics
(stations diagnostics)
n,3
Provides information about the status
of the PLC in which slave IM 328–N
is slotted (PLC in RUN or in STOP?)
Identifier–related diagnostics
(module diagnostics)
n,4
Not used by slave IM 328–N
n: Station number
Diagnostics “Overview” and “Parameter assignment and addressability”
are described in
Reference:
/1/, SIMATIC S5 Distributed I/O System ET 200
because they can be used on all slave stations.
The diagnostics function must first be enabled in the ET 200 SYSTEM PA-
RAMETER screen form (Y) and a diagnostics address must be specified (de-
fault diagnostics address: 252).
Diagnostics:
Y
Diagnostics address:
252
The diagnostics address is the address of the diagnostics word. The diagno-
stics data area of the master can be accessed with the diagnostics word. If an
error occurs, the slave stations send the diagnostics data to the master.
The two diagnostics bytes of the diagnostics word will be referred to as
DIAGNOSTICS ADDRESS (default: I/O byte 252) and DIAGNOSTICS
A1 (default: I/O byte 253).
By combining different diagnostics, appropriate conclusions can be drawn
such as, for example, station with fault and can be contacted.
Immediately after diagnostics is called in the STEP 5 program, the
diagnostics data are accessed and the diagnostics message is given in the
diagnostics word.
General notes on
diagnostics
Enabling
diagnostics
3.2 Description of the DP standard slaves