Anda di halaman 1dari 15

Analog Modules

Introduction

The S7-300 system has a number of analog modules for connecting to sensors and/or loads/actuators.

Contents

In this chapter we describe the basic principles of analog technology and the analog modules of the S7-300:
Section 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 Contents Analog Value Representation Connecting Sensors/Transducers and Loads/Actuators to Analog Modules Fundamental Principles for the Use of Analog Modules Analog Input Module SM 331; AI 8 Analog Input Module SM 331; AI 2 Analog Output Module SM 332; AO 4 Analog Output Module SM 332; AO 2 Analog Input/Output Module SM 334; AO 4/AI 2 8/8Bit 12Bit 12Bit 12Bit 12Bit Page 4-2 4-16 4-33 4-51 4-62 4-73 4-80 4-87

Module Specifications EWA 4NEB 710 6067-02

4-1

Analog Modules

4.1

Analog Value Representation

Analog Values

In all S7-300 analog modules, the analog value is represented in binary form in the same way. This chapter describes the analog values for all the measuring and/or output ranges you can use with your S7-300 analog modules.

4-2

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

4.1.1

Representation of Analog Input and Output Values

Converting Analog Values

The CPU processes the analog values in binary form only. Analog input modules convert the analog process signal into digital form. Analog output modules convert the digital output value into an analog signal.

Analog Value Representation

The digitized analog value is the same for both input and output values having the same nominal range. The analog values are represented as twos complement. Table 4-1 shows how the analog values of the analog modules are represented:

Table 4-1

Analog Value Representation Analog Value 15 S 14 13 12 11 10 9 29 8 28 7 27 6 26 5 25 4 24 3 23 2 22 1 21 0 20

Resolution Number of bits Bit weighting

214 213 212 211 210

Sign

The sign (S) of the analog value is always in bit number 15:

S 0 ) S 1 *
Resolutions of Less than 15 Bits If the resolution of an analog module has fewer than 15 bits, the analog value is entered left-justified in the accumulator. The lower-order bit positions not used are padded with zeros (0). Table 4-2 contains a bit pattern to show you how to write zeros (0) into the unassigned bit positions for a resolution with fewer than 15 bits.
Table 4-2 Bit Pattern of a 15-Bit and a 12-Bit Analog Value (Example) Analog Value 15 0 0 0 14 1 1 1 13 0 0 0 12 0 0 0 11 0 0 0 10 1 1 1 9 1 1 1 8 0 0 0 7 0 0 0 6 1 1 0 5 1 1 0 4 1 1 0 3 0 0 0 2 0 0 0 1 1 0 0 0 1 0 0

Resolution Number of bits 15-bit analog value (+ S) 12-bit analog value (+ S) 8-bit analog value (+ S)

Module Specifications EWA 4NEB 710 6067-02

4-3

Analog Modules

4.1.2

Analog Value Representation of the Measuring Ranges of the Analog Inputs

Introduction

The tables in this chapter contain the digitized analog values for the various measuring ranges of the analog modules. Table 4-3 shows you the binary representation of the analog values and the associated decimal and hexadecimal notation of the units of the analog values.

How to Read the Measured-Value Tables

Tables 4-4 to 4-15 contain the digitized analog values for the various measuring ranges. Since the binary representation of the analog values is always the same, these tables only contain the measured values and the units. This makes the tables clearer and easier to read. You will find the binary representations corresponding to the measured values in Table 4-3.

Measured-Value Resolution

The resolution of the analog values may vary, depending on the analog module and the parameters assigned to it. For the resolutions < 15 bits, the bits marked with an x are set to 0. Note: This resolution does not apply to temperature values. The converted temperature values are the result of a conversion in the analog module (see Tables 4-8 to 4-15).

Table 4-3

Possible Resolutions of the Analog Values Units Decimal 128 64 32 16 8 4 2 1 Hexadecimal 80H 40H 20H 10H 8H 4H 2H 1H Analog Value High-Order Byte S0000000 S0000000 S0000000 S0000000 S0000000 S0000000 S0000000 S0000000 Low-Order Byte 1xxxxxxx 01xxxxxx 001xxxxx 0001xxxx 00001xxx 000001xx 0000001x 00000001

Resolution in Bits (+ S) 8 9 10 11 12 13 14 15

4-4

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Voltage Measuring Ranges


Table 4-4 Measuring Range " 80 mV > 94.071 94.071 : 80.003 80.000 60.000 : 60.000 80.000 80.003 : 94.74 < 94.074

Table 4-4 shows the representation of the digitized measured value for the voltage measuring ranges " 80 mV, " 250 mV, " 500 mV, " 1 V, "2.5 V.

Representation of the Digitized Measured Value of an Analog Input Module (Voltage Ranges) Measuring Range " 250 mV > 293.97 293.97 : 250.01 250.00 187.50 : 187.50 250.00 250.01 : 293.98 < 293.98 Measuring Range " 500 mV > 587.94 587.94 : 500.02 500.00 375.00 : 375.00 500.00 500.02 : 587.96 < 587.96 Measuring Range "1V > 1.175 1.175 : 1.00004 1.000 0.750 : 0.750 1.000 1.00004 : 1.175 < 1.175 Measuring Range " 2.5 V > 2.9397 2.9397 : 2.5001 2.500 1.875 : 1.875 2.500 2.5001 : 2.93398 < 2.93398 : 20736 27648 27649 : 32512 32768 Units Decimal 32767 32511 : 27649 27648 20736 : AF00H 9400H 93FFH : 8100H 8000H Underflow Underrange Hexadecimal 7FFFH 7EFFH : 6C01H 6C00H 5100H Nominal range Overrange Range Overflow

Module Specifications EWA 4NEB 710 6067-02

4-5

Analog Modules

Voltage and Current Measuring Ranges

Table 4-5 shows the representation of the digitized measured value

S for the voltage measuring ranges " 5 V, " 10 V and S for the current measuring ranges " 10 mA, " 3.2 mA, " 20 mA.

Table 4-5

Representation of the Digitized Measured Value of an Analog Input Module (Voltage and Current Measuring Ranges) Measuring Range " 10 V " 10 mA > 11.7589 11.7589 : 10.0004 10.00 7.50 : 7.50 10.00 10.0004 : 11.759 < 11.759 Measuring Range " 3.2 mA > 3.7628 3.7628 : 3.2001 3.200 2.400 : 2.400 3.200 3.2001 : 3.7629 < 3.7629 Measuring Range " 20 mA > 23.515 23.515 : 20.0007 20.000 14.998 : 14.998 20.000 20.0007 : 23.516 < 23.516 Units Decimal 32767 32511 : 27649 27648 20736 : 20736 27648 27649 : 32512 32768 Hexadecimal 7FFFH 7EFFH : 6C01H 6C00H 5100H : AF00H 9400H 93FFH : 8100H 8000H Underflow Underrange Nominal range Overrange Overflow Range

Measuring Range "5V > 5.8794 5.8794 : 5.0002 5.00 3.75 : 3.75 5.00 5.0002 : 5.8796 < 5.8796

4-6

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Voltage and Current Measuring Ranges

Table 4-6 shows the representation of the digitized measured value

S for the voltage measuring ranges 1 to 5 V and S for the current measuring ranges 0 to 20 mA, 4 to 20 mA.

Table 4-6

Representation of the Digitized Measured Value of an Analog Input Module (Voltage and Current Measuring Ranges) Measuring Range 0 20 mA A Measuring Range 4 t 20 mA A to Units Decimal 32767 32511 : 27649 27648 20736 : 0 1 : 4864 32768 Hexadecimal 7FFFH 7EFFH : 6C01H 6C00H 5100H : 0H FFFFH : ED00H 8000H Underflow Underrange Nominal range Overrange Overflow Range

Measuring Range 1t 5V to

> 5.7036 5.7036 : 5.0001 5.000 4.000 : 1.000 0.9999 : 0.2963 < 0.2963

> 23.515 23.515 : 20.0007 20.000 14.998 : 0.000 -0.0007 : 3.5185 <3.5185

> 22.810 22.810 : 20.0005 20.000 16.000 : 4.000 3.9995 : 1.1852 < 1.1852

Module Specifications EWA 4NEB 710 6067-02

4-7

Analog Modules

Resistance-Type Sensors Measuring Ranges


Table 4-7 Measuring Range 150 > 176.383 176.383 : 150.005 150.000 112.500 : 0.000

Table 4-7 shows the representation of the digitized measured value for resistance-type sensors with the measuring ranges 150 , 300 and 600 .

Representation of the Digitized Measured Value of an Analog Input Module (Resistance-Type Sensors) Measuring Range 300 > 352.767 352.767 : 300.011 300.000 225.000 : 0.000 Measuring Range 600 > 705.534 705.534 : 600.022 600.000 450.000 : 0.000 Units Decimal 32767 32511 : 27649 27648 20736 : 0 1 : 4864 Hexadecimal 7FFFH 7EFFH : 6C01H 6C00H 5100H : 0H FFFFH : ED00H 8000H Underflow Underrange Nominal range Overrange Overflow Range

(negative values physically not possible)

32768

4-8

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Standard Temperature Range Pt 100

Table 4-8 shows the representation of the digitized measured value for the standard temperature range of the Pt 100 sensor.
Table 4-8 Representation of the Digitized Measured Value of an Analog Input Module (Standard Temperature Range, Pt 100) Decimal Hexadecimal Range

Standard Temperature Range Pt 100 850 _C > 1000.0 1000.0 : 850.1 850.0 : 200.0 200.1 : 243.0 < 243.0

32767 10000 : 8501 8500 : 2000 2001 : 2430 32768

7FFFH 2710H : 2135H 2134H : F830H F82FH : F682H 8000H

Overflow Overrange

Nominal range

Underrange Underflow

Climate Temperature Range Pt 100

Table 4-9 shows the representation of the digitized measured value for the climate temperature range of the Pt 100 sensor.
Table 4-9 Representation of the Digitized Measured Value of an Analog Input Module (Climate Temperature Range, Pt 100) Decimal Hexadecimal Range

Climate Temperature Range Pt 100 130 _C > 155.00 155.00 : 130.01 130.00 : 120.00 120.01 : 145.00 < 145.00

32767 15500 : 13001 13000 : 12000 12001 : 14500 32768

7FFFH 3C8CH : 32C9H 32C8H : D120H D11FH : C75CH 8000H

Overflow Overrange

Nominal range

Underrange Underflow

Module Specifications EWA 4NEB 710 6067-02

4-9

Analog Modules

Standard Temperature Range Ni 100

Table 4-10 shows the representation of the digitized measured value for the standard temperature range of the Ni 100 sensor.
Table 4-10 Representation of the Digitized Measured Value of an Analog Input Module (Standard Temperature Range, Ni 100) Decimal Hexadecimal Range

Standard Temperature Range Ni 100 250 _C >295.0 295.0 : 250.1 250.0 : 60.0 60.1 : 105.0 < 105,0

32767 2950 : 2501 2500 : 600 601 : 1050 32768

7FFFH B86H : 9C5H 9C4H : FDA8H FDA7H : FBE6H 8000H

Overflow Overrange

Nominal range

Underrange Underflow

Climate Temperature Range, Ni 100

Table 4-11 shows the representation of the digitized measured value for the climate temperature range of the Ni 100 sensor.
Table 4-11 Representation of the Digitized Measured Value of an Analog Input Module (Climate Temperature Range, Ni 100) Decimal Hexadecimal Range

Climate Temperature Range Ni 100 250 _C >295.00 295.00 : 250.01 250.00 : 60.00 60.01 : 105.00 < 105.00

32767 29500 : 25001 25000 : 6000 6001 : 10500 32768

7FFFH 733CH : 61A9H 61A8H : E890H E88FH : D6FCH 8000H

Overflow Overrange

Nominal range

Underrange Underflow

4-10

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Temperature Range Type K

Table 4-12 shows the representation of the digitized measured value for the temperature range, sensor type K.
Table 4-12 Representation of the Digitized Measured Value of an Analog Input Module (Temperature Range, Type K) Decimal Hexadecimal 7FFFH 3FSCH : 35A2H 3598H : F574H <F574H Underrange Nominal range Overrange Range

Temperature Range in _C Type K >1622 1622 : 1373 1372 : 270 <270

32767 16220 : 13730 13720 : 2700 <2700

Overflow

In the case of incorrect wiring (e. g. polarity reversal or open inputs) or of a sensor error in the negative range (e. g. incorrect thermocouple type), the analog input module signals underflow below F0C5H and outputs 8000H.

Temperature Range Type N

Table 4-13 shows the representation of the digitized measured value for the temperature range, sensor type N.
Table 4-13 Representation of the Digitized Measured Value of an Analog Input Module (Temperature Range, Type N) Decimal Hexa decimal 7C8CH 3C8CH : 32D2H 32C8H : F574H <F574H Underrange Nominal range Overrange Range

Temperature Range in _C Typ N >1550 1550 : 1301 1300 : 270 <270

32767 15500 : 13010 13000 : 2700 <2700

Overflow

In the case of incorrect wiring (e. g. polarity reversal or open inputs) or of a sensor error in the negative range (e. g. incorrect thermocouple type), the analog input module signals underflow below F0C5H and outputs 8000H.

Module Specifications EWA 4NEB 710 6067-02

4-11

Analog Modules

Temperature Range Type J

Table 4-14 shows the representation of the digitized measured value for the temperature range, sensor type J.
Table 4-14 Representation of the Digitized Measured Value of an Analog Input Module (Temperature Range, Type J) Decimal Hexadecimal 7FFFH 38A4H : 2EEAH 2EE0H : F7CCH <F7CCH Underrange Nominal range Overrange Range

Temperature Range in _C Typ J >1450 1450 : 1201 1200 : 210.0 <210

