You are on page 1of 17

Analog Value Processing

High level

Level
transmitter

SIMATIC S7
Siemens AG 2002. All rights reserved.

Low level

Date:
File:

02.05.2015
PRO1_13E.1

SITRAIN Training for


Automation and Drives

Objectives

Upon completion of this chapter the participant will ...


...

know the principle of analog value processing

...

be able to assign parameters to an analog module using the "HW


Config" tool and will be able to set the measuring range module that
belongs to the module to the correct position

...

be able to address an analog module

...

be able to interpret the resolution of a module

...

be able to evaluate the result of an analog module in the program

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.2

SITRAIN Training for


Automation and Drives

Using Analog Modules


Process
Physical
quantity

Sensor

Standard
analog signal

Result
memory
MR
module

PIW ...
PIW ...
:::
PIW ...

ADC

Transducer

Pressure
Temperature
Flow
Speed
pH value
Viscosity
etc.

Physical
quantity

Analog input module

500mV
1V
5V
10V
20mA
4 to 20mA
etc.

Analog
actuator

SIMATIC S7
Siemens AG 2002. All rights reserved.

Analog output module

DAC

Date:
File:

PQW ...
PQW ...
:::
PQW ...

02.05.2015
PRO1_13E.3

CPU
:
:
:
:
:
:
L PIW 352

..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
..
T PQW 368
:

SITRAIN Training for


Automation and Drives

Measuring Range Module

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.4

SITRAIN Training for


Automation and Drives

Analog Module Parameters

Double
Click

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.5

SITRAIN Training for


Automation and Drives

Analog Input Modules


SM335 (Inputs)

SIMATIC S7
Siemens AG 2002. All rights reserved.

SM331

Date:
File:

02.05.2015
PRO1_13E.6

SITRAIN Training for


Automation and Drives

Analog Output Module


SM335 (Outputs)

SIMATIC S7
Siemens AG 2002. All rights reserved.

SM332

Date:
File:

02.05.2015
PRO1_13E.7

SITRAIN Training for


Automation and Drives

Analog Value Representation and Measured Value Resolution


Bit no.

min. units

Bit value

Dec. Hex.

Resolution
in bits
+ sign

15

14

13

12

11

10

VZ 214 213 212 211 210

29

28

27

26

25

24

23

22

21

20

128

80

64

40

10

32

20

11

16

10

12

13

14

15

SIMATIC S7
Siemens AG 2002. All rights reserved.

= 0 or 1

Date:
File:

02.05.2015
PRO1_13E.8

SITRAIN Training for


Automation and Drives

Analog Value Representation of Different Measuring Ranges


Voltage
such as:

Current
such as:

Resistance
such as:

Temperature
such as Pt100

Range
Meas.range
10V
Overflow
Overrange

Rated range

Underrange

Underflow

Units

Meas.range
4 to 20mA

Units

Meas.range
0...300Ohm

Units

Meas.range
-200...+850C

Units

>= 11.759

32767

>= 22.815

32767

>=352.778

32767

>= 1000.1

32767

11.7589
:
10.0004

32511
:
27649

22.810
:
20.0005

32511
:
27649

352.767
:
300.011

32511
:
27649

1000.0
:
850.1

10000
:
8501

10.00
7.50
:
-7.5
-10.00

27648
20736
:
-20736
-27648

20.000
16.000
:
:
4.000

27648
20736
:
:
0

300.000
225.000
:
:
0.000

27648
20736
:
:
0

850.0
:
:
:
-200.0

8500
:
:
:
-2000

- 10.0004
:
- 11.759

- 27649
:
- 32512

3.9995
:
1.1852

-1
:
- 4864

-1
:
- 4864

- 200.1
:
- 243.0

- 2001
:
- 2430

<= - 11.76

- 32768

<= 1.1845

- 32768

Negative
values
not
possible

- 32768

<= - 243.1

- 32768

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.9

SITRAIN Training for


Automation and Drives

Analog Value Representation for the Analog Outputs


Voltage
Units

Range

Overflow

Output ranges:
0 to 10V
1 to 5V

