S5-100U
Analog Value Processing
If you want to read in the analog value with function block FB250 (analog value reading), you have to
pre-process the analog value before calling up FB250.
Example 1:
Analog input module 466-8MC11 is inserted in slot 1, which means that the module's start address
is 72.
The analog values are stored in four consecutive bytes:
1st analog value
(channel 0)
in IB72
2nd analog value (channel 1)
in IB73
3rd analog value
(channel 2)
in IB74
4th analog value
(channel 3)
in IB75
Function block FB72, pictured below, reads in the analog values and pre-processes them for
function block FB250 (analog value reading).
NAME :READ 466
READ IN ALL CHANNELS
0005
:
OF AI 466
0006
:L
IW
72
READ ALL FOUR CHANNELS
0007
:T
FW
72
AND REARRANGE
0008
:L
IW
74
0009
:T
FW
74
000A
:
000B
:L
FY
72
PROCESS EACH ANALOG VALUE
000C
:SLW
6
AND REWRITE THEM IN
000D
:T
IW
72
THE PII SO THAT FB250
000E
:
CAN ACCESS THEM
000F
:L
FY
73
WITHIN THAT SCAN.
0010
:SLW
6
0011
:T
IW
74
0012
:
0013
:L
FY
74
0014
:SLW
6
0015
:T
IW
76
0016
:
0017
:L
FY
75
0018
:SLW
6
0019
:T
IW
78
001A
:
001B
:BE
FB72
Explanation
EWA 4NEB 812 6120-02b
11-17
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 ...