// ================================================================================
// Automatically generated by   S5/S7 Converter,  Version K2.1.9.0-REL   12-04-2006 21:34
// ================================================================================
//
//                       Notes:
//                       ------
//
// BLOCKS:       The following block types exist in S7:
//OB: as in STEP 5;
//FB: function block (for example, closed-loop controller), is called using different instance data blocks;
//FC: function, similar to STEP 5 FBs.
//The block types PB, FX, DX and SB no longer exist.
//
//OBS:   OBs cannot be called from the user program in S7. 
//        Special function OBs can be replaced by new instructions or by SFCs 
//             in the same way as special instructions such as G DB.
//
// ADDRESSING: In S7, all memory areas (I, Q, M, D, etc.) can be addressed 
//             as bytes. This means L DW 2 in S5 becomes L DBW 4 in S7.
//
// NO. OF ACCUS: All S7 CPUs have either 2 or 4 accumulators just as the S5 CPUs.
//               If an S5 program from an S5 CPU with 2 accumulators (S5-115U) is converted for an S7 CPU
//               with 4 accumulators, an ENT instruction must be added in front
//               of every math operation (+,-,*,/) in case the contents of accumulator 2 
//               are to be used again afterwards.
//
// ACCU WIDTH: The accumulators of all S7 CPUs are 32 bits wide.
//             With fixed-point math operations in S7
//              - the high word in accumulator 1 remains unchanged following overflow/underflow 
//                (S5-135U: sign);
//              - no implicit conversion to 32-bit format is performed (S5-155U).
//
// OS BIT:     With the following operations in S7, the OS bit
//             (stored overflow) remains unchanged (in S5 it was reset):
//             T,  >F, <F, ><F, !=F, >=F, <=F,  >D, <D, ><D, !=D, >=D, <=D,
//             >G, <G, ><G, !=G, >=G, <=G,
//             SLW, SRW, SLD, SSW, SSD, RLD, RRD
//
// OV BIT:      The following conversion operations leave the accumulator 1 unchanged
//              following an overflow (in S5: value of fixed-point number).
//              An overflow is displayed in the OS and OV bit (S5: only OS).
//              DUF, DUD, GFD
//
// LIR, TIR:    In S7 there are no instructions for absolute addressing. They are
//              partly replaced by new instructions (for example, access to data words greater than 255), 
//              and partly by system functions (SFCs). The same applies to 
//              data block start, data block length, and base register.
//
// DATA AREAS RS, RT, RI, RJ, Q: 
//              When these data areas are used, the conversion requires manual assistance. 
//              Possible solutions: 
//                 - use the extended bit memory area
//                 - define longer data blocks 
//                 - use S7 system functions (SFCs)
//
// STOP INSTRUCTIONS: In S7 there is only one stop instruction which can be executed by means of an
//               SFC call. It corresponds to the STS operation in S5.
//
// Refer to the manual or the on-line help for further information.
  

