Siemens 3VF Series Communications Manual page 65

Table of Contents

Advertisement

Communication System Manual
3.5.3.3.1 Adaptation to master module
Adaptation to the DP master module is performed in the start-up OBs and in cycle OB1.
If CP5431 is used as master, it must be synchronized on start-up. It also requires one cyclical trigger
point for input and one for output in order to exchange data. The data handling blocks are responsible
for these tasks and have been integrated in CP3WN6ST.S5D in exemplary fashion. Please ensure that
the correct data handling blocks are used for the implemented CPU. Trigger point FBs FB50 and FB51,
the FBs for start-up synchronization (FB52), and FB 53 for diagnostics must also be supplied with the
correct call parameter in the example program, i.e. S5 = 115 (for S5 115) or 135 (for S5 135/155). This
makes it possible for a single example program to run on all S5 CPUs. The slaves must be defined as
cycle-synchronous in COM5431 for the DP update, in order to ensure data integrity.
With IM308C as master, only the CPU-specific FB192 needs to be loaded.
The following data handling blocks are required for the example program with the CP as master:
115:
FB244, FB245, FB247, FB249 all CPU-dependent
135/155:
FB120, FB121, FB123, FB125 all CPU-dependent
Note: If CP5431 is used as DP master, access to the I/O modules is only possible after a
hardware reset (voltage OFF). Otherwise a time-out/no acknowledgement signal is output.
3.5.3.3.2 Other adaptations
The printed program listing is an example in which the settings can be adapted to suit individual
requirements. Please read Description of examples for further information.
Please note that only one send or receive request can ever be initiated at any one time for the same
3WN6 circuit-breaker.
If several circuit-breakers are in use, FB10 must be called once for each circuit-breaker and supplied
with the correct call parameters. The I/O addresses, DBs and timers must only ever be used once. The
following address space is available for I/O addresses:
IM308C:
I/O 128 to 255
CP5431:
I/O 0 to 255
in the I/O area with linear addressing in each case. It is necessary to keep within this area in order to
ensure data integrity.
3.5.3.3.3 Diagnostics
If diagnostics are required (e.g. for Win3WN6), an insertion must be made in the DBAT relative to the
DP master as of DW200. In the case of IM308C, this is achieved by means of an FB192 call addressed
to the slave. Both the DP address of the slave and the DBAT no. in which the diagnostic data are to be
stored must be specified (see example IM308CST.S5D).
The diagnostics for CP5431 vary depending on the CP. The CP is first scanned to check for the
presence of diagnostic data (can be seen from FB53 in example CP3WN6ST.S5D). If such data are
present, slave diagnostics are requested by means of a SEND request. The PROFIBUS slave address
must be known, however. This must be entered in DR198 of DBAT. The diagnostic message can then
be read out of the returned data in DW203 of DBAT. It is also possible to detect from DW200 whether
the PROFIBUS connection to the interface module of the circuit-breaker is in order. A definitive
statement can be made regarding the correct connection to 3WN6 based on an OR operation on the
channel-specific diagnostics (DW203) and the "Station_Not_Existent" bit (PROFIBUS standard in
station status 1 in DW200). If diagnostic messages are to be fetched from several 3WN6s, the S5 with
CP5431 as master must ensure that only one diagnostic message is ever sent to a slave at a time.
Diagnostic messages for another 3WN6 can only be requested when the diagnostic response has been
received from the previous circuit-breaker. This can be achieved by means of a counting distributor, for
example.
Version 1.0 (05/98)
© Copyright Siemens AG 1998. All rights reserved.
3WN6 Circuit-Breakers
65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents