S5-100U
Analog Value Processing
Example:
Display of Tank Make-Up Quantity
The make-up of a cylindrical tank holding 30 m
3
is to be shown on a 3-digit display. The individual
digits must be set in BCD.
The level of the liquid in the tank is sensed by a SONAR-BERO®, range 80 to 600 cm, with analog
output (see Catalog NS3).
Figure 11.12 Schematic for “Display of Tank Make-Up Quantity”
m
3
SONAR-BERO
80 cm
Tank
Tank level
Gap
I=4 to 20 mA
600 cm
0.
3-digit BCD display
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a
1
5
DQ
DQ
AQ
AI
PS
CPU
The analog output of the SONAR-BERO delivers a constant current in the range 4 to 20 mA
proportional to the gap between sensor and liquid. This current is routed to the 4 to 20 mA
analog input module in slot 0, channel 0.
FB250 converts the range 4 to 20mA to the range 0 to 30.0 m
3
.
The value is stored in flag word 1 as a fixed-point number. Initialization takes place in the
calling block. FB241 converts the fixed-point number into a BCD number.
Figure 11-13. Conversion of the Nominal Range into the Defined Range
4 mA
12 mA
20 mA
Nominal range of the
analog module
Range set by
user
0 m
3
15.0 m
3
30.0 m
3
EWA 4NEB 812 6120-02b
11-23
Summary of Contents for SIMATIC S5-100U
Page 6: ...EWA 4NEB 812 6120 02b ...
Page 16: ...EWA 4NEB 812 6120 02b ...
Page 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Page 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Page 23: ......
Page 27: ......
Page 36: ...EWA 4NEB 812 6120 02b ...
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 102: ...EWA 4NEB 812 6120 02b ...
Page 156: ...EWA 4NEB 812 6120 02b ...
Page 232: ...EWA 4NEB 812 6120 02b ...
Page 268: ...EWA 4NEB 812 6120 02b ...
Page 272: ...EWA 4NEB 812 6120 02b ...
Page 336: ...EWA 4NEB 812 6120 02b ...
Page 352: ...EWA 4NEB 812 6120 02b ...
Page 412: ...EWA 4NEB 812 6120 02b ...
Page 482: ...EWA 4NEB 812 6120 02b ...
Page 484: ...EWA 4NEB 812 6120 02b ...
Page 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Page 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Page 516: ...EWA 4NEB 812 6120 02b ...
Page 522: ...EWA 4NEB 812 6120 02b ...
Page 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Page 524: ...EWA 4NEB 812 6120 02b ...
Page 530: ...EWA 4NEB 812 6120 02b ...
Page 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Page 532: ...EWA 4NEB 812 6120 02b ...
Page 534: ...EWA 4NEB 812 6120 02b ...
Page 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Page 536: ...EWA 4NEB 812 6120 02b ...
Page 542: ...EWA 4NEB 812 6120 02b ...
Page 543: ...Index EWA 4NEB 812 6120 02b ...
Page 544: ...EWA 4NEB 812 6120 02b ...
Page 550: ...EWA 4NEB 812 6120 02b ...