ORGANIZATION_BLOCK OB 1
VAR_TEMP
  OB1_EV_CLASS : BYTE ; //Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
  OB1_SCAN_1 : BYTE ;   //1 (Cold restart scan 1 of OB 1), 3 (Scan 2-n of OB 1)
  OB1_PRIORITY : BYTE ; //1 (Priority of 1 is lowest)
  OB1_OB_NUMBR : BYTE ; //1 (Organization block 1, OB1)
  OB1_RESERVED_1 : BYTE ;   //Reserved for system
  OB1_RESERVED_2 : BYTE ;   //Reserved for system
  OB1_PREV_CYCLE : INT ;    //Cycle time of previous OB1 scan (milliseconds)
  OB1_MIN_CYCLE : INT ; //Minimum cycle time of OB1 (milliseconds)
  OB1_MAX_CYCLE : INT ; //Maximum cycle time of OB1 (milliseconds)
  OB1_DATE_TIME : DATE_AND_TIME ;   //Date and time OB1 started
  END_VAR
  BEGIN
  NETWORK
       CALL FC 1;
       //;
       CALL FC 2;
       //;
       CALL FC 10;
       //;
       CALL FC 14;
       //;
       CALL FC 7;
       //;
       CALL FC 38;
       CALL FC 39;
       //;
       CALL FC 25;
       //;
       A   M 4.2;
       JCN   X000;
     CALL FC 19;
  X000: NOP 0;
       //;
       CALL FC 21;
       //;
       CALL FC 41;
       CALL FC 125;
       CALL FC 126;
       //;
       CALL FC 4;
       //;
       CALL FC 5;
       //;
       CALL FC 6;
       //;
       A   M 4.2;
       JCN   X001;
     CALL FC 12;
  X001: NOP 0;
       //;
       //;
       //;
       CALL FC 129;
       //;
       CALL FC 40;
       //;
       CALL FC 42;
       CALL FC 43;
       CALL FC 44;
       CALL FC 46;
       CALL FC 47;
       CALL FC 48;
       CALL FC 49;
       //;
       CALL FC 51;
       CALL FC 52;
       CALL FC 53;
       //;
       //;
       //;
       CALL FC 61;
       CALL FC 62;
       CALL FC 63;
       CALL FC 64;
       //;
       CALL FC 66;
       CALL FC 67;
       CALL FC 68;
       CALL FC 69;
       CALL FC 71;
       CALL FC 72;
       CALL FC 73;
       CALL FC 74;
       CALL FC 75;
       CALL FC 76;
       CALL FC 77;
       CALL FC 78;
       CALL FC 79;
       //;
       CALL FC 81;
       CALL FC 82;
       CALL FC 83;
       CALL FC 84;
       CALL FC 85;
       //;
       //;
       //;
       CALL FC 88;
       CALL FC 89;
       CALL FC 90;
       CALL FC 91;
       CALL FC 92;
       CALL FC 93;
       CALL FC 94;
       CALL FC 95;
       CALL FC 97;
       CALL FC 98;
       CALL FC 99;
       CALL FC 100;
       //;
       CALL FC 102;
       CALL FC 103;
       CALL FC 104;
       CALL FC 105;
       //;
       //;
       CALL FC 108;
       CALL FC 109;
       CALL FC 110;
       //;
       //;
       CALL FC 114;
       CALL FC 115;
       //;
       CALL FC 117;
       CALL FC 118;
       CALL FC 119;
       //;
       CALL FC 120;
       CALL FC 121;
       CALL FC 122;
       CALL FC 123;
       CALL FC 37;
       //;
       O   M 160.0;
       O   M 160.1;
       JCN   X002;
     CALL FC 24;
  X002: NOP 0;
       //;
       CALL FC 32;
       //;
       CALL FC 18;
       //;
       CALL FC 20;
       //;
       CALL FC 11;
       //;
       CALL FC 13;
       //;
       CALL FC 3;
       //;
  NETWORK
  
  
END_ORGANIZATION_BLOCK
  
ORGANIZATION_BLOCK OB 35
    // *** Warning in Line    5743:  Please check setting for time base (S7 Config.).
VAR_TEMP
  OB35_EV_CLASS : BYTE ;    //Bits 0-3 = 1 (Coming event), Bits 4-7 = 1 (Event class 1)
  OB35_STRT_INF : BYTE ;    //16#36 (OB 35 has started)
  OB35_PRIORITY : BYTE ;    //11 (Priority of 1 is lowest)
  OB35_OB_NUMBR : BYTE ;    //35 (Organization block 35, OB35)
  OB35_RESERVED_1 : BYTE ;  //Reserved for system
  OB35_RESERVED_2 : BYTE ;  //Reserved for system
  OB35_PHASE_OFFSET : WORD ;    //Phase offset (msec)
  OB35_RESERVED_3 : INT ;   //Reserved for system
  OB35_EXC_FREQ : INT ; //Frequency of execution (msec)
  OB35_DATE_TIME : DATE_AND_TIME ;  //Date and time OB35 started
  END_VAR
  BEGIN
  NETWORK
       CALL FC 36;
  NETWORK
       A   M 165.7;
       A   M 0.1;                // Regelaar niet aktief
       JCN   X000;
       
