Analog Value Processing
S5-100U
Example 2:
Analog input module 466-8MC11 is inserted in slot 0, which means that the module’s start address
is 64.
The analog values that are read in are stored in four consecutive bytes:
1st analog value
(channel 0)
in IB64
2nd analog value (channel 1)
in IB65
3rd analog value
(channel 2)
in IB66
4th analog value
(channel 3)
in IB67
Function block 73, pictured below, reads in the analog values and pre-processes them for FB250.
The additional processing with FB250 is done just like module 464, however without an overflow bit.
FB73
Explanation
NAME :READ AI
:
:
000A :L IB 67 Read in channel 3
000C :SLW 6
000E :T IW 70
0010 :
0012 :L IB 66 Read in channel 2
0014 :SLW 6
0016 :T IW 68
0018 :
001A :L IB 65 Read in channel 1
001C :SLW 6
001E :T IW 66
0020 :
0022 :L IB 64 Read in channel 0
0024 :SLW 6
0026 :T IW 64
0028 :
002A :
002C :JU FB 250
002E NAME :RLG:AI
0030 BG : KF +0 Module on slot 0
0032 KNKT : KY 0,4 Channel/No. 0, unipolar representation
0034 OGR : KF +1000 Upper limit 1000 (1000 mV)
0036 UGR : KF +0 Lower limit 0
0038 EINZ : F 0.0 No meaning
003A XA : FW 100 Output, 0 to 1000 mV in KF
003C FB : F 102.0 Error bit for parameter assignment
003E BU : F 102.1 Range overflow
0040 : (always 0 with this module)
0042 :BE
11-18
EWA 4NEB 812 6120-02b
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 ...