>=32767

Overrange

Rated range

Underflow

10V

Output ranges:
0 to 20mA
4 to 20mA

20mA

32511
:
27649

11.7589
:
10.0004

5.8794
:
5.0002

11.7589
:
10.0004

23.515
:
20.0007

22.81
:
20.005

23.515
:
20.0007

27648
:
0
:
- 6912

10.0000
:
0
0

5.0000
:
1.0000

10.0000
:
0
:
:
:
:
:
:
:
-10.0000

20.000
:
0
0

20.000
:
4.000

20.000
:
0
:
:
:
:
:
:
:
-20.000

- 6913
:
:
:
- 27648
Underrange

Current

0.9999
0
0

- 27649
:
- 32512

- 10.0004
:
- 11.7589

<=- 32513

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.10

3.9995
0
0

- 20.007
:
- 23.515
0
SITRAIN Training for
Automation and Drives

Analog Module Addresses for the S7-300

Rack 3

Power
Supply

IM
(Receive)

Rack 2

Rack 1

R
0

Power
Supply

Slot

Power
Supply

Power
Supply

IM
(Receive)

IM
(Receive)

IM
CPU

(Send)

SIMATIC S7
Siemens AG 2002. All rights reserved.

640
to
654

656
to
670

672
to
686

688
to
702

704
to
718

720
to
734

736
to
750

752
to
766

512
to
526

528
to
542

544
to
558

560
to
574

576
to
590

592
to
606

608
to
622

624
to
638

384
to
398

400
to
414

416
to
430

432
to
446

448
to
462

464
to
478

480
to
494

496
to
510

256
to
270

272
to
286

288
to
302

304
to
318

320
to
334

336
to
350

352
to
366

368
to
382

10

Date:
File:

02.05.2015
PRO1_13E.11

11

SITRAIN Training for


Automation and Drives

Scaling Analog Input Values

unipolar (M 0.0 = 0)

bipolar (M 0.0 = 1)

(Sensor supplies only positive voltage)

(Sensor also supplies negative voltage)

OUT

OUT

HI_LIM = 500.0

HI_LIM = 500.0

LO_LIM = 0.0
0

SIMATIC S7
Siemens AG 2002. All rights reserved.

x x+1

LO_LIM = 0.0

IN
27648

-27648
Date:
File:

02.05.2015
PRO1_13E.12

x x+1

IN
27648

SITRAIN Training for


Automation and Drives

Unscaling Analog Output Values

bipolar (M 0.0 = 1)
(Actuator is energized with
positive and negative values)
OUT
27648

B
OUT

27648

0.0
(LO_LIM)

IN
100.0
(HI_LIM)

unipolar (M 0.0 = 0)
(Actuator is energized
only with positive values)

0
0.0
(LO_LIM)

SIMATIC S7
Siemens AG 2002. All rights reserved.

IN

-27648

100.0
(HI_LIM)
Date:
File:

02.05.2015
PRO1_13E.13

SITRAIN Training for


Automation and Drives

Exercise: Assigning Parameters to the Analog Module SM335

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.14

SITRAIN Training for


Automation and Drives

Exercise: Assigning Parameters to the Analog Module SM331

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.15

SITRAIN Training for


Automation and Drives

Exercise: Hardware Diagnostics with Diagnostic Interrupt

SIMATIC S7
Siemens AG 2002. All rights reserved.

Date:
File:

02.05.2015
PRO1_13E.16

SITRAIN Training for


Automation and Drives

Exercise: Recording and Displaying the Weight of Transported Parts


CPU

Simulator
0

AI module

10

0...10V

PIW 352
(PIW 304)

0...27648

V
AI1

AI2 AO1
-15V...+15V
AO2

AI1

AI2

Weight 0 to 500kg

BCD Display
DO module
0 1

Weight Display
for I 0.6 = 1

SIMATIC S7
Siemens AG 2002. All rights reserved.

QW 12
(QW 6)

0 to 500 kg

Date:
File:

02.05.2015
PRO1_13E.17

SITRAIN Training for


Automation and Drives

You might also like