Documente Academic
Documente Profesional
Documente Cultură
Introduction, Contents Characteristics and Technical Specifications of the SM 335 Conncecting the Inputs and Outputs of the SM 335 1 2 3 4 5 6 7 A
SIMATIC S7 SM 335 HighSpeed Analog Input/Output Module for the S7300 Manual
Data Exchange with the SM 335 Interval Counter Input Special SM 335 Operating Modes Detecting and Correcting Faults Program Examples for the SM 335 Index
3ls
SIMATIC documentation
Edition coding Brief details of this edition and previous editions are listed below The status of each edition is shown by the code in the Remarks column.
Order No.
6ES7 3357HG008BA0 6ES7 3357HG008BA1
Remarks
A C
For more information, refer to the Internet: http://www.ad.siemens.de/simatic This publication was produced on Interleaf V 5.4 The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved.
Functions may be executable in the control but are not described in this documentation. No claims can be made on these functions if included with a new shipment or when involved with service. We have checked the contents of this document to ensure that they coincide with the described hardware and software. The information in this document is regularly checked and necessary corrections are included in reprints. We are thankful for any recommendations for improvement. Subject to change without prior notice.
SiemensAktiengesellschaft
Safety-related Guidelines
This manual contains notices intended to ensure personal safety, as well as to protect the products and connected equipment against damage. These notices are highlighted by the symbols shown below and graded according to severity by the following texts:
Danger indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken.
Warning indicates that death, severe personal injury, or substantial property damage can result if proper precautions are not taken.
Caution indicates that minor personal injury or property damage can result if proper precautions are not taken.
Note contains important information about the product, its operation or a part of the document to which special attention is drawn.
Qualified Personnel
A device/system may only be commissioned or operated by qualified personnel. Qualified personnel as referred to in the safety guidelines in this document are persons authorized to energize, de-energize, clear, ground, and tag circuits, equipment and systems in accordance with established safety practice. For a detailed description of the safety-related guidelines, please refer to the Appendix.
Proper Usage
Warning The equipment/system or the system components may only be used for the applications described in the catalog or the technical description, and only in combination with the equipment, components, and devices of other manufacturers as far as this is recommended or permitted by Siemens. The product will function correctly and safely only if it is transported, stored, set up, and installed as intended, and operated and maintained with care.
Registered Trademarks
Introduction
Important To achieve the interfernce immunity factor of SIMATIC, the SM 335 module must always be operated with an interference suppressor filter (see Section 2.6).
SM 335
This manual describes the SM 335 analog input/output module; AI4/AO4 12/14 byte.
S Use of a SM 335 in a SIMATIC S7-300 S It will serve as a reference for operator inputs, function descriptions and
technical specifications in connection with the SM 335
This manual describes the functions of the SM 335 analog input/output module; AI4/AO4 14/12 byte. In the following, this module will simply be called SM 335.
Module SM 335
This manual contains the descriptions of these modules that are valid at the time the manual is released. For new modules and new versions of modules, we reserve the option to add to the manual a product information containing the current information on this module.
You can order the documentation for the SM 335 independent of the module. The order numbers for the manual is given in the following table.
Documentation
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
vii
Introduction
01.99
Other References
The S7-300 Programmable Controller Hardware and Installation Manual includes a list with reference literature on the S7300 and programmable controllers in general.
This manual features the following overviews for fast reference to specific information:
S The manual starts with a complete table of contents in the manual. S In the various chapters, the headlines on the left margin highlight the contents of the particular section.
S The index at the end of this manual enables you to get fast access to the
information required.
Standards
Queries
If you have any queries about the S7-300 programmable controller, please contact your local Siemens representative. A list of Siemens representatives worldwide is contained in the S7-300 Programmable Controller Hardware and Installation. In case you have any questions or suggestions concerning this manual, please fill in the correction sheet at the end of the manual and return it to us.
viii
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Contents
1 Characteristics and Technical Specifications of the SM 335 . . . . . . . . . . . . . 1.1 1.2 1.3 1.4 1.5 1.5.1 1.5.2 1.5.3 1.6 1.6.1 1.6.2 2 Characteristic Features of the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . . Terminal Connection Diagram for the SM 335 . . . . . . . . . . . . . . . . . . . . Block Diagram of the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting the Measuring Range with the Measuring Range Module . . . Technical Specifications for the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . Technical Specifications of the Analog Inputs on the SM 335 . . . . . . . Technical Specifications of the Outputs on the SM 335 . . . . . . . . . . . . Technical Specifications for the Interval Counter . . . . . . . . . . . . . . . . . . SM 335 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Free Cycle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conditional Cycle Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-11 1-12 1-13 1-14 1-15 1-16 1-17 1-18 1-19 1-20 1-21 1-22 2-23 2-24 2-25 2-27 2-29 2-30 2-32 2-33 3-35 3-36 3-37 3-40 3-41 3-42 3-43 3-45 3-46 3-47 3-51 3-54 3-56 3-57 3-58 3-59
Connecting the Inputs and Outputs of the SM 335 . . . . . . . . . . . . . . . . . . . . . . 2.1 2.2 2.3 2.4 2.5 2.5.1 2.6 Basic Rules for Connecting the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the Analog Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the Analog Outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the Interval Counter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting the Sensor Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . Correcting the Sensor Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . Interference Suppressor Filter for 24 V Supply Voltage . . . . . . . . . . . .
Data Exchange with the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 3.1.1 3.1.2 3.2 3.2.1 3.2.2 3.3 3.3.1 3.3.2 3.3.3 3.3.4 3.4 3.4.1 3.4.2 3.4.3 Access Via the I/O Addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Parameters via S7 Configuration . . . . . . . . . . . . . . . . . . . . . . . . SM 335 Default Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SM 335 Parameters Assignable with S7 Configuration Application . . Modifying SM 335 Parameters Using System Function 55 . . . . . . . . . SM 335 Parameters in the Free Cycle and Conditional Cycle Modes SM 335 Parameters in the Free Cycle and Conditional Cycle Modes SM 335 Parameters for the Comparator Mode . . . . . . . . . . . . . . . . . . SM 335 Parameters for Measuring Only Mode . . . . . . . . . . . . . . . . . . Evaluating SM 335 Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Format of the Diagnostic Data for the SM 335 . . . . . . . . . . . . . . . . . . . . Module Diagnostic Byte 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
ix
Contents
01.99
Module Diagnostic Byte 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Diagnostic Byte 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Diagnostic Byte 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Channel-Specific Diagnostic Bytes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-61 3-62 3-63 3-64 4-67 4-68 4-69 4-70 4-72 4-73 4-74 5-75 5-76 5-77 5-78 5-82 5-85 5-86 5-87 5-89 6-91 6-92 6-93 6-95 6-97 6-98 7-101 7-102 A-105
Interval Counter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 4.2 4.3 4.4 4.5 4.6 Interval Counter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Principles of Measuring with the Interval Counter . . . . . . . . . . . . . . . . . Wiring the Interval Counter Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Initializing the SM 335s Interval Counter . . . . . . . . . . . . . . . . . . . . . . . . Interval Counter Values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example for Determining the Speed by Means of the Interval Counter
Special SM 335 Operating Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 5.2 5.2.1 5.2.2 5.2.3 5.3 5.3.1 5.3.2 Switching to the Special Operating Modes . . . . . . . . . . . . . . . . . . . . . . . Comparator Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How the Comparator Mode Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SM 335 Parameters for Comparator Mode . . . . . . . . . . . . . . . . . . . . . . . Example for Switching to the Comparator Mode . . . . . . . . . . . . . . . . . Measuring Only Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Switching to Measuring Only Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example for Switching to Measuring Only Mode . . . . . . . . . . . . . . . . .
Detecting and Correcting Faults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6.1 6.2 6.3 6.4 6.5 Principle of Diagnostics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enabling Diagnostics with S7 Configuration . . . . . . . . . . . . . . . . . . . . . . Evaluating the Diagnostic Data in OB 82 . . . . . . . . . . . . . . . . . . . . . . . . SM 335 Error Tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Program Examples for the SM 335 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.1 An Example of Reparameterizing the SM 335 . . . . . . . . . . . . . . . . . . . .
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
S7-300
The SM 335 is an input/output module (signal module) for the SIMATIC S7-300. The SM 335 has the same general technical specifications as all signal modules of the S7-300.
Order Number
You order the SM 335 under the following order number 6ES7 335-7HG01-0AB0.
In this Chapter
Topic Characteristics of the SM 335 Terminal connection diagram of the SM 335 Block diagram of the SM 335 Setting the measuring range with the measuring range module Technical specifications of the SM 335 Operating modes of the SM 335
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-11
01.99
1.1
Characteristic Features
The SM 335 AI4/AO4 14/12 bit has the following characteristic features:
S Four galvanically isolated analog inputs S Integrated 10 V / 25 mA sensor power supply S Measured-value resolution:
Bipolar: 13 bits + sign Unipolar: 14 bits
S Selectable measuring range for each input S Four galvanically isolated analog outputs S Selectable range for each analog output
For the analog outputs, you can connect loads over a two-wire connection only!
S Programmable diagnostics S Programmable diagnostic interrupt S Programmable end-of-cycle interrupt (generates a hardware interrupt on the
CPU)
1-12
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
1.2
Figure 1-1 shows the terminal connections for the SM 335 analog input/output module.
Analog inputs: Analog outputs Voltage/current measu- Voltage/current output rement L+ 24 V 24 V L+ CH 0 QV0 QV1 CH 1 QV2 CH 2 QV3 CH 3 MANA QVRef MANA 10 V Sensor power supply
M0+ M0
CH 0
CH 1 CH 2 CH 3
Interval counter IZ M M M
Wiring
Please refer to Chapter 2 and to the S7-300 Programmable Controller Hardware and Installation Manual for information on how to wire the inputs and outputs on the SM 335.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-13
01.99
1.3
Block Diagram
Figure 1-2 shows the block diagram of the SM 335. You will find detailed technical specifications of the SM 335 on the following pages.
24V
CH0 A CH1 D S7-300 backplane bus CH2 CH3 10 V Sensor supply Analog outputs
Logic
Galvanic Isolation
As you can see from Figure 1-2, the SM 335 contains different analog parts. The analog outputs are galvanically isolated from the backplane bus of the S7-300. The outputs are on the same potential MANA. The output for sensor supply has the same potential MANA as the analog outputs.As you can see
from Figure
The analog inputs are galvanically isolated from each other and from the backplane bus of the S7-300. The input for the interval counter IZ is galvanically isolated from the other analog parts and from the backplane bus of the S7-300.
1-14
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
1.4
A measuring range module is located on the left of the input/output module. The measuring range module is used to set the method of measuring on the analog inputs, that is, to choose between voltage and current measuring.
Settings
The measuring range module can be set for A, C or D. The default setting is D. Table 1-1 shows the allocation of measuring range module settings to analog inputs, and the default value for the measuring range.
Table 1-1 Measuring Range Module Settings and Measuring-Range Defaults on the SM 335 Measuring Method at Analog Input Input 0: Voltage Input 1: Voltage Input 2: Voltage Input 3: Current B C Not assigned Input 0: Voltage Input 1: Voltage Input 2: Current Input 3: Current D Input 0: Voltage Input 1: Voltage Input 2: Voltage Input 3: Voltage Measuring Range (Default Value) " 10 V " 10 V " 10 V 4 to 20 mA " 10 V " 10 V 4 to 20 mA 4 to 20 mA " 10 V " 10 V " 10 V " 10 V
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-15
01.99
1.5
Dimensions and Weight Dimensions W x H x D (mm) Weight Module-Specific Data Number of inputs
Number of outputs
4
4
Cable length (shielded) With wirebreak test in the range 0 to 10 V Voltages, Currents, Potentials Rated load voltage L +
S Bipolar S Unipolar
24 V DC Yes
Yes
S Polarized
Galvanic isolation Permissible potential difference
S Between inputs
(UCM) nal) and central grounding point Isolation tested with 500 VDC
Power consumption
S From L +
Module power loss
max. 150 mA
max. 3.6 W
S Diagnostic information
can be read out
Yes
1-16
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
1.5.1
S Common-mode noise
(UPP t 3 V)
u 65 dB 0 dB
S Voltage
S Series-mode noise
(peak noise value < rated value of the input range)
Crosstalk between inputs
S Current
S at 50 Hz S at 60 Hz
Operational limit for voltage measuring (over entire temperature range, based on input range) Operational limit for current measuring (over entire temperature range, based on input range) Basic error (operational limit at 25 _C or 77 _F, based on input range) Temperature drift (based on input range)
65 dB
S Voltage S Current
Permissible input voltage for voltage input (destruction limit) "30 V
65 dB
" 0.15 % (for 14-bit resolution) 0.25 %
Permissible input current for 25 mA current input (destruction limit) Connecting of sensors
Linearity error (based on input " 0.015 % range) Repeatability (in steady state " 0.05 % at 25 C or 77 F, based on input range)
Not possible
10 V/25 mA
S Short-circuit-proof
Sensor Selection Data
Rated voltage Max. output current Short-circuit-proof Operational limit (over entire temperature range) Temperature error Basic error for rated voltage
Yes
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-17
01.99
1.5.2
S " 10 V S From 0 to 10 V
Conversion time (per channel) in ms Setting time
Burden resistance
Yes Max. 8 mA
Noise Suppression and Error Limits for the Outputs Crosstalk between outputs Operational limit (over entire temperature range, based on output range) Basic error (operational limit at 25C or 77F, based on output range) Temperature error (based on output range) 40 dB 0.5 %
0.2 %
0.02 %/K
Linearity error (based on output " 0.05 % range) Repeatability (in steady state at " 0.05 % 25C or 77F, based on output range) Output ripple (based on output range) " 0.05 %
1-18
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
1.5.3
Technical Specifications
The technical specifications for the interval counters input are listed in the table below. Noise Suppression and Error Limits for the Input
Noise suppression for F=n (f1 " 1 %), (f1 = interference frequency)
Data Specific to the Interval Counter Number of inputs Cable length (shielded) Voltages, Currents, Potentials Rated load voltage L+ DC 24 V Yes
Yes
1 200 m
S Common-mode noise
(UPP t 3 V)
u 80 dB 0 dB
S Polarized
Galvanic isolation Permissible potential difference
S Series-mode noise
(peak noise value < nominal value of input range)
Operational limit (over entire temperature range) Basic error (operational limit at 25C or 77F)
DC 75 V/AC 60 V
Analog Value Formation for the Interval Counter Input Measuring principle Detection of a rising edge and measuring the amount of time between two edges
0.5 ms
400 Hz No
S Low S High
Permissible voltage range between IZ and MIZ terminals
1 ms 1 ms
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-19
01.99
1.6
Operating Modes
1-20
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
1.6.1
Cycle
In conjunction with the SM 335, the word cycle is used to mean the measuring, or sampling, of the analog value at all analog inputs in succession. Once the measuring cycle is completed, it starts again from the beginning. This cycle has nothing to do with cyclic program scanning on a SIMATIC S7 CPU.
Free Cycle
When the SM 335 operates in Free Cycle mode, all SM 335 analog inputs and outputs are processed successively and without interruption. After all inputs and outputs have been processed, conversion once again begins with the first analog input. Figure 1-3 shows the various components of the cycle time for a free cycle.
Conversion time for analog output 1 Cycle time Conversion time for analog input 4
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
1-21
01.99
1.6.2
Conditional Cycle
In the conditional cycle operating mode, you can define the cycle time. Following conversion of all inputs/outputs, the SM 335 generates an end-of-cycle interrupt to the CPU. The SM 335 then waits while the analog outputs are updated and begins the next processing cycle after the specified cycle time has expired. Figure 1-4 shows the components of the cycle time for a conditional cycle.
Conversion time for analog output 1 Yes Time condition: Start new cycle No Updating of the analog outputs optional
End-of-cycle interrupt
1-22
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Assembly
Before connecting the SM 335, you must first assemble it. You assemble the SM 335 in the same way as all other input/output modules of the SIMATIC S7-300. Please refer to the S7-300 Programmable Controller Hardware and Installation Manual for information on this topic.
S7-300
When connecting the SM 335, please note the installation guidelines in the S7-300 Programmable Controller Hardware and Installation Manual. In the present manual, we describe special features that apply to the SM 335.
In this Chapter
Topic Basic information on connecting the SM 335 Connecting the analog inputs Connecting the analog outputs Connecting the interval counter input Connecting the sensor supply Interference suppressor filter for 24 V supply voltage
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-23
01.99
2.1
The analog inputs and outputs are switched as described in the S7-300 Programmable Controller Hardware and Installation Manual.
Power Supply
The SM 335 must be supplied with 24 V DC. The 24 V must be connected to L+ (PIN 1), the 24 Vs zero potential to M (PIN 20).
Grounding
S Direct on the 24 V power supply unit or S On the S7 CPU (if you use the 24 V power supply on the CPU).
2-24
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
2.2
Recommendation
The SM 335s analog inputs and the associated zero potential should be connected to a terminal block, and the zero potential for the analog inputs distributed over the block.
Configuration
SM 335 Twisted-pair, shielded Terminal block Sensor 0 10 11 Sensor 1 12 13 Sensor 2 14 15 Sensor 3 16 6 MANA 9 M0+ M0 M1+ M1 M2+ M2 M3+ M3 CH 3
CH 0
CH 1
CH 2
Non-Isolated
In contrast to other applications (for instance when connecting thermocouples), you should ground the sensors analog zero potential in the vicinity of the SM 335. The easiest way to do so is to connect pins 10, 12, 14 and 16 with analog zero potential MANA (PIN 6) and connect MANA in the vicinity of the module in the rack with the central grounding point of the module. This connection should be as short as possible. Do not ground the sensors twice, however, as this would produce ground loops which could result in interference. When using sensors which are shielded and whose shields are connected to the analog zero potential, you must disconnect the shield from the analog zero potential to prevent ground loops.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-25
01.99
Isolated
If you use the SM 335 isolated, the maximum permissible common mode voltage must not be exceeded between the zero potential of the sensor and MANA, otherwise the measurement will be corrupted. 60 V AC/ 75 V DC must not be exceeded between MANA and the 24 V voltage supply.
Unused analog inputs on the SM 335 must be short-circuited and connected to MANA. Deactivate the unused analog inputs as described in S7 Configuration. This achieves the optimum in interference immunity for the SM 335. You can also employ unused analog inputs to monitor the sensor power supply or analog outputs. This also enhances interference immunity.
2-26
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
2.3
Internally, the analog outputs are designed as voltage outputs. For this reason, the analog outputs must be connected as voltage outputs. For details, please refer to the S7-300 Programmable Controller Hardware and Installation Manual.
Recommendation
If possible, the SM 335s analog outputs, with the associated zero potential, should be connected to a terminal block from where you can tap the zero potential for the analog outputs.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-27
01.99
Configuration
SM 335
Actuator 0 CH0 CH1 CH2 CH3 2 2 Actuator 1 4 5 Actuator 2 Mana 6 Actuator 3 Twisted-pair, shielded
Non-Isolated
Actuators which are shielded and whose shields are grounded and connected to the actuators zero potential conductor form a ground loop. You must therefore break the connection between shield and zero potential conductor on the actuator or use an actuator whose zero potential conductor is not connected to ground.
To ensure that unused analog outputs on the SM 335 are dead, you must deactivate them and leave them open. An analog output is deactivated with S7 Configuration via the Output parameter block (see Table 3-6).
2-28
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
2.4
Non-Isolated
If you wire the interval counter input as non-isolated input, connect pin 19 (MIZ) and pin 20 (24 V power supplys zero potential).
Isolated
If you wire the interval counter input as isolated input, you may not connect pin 19 (MIZ) to pin 20 (24 V power supplys zero potential).
Additional Information
Refer to Section 4.3 for more information on connecting the interval counter input.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-29
01.99
2.5
Purpose
The sensor power supply is designed for resistance-type sensors (such as linear potentiometers).
Connections
Figure 2-3 shows an example of how to connect the sensor power supply.
SM 335 6 Mana
10 V
Figure 2-3 Example of How to Supply the Sensors with Power via the SM 335
Non-Floating Configuration
Internally, the SM 335s analog zero potential (pin 6) is connected with the 10 V sensor power supplys zero potential. If you use the four-wire measuring method shown in Figure 2-3, you must not connect pin 10 to pin 6 or to zero potential. To do so would be to create a ground loop, which could cause interference.
2-30
7 URef=10V 8
10V
9 0V U 10
M0+ M0
Measuring signal
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Cable
There is a voltage drop on the cable between SM 335 and the linear potentiometer. Because of the SM 335s high resolution, this can play a role in the measuring of the analog signal. You can compute the voltage drop on an electric cable as follows: U: Voltage drop along the cable r0: Resistivity of the cable used (for Cu: 0.0172 W mm2/m I: Current flowing through the cable in amperes l: Length of the cable in meters A: Cross-section of the cable in square millimeters Because of this, we would recommend keeping the cables as short as possible and using a cable with the largest possible cross-section.
U+
r0 I l A
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-31
01.99
2.5.1
Purpose
The power supplied for the sensors is a 10 V output voltage. This voltage may deviate slightly from 10 V. The deviation results from the tolerances of the components used on the SM 335. Because the SM 335 has no trimming potentiometers for re-adjusting the voltage supplied, it supplies the sensor voltage as analog value.
Sensor Voltage
The SM 335 supplies the analog value of the sensor voltage in input bytes ModAdd + 10 and ModAdd + 11 (see Table 3-1 in Section 3.1.1).
Correction Factor
The correction factor K is computed from the actual sensor voltage U and the desired voltage.
K+
U lies between 27620 (16#6BE4) and 27676 (16#6C1C), producing correction factors from 0.9989883 to 1.0010127.
Measured Value
The corrected analog measured value is computed as follows: KCorr = Corrected analog value
K Corr + K U AI
2-32
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
2.6
Important To achieve the interfernce immunity factor of SIMATIC, the SM 335 module must always be operated with an interference suppressor filter.
Interference
Interference may reach the SM 335 over the 24 V voltage supply. One cause of such interference is the switching of loads connected to the 24 V circuit. The interference has a high-frequency content which can impair proper functioning of the SM 335.
The high-frequency content is kept away from the SM 335 by an interference suppressor filter. Bring this filter into the SM 335s 24 V voltage supplys circuit as follows:
max. 0.1 m L+
SM 335 L
24 V power supply
20
Other modules
Figure 2-4 Interference Suppressor Filter for the SM 335s 24 V Power Supply
The interference suppressor filter can be used for max. 4 modules of the SM 335. It can be ordered with the order No.: 6ES7 3357HG006AA0 From: WKF Frth Please contact your local Siemens office for further information. J
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
2-33
01.99
2-34
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Preliminary Remark
S Transfer of data to the SM 335 from the CPU and S Reading of data from the SM 335 by the CPU.
Overview
In this section, we have summarized all the data that can be transferred to the SM 335 or supplied by the SM 335.
Methods
S Access via the I/O addresses (for example, with L PIW, T PQW) S Setting parameters via S7 Configuration S Writing parameters with the help of system function 55 S Reading diagnostics data via system function 59
Coding Plug
Before you plug in the SM 335, you must insert the coding plug into the SM 335. The S7-300 Programmable Controller Hardware and Installation Manual describes how to insert the coding plug into the SM 335. The measuring method (current/voltage measurement) is set for the analog inputs depending on the position in which you plug in the coding plug.
This Chapter
Topic Access via the I/O addresses Setting parameters via S7 Configuration Modifying SM 335 parameters with the help of system function 55 Evaluating SM 335 diagnostics
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-35
01.99
3.1
Principle
Input Values
Input values are values supplied by the SM 335. You can load the input values via the L PIB (or L PIW or L PID) operation. The input values contain measured values of the SM 335.
Output Values
Output values are values you write to the SM 355 via the T PQB (or T PQW or T PQD) operation. You can transfer analog values to the SM 335 via output values. The output values are output via the SM 355s analog outputs.
3-36
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.1.1
Principle Format
Input Values
The SM 335 converts the signals measured at the inputs into binary values. The input values are located in bytes ModAdd (module start address) to ModAdd + 15 (module start address + 15) in the process-image input table. Refer to chapter entitled Addressing in the S7-300 Programmable Controller Hardware and Installation Manual for information on how to compute the module start address. Table 3-1 lists the input values, their addresses, and their default values. The value shown in the Default column is the value assumed by an input before that input is read for the first time.
Table 3-1 Byte ModAdd + 0 ModAdd + 1 ModAdd + 2 ModAdd + 3 ModAdd + 4 ModAdd + 5 ModAdd + 6 ModAdd + 7 ModAdd + 8 SM 335 Input Values Contents High-order byte of the measuring value from measuring channel 1 Low-order byte of the meas. value from meas. channel 1 High-order byte of the measuring value from measuring channel 2 Low-order byte of the meas. value from meas. channel 2 High-order byte of the measuring value from measuring channel 3 Low-order byte of the meas. value from meas. channel 3 High-order byte of the measuring value from measuring channel 4 Low-order byte of the meas. value from meas. channel 4 For Comparator and Measuring Only modes: Number of suppressed end-of-cycle interrupts Default = 1; If end-of-cycle interrupts have been suppressed: 1 + number of suppressed end-of-cycle interrupts ModAdd + 9 ModAdd + 10 ModAdd + 11 ModAdd + 12 ModAdd + 13 ModAdd + 14 ModAdd + 15 ID for new comparator and return code for Comparatir and Measuring Only High-order byte of the sensor voltage Low-order byte of the sensor voltage Interval counter Interval time value in bits 16 to 24 Interval time value in bits 8 to 15 Interval time value in bits 0 to 7 B#16#01 B#16#6C*) B#16#00*) B#16#00 B#16#FF B#16#FF B#16#FF Default *) *) *) *) *) *) *) *) B#16#01
Analog Values
Please refer to the chapter entitled Analog Modules in the S7-300 Programmable Controller Hardware and Installation Manual for information on how an analog value is represented in binary in the CPU and on which binary value corresponds to which analog value.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-37
01.99
ModAdd + 8
The SM 335 suppresses end-of-cycle interrupts when the Comparator mode is enabled. The SM 335 enters the number of suppressed end-of-cycle interrupts (1 + number of suppressed end-of-cycle interrupts) in byte ModAdd + 8 when it generates a hardware interrupt or when the Comparator mode is exited.
Return Code
When the Comparator or Measuring Only mode is activated, the SM 335 enters the return code in byte ModAdd + 9. Figure 3-1 shows the format of the return code:
Error code Measuring value not current Parameter assignment error Comparator is active/was last active mode Measuring Only is active/was last active mode Measuring Only/Comparator mode activated
The return code bits, with their descriptions, are shown in Table 3-2.
Table 3-2 Bit Description of the Bits in the SM 335 Return Code Description =1: SM 335 is in Measuring Only or Comparator mode =0: SM 335 is in Conditional Cycle or Free Cycle mode
7 6 5
=1: The measured value from the analog inputs is not current (for Comparator mode only)
S The Measuring Only mode cannot be activated when Comparator mode is enabled or when the Measuring Only mode is already active. 4 1) 3 2, 1, 0
1)
3-38
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Table 3-3
Bit2 0 0 0 0 1
Bit1 0 0 1 1 0
Bit0 0 1 0 1 0 No error.
Meaning
Parameter for operating mode Comparator errored (no analog input designated as comparator input). Analog input to be used for measuring is disabled. Error detected at the analog input assigned to the comparator while Comparator mode was in force. Operating mode exited. Reason:
S Comparator: Comparator time expired S Measuring Only: Measurement at one analog input:
60 ms expired. Measurement at 2, 3 or 4 analog inputs: 40 ms expired. 1 0 1 Comparator mode exited because new parameters were passed via system function to the SM 335.
Note The return code is B#16#FF in the event of a total SM 335 failure.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-39
01.99
3.1.2
Output Values
Principle
The analog output values converted into binary in the CPU can be transferred to the SM 335 with T PQW. The SM 335 converts the binary form of the analog output signals into analog signals and forwards them to the relevant outputs.
Format
The output values are located in bytes ModAdd (module start address) to ModAdd + 7 (module start address + 7) in the process-image output table. Please refer to the chapter entitled Addressing in the S7-300 Programmable Controller Hardware and Installation Manual for information on how to compute the module start address.
Table 3-4 Byte SM 335 Output Values Contents
ModAdd + 0 High-order byte of the output value for analog output 1 ModAdd + 1 Low-order byte of the output value for analog output 1 ModAdd + 2 High-order byte of the output value for analog output 2 ModAdd + 3 Low-order byte of the output value for analog output 2 ModAdd + 4 High-order byte of the output value for analog output 3 ModAdd + 5 Low-order byte of the output value for analog output 3 ModAdd + 6 High-order byte of the output value for analog output 4 ModAdd + 7 Low-order byte of the output value for analog output 4
Analog Values
Please refer to the chapter entitled Analog Modules in the S7-300 Programmable Controller Hardware and Installation Manual for information on how an analog value is represented in binary in the CPU and on which binary value corresponds to which analog value.
3-40
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.2
You have plugged in the measuring range module. You can learn how to do this in the S7-300 Programmable Controller Hardware and Installation Manual. Section 1.4 describes the measuring ranges to be set.
S7 Configuration
If the SM 335 is not offered for selection under S7 Configuration, enter the MLFB Number. Confirm with the Enter key. The SM 335 parameters will then be displayed.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-41
01.99
3.2.1
Default Settings
The analog input/output module has default settings which are used when no parameters are set using the S7 Configuration application. The defaults are listed in Table 3-5.
Table 3-5 Parameter SM 335 Default Settings Default Setting for Analog Default Setting for Analog Inputs Outputs
Cycle time
Free cycle (equivalent to 0.5 ms [SM335 cycle time] setting) As per coding plug (see Table 1-1) " 10 V or 4 to 20 mA None Disabled No 4 Voltage " 10 V None Disabled No W#16#0000 4
Measuring/output method Measuring/output range Diagnostics Interrupts Wirebreak test Short-circuit test Substitute values Number of active channels
3-42
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.2.2
The STEP 7 application used to initialize the analog modules in a STEP 7 environment is called S7 Configuration.
SM 335 Parameters
Table 3-6 provides an overview of the SM 335 parameters which can be assigned with the S7 Configuration application.
Table 3-6 Parameter SM 335 Parameters Assignable with S7 Configuration Application SM 335 Value Range Basic settings for inputs Default
S S
No No No
S S
S S
Method
Voltage
Range
0.5;* 1 to 16 ms Yes/No
0.5 ms* No
S S S S
*
Yes/No 0
No 0
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-43
01.99
When you enable the end-of-cycle interrupt, the SM 335 generates a hardware interrupt after A/D conversion of the active channels. You can use this to call OB 40 at fixed intervals. You can set the cycle time for the A/D conversion. The SM 335 can generate the end-of-cycle interrupt starting from a cycle time for A/D conversion of 1 ms.
When diagnostic interrupts are enabled, the SM 335 generates a diagnostic interrupt as soon as an error is found.
Diagnostics Enable
If the diagnostics for inputs are enabled, the SM 335 checks for common-mode errors and measuring range violations. The wirebreak test must be activated separately. When you enable diagnostics for the outputs, the SM 335 executes a short-circuit test on the outputs.
Wirebreak Test
You can activate the wirebreak test for any analog input. A wirebreak test is possible in measuring ranges 4 to 20 mA and 0 to 10 V (when the A/D conversion cycle time is 2 ms or longer).
When the CPU is at STOP or executing the startup routine, the SM 335 outputs the substitute value to the relevant analog output until a new value is specified. The SM 335 uses the following as substitute value:
Transferring Parameters
The parameters created via S7 Configuration are stored in the CPU when transferred from the programming device to the S7-300. At an operating mode transition from STOP to RUN, these parameters are transferred to the relevant analog modules.
3-44
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.3
S7 Configuration
In RUN mode of the CPU, you can modify some parameters (dynamic parameters) via system function commands. However, after a mode transition from RUN to STOP and STOP to RUN, the parameters generated with S7 Configuration are back in force again.
Parameters
The SM 335 parameters are 16 bytes long and are divided into two data records. These parameters must be stored in a data area on the CPU (for example, in a bit memory or in a data block). System function 55 WR_PARAM is used to transfer the parameters to the SM 335.
Note You must always initialize the SM 335 parameters with S7 Configuration before passing them with system function 55. Reason: The system function accesses SDB 100 to SDB 103, which are generated with S7 Configuration.
Data Records
Data Record 0
Data record 0 of the SM 35 is 2 bytes long and contains the static parameters of the SM 335. You cannot modify these parameters with system function 55.
Data Record 1
Data record 1 contains the dynamic parameters of the SM 335. You can modify these parameters with system function 55.
Byte 11 of data record 1 is used for switching to the special operating modes. In the Free Cycle and Conditional Cycle modes, byte 11 has the value B#16#00.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-45
01.99
3.3.1
Data Record 0
Diagnostics
The Input and output diagnostics parameter is used to specify which analog inputs and outputs are to trigger a diagnostic interrupt.
Analog output 4 Analog output 3 Analog output 2 Analog output 1 = 1: Diagnostic interrupt enabled = 0: Diagnostic interrupt disabled
Analog input 1 Analog input 2 Analog input 3 Analog input 4 = 1: Diagnostic interrupt enabled = 0: Diagnostic interrupt disabled
Figure 3-2 Description of the Bits in the Input and Output Diagnostics Byte
3-46
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.3.2
Data Record 1
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-47
01.99
S Whether a hardware interrupt (conditional cycle only) is to be generated S Whether a diagnostics interrupt is to be generated S Whether the last valid analog value or 0 V is to be output as substitute value.
Byte 0
put
Analog output 1 Analog output 2 Analog output 3 Analog output 4 = 1: Substitute value = Last analog value = 0: 0 V is output as substitute value
Figure 3-3 Description of the Bits in the Interrupt and Substitute Value Output Byte
The default parameters for the measuring range of the analog inputs depend on the setting on the SM 335s coding plug.
Table 3-9 Parameters for the Measuring Range of the Analog Inputs SM 335 Default Parameters for the Measuring Ranges of Analog Inputs Byte 2: 16#19 (Voltage) Byte 3: 16#19 (Voltage) A Byte 4: 16#19 (Voltage) Byte 5: 16#23 (Current) Byte 2: 16#00 B This coding plug setting is not allowed. 16#15: 2.5 V to + 2.5 V Byte 3: 16#00 16#18: 0 V to + 10 V Byte 4: 16#00 16#19: 10 V to + 10 V Byte 5: 16#00 16#1C: 0 V to + 2 V Byte 2: 16#19 (Voltage) Byte 3: 16#19 (Voltage) C Byte 4: 16#23 (Current) 16#21: 10 mA to + 10 mA Byte 5: 16#23 (Current) 16#22: 0 mA to + 20 mA Byte 2: 16#19 (Voltage) 16#23: 4 mA to + 20 mA Byte 3: 16#19 (Voltage) D Byte 4: 16#19 (Voltage) Byte 5: 16#19 (Voltage) For measuring current For measuring voltage 16#14: 1 V to + 1 V Permissible Parameters and Measuring Ranges
3-48
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
The Measuring Cycle Time parameter specifies the length of a measuring cycle. Permissible values are those from 16#01 to 16#00. The default value is 16#01. The value 16#01 specifies a free cycle, that is, a measuring cycle has a duration of about 0.9 ms. The value 16#02 corresponds to a measuring cycle of 1 ms, 16#03 to a measuring cycle of 1.5 ms, and so on. 16#00 corresponds to a measuring cycle of 16 ms.
Note Measuring cycle time of 1 ms: Prior to the first measurement (channel 4), modified output values are output. The measurements are performed subsequently. At a measuring cycle time of 1 ms, diagnoses are not performed for short circuit, underflow and overflow in order to serve all output and input channels within 1 ms. The comparator function is not executed at a cycle of 1 ms. Owing to the missing time, comparator 1 is not possible.
The Dynamic Measuring Cycle Control parameter cannot be set with the S7 Configuration application. In normal operation, this byte always has the value B#16#00.
Figure 3-4 Meaning of the Bits in the Dynamic Measuring Cycle Control Byte
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-49
01.99
Wirebreak Test
You use the Wirebreak Test parameter (byte 12 in data record 1) to determine whether a wirebreak test is to be executed for the relevant analog input.
= 1: = 0:
3-50
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.3.3
Switching
Restrictions
The parameters for Comparator mode can be passed with system function 55 WR_PARA only.
Data Record 1
The parameters that can be switched dynamically are stored in data record 1 (see Table 3-10).
Table 3-10 Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 SM 335s Data Record 1 for Comparator Mode Contents High-order byte of analog output value 1 Low-order byte of analog output value 1 High-order byte of analog output value 2 Low-order byte of analog output value 2 High-order byte of analog output value 3 Low-order byte of analog output value 3 High-order byte of comparison value for Comparator 1 Low-order byte of comparison value for Comparator 1 High-order byte of comparison value for Comparator 2 Low-order byte of comparison value for Comparator 2 Comparator time Dynamic measuring cycle control Comparator control byte Reserved
Comparator Time
During the time the comparator is active, the SM 335 cannot generate a hardware interrupt for the end-of-cycle. It can therefore happen that the SM 335 does not generate an end-of-cycle interrupt for an extended period. You can use the comparator time to specify how long the comparator can remain active. If the comparator is active and the comparator time has expired, the SM 335 switches back autonomously to the conditional cycle or free cycle mode. The comparator time is specified in milliseconds (1 = 1 ms, 2 = 2 ms, to 0 = 256 ms).
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-51
01.99
The Dynamic measuring cycle control byte has the following assignments in the Comparator mode:
Bits 4 and 6 in the dynamic measuring cycle control byte must be 0. You can set only one of bits 0 to 4 to 0. The relevant analog input is used as input for the comparator. If you set more than one bit to 0, the SM 335 uses the analog input with the lowest value bit.
You can additionally check the comparator in the comparator check byte. The comparator check byte has the following structure:
Hardware interrupt
Analog output 4
Direction
If bit 7 in the comparator check byte is set to 0, the comparison is made in the direction of rising analog values. If bit 7 is set to 1, the comparison is made in the direction of falling analog values.
3-52
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
You switch comparator 1 and 2 on with the Comparator 1 and 2 bits (see Table 3-11).
Table 3-11 Bit 6 1 0 1 0 Checking the Comparator with Check Bits 1 and 2 Bit 5 1 1 0 0 Behavior of the Comparator Switch on comparators 1 and 2 in succession Switch on comparator 2 Switch on comparator 1 Comparator mode exited immediately
Hardware Interrupt
If you set bit 4 in the comparator check byte to 1, the SM 335 generates a hardware interrupt at the reversing point.
Analog Output
In bits 0 to 3, you specify the analog outputs that the specified values (byte 0 to 7 in the table) are to be output to.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-53
01.99
3.3.4
Switching
Data Record 1
You transfer the dynamic SM 335 parameters for the Measuring Only mode in data record 1.
Note The parameters in data record 1 that you transfer to switch to the Measuring Only mode must be identical with the parameters that you have transferred for the Free Cycle or Conditional Cycle modes, with the exception of byte 11.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 Dynamic measuring cycle control Assigned as in the Free Cycle and Conditional Cycle modes (see Table 3-8) Assigned as in the Free Cycle and Conditional Cycle modes (see Table 3-8)
3-54
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
To switch on the Measuring Only mode, you must transfer all the SM 335 parameters and set the following bits in byte 11:
You disable the associated analog input with bits 0 to 3. The default for bits 0 to 3 is 0. Setting a bit to 1 diables the associated analog input. If you disable 3 analog inputs, it is possible to attain a measuring cycle time of under 0.5 ms.
Analog input 1 Analog input 2 Analog input 3 Analog input 4 = 1: Analog input disabled = 0: Analog input read in
Figure 3-9 Meaning of the Bits in the Dynamic Measuring Cycle Control Byte
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-55
01.99
3.4
Methods
S With an enabled diagnostics interrupt via the local data in OB 82 S With a hardware interrupt via the local data of the interrupt OB (for example,
OB 40)
Hardware Interrupt
If the SM 335 generates a hardware interrupt, this hardware interrupt can have two causes. The cause leading to the SM 335 interrupt, is stored in the local data of OB 40 (see Section 3.4.1)
Principle
The complete diagnostics data of the SM 335 can be accessed via system function 59. The structure of the diagnostics data is explained in Section 3.4.2.
3-56
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.4.1
Hardware Interrupt
OB 40
OB 40 is invoked when the SM 335 generates a hardware interrupt. Information on the cause of the hardware interrupt is entered in the local data section of OB 40.
Local Data
The reasons for the hardware interrupt are entered in byte 8 of the local data (see Figure 3-10)
Endofcycle interrupt Contents 0000 0001B not ussigned Number of measuring cycles 1) not ussigned 0 0 Default
1)
Remember of measuring cycles also be readout from the input section ModAdd+8.
Interrupt triggered by comparator Contents 0000 0010B Comparator time [ms] Measuring value low of Comparator 2 Measuring value high of Comparator 2 Default
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-57
01.99
3.4.2
Format
Following the system function 59 call, the SM 335 diagnostic data are available in the specified memory area. The data are formatted as shown in Table 3-15.
Table 3-15 Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 SM 335 Diagnostic Data Contents Module diagnostic byte 1 Module diagnostic byte 2 Module diagnostic byte 3 Module diagnostic byte 4 Channel type: 16#00, 16#71 (input), 16#73 (output) Number of diagnostic bits per channel Number of inputs/outputs Change in diagnostic byte for input/output (a 1 bit corresponds to changes in bytes 8 to 15) Channel-specific diagnostic byte for analog input 1 Channel-specific diagnostic byte for analog input 2 Channel-specific diagnostic byte for analog input 3 Channel-specific diagnostic byte for analog input 4 Channel-specific diagnostic byte for analog output 1 Channel-specific diagnostic byte for analog output 2 Channel-specific diagnostic byte for analog output 3 Channel-specific diagnostic byte for analog output 4 Default 16#40 Fixed: 16#35 16#00 16#00 16#00 Fixed: 16#35 Fixed: 16#08 16#00 16#00 16#00 16#00 16#00 16#00 16#00 16#00 16#00
3-58
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.4.3
Format
The SM 335s module diagnostic byte 1 contains group error information. This byte has the format shown in Figure 3-11.
Group Fault
Bit 0 in module diagnostic byte 1 is set when the SM 335 flags an error/fault (the only exception being SM 335 not initialized).
Internal Fault
Bit 1 is set in module diagnostic byte 1 when the SM 335 detects one of the following:
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-59
01.99
External Fault
Bit 2 in module diagnostic byte 1 is set when one of the following errors/faults occurs:
S Coding plug not inserted S Coding plug improperly inserted (default parameters do not coincide with
coding plug setting)
S External auxiliary power supply has failed S Fault on one of the inputs
Common-mode error Wirebreak Measuring range violation (overrange) Measuring range violation (underrange)
No 24 V Load Voltage
Bit 4 in module diagnostic byte 1 is set when the 24 V load voltage has dropped below 10 V.
Bit 6 in module diagnostic byte 1 is set when no parameters were assigned for the SM 335.
Invalid Parameters
Bit 7 in module diagnostic byte 1 is set when the SM 335 was incorrectly initialized, that is, the parameters do not coincide with the coding plug setting on the module. This bit is set if parameter assignment failed (for instance when system function WR_PARA is called to pass the parameters).
3-60
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.4.4
Contents
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-61
01.99
3.4.5
Format
Two different errors are flagged in module diagnostic byte 3 (see Figure 3-12).
Bit 0 is set in module diagnostic byte 3 when the SM 335 recognizes that no coding plug has been inserted, or when the coding plug has not been properly inserted.
Bit 2 is set in the module diagnostic bit if the SM 335 is in the Stop state.
Hardware Fault
Bit 3 in module diagnostic byte 3 is set when the SM 335 detects an internal hardware fault. In this case, the SM 335 outputs 0 V, and all inputs are set to 7FFF or FF FF FF.
3-62
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
3.4.6
Format
Two different errors are flagged in module diagnostic byte 4 (see Figure 3-13).
EEPROM Fault
Bit 2 is set in module diagnostic byte 4 when the SM 335 detects an internal error in the EEPROM.
ADC/DAC Error
Bit 4 is set in module diagnostic byte 4 when the SM 335 detects an analog-digital or digital-analog conversion error. Such an error might occur for one of three reasons:
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-63
01.99
3.4.7
Channel Type
The SM 335 flags the type of channel in which the error occurred (16#00 for general error, 16#71 for input, 16#73 for output) in byte 4 of the diagnostic data.
Channel Vector
In diagnostic byte 7, the module enters the input or output for which a channelspecific diagnostic entry has been made.
7 Output 4 Output 3
Output 2 Output 1
Input 4
Analog Input
The SM 335 sets bits in the channel-specific diagnostic bytes for inputs when an error/fault is detected at one of the inputs. The channel-specific bytes for inputs have the following format:
Common-Mode Error
There is an excessive common-mode voltage at the analog input (refer to the Technical Specifications for exact values). When the common-mode voltage is too high, the SM 335 simultaneously sets bit 2 in module diagnostic byte 1 to 1 and the measured value to 7FFF. As soon as the common-mode voltage returns to a permissible level, the SM 335 resets the bit.
Wirebreak
Bit 4 is set in the channel-specific diagnostic byte for an analog input when a wirebreak is detected at that input.
3-64
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
The measured value at the input is checked for a range violation. Depending on the direction of the range violation, the SM 335 sets either the overrange or the underrange bit.
Analog Output
The SM 335 sets bits in the channel-specific diagnostic byte for an analog output when it detects a short circuit or a parameter assignment error at the analog output.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
3-65
01.99
3-66
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Purpose
With an interval counter, you can measure intervals. You can use the duration of an interval to calculate a speed, for example, if you know the path covered during the interval. You can also acquire the signals of simple rotary sensors and determine the rotational speed from the interval duration.
Principle
You can acquire the following with the interval counter input:
Topic Principle of an interval counter Principle of measuring with an interval counter Wiring the interval counter input Parameterizing the SM 335 interval counter input Values of the interval counter Example of determining a rotational speed with the interval counter
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
4-67
01.99
4.1
Principle
What is an interval counter? On the SM 335, an interval counter counts the number of intervals. What does this mean in practice? Figure 4-1 shows a simple sensor. The sensor returns a 1 when light falls through one of the slots in the disc. When the disc rotates, the sensor returns the signal shown in the diagram.
Signal
Slotted disc
Figure 4-1 Simple Sensor, for Instance with a Slotted Disc on a Shaft
Interval Counter
The interval counter counts the number of intervals. The first interval begins on the first transition from 0 to 1 (positive-going edge), and ends with the next positive-going edge, which is also the start of the next interval.
The interval-counting procedure also includes acquiring the interval duration. On each positive-going edge, a counter is started which is incremented by 1 every 0.5 ms until the next positive-going edge is detected. This is called an interval duration counter.
4-68
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
4.2
Purpose
Pulses from a simple sensor are acquired via an analog input. The sensor might, for example, be located on the barrel extruder of an injection molding machine. You can determine the rotational speed of the barrel from the interval between two pulses.
Principle
The SM 335 measures the amount of time (interval) that passes between two pulses. The SM 335 determines the interval with a resolution of 0.5 ms. The number of intervals measured is also tallied. If you know the number of pulses the sensor generates for each rotation of the barrel extruder, you can compute the speed at which the barrel extruder rotates.
Example
N = 16 pulses are generated per barrel extruder rotation (N is also referred to as the sensors number of pulses per rotation). The interval between two pulses is 50,000 increments. The rotational speed of the barrel extruder is thus computed as follows:
The interval timer returns a 3-byte value, enabling representation of up to FF FF FF (16777215 in decimal representation). For N = 1, the critical frequency thus computes to:
The upper limiting value results from the condition that the interval between two positive-going edges must be at least 2.5 ms. The critical frequency is thus 400 Hz (equivalent to 24,000 rotations per minute). These limiting values apply for sensors which generate one pulse per rotation. When sensors generating several pulses per rotation are used, you must re-assess the critical frequencies. A number of examples are listed in Table 4-1.
Table 4-1 N Limiting Values for Different Numbers of Pulses (N) Lower Limit Upper Limit
1 4 8 16
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
4-69
01.99
4.3
Principle
Figure 4-2 shows how to connect the interval counter input with a switch. The switch is actuated by a cam. The cam is on a rotating shaft, such as the barrel extruder of an injection molding machine.
L+ M+ M IC+ IC
IZ MIZ
Voltage Supply
A 24 V voltage is required for the interval counter input. Utilization of the load voltage (24 V) is recommended.
Current
In the 1 state (+ 24 V present), a current of no less than 2.5 mA and no more than 4.4 mA must flow through the signal line. The minimum current must be observed, when an electronic switch (such as an initiator) with a certain voltage drop is used in place of the mechanical, lowbounce switch shown in the diagram. The maximum current must be observed when you want to use a higher voltage than 24 V to compensate for the voltage drop.
Cable
A shielded, twisted-pair cable must be used. Connect the cable shield with the grounded rack in the same manner as all the other cables.
Switch
The switch and the cam must be such that the former remains closed for at least 1 ms and open for at least 1 ms at the highest attainable speed.
4-70
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Grounding
The interval counter input is galvanically isolated from the other connections, and can thus form no ground loops with them. The input is sufficiently grounded when the 24 V load voltage is used to power it and the frame of the 24 V load voltage source has been grounded (refer to the S7-300 Programmable Controller Hardware and Installation Manual for details).
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
4-71
01.99
4.4
Parameter Assignments
The interval counter requires no parameters. The pulse input functions independently of the parameters assigned to the remaining analog channels.This is why you need not parameterize the pulse input. During reparameterization, you can parameterize the external counter with a timeout. The parameterized timeout is 8.388/256 seconds multiplied with the value stored in the last byte of Ds1:
4-72
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
4.5
Address
The values which the SM 335 computes for the pulse input are stored at the I/O address module start address + 12.
Table 4-2 Pulse Input Values Contents Interval counter Interval duration, byte 1 Interval duration, byte 2 Interval duration, byte 3
Module Address + 12 + 13 + 14 + 15
Interval Counter
The interval counter is a ring counter for measured intervals. The first pulse to arrive initializes the counter internally. When the second pulse arrives, the counter is incremented by 1. Each subsequent pulse increments the counter by 1. The SM 335 stores the number of intervals acquired to date in the data byte at module address + 12. This data byte is 0 as long as no interval has been detected. Each time an interval is detected, the counter is incremented by 1.
Interval Duration
During an interval, the SM 335 counts the time until the interval ends in increments, or time slices, of 0.5 s. The SM 335 enters the duration of the interval in three bytes, beginning with the byte at module start address + 13. The byte at Module start address + 13 is of a higher order than the byte at module start address + 14. The byte at Module start address + 15 has the lowest order of all.
Overflow
If an interval is longer than 16777215 (FF FF FF in hexadecimal) times 0.5 s (8.2886075 s), the SM 335 interprets it as an overflow rather than as an interval. The value for the interval duration is left at FF FF FF, and the interval counter stops. When the next pulse arrives, the interval duration is measured once again and, if it is of valid duration, the interval counter is again incremented by 1.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
4-73
01.99
4.6
Prerequisites
It has been assumed that the SM 335 is in slot 4 and has module start address 256. The pulse counter input receives pulses from a sensor located on a barrel extruder. The sensor generates 16 pulses per rotation.
Procedure
Proceed as follows: 1. Read in the value from the module. 2. Compute the speed of the barrel extruder.
The data from the interval counter can be loaded into a data block with the following statements (programmed, for instance, in OB 40):
The interval duration is returned in the bytes addressed by ModAdd + 13, 14, 15 (in this case, the interval duration is = 00 A7 F8 in hexadecimal, which corresponds to 43000 in decimal).
N = 16 pulses are generated per barrel extruder rotation. The interval between two pulses was 43000 times 0.5 ms long. The speed of the barrel extruder can then be computed as follows:
4-74
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Definition
Measuring Only
In the Measuring Only mode, the SM 335 constantly measures without updating the analog outputs.
In this Chapter
Topic Switching to the special operating modes Comparator mode Measuring Only mode
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-75
01.99
5.1
To switch to one of the special operating modes, you must transfer all parameters in data record 1 and set specific bits in byte 11.
Comparator
To switch on the Comparator mode, you must transfer all the SM 335 parameters and set bits 5 and 7 in byte 11:
Figure 5-1 Dynamic Measuring Cycle Control for the Comparator Mode
Measuring Only
To switch on the Measuring Only mode, you must transfer all the SM 335 parameters and set bits 6 and 7 in byte 11:
Figure 5-2 Dynamic Measuring Cycle Control for the Measuring Only Mode
5-76
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
5.2
Comparator Mode
Introduction
Sometimes an analog value must be read frequently in order to make it possible to react quickly when it reaches a specific value. In processes where speed is important, the usual method employed by programmable controllers read signal, process signal in the CPU, output the response is not fast enough. To help solve this problem the SM 335 has a special mode called the Comparator mode.
Definition of Comparator
A comparator, as its name implies, compares the measured analog value with a specified analog value (called the comparison value). If the measured value reaches the comparison value, the comparator initiates a specific response.
Two Comparators
The Comparator mode uses two comparators with different characteristic features.
Table 5-1
Compar ator
1
Measures
Analog input Comparator 1
End-of-Cycle Interrupts
Will continue to be generated
S
or
S
2 Analog input Comparator 2 Will be suppressed
Switches over to comparator 2 The SM 335 outputs the specified analog values to as many as three analog outputs, generates a hardware interrupt, writes the number of suppressed end-of-cycle interrupts, switches back to Free Cycle or Conditional Cycle mode
S S S S
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-77
01.99
5.2.1
Three Methods
Comparator mode provides three methods of comparing a measured analog value with a specified analog value:
S Comparator 2: Measuring only at the comparator input. When the comparison value is reached, a process interrupt is generated and specified analog values are output.
Comparator 1
Comparison value
Time Comparator 1 Active Not active Execution time of the system function System function
Figure 5-3 How Comparator 1 Works
Time
After you have called system function 55, switched the SM 335 to the Comparator mode and switched on only comparator 1, the SM 335 compares the analog value at the specified analog input with the comparison value. Otherwise, the SM 335 continues to operate in either Conditional Cycle or Free Cycle mode. When the specified analog value is reached, the SM 335 exits the Comparator mode.
5-78
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Comparator 2
Comparison value
Time Comparator 2
Case B
Active Not active Execution time of the system function System function Comparator time expired System function
Case A
S The SM 335 generates a hardware interrupt S It outputs the specified analog values to the specified analog outputs S It writes the number of suppressed end-of-cycle interrupts to the input value
area (module address byte + 8)
The SM 335 remains in Comparator mode until the comparison value has been reached or the comparator time has expired. If the comparison value is not reached before the comparator time expires, the SM 335 exits Comparator mode and returns to the Free Cycle or Conditional Cycle mode without modifying the analog outputs.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-79
01.99
Cases A + B
After calling the system function and switching the SM 335 to Comparator mode, when only comparator 2 is activated, the SM 335 operates as follows:
S It measures only at one analog input (as fast as possible). S It suppresses by counts the end-of-cycle interrupts. S It compares the measured analog value with the comparison value.
Hint: If you want to output the same analog value that was output in Comparator mode, change the least significant bit in the analog values binary code. This has no effect on the analog value, since the least significant bit is truncated, but the SM 335 will interpret the new binary code as a new analog value.
Note When the Comparator mode with comparator 2 is exited, the values at the SM 335s analog inputs are not current. The analog inputs are not updated until the next measuring cycle. Remedy: Do not read the values from the analog inputs until the next end-ofcycle interrupt has been generated.
Comparators 1 and 2
Figure 5-5 shows how the SM 335 works when both comparators are active:
Time
Active Comparator 1 Not active Execution time of the system function System function
Figure 5-5 Comparators 1 and 2 in Series
Time
5-80
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Application
A mold is closed. The closing motion must be extremely fast. The position of the tool can be acquired, for example, using a linear potentiometer. The linear potentiometers analog signal is measured by the SM 335. When the mold closes, the SM 335 is switched to Comparator mode, with comparators 1 and 2 connected in series. While the mold is being closed, comparator 1 compares the measured analog value with the comparison value for comparator 1. This analog value is reached when the form has assumed a certain position. The SM 335 now activates comparator 2, and measures only the values at this analog input. Shortly before the mold is closed, the measured analog value reaches the comparison value for comparator 2. A hardware interrupt is generated. You can initiate deceleration in the interrupt OB. If the whole process is to be performed even faster, specify an analog value that the SM 335 forwards to one of its analog outputs. Use this analog output for direct control of the drive that moves the mold. In this way, you will achieve fast closing and fast, repeatable deceleration.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-81
01.99
5.2.2
Restrictions
The parameters for the Comparator mode can be passed with system function 55 WR_PARA.
Data Record 1
The dynamic parameters are entered in data record 1 on the SM 335 (see Table 5-2).
Table 5-2 Byte Data Record 1 on the SM 335 for Comparator Mode Contents
0 1 2 3 4 5 6 7 8 9 10 11 12 13
Analog output value 1, high-order byte Analog output value 1, low-order byte Analog output value 2, high-order byte Analog output value 2, low-order byte Analog output value 3, high-order byte Analog output value 3, low-order byte Comparison value for Comparator 1, high-order byte Comparison value for Comparator 1, low-order byte Comparison value for Comparator 2, high-order byte Comparison value for Comparator 2, low-order byte Comparator time Dynamic measuring cycle control Comparator control byte Reserved
Comparator Time
While the comparator is active, the SM 335 can not generate a hardware interrupt for end-of-cycle. It is therefore possible that the SM 335 will fail to generate an end-of-cycle interrupt for a longer period of time. You can set the Comparator Time parameter to define the amount of time the comparator may remain active. If the comparator time expires while the comparator is active, the SM 335 automatically returns to the Free Cycle or Conditional Cycle mode. The comparator time is specified in milliseconds (1 = 1 ms, 2 = 2 ms, up to 0 = 256 ms).
5-82
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
The Dynamic Measuring Cycle Control byte has the following format:
S Dynamic disabling of analog inputs S Activation of Measuring Only mode S Activation of Comparator mode S Comparator
Comparator Check Byte
The Comparator check byte provides an additional means of checking the comparator. The Comparator check byte has the following format:
Hardware interrupt
Analog output 4
Direction
When bit 7 in the Comparator check byte is set to 0, the analog values are compared in ascending order (as in Figure 5-8). If bit 7 is set to 1, they are compared in descending order.
Hardware Interrupt
When bit 4 in the Comparator check byte is set to 1, the SM 335 generates a hardware interrupt at the reversing point.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-83
01.99
Analog Output
Use bits 0 to 3 to specify the analog outputs to which the designated values (bytes 0 to 7 in the table) are to be forwarded.
Check bits 1 and 2 are used to activate comparators 1 and 2 (see Table 5-3).
Table 5-3 Bit 6 Controlling the Comparator via Check Bits 1 and 2 Bit 5 Comparator Performance
1 0 1 0
1 1 0 0
Activate comparators 1 and 2 in series Activate comparator 2 Activate comparator 1 Exit Comparator mode immediately
5-84
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
5.2.3
Objective
In the example below, the comparator in channel 1 is to be activated and a specified value forwarded to analog outputs 2 and 4 at the reversing point. The comparator is activated when the activation point (measured value 16#3600) is reached. At the reversing point (measured value 16#3C00), analog values 1 and 2 are forwarded to channels 2 and 4 and a hardware interrupt is generated.
STL: OB1 // Write system function 55 parameters and parameter // assignment data for the Comparator function to bit memory address area // Parameters for system function 55 l 16#FF; // IOID; l mb50; l 288; // Module address in slot 3; t mw52; l 16#0001; // RECNUM; t mw54; // Parameter assignment data for the Comparator l 16#6C00; // Output value 1 Goes to analog t mw 56; l 16#6C00; // Output value 2 Goes to analog t mw 58; // Output value 3 in MW60 is of no l t l t l t l 16#3600; mw62; 16#3c00; mw64; 16#FF; mb66; 16#AE; function output 2; output 4; consequence, as it is not used
// Comparison value for comparator 1 // Comparison value for comparator 2 // 255 ms comparator time; // 1010 1110 Dynamic measuring cycle control, // comparator 1 in analog input 3 // comparator 2 in analog input 4 // 0111 1010 Comparator control byte Output values for channels 2 and 4; // Assign reserved byte
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-85
01.99
5.3
Deactivating Outputs
In the Measuring Only mode, the SM 335 measures only the analog inputs in the free cycle and does not update the analog outputs. The analog outputs retain their old analog value for a period of 40 to 60 ms.
Note
S While the SM 335 is measuring, the watchdog is not active. This makes it
impossible to detect any internal module fault.
Purpose
You can use Measuring Only mode to read values from an analog input in rapid succession and thus obtain, for a short time, the most current analog values (TA < 0.5 ms). After the time expires, the SM 335 returns to the previously parameterized operating mode.
5-86
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
5.3.1
Restrictions
The parameters for Measuring Only mode can be passed to the SM 335 only with system function 55 WR_PARA. All parameters must be passed simultaneously.
Data Record 1
The SM 335s dynamic parameters for Measuring Only mode are forwarded in data record 1. You may set as many as three bits. The analog values are output until a new value is forwarded to the output.
Note The parameters which you pass in data record 1 in order to switch to Measuring Only mode must be identical with the parameters you passed for Free Cycle or Conditional Cycle mode, with the exception of byte 11.
You may set as many as three bits. The analog values are output until a new value is forwarded to the output.
Table 5-4 Byte The SM 335s Data Record 1 for Measuring Only Mode Contents
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-87
01.99
Analog input 1 Analog input 2 Analog input 3 Analog input 4 = 1: Analog input disabled = 0: Analog input read in
Figure 5-9 Meaning of the Bits in the Dynamic Measuring Cycle Control Byte
In order to activate Measuring Only mode, set bit 7 and 6 to 1. Bits 5 and 4 must be set to 0.
Bits 0 to 3 are used to disable the associated analog input. The default for bits 0 to 3 is 0. Setting a bit to 1 disables the associated input. If you disable three analog inputs, it is possible to attain a measuring cycle time of under 0.5 ms.
5-88
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
5.3.2
Objective
In the following example, a switch to Measuring Only at 9.9 V is programmed in OB 40, with a return to the original mode upon reaching 10 V. Because system function 55 transfers all of the dynamic parameters, all module parameters for normal operation have been entered in a bit memory address area in OB 100, and the Dynamic Measuring Cycle Control byte modified in OB 40 to suit the specific requirements.
STL: OB100 // Parameters for normal operation; // Static parameters in data record 0; l // Module diagnostics active; t mb 0; l 16#0; t mb 1; // Dynamic parameters in data record 1; l 16#0; // No interrupts or substitute values; t mb 2; l 16#0; t mb 3; l 16#19; // Measuring range +10 V for channel 1; t mb 4; l 16#19; // Measuring range +10 V for channel 2; t mb 5; l 16#19; // Measuring range +10 V for channel 3; t mb 6; l 16#19; // Measuring range +10 V for channel 4;; t mb 7; l 16#19; // Output range +10 V for channel 1; t mb 8; l 16#19; // Output range +10 V for channel 2; t mb 9; l 16#19; // Output range +10 V for channel 3; t mb 10; l 16#19; // Output range +10 V for channel 4; t mb 11; l 16#0; // Measuring interval 16 ms; t mb 12; l 16#0; // Dynamic measuring cycle control (all channels active); t mb 13 l 16#0; // No wirebreak test; t mb 14; l 16#0; // Reserved byte; t mb 15 // Store IOID and module address; l 16#ff; // IOID; t mb 16; l 288; // Module start address; t mw 18; l 16#0001; // RECNUM; t mw 20;
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
5-89
01.99
// // Beginning with 9.9 V, only this input will be measured; // // until the input voltage has reached 10.0 V; l 16#ce // 1100 1110 Activate Measuring Only, disable channels 24; t mb 12; call sfc 55 ( // Transfer dynamic parameters in data record 1; IOID := mb 16, LADDR := mw 18, RECNUM := mw 20, RECORD .= P#m2.0 byte 14, RET_VAL :=mw 100); AEK1: l piw 288; l 16#6c00; >=I; jc MAUS;
// 10 V not reached, program a response, if any ju AEK1; ;Return for repeated reading of measuring channel 1;
MAUS: // 10 V reached, return to original mode l 16#40; // 0100 0000 Deactivate Measuring Only mode, measure all channels; t mb 12; call sfc 55 ( // Transfer dynamic parameters in data record 1; IOID := mb 16, LADDR := mw 18, RECNUM := mw 20, RECORD .= P#m2.0 byte 14, RET_VAL :=mw 100); END: END_ORGANISATION_BLOCK
5-90
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Principle
The SM 335 can detect faults at inputs and outputs. You can respond to the faults according to the methods of the S7-300.
In this Chapter
Topic Principle of diagnostics Setting diagnostics with S7 Configuration Evaluating diagnostics data in OB 82 SM 335 error tree Remedies for faults
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
6-91
01.99
6.1
Principle of Diagnostics
LEDs
When an error or fault occurs on an SM 335, the SF LED on both the CPU and the SM 335 goes on.
Diagnostics Parameters
An entry is made in the CPUs diagnostic backup when SM 335 diagnostics have been enabled. If you have enabled diagnostic interrupts, the SM 335 generates one. When a diagnostic interrupt is generated, the diagnostic OB (OB 82) is invoked in the CPU. Refer to Section 3.2.2 for information on how to initialize the SM 335 using the S7 Configuration application. You can also enable diagnostics when the parameters are passed with system function WR_PARA. Descriptions of the SM 335 parameters can be found in Section 3.3.2.
Diagnostic Backup
You can read out the contents of the diagnostic backup with the S7 Info tool.
Diagnostic OB 82
If you have enabled diagnostic interrupts, the SM 335 generates one. When a diagnostic interrupt is generated, the diagnostic OB (OB 82) is invoked in the CPU. You can program your response to the error/fault which caused the interrupt in this OB. Refer to Section 6.3 for an example of how to read out the diagnostic data in OB 82.
The SM 335s diagnostic data can be read with system function 59. See Section 3.4.2 for information on the formats of these data.
OB 82 is invoked automatically when diagnostic interrupts are enabled, and makes the module start address available as part of the local data.
The program is interrupted when OB 82 is invoked. If the program contains time-critical sequences, the scan time needed for OB 82 may increase the response time. One way of preventing this is to save only the module start address in OB 82 and evaluate the diagnostic data in OB 1.
6-92
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
6.2
Introduction
Diagnostic messages are programmed with the S7 Configuration application (also refer to STEP 7 User Manual)
Enabling Diagnostics
The SM 335 can ascertain a variety of diagnostic events for inputs and outputs and forward them to the CPU. In order for diagnostics to actually be carried out and an entry made in the diagnostic backup, they must be enabled. The enable applies only to the specified channel group. The SM 335 generates a diagnostic message for the following events:
Table 6-1 Diagnostic Messages for Analog Input/Output Modules Event Flagged
Parameter assignment error No external auxiliary voltage Common-mode error Measuring range violation (underrange) Measuring range violation (overrange) Diagnostic Messages for Outputs Short circuit at output
Yes
Wirebreak
The wirebreak test is used to detect a wirebreak, if any, on the sensor or the sensor cable. The wirebreak test is possible in the range 4 to 20 mA and 0 to 10 V. In the 4 to 20 mA range, the SM 335 reports a wirebreak when the current to be measured drops below a certain value.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
6-93
01.99
Measuring Range 0 to 10 V
In the input range of 0 to 10 V, the wirebreak test differs in that it is executed after completion of AD conversion of the active analog inputs. The test is executed by outputting brief current pulses of approximately 30 A to the relevant input. The SM 335 can detect a wirebreak by analyzing the resulting voltage difference. In order to ensure that this form of wirebreak test will function properly, the capacity of the connecting cable and the sensors must not exceed 10 nF. In general, cables of up to 30 m in length are no problem. The source resistance must not exceed 2.5 Kohms, as otherwise a wirebreak might be reported erroneously. Because the SM 335s wirebreak test takes some time, it can be activated and deactivated as needed.
If you have enabled diagnostics, you may also specify whether you want to have a diagnostic interrupt generated when a diagnostic event occurs. When the SM 335 generates a diagnostic interrupt, the CPU calls OB 82.
6-94
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
6.3
Method
There are several easy ways to acquire the diagnostic data. In principle, the procedure is as follows: 1. The SM 335 detects a problem, and generates a diagnostic interrupt on the CPU. 2. The CPU fetches several items of diagnostic data from the SM 335. 3. The CPU calls OB 82 (diagnostic interrupt). OB 82s local data contains information about the problem at hand. With the help of this information, you can read out all the diagnostic data. 4. Using the information provided in OB 82s local data, call system function 59. 5. System function 59 fetches all diagnostic data from the SM 335. Once you have these data, you can respond accordingly in your program.
Example
The following statement list shows you an example of diagnostic data evaluation:
STL organisation_block ob82 var_temp dummy1:dword; dummy2:dword; dummy3:dword; dummy4:dword; dummy5:dword; end_var begin AUF db82; l dummy1; t md 60; l dummy2; t md 64; l dummy3; t md 68; l dummy4; t md 72; l dummy5; t md 76;
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
6-95
01.99
// Stipulate data for system function 59 l 16#54; // IOID t mb 52; l dbw 6; // Module start address is in DBW 6 t mw 54; l 1; t mb 56; // RECNUM = 1, that is, fetch parameter data record 1 l 0; t mw 58; // Reset to 0 before calling system function RET_VAL r m 50.1; // Reset BUSY bit prior to system function call // Call system function call sfc 59( REQ := m 50.0; IOID := mb 52; LADDR := mw 54; RECNUM := mw 56; RET_VAL := mw 58; BUSY := m 50.1; RECORD := p#m80.0byte16 ); // Local data are in MB 60 to MB 79 // Diagnostic data for the module are in MB 80 to MB 85 end_organization_block
6-96
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
6.4
Read the SM 335 error tree as follows: Bit 0 of module diagnostic byte 1 indicates whether an error has occurred. 1. Check to see whether bit 0 in module diagnostic byte 1 is set. 2. If it is, check the bits to which the arrows going out from bit 0 of module diagnostic byte 1 point. 3. If a bit is set, follow the arrows going out from that bit and see which of those bits are set, and so on. 4. Refer to Table 6-2 for a description of the error associated with each bit.
Module diagnostic byte 1, bit 0 Module diagnostic byte 1, bit 1 Module diagnostic byte 1, bit 7
Module diagnostic byte 4, bit 4 Module diagnostic byte 3, bit 3 Module diagnostic byte 4, bit 2
Channel-specific diagnostic byte for analog input bit 1 Channel-specific diagnostic byte for analog output bit 2 Channel-specific diagnostic byte for analog input bit 4 Channel-specific diagnostic byte for analog input bit 7
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
6-97
01.99
6.5
Troubleshooting
Overview
If you want to evaluate the diagnostic data in your program, Table 6-2 will help you find the error description and corrective measure for the bits set in the diagnostic data.
Errors and Corrective Measures for the SM 335 Error Description Corrective Measures
Module diagnostic byte 1, bit 1 Module diagnostic byte 3, bit 3 Module diagnostic byte 1, bit 1 Module diagnostic byte 4, bit 2 Module diagnostic byte 1, bit 1 Module diagnostic byte 4, bit 4
Module outputs 0 V; inputs are set to 16#7FFF, counter value is 16#FFFFFF DA/AD conversion error
Module is defective. Make a note of the error description and contact your SIEMENS representative. t ti
The relevant channel is set to 16#7FFF 2. Check the input signal or 0 V. Possible causes of error: for high-frequency interference. You might have S No 24 V load voltage or load volan EMC problem. tage less than 10 V 3. Have the module chekS High-frequency interference disturked, and repaired if nebing the measuring signal cessary.
S AD converter is defective
Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 4 Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 3 Channel-specific diagnostic byte for analog input x bit 1 Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 3 Channel-specific diagnostic byte for analog input x bit 4 Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 3 Channel-specific diagnostic byte for analog input x bit 6 Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 3 Channel-specific diagnostic byte for analog input x bit 7 Module diagnostic byte 1, bit 2 Module diagnostic byte 1, bit 3 Channel-specific diagnostic byte for analog output x bit 2 No 24 V load voltage or load voltage less than 10 V; input values are set to 16#7FFF. Common-mode error on input x Check load voltage.
Wirebreak on input x
The error disappears when the input voltage goes into the nominal range or overrange.
6-98
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
Errors and Corrective Measures for the SM 335, continued Error Description Corrective Measures
Check to make sure that the coding plug has been inserted correctly, and that the coding plug setting conforms with the parameters. Initialize the SM 335.
Module diagnostic byte 1, bit 7 Module diagnostic byte 1, bit 6 (Module diagnostic byte 1, Bit 0 = 0 !) Module diagnostic byte 1, bit 2 Channel-specific diagnostic byte for analog output x, bit 0 Channel-specific diagnostic byte for analog input x, bit 0
Module not initialized. The SM 335 is using default parameters (no hardware interrupts, no diagnostic interrupts). Invalid parameters in channel x. When it detects an invalid channel-specific parameter, the SM 335 flags the channel for which the parameter was specified.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
6-99
01.99
6-100
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Purpose
In this chapter, we intend to record some program examples with which you can get optimum use out of your SM 335.
Suggestions?
The current version of the manual contains only one program. If you can suggest further programs for the SM 335 for recording here, please send the Suggestions and Corrections form to us and specify your address. Your program will then possibly appear in the next edition of the manual.
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
7-101
01.99
7.1
Objective
In the example below, we switch the measuring range " 10 V in channel 2 to the measuring range " 2.5 V at a measured value of 2 volts and we switch to the measuring range " 10 V at a measured value y 2.5 V. Since system function 55 transfers all the dynamic parameters, we store all the parameters of our module for normal mode in a bit memory area of OB 100, for example, at startup, and we modify the measuring range parameters in OB 1 in accordance with the input voltage.
7-102
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
01.99
STL: OB100 //Formation of normal mode parameters parameters as in SDB100; //Static parameterization data, transferable in data record 0; l t l t l t l t l t l t l t l t l t l t l t l t l t l t l t l t 16#00; mb 0; 16#0; mb 1; 16#80; mb 2; 16#0; mb 3; 16#19; mb 4; 16#19; mb 5; 16#19; mb 6; 16#19; mb 7; 16#19; mb 8; 16#19; mb 9; 16#19; mb 10; 16#19; mb 11; 16#8; mb 12; 16#0; mb 13 16#0; mb 14; 16#0; mb 15 // Module diagnostics deactivated
// Measuring range +10 V for channel 1; // Measuring range +10 V for channel 2; // Measuring range +10 V for channel 3; // Measuring range +10 V for channel 4; // Output range +10 V for channel 1; // Output range +10 V for channel 2; // Output range +10 V for channel 3; // Output range +10 V for channel 4; // 4ms Measuring cycle // Dynamic measuring cycle control(all channels active) // Wirebreak diagnostics deactivated // Reserved byte
//Store IOID and modules address l 16#ff; // IOID; t mb 16; l 288; // Module start address in slot 3 t mw 18; l 16#0001; // RECNUM Data record 1 t mw 20;
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
7-103
01.99
STL: OB1 l mb 5; l 16#; ==I; spb E25V //Measuring range +/10 V set: Measured value <2volts ? l pew 288; l 16#1d80; >I; //Change measuring range > 2 volts ? spb C10V; //Measuring range +10 volts to +2,5 volts; l #15 //Measuring range +2,5 volts in channnel 2; t mb 5; call sfc 55 ( //Transfer dynamic parameters of data record 1; IOID := mb 16, LADDR := mw 18, RECNUM := mw 20, RECORD .= P#m2.0 byte 14, RET_VAL :=mw 100); spa E25V; C10V: ... spa END;
//Measuring range +2,5 V set: Measured value >2,5 volts ? E25V: l pew 288; l 16#6c00 <I; //Input voltage < 2,5 volts ? spb C25V; //Change measuring range +/2,5 volts to +/10 volts; l #19 //Measuring range +/10 volts in channnel 2; t mb 5; call sfc 55 ( //Transfer dynamic parameters of data record 1; IOID := mb 16, LADDR := mw 18, RECNUM := mw 20, RECORD .= P#m2.0 byte 14, RET_VAL :=mw 100); C25V: ... spa ENDE;
7-104
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
Index
Zahlen
24 V supply voltage, 2-33
A
F
Free cycle see Operating mode, free cycle parameter for, 3-47
A
ADC/DAC error, 3-63 Analog inputs connecting, 2-25 technical specifications, 1-17 Analog outputs, connecting, 2-27
I
Interference suppressor filter, 2-33 Interval counter determining speed, 4-74 technical specifications, 1-19 Interval counter input connecting, 2-29 counter values, 4-73 parameterizing, 4-72 principles of measuring, 4-69 wiring, 4-70
B
Basic settings for input, parameter, 3-43
C
Common mode error, 3-64 Comparator. Siehe Comparator mode Comparator 2, 5-79 Comparator check byte, 5-83 Comparator mode, 5-77 example, 5-85 principle, 5-78 Comparator 1, 5-78 Comparator-check byte, 3-52 Conditional cycle see Operating mode, conditional cycle parameter for, 3-47 Connecting the SM 335, basic rules, 2-24 Cycle time, for A/D conversion, 3-43
M
Measurement, parameter, 3-43 Measuring only mode, 5-86 example, 5-89 principle, 5-86 switching to, 5-87 Measuring range module, 1-15 Measuring range violation: overrange, 3-43 Measuring range violation: underrange, 3-43
N
Number of pulses, 4-69
D
Default settings, 3-42 Diagnostic interrupt enable, 3-43 Diagnostics for inputs, parameter, 3-43 Diagnostics for output, parameter, 3-43 Diagnostig data, format, 3-58
O
Operating mode conditional cycle, 1-22 free cycle, 1-21 Output parameter, 3-43 technical specifications, 1-18 values, 3-40
E
EEPROM error, 3-63 End-of-cycle interrupt enable, 3-43 End-of-cycle interrupt, 1-22
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
A-105
A Index
01.99
P
Parameter basic settings for inputs, 3-43 diagnostics for inputs, 3-43 diagnostics for outputs, 3-43 measurement, 3-43 output, 3-43 substitute value, 3-43
data record 0, 3-46 data record 1, 3-47 technical specifications, 1-16 Substitute value, parameter, 3-43
T
Troubleshooting, 6-98
R
Return code, 3-38
W
Wirebreak, 3-64 Wirebreak test, 3-43, 3-44
S
Sensor power supply, connecting, 2-30 SM 335 block diagram, 1-14 connection diagram, 1-13 diagnostic data, 3-58 evaluating, 6-95 diagnostics, 6-93 error tree, 6-97 input values, 3-37 operating modes, 1-20 output values, 3-40 parameter, 3-45 free cycle and conditional cycle, 3-47 parameters assignable with S7-Configuration, 3-43
A-106
Siemens AG 1997, 1999 All Rights reserved 6ES7 3357HG00 SM 335 HighSpeed Analog Input/Output Module for the S7300
SIEMENS AG A&D MC IS P.O. Box 3180 D91050 Erlangen Federal Republic of Germany
(Fax +499131/981145) From Name Company/Dept. Address
Suggestions Corrections
For Publication/Manual:
System Solutions SM 335 HighSpeed Analog Input/ Output Module for the SIMATIC S7300
Manual
Order No.: Edition: 6ES7 3357HG008BA1 01.99
Should you come across any printing errors when reading this publication, please notify us on this sheet. Suggestions for improvement are also welcome.
Telephone: Telefax:
/ /
Herausgegeben von Siemens AG Bereich Automatisierungstechnik Geschftsgebiet Automatisierungssysteme fr Werkzeugmaschinen, Roboter und Sondermaschinen Postfach 3180, D91050 Erlangen
Der Inhalt dieser Dokumentation wurde auf umweltfreundlichem, chlorfrei gebleichtem Papier gedruckt. Siemens AG 19971999 All Rights Reserved nderungen vorbehalten BestellNr.: 6ES7 3357HG008BA1 Printed in the Federal Republic of Germany
Siemens Aktiengesellschaft