32767 14500 : 12010 12000 : 2100 <2100

Overflow

In the case of incorrect wiring (e. g. polarity reversal or open inputs) or of a sensor error in the negative range (e. g. incorrect thermocouple type), the analog input module signals underflow below F0C5H and outputs 8000H.

Temperature Range Type E

Table 4-15 shows the representation of the digitized measured value for the temperature range, sensor type E.
Table 4-15 Representation of the Digitized Measured Value of an Analog Input Module (Temperature Ranges, Type E) Decimal Hexadecimal 7FFFH 2EE0H : 271AH 2710H : F574H <F574H Underrange Nominal range Overrange Range

Temperature Range in _C Typ E >1201 1200 : 1001 1000 : 270 <271

32767 12000 : 10010 10000 : 2700 <2700

Overflow

In the case of incorrect wiring (e. g. polarity reversal or open inputs) or of a sensor error in the negative range (e. g. incorrect thermocouple type), the analog input module signals underflow below F0C5H and outputs 8000H.

4-12

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Temperature Range Type L

Table 4-16 shows the representation of the digitized measured value for the temperature range, sensor type L.
Table 4-16 Representation of the Digitized Measured Value of an Analog Input Module (Temperature Range, Type L) Decimal Hexadecimal 7FFFH 2CECH : 2332H 2328H : F830H <F830H Underrange Nominal range Overrange Range

Temperature Range in _C Typ L >1150 1150 : 901 900 : 200 <200

32767 11500 : 9010 9000 : 2000 <2000

Overflow

In the case of incorrect wiring (e. g. polarity reversal or open inputs) or of a sensor error in the negative range (e. g. incorrect thermocouple type), the analog input module signals underflow below F0C5H and outputs 8000H.

Measuring Ranges for the SM 334

The analog input/output module SM 334; AI 4/AO 2 8/8 Bit has the measuring ranges 0 to 10 V and 0 to 20 mA. In contrast to other analog modules, however, the analog input/output module SM 334 has a lower resolution and no negative measuring ranges. Please observe this when reading Tables 4-5 and 4-6.

Module Specifications EWA 4NEB 710 6067-02

4-13

Analog Modules

4.1.3

Analog Value Representation of the Output Ranges of the Analog Outputs

Tables for Output Ranges

Tables 4-17 and 4-18 show the analog output ranges of the analog output module.

Voltage Output Ranges


Table 4-17 Output Range 0 to 10 V 0 11.7589 : 10.0004 10.0000 : 0 0

Table 4-17 shows the representation of the voltage output ranges 0 to 10 V, 1 to 5 V and " 10 V.

Representation of the Analog Output Range of the Analog Output Modules (Voltage Output Ranges) Output Range 1 to 5 V 0 5.8794 : 5.0002 5.0000 : 1.0000 :0.9999 0 0 : Output Range " 10 V 0 11.7589 : 10.0004 10.0000 : 0 Units Decimal >32511 32511 : 27649 27648 : 0 : 6912 6913 : 10.0000 10.0004 : 11.7589 0 27648 27649 : 32512 < 32512 Hexadecimal >7EFFH 7EFFH : 6C01H 6C00H : 0H : E500H E4FFH : 9400H 93FFH : 8100H <8100H Underflow Underrange Nomial range Overrange Overflow Range

4-14

Module Specifications EWA 4NEB 710 6067-02

Analog Modules

Current Output Ranges


Table 4-18 Output Range 0 to 20 mA 0 23.515 : 20.0007 20.000 : 0 0

Table 4-18 shows the representation of the current output ranges 0 to 20 mA, 4 to 20 mA and " 20 mA.

Representation of the Analog Output Range of the Analog Output Modules (Current Output Ranges) Output Range 4 to 20 mA 0 22.81 : 20.005 20.000 : 4.000 3.9995 0 0 : 0 Output Range " 20 mA 0 23.515 : 20.0007 20.000 Units Decimal >32511 32511 : 27649 27648 : 0 : 6912 6913 : 20.000 27648 27649 : 23.515 0 : 32512 < 32512 Hexadecimal >7EFFH 7EFFH : 6C01H 6C00H : 0H : E500H E4FFH : 9400H 93FFH : 8100H <8100H Underflow Underrange Nominal range Overrange Overflow Range

Output Ranges for the SM 334

The analog input/output module SM 334; AI 4/AO 2 8/8 Bit has the output ranges 0 to 10 V and 0 to 20 mA. In contrast to other analog modules, however, the analog input/output module SM 334 has a lower resolution and no overranges. Please observe this when reading Tables 4-17 and 4-18.

Module Specifications EWA 4NEB 710 6067-02

4-15

Anda mungkin juga menyukai