//  NAME: REGELAAR
//  VAR_INPUT
//    DBRE      :block_db;  // DBRE
//    DBSC      :block_db;  // DBSC
//    P         :dword;     // P   
//    TI        :dword;     // TI  
//    TD        :dword;     // TD  
//    SOLL      :dword;     // SOLL
//    HAND      :word;      // HAND
//    H_A       :word;      // H/A 
//    DBIS      :block_db;  // DBIS
//    IST       :dword;     // IST 
//    _TIME     :real;      // TIME
//    VAN       :real;      // VAN 
//    TOT       :real;      // TOT 
//    VRYG      :bool;      // VRYG
//    BIPO      :bool;      // BIPO
//  END_VAR
//  VAR_OUTPUT
//    UIT       :dword;     // UIT 
//  END_VAR
       
       
       
     CALL FC 34
        ( DBRE   :=  DB 201
        , DBSC   :=  DB 180
        , P      :=  DBD 2
        , TI     :=  DBD 6
        , TD     :=  DBD 10
        , SOLL   :=  DBD 14
        , HAND   :=  DBW 22
        , H_A    :=  DBW 24
        , DBIS   :=  DB 152
        , IST    :=  DBD 44
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 105.3
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 18
        );
  X000: NOP 0;
  NETWORK
       A   M 160.0;
       JCN   X001;
     CALL FC 34
        ( DBRE   :=  DB 202
        , DBSC   :=  DB 180
        , P      :=  DBD 26
        , TI     :=  DBD 30
        , TD     :=  DBD 34
        , SOLL   :=  DBD 38
        , HAND   :=  DBW 46
        , H_A    :=  DBW 48
        , DBIS   :=  DB 150
        , IST    :=  DBD 256
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.5000000E+04
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 42
        );
  X001: NOP 0;
       //;
       A   M 160.1;
       JCN   X002;
     CALL FC 34
        ( DBRE   :=  DB 203
        , DBSC   :=  DB 180
        , P      :=  DBD 50
        , TI     :=  DBD 54
        , TD     :=  DBD 58
        , SOLL   :=  DBD 62
        , HAND   :=  DBW 70
        , H_A    :=  DBW 72
        , DBIS   :=  DB 150
        , IST    :=  DBD 124
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 66
        );
  X002: NOP 0;
       //;
       A   M 165.6;
       JCN   X003;
     CALL FC 34
        ( DBRE   :=  DB 204
        , DBSC   :=  DB 180
        , P      :=  DBD 74
        , TI     :=  DBD 78
        , TD     :=  DBD 82
        , SOLL   :=  DBD 86
        , HAND   :=  DBW 94
        , H_A    :=  DBW 96
        , DBIS   :=  DB 152
        , IST    :=  DBD 44
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1200000E+04
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 90
        );
  X003: NOP 0;
  NETWORK
       A   M 161.2;
       JCN   X004;
     CALL FC 34
        ( DBRE   :=  DB 206
        , DBSC   :=  DB 180
        , P      :=  DBD 122
        , TI     :=  DBD 126
        , TD     :=  DBD 130
        , SOLL   :=  DBD 134
        , HAND   :=  DBW 142
        , H_A    :=  DBW 144
        , DBIS   :=  DB 151
        , IST    :=  DBD 160
        , _TIME  :=  +0.8000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 138
        );
  X004: NOP 0;
       //;
       A   M 161.0;
       JCN   X005;
     CALL FC 34
        ( DBRE   :=  DB 207
        , DBSC   :=  DB 180
        , P      :=  DBD 146
        , TI     :=  DBD 150
        , TD     :=  DBD 154
        , SOLL   :=  DBD 158
        , HAND   :=  DBW 166
        , H_A    :=  DBW 168
        , DBIS   :=  DB 150
        , IST    :=  DBD 4
        , _TIME  :=  +0.8000001E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 162
        );
  X005: NOP 0;
       //;
       A   M 161.1;
       JCN   X006;
     CALL FC 34
        ( DBRE   :=  DB 208
        , DBSC   :=  DB 180
        , P      :=  DBD 170
        , TI     :=  DBD 174
        , TD     :=  DBD 178
        , SOLL   :=  DBD 182
        , HAND   :=  DBW 190
        , H_A    :=  DBW 192
        , DBIS   :=  DB 150
        , IST    :=  DBD 8
        , _TIME  :=  +0.8000001E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 186
        );
  X006: NOP 0;
       //;
       A   M 160.2;
       JCN   X007;
     CALL FC 34
        ( DBRE   :=  DB 209
        , DBSC   :=  DB 180
        , P      :=  DBD 194
        , TI     :=  DBD 198
        , TD     :=  DBD 202
        , SOLL   :=  DBD 206
        , HAND   :=  DBW 214
        , H_A    :=  DBW 216
        , DBIS   :=  DB 150
        , IST    :=  DBD 96
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.2000000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 210
        );
  X007: NOP 0;
       //;
       A   M 160.2;
       JCN   X008;
     CALL FC 34
        ( DBRE   :=  DB 210
        , DBSC   :=  DB 180
        , P      :=  DBD 218
        , TI     :=  DBD 222
        , TD     :=  DBD 226
        , SOLL   :=  DBD 230
        , HAND   :=  DBW 238
        , H_A    :=  DBW 240
        , DBIS   :=  DB 150
        , IST    :=  DBD 40
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.2000000E+05
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 234
        );
  X008: NOP 0;
       //;
       A   M 160.2;
       JCN   X009;
     CALL FC 34
        ( DBRE   :=  DB 211
        , DBSC   :=  DB 180
        , P      :=  DBD 242
        , TI     :=  DBD 246
        , TD     :=  DBD 250
        , SOLL   :=  DBD 254
        , HAND   :=  DBW 262
        , H_A    :=  DBW 264
        , DBIS   :=  DB 150
        , IST    :=  DBD 44
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.2000000E+05
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 258
        );
  X009: NOP 0;
  NETWORK
       A   M 160.3;
       JCN   X010;
     CALL FC 34
        ( DBRE   :=  DB 212
        , DBSC   :=  DB 180
        , P      :=  DBD 266
        , TI     :=  DBD 270
        , TD     :=  DBD 274
        , SOLL   :=  DBD 278
        , HAND   :=  DBW 286
        , H_A    :=  DBW 288
        , DBIS   :=  DB 150
        , IST    :=  DBD 240
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 282
        );
  X010: NOP 0;
       //;
       A   M 160.0;
       JCN   X011;
     CALL FC 34
        ( DBRE   :=  DB 213
        , DBSC   :=  DB 180
        , P      :=  DBD 290
        , TI     :=  DBD 294
        , TD     :=  DBD 298
        , SOLL   :=  DBD 302
        , HAND   :=  DBW 310
        , H_A    :=  DBW 312
        , DBIS   :=  DB 150
        , IST    :=  DBD 344
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.5500000E+01
        , TOT    :=  +0.8500000E+01
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 306
        );
  X011: NOP 0;
       //;
       A   M 160.1;
       JCN   X012;
     CALL FC 34
        ( DBRE   :=  DB 214
        , DBSC   :=  DB 180
        , P      :=  DBD 314
        , TI     :=  DBD 318
        , TD     :=  DBD 322
        , SOLL   :=  DBD 326
        , HAND   :=  DBW 334
        , H_A    :=  DBW 336
        , DBIS   :=  DB 150
        , IST    :=  DBD 348
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.5500000E+01
        , TOT    :=  +0.8500000E+01
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 330
        );
  X012: NOP 0;
       //;
       A   M 160.4;
       JCN   X013;
     CALL FC 34
        ( DBRE   :=  DB 215
        , DBSC   :=  DB 180
        , P      :=  DBD 338
        , TI     :=  DBD 342
        , TD     :=  DBD 346
        , SOLL   :=  DBD 350
        , HAND   :=  DBW 358
        , H_A    :=  DBW 360
        , DBIS   :=  DB 150
        , IST    :=  DBD 352
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.5500000E+01
        , TOT    :=  +0.8500000E+01
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 354
        );
  X013: NOP 0;
       //;
       A   M 163.6;
       JCN   X014;
     CALL FC 34
        ( DBRE   :=  DB 216
        , DBSC   :=  DB 180
        , P      :=  DBD 362
        , TI     :=  DBD 366
        , TD     :=  DBD 370
        , SOLL   :=  DBD 374
        , HAND   :=  DBW 382
        , H_A    :=  DBW 384
        , DBIS   :=  DB 150
        , IST    :=  DBD 284
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.2000000E+01
        , TOT    :=  +0.1200000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 378
        );
  X014: NOP 0;
       //;
       A   M 163.7;
       JCN   X015;
     CALL FC 34
        ( DBRE   :=  DB 217
        , DBSC   :=  DB 180
        , P      :=  DBD 386
        , TI     :=  DBD 390
        , TD     :=  DBD 394
        , SOLL   :=  DBD 398
        , HAND   :=  DBW 406
        , H_A    :=  DBW 408
        , DBIS   :=  DB 150
        , IST    :=  DBD 288
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.2000000E+01
        , TOT    :=  +0.1200000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 402
        );
  X015: NOP 0;
       //;
       A   M 162.6;
       JCN   X016;
     CALL FC 34
        ( DBRE   :=  DB 218
        , DBSC   :=  DB 180
        , P      :=  DBD 410
        , TI     :=  DBD 414
        , TD     :=  DBD 418
        , SOLL   :=  DBD 422
        , HAND   :=  DBW 430
        , H_A    :=  DBW 432
        , DBIS   :=  DB 150
        , IST    :=  DBD 368
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.1100000E+04
        , TOT    :=  +0.1300000E+04
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 426
        );
  X016: NOP 0;
       //;
       A   M 161.3;
       JCN   X017;
     CALL FC 34
        ( DBRE   :=  DB 220
        , DBSC   :=  DB 180
        , P      :=  DBD 458
        , TI     :=  DBD 462
        , TD     :=  DBD 466
        , SOLL   :=  DBD 470
        , HAND   :=  DBW 478
        , H_A    :=  DBW 480
        , DBIS   :=  DB 150
        , IST    :=  DBD 236
        , _TIME  :=  +0.8000001E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 474
        );
  X017: NOP 0;
  NETWORK
       A   M 161.4;
       JCN   X018;
     CALL FC 34
        ( DBRE   :=  DB 221
        , DBSC   :=  DB 180
        , P      :=  DBD 482
        , TI     :=  DBD 486
        , TD     :=  DBD 490
        , SOLL   :=  DBD 494
        , HAND   :=  DBW 502
        , H_A    :=  DBW 504
        , DBIS   :=  DB 151
        , IST    :=  DBD 36
        , _TIME  :=  +0.8000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 498
        );
  X018: NOP 0;
       //;
       A   M 164.7;
       JCN   X019;
     CALL FC 34
        ( DBRE   :=  DB 222
        , DBSC   :=  DB 181
        , P      :=  DBD 2
        , TI     :=  DBD 6
        , TD     :=  DBD 10
        , SOLL   :=  DBD 14
        , HAND   :=  DBW 22
        , H_A    :=  DBW 24
        , DBIS   :=  DB 150
        , IST    :=  DBD 228
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1000000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 18
        );
  X019: NOP 0;
       //;
       A   M 160.3;            // Regelaar index 8
       A   M 0.1;              // Regeling geblokkeerd
       JCN   X020;
     CALL FC 34                  // dPIC-160
        ( DBRE   :=  DB 223
        , DBSC   :=  DB 181
        , P      :=  DBD 26
        , TI     :=  DBD 30
        , TD     :=  DBD 34
        , SOLL   :=  DBD 38
        , HAND   :=  DBW 46
        , H_A    :=  DBW 48
        , DBIS   :=  DB 150
        , IST    :=  DBD 116
        , _TIME  :=  +0.5000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.1500000E+03
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 42
        );
  X020: NOP 0;
       //;
       A   M 162.7;
       JCN   X021;
     CALL FC 34
        ( DBRE   :=  DB 225
        , DBSC   :=  DB 181
        , P      :=  DBD 74
        , TI     :=  DBD 78
        , TD     :=  DBD 82
        , SOLL   :=  DBD 86
        , HAND   :=  DBW 94
        , H_A    :=  DBW 96
        , DBIS   :=  DB 151
        , IST    :=  DBD 108
        , _TIME  :=  +0.3200000E+01
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.5000000E+02
        , VRYG   :=  M 0.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 90
        );
  X021: NOP 0;
  NETWORK
       A   M 161.5;
       JCN   X022;
     CALL FC 34
        ( DBRE   :=  DB 226
        , DBSC   :=  DB 181
        , P      :=  DBD 122
        , TI     :=  DBD 126
        , TD     :=  DBD 130
        , SOLL   :=  DBD 134
        , HAND   :=  DBW 142
        , H_A    :=  DBW 144
        , DBIS   :=  DB 151
        , IST    :=  DBD 200
        , _TIME  :=  +0.8000000E+00
        , VAN    :=  -0.1500000E+03
        , TOT    :=  +0.5000000E+02
        , VRYG   :=  M 186.0
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 138
        );
  X022: NOP 0;
       //;
       A   M 161.5;
       JCN   X023;
     CALL FC 34
        ( DBRE   :=  DB 227
        , DBSC   :=  DB 181
        , P      :=  DBD 146
        , TI     :=  DBD 150
        , TD     :=  DBD 154
        , SOLL   :=  DBD 158
        , HAND   :=  DBW 166
        , H_A    :=  DBW 168
        , DBIS   :=  DB 151
        , IST    :=  DBD 128
        , _TIME  :=  +0.8000000E+00
        , VAN    :=  +0.0000000E+00
        , TOT    :=  +0.2500000E+03
        , VRYG   :=  M 186.2
        , BIPO   :=  M 0.1
        , UIT    :=  DBD 162
        );
  X023: NOP 0;
  NETWORK
  
  
END_ORGANIZATION_BLOCK
  
ORGANIZATION_BLOCK OB 100
VAR_TEMP
  OB100_EV_CLASS : BYTE ;   //16#13, Event class 1, Entering event state, Event logged in diagnostic buffer
  OB100_STRTUP : BYTE ; //16#81/82/83/84 Method of startup
  OB100_PRIORITY : BYTE ;   //27 (Priority of 1 is lowest)
  OB100_OB_NUMBR : BYTE ;   //100 (Organization block 100, OB100)
  OB100_RESERVED_1 : BYTE ;  //Reserved for system
  OB100_RESERVED_2 : BYTE ; //Reserved for system
  OB100_STOP : WORD ;   //Event that caused CPU to stop (16#4xxx)
  OB100_STRT_INFO : DWORD ; //Information on how system started
  OB100_DATE_TIME : DATE_AND_TIME ; //Date and time OB100 started
  END_VAR
  BEGIN
  NETWORK
       CALL FC 9;
       //;
       CALL FC 33;
       //;
  NETWORK
       O   M 0.0;
       ON  M 0.0;
       S   M 5.0;
       S   M 5.1;
       S   M 5.2;
  
  
END_ORGANIZATION_BLOCK
  
ORGANIZATION_BLOCK OB 101
    // *** Warning in Line    6323:  If using an S5-115U, change to OB100.
VAR_TEMP
  OB101_EV_CLASS : BYTE ;   //16#13, Event class 1, Entering event state, Event logged in diagnostic buffer
  OB101_STRTUP : BYTE ; //16#81/82/83/84 Method of startup
  OB101_PRIORITY : BYTE ;   //27 (Priority of 1 is lowest)
  OB101_OB_NUMBR : BYTE ;   //101 (Organization block 101, OB101)
  OB101_RESERVED_1 : BYTE ; //Reserved for system
  OB101_RESERVED_2 : BYTE ; //Reserved for system
  OB101_STOP : WORD ;   //Event that caused CPU to stop (16#4xxx)
  OB101_STRT_INFO : DWORD ; //Information on how system started
  OB101_DATE_TIME : DATE_AND_TIME ; //Date and time OB101 started
  END_VAR
  BEGIN
  NETWORK
       CALL FC 9;
       //;
       CALL FC 33;
  NETWORK
       O   M 0.0;
       ON  M 0.0;
       S   M 5.0;
       S   M 5.1;
       S   M 5.2;
  
  
END_ORGANIZATION_BLOCK
//  
// ORGANIZATION_BLOCK OB 22
//  // *** Error in Line    6350  (OB  22):   The program in the OB must be formulated differently (for example, using SFCs). ***
//VAR_TEMP
//  loc0: ARRAY [0..19] of BYTE;
//  END_VAR
//  BEGIN
//  NETWORK
//       CALL FC 9;
//       //;
//       CALL FC 33;
//  NETWORK
//       O   M 0.0;
//       ON  M 0.0;
//       S   M 5.0;
//       S   M 5.1;
//       S   M 5.2;
//  
//  
//END_ORGANIZATION_BLOCK
  
ORGANIZATION_BLOCK OB 81
    // *** Warning in Line    6371:  OB was interpreted as OB34 from S5-115U.
  AUTHOR: _24084
VAR_TEMP
  OB81_EV_CLASS : BYTE ;  //16#39, Event class 3, Entering event state, Internal fault event
  OB81_FLT_ID : BYTE ;  //16#XX, Fault identifcation code
  OB81_PRIORITY : BYTE ;    //26/28 (Priority of 1 is lowest)
  OB81_OB_NUMBR : BYTE ;    //81 (Organization block 81, OB81)
  OB81_RESERVED_1 : BYTE ;  //Reserved for system
  OB81_RESERVED_2 : BYTE ;  //Reserved for system
  OB81_MDL_ADDR : INT ; //Reserved for system
  OB81_RESERVED_3 : BYTE ;  //Reserved for system
  OB81_RESERVED_4 : BYTE ;  //Reserved for system
  OB81_RESERVED_5 : BYTE ;  //Reserved for system
  OB81_RESERVED_6 : BYTE ;  //Reserved for system
  OB81_DATE_TIME : DATE_AND_TIME ;  //Date and time OB81 started   
  END_VAR
  BEGIN
  NETWORK
  
  
END_ORGANIZATION_BLOCK
  
  
  
