
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
Содержание SIMATIC S5-100U
Страница 6: ...EWA 4NEB 812 6120 02b ...
Страница 16: ...EWA 4NEB 812 6120 02b ...
Страница 21: ...1 The SIMATIC S5 System Family EWA 4NEB 812 6120 02b ...
Страница 22: ...Figures 1 1 Members of the SIMATIC S5 System Family 1 1 EWA 4NEB 812 6120 02b ...
Страница 23: ......
Страница 27: ......
Страница 36: ...EWA 4NEB 812 6120 02b ...
Страница 40: ......
Страница 41: ......
Страница 42: ......
Страница 43: ......
Страница 48: ......
Страница 49: ......
Страница 50: ......
Страница 102: ...EWA 4NEB 812 6120 02b ...
Страница 156: ...EWA 4NEB 812 6120 02b ...
Страница 232: ...EWA 4NEB 812 6120 02b ...
Страница 268: ...EWA 4NEB 812 6120 02b ...
Страница 272: ...EWA 4NEB 812 6120 02b ...
Страница 336: ...EWA 4NEB 812 6120 02b ...
Страница 352: ...EWA 4NEB 812 6120 02b ...
Страница 412: ...EWA 4NEB 812 6120 02b ...
Страница 482: ...EWA 4NEB 812 6120 02b ...
Страница 484: ...EWA 4NEB 812 6120 02b ...
Страница 505: ...B Dimension Drawings EWA 4NEB 812 6120 02b ...
Страница 515: ...C Active and Passive Faults in Automation Equipment EWA 4NEB 812 6120 02b ...
Страница 516: ...EWA 4NEB 812 6120 02b ...
Страница 522: ...EWA 4NEB 812 6120 02b ...
Страница 523: ...D Information for Ordering Accessories EWA 4NEB 812 6120 02b ...
Страница 524: ...EWA 4NEB 812 6120 02b ...
Страница 530: ...EWA 4NEB 812 6120 02b ...
Страница 531: ...E Reference Materials EWA 4NEB 812 6120 02b ...
Страница 532: ...EWA 4NEB 812 6120 02b ...
Страница 534: ...EWA 4NEB 812 6120 02b ...
Страница 535: ...F Siemens Addresses Worldwide EWA 4NEB 812 6120 02b ...
Страница 536: ...EWA 4NEB 812 6120 02b ...
Страница 542: ...EWA 4NEB 812 6120 02b ...
Страница 543: ...Index EWA 4NEB 812 6120 02b ...
Страница 544: ...EWA 4NEB 812 6120 02b ...
Страница 550: ...EWA 4NEB 812 6120 02b ...