Страница 2 из 2 ПерваяПервая 12
Показано с 11 по 14 из 14

Тема: ПЛК200. Запись по ModbusTCP

  1. #11

    По умолчанию Событийная запись в Modbus TCP

    ПЛК210_01. В проекте про который пишу задействовано на данный момент 505 регистров хранения.
    Из них около 40% это только запись в регистры, например датчики температуры, давления, состояния устройств и нарушения
    Остальные 60% это различные переменные вроде уставок, команд и прочего, что предполагает некую событийную запись. Хоть из вне контроллера, по интерфейсу, хоть изнутри из кода. Запись в моем случае всегда делается импульсно. Это позволяет одну переменную использовать в разных местах
    IMG_20210819_0050041.jpg IMG_20210819_1523211.jpg

    Зачем данный пост: в ПЛК110, если мы используем конфигуратор, то он так и работает по умолчанию. Нет разделения переменных на чтения и на запись. Если в переменную никто циклически не пишет, то переменную можно менять, это удобно и правильно.
    В ПЛК210 несколько все иначе и эту событийность нужно создавать руками, прописывать. Делать через библиотеку.
    Евгений, все что Вы объясняли - работает, только вот кода вышло под 1000 строк для не самого большого проекта и это только для организации обмена по интерфейсу. Пытался оптимизировать, компоновать все что нужно для одной переменной в блок, но стали вылезать жуткие непонятные сообщения и эксперимент был свернут. Код размещенный ниже работает так как задумано, однако мне не могут нравиться такие "некомпактные" решения

    Возможно кто-то делает иначе, прошу тогда поделиться

    Код:
    FUNCTION_BLOCK Interface1
    VAR_INPUT
    END_VAR
    VAR_OUTPUT
    END_VAR
    VAR
    fbModbusTcpSlave: OCL.MB_TcpSlave;// ФБ для реализиации Modbus Slave
    
    awSlaveData:ARRAY [0..508] OF WORD;  // буфер данных Modbus Slave
    awSlaveData_old:ARRAY [0..508] OF WORD;  // буфер данных Modbus Slave
    
    ENABLE1:BOOL:=TRUE;
    
    x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24,x25,x26,x27,x28,x29,x30,x31,x32,x33,x34,x35,x36,x37,x38,x39,x40,x41,x42,x43,x44,x45,x46,x47,x48,x49,x50,x51,x52,x53,x54,x55,x56,x57,x58,x59,x60:BOOL;
    x61,x62,x63,x64,x65,x66,x67,x68,x69,x70,x71,x72,x73,x74,x75,x76,x77,x78,x79,x80,x81,x82,x83,x84,x85,x86,x87,x88,x89,x90,x91,x92,x93,x94,x95,x96,x97,x98,x99,x100:BOOL;
    x101,x102,x103,x104,x105,x106,x107,x108,x109,x110,x111,x112,x113,x114,x115,x116,x117,x118,x119,x120,x121,x122,x123,x124,x125,x126,x127,x128,x129,x130:BOOL;
    x131,x132,x133,x134,x135,x136,x137,x138,x139,x140,x141,x142,x143,x144,x145,x146,x147,x148,x149,x150,x151,x152,x153,x154,x155,x156,x157,x158,x159,x160:BOOL;
    x161,x162,x163,x164,x165,x166,x167,x168,x169,x170,x171,x172,x173,x174,x175,x176,x177,x178,x179,x180,x181,x182,x183,x184,x185,x186,x187,x188,x189,x190:BOOL;
    x191,x192,x193,x194,x195,x196,x197,x198,x199,x200,x201,x202,x203,x204,x205,x206,x207,x208,x209,x210,x211,x212,x213,x214,x215,x216,x217,x218,x219,x220,x221,x222,x223,x224,x225,x226,x227,x228,x229,x230,
    x231,x232,x233,x234,x235,x236,x237,x238,x239,x240,x241,x242,x243,x244,x245,x246,x247,x248,x249,x250,x251,x252,x253,x254,x255,x256,x257,x258,x259,x260,x261,x262,x263,x264,x265,x266,x267,x268,x269,x270:BOOL;
    
    SP_Y01_old,SP_Y02_old,SP_Y03_old,SP_Y04_old,SP_Y05_old,SP_Y06_old,SP_Y07_old,SP_Y08_old,SP_Y09_old,MANUAL_Y01_old,MANUAL_Y02_old,MANUAL_Y03_old,MANUAL_Y04_old,MANUAL_Y05_old,MANUAL_Y06_old,MANUAL_Y07_old,
    MANUAL_Y08_old,MANUAL_Y09_old,P_Y01_old,P_Y02_old,P_Y03_old,P_Y04_old,P_Y05_old,P_Y06_old,P_Y07_old,P_Y08_old,P_Y09_old,I_Y01_old,I_Y02_old,I_Y03_old,I_Y04_old,I_Y05_old,
    I_Y06_old,I_Y07_old,I_Y08_old,I_Y09_old,D_Y01_old,D_Y02_old,D_Y03_old,D_Y04_old,D_Y05_old,D_Y06_old,D_Y07_old,D_Y08_old,D_Y09_old,P05_Pset_old,P10_Pset_old,P15_Pset_old,P21_Pset_old,P27_Pset_old:REAL;
    
    P17_CMD_old,P18_CMD_old,P19_CMD_old,P20_CMD_old,P21_CMD_old,P22_CMD_old,P23_CMD_old,P24_CMD_old,P25_CMD_old,P26_CMD_old,P27_CMD_old,P28_CMD_old,P29_CMD_old,P30_CMD_old,P01_CMD_old,P02_CMD_old,
    P03_CMD_old,P04_CMD_old,P05_CMD_old,HL02_CMD_old,P06_CMD_old,P07_CMD_old,P08_CMD_old,P09_CMD_old,P10_CMD_old,P11_CMD_old,P12_CMD_old,P13_CMD_old,P14_CMD_old,P15_CMD_old,P16_CMD_old,REG_Y01_CMD_old,
    REG_Y02_CMD_old,REG_Y03_CMD_old,REG_Y04_CMD_old,REG_Y05_CMD_old,REG_Y06_CMD_old,REG_Y07_CMD_old,REG_Y08_CMD_old,REG_Y09_CMD_old:WORD;
    
    SP_Y01_1_old,SP_Y01_2_old,SP_Y01_3_old,SP_Y01_4_old,SP_Y02_1_old,SP_Y02_2_old,SP_Y02_3_old,SP_Y02_4_old,SP_Y03_1_old,SP_Y03_2_old,SP_Y03_3_old,SP_Y03_4_old,SP_Y04_1_old,SP_Y04_2_old,SP_Y04_3_old,SP_Y04_4_old,
    SP_Y05_1_old,SP_Y05_2_old,SP_Y05_3_old,SP_Y05_4_old,SP_Y06_1_old,SP_Y06_2_old,SP_Y06_3_old,SP_Y06_4_old,SP_Y07_1_old,SP_Y07_2_old,SP_Y07_3_old,SP_Y07_4_old,SP_Y08_1_old,SP_Y08_2_old,SP_Y08_3_old,SP_Y08_4_old,
    SP_Y09_1_old,SP_Y09_2_old,SP_Y09_3_old,SP_Y09_4_old:REAL;
    
    //fbRealToWord2 ФБ преобразования REAL в две переменные типа WORD
    fbRealToWord1,fbRealToWord2,fbRealToWord3,fbRealToWord4,fbRealToWord5,fbRealToWord6,fbRealToWord7,fbRealToWord8,fbRealToWord9,fbRealToWord10,fbRealToWord11,fbRealToWord12,fbRealToWord13,fbRealToWord14,fbRealToWord15,fbRealToWord16,fbRealToWord17,fbRealToWord18,
    fbRealToWord19,fbRealToWord20,fbRealToWord21,fbRealToWord22,fbRealToWord23,fbRealToWord24,fbRealToWord25,fbRealToWord26,fbRealToWord27,fbRealToWord28,fbRealToWord29,fbRealToWord30,fbRealToWord31,fbRealToWord32,fbRealToWord33,fbRealToWord34,
    fbRealToWord35,fbRealToWord36,fbRealToWord37,fbRealToWord38,fbRealToWord39,fbRealToWord40,fbRealToWord41,fbRealToWord42,fbRealToWord43,fbRealToWord44,fbRealToWord45,fbRealToWord46,fbRealToWord47,fbRealToWord48,fbRealToWord49,fbRealToWord50,
    fbRealToWord51,fbRealToWord52,fbRealToWord53,fbRealToWord54,fbRealToWord55,fbRealToWord56,fbRealToWord57,fbRealToWord58,fbRealToWord59,fbRealToWord60,fbRealToWord61,fbRealToWord62,fbRealToWord63,fbRealToWord64,fbRealToWord65,fbRealToWord66,
    fbRealToWord67,fbRealToWord68,fbRealToWord69,fbRealToWord70,fbRealToWord71,fbRealToWord72,fbRealToWord73,fbRealToWord74,fbRealToWord75,fbRealToWord76,fbRealToWord77,fbRealToWord78,fbRealToWord79,fbRealToWord80,fbRealToWord81,fbRealToWord82,
    fbRealToWord83,fbRealToWord84,fbRealToWord85,fbRealToWord86,fbRealToWord87,fbRealToWord88,fbRealToWord89,fbRealToWord90,fbRealToWord91,fbRealToWord92,fbRealToWord93,fbRealToWord94,fbRealToWord95,fbRealToWord96,fbRealToWord97,fbRealToWord98,
    fbRealToWord99,fbRealToWord100,fbRealToWord101,fbRealToWord102,fbRealToWord103,fbRealToWord104,fbRealToWord105,fbRealToWord106,fbRealToWord107,fbRealToWord108,fbRealToWord109,fbRealToWord110,fbRealToWord111,fbRealToWord112,fbRealToWord113,fbRealToWord114,
    fbRealToWord115,fbRealToWord116,fbRealToWord117,fbRealToWord118,fbRealToWord119,fbRealToWord120,fbRealToWord121,fbRealToWord122,fbRealToWord123,fbRealToWord124,fbRealToWord125,fbRealToWord126,fbRealToWord127,fbRealToWord128,fbRealToWord129,fbRealToWord130,
    fbRealToWord131,fbRealToWord132,fbRealToWord133,fbRealToWord134,fbRealToWord135,fbRealToWord136,fbRealToWord137,fbRealToWord138,fbRealToWord139,fbRealToWord140,fbRealToWord141,fbRealToWord142,fbRealToWord143,fbRealToWord144,fbRealToWord145,fbRealToWord146,
    fbRealToWord147,fbRealToWord148,fbRealToWord149,fbRealToWord150,fbRealToWord151,fbRealToWord152,fbRealToWord153,fbRealToWord154,fbRealToWord155,fbRealToWord156,fbRealToWord157: OCL.REAL_TO_WORD2;
    fbRealToWord158,fbRealToWord159,fbRealToWord160,fbRealToWord161,fbRealToWord162,fbRealToWord163,fbRealToWord164,fbRealToWord165,fbRealToWord166,fbRealToWord167,fbRealToWord168,fbRealToWord169,fbRealToWord170,fbRealToWord171,fbRealToWord172,fbRealToWord173,fbRealToWord174,fbRealToWord175,fbRealToWord176,
    fbRealToWord177,fbRealToWord178,fbRealToWord179,fbRealToWord180,fbRealToWord181,fbRealToWord182,fbRealToWord183,fbRealToWord184,fbRealToWord185,fbRealToWord186,fbRealToWord187,fbRealToWord188,fbRealToWord189,fbRealToWord190,fbRealToWord191,fbRealToWord192,fbRealToWord193: OCL.REAL_TO_WORD2;
    
    
    END_VAR
    
    fbModbusTcpSlave
    (
    xEnable:= ENABLE1, 
    sIpAddr:= '0.0.0.0',
     uiPort      := 502,
    usiUnitId:= 1, 
    pData:= ADR(awSlaveData), 
    szSize:= SIZEOF(awSlaveData) 
    );
    
    // То, что передаем в панель
    x1:=(awSlaveData_old[197]<>awSlaveData[197]) OR (awSlaveData_old[196]<>awSlaveData[196]);
    x2:=SP_Y01_old<>SP_Y01;
    x3:=(awSlaveData_old[199]<>awSlaveData[199]) OR (awSlaveData_old[198]<>awSlaveData[198]);
    x4:=SP_Y02_old<>SP_Y02;
    x5:=(awSlaveData_old[201]<>awSlaveData[201]) OR (awSlaveData_old[200]<>awSlaveData[200]);
    x6:=SP_Y03_old<>SP_Y03;
    x7:=(awSlaveData_old[203]<>awSlaveData[203]) OR (awSlaveData_old[202]<>awSlaveData[202]);
    x8:=SP_Y04_old<>SP_Y04;
    x9:=(awSlaveData_old[205]<>awSlaveData[205]) OR (awSlaveData_old[204]<>awSlaveData[204]);
    x10:=SP_Y05_old<>SP_Y05;
    x11:=(awSlaveData_old[207]<>awSlaveData[207]) OR (awSlaveData_old[206]<>awSlaveData[206]);
    x12:=SP_Y06_old<>SP_Y06;
    x13:=(awSlaveData_old[209]<>awSlaveData[209]) OR (awSlaveData_old[208]<>awSlaveData[208]);
    x14:=SP_Y07_old<>SP_Y07;
    x15:=(awSlaveData_old[211]<>awSlaveData[211]) OR (awSlaveData_old[210]<>awSlaveData[210]);
    x16:=SP_Y08_old<>SP_Y08;
    x17:=(awSlaveData_old[213]<>awSlaveData[213]) OR (awSlaveData_old[212]<>awSlaveData[212]);
    x18:=SP_Y09_old<>SP_Y09;
    
    x19:=(awSlaveData_old[215]<>awSlaveData[215]) OR (awSlaveData_old[214]<>awSlaveData[214]);
    x20:=MANUAL_Y01_old<>MANUAL_Y01;
    x21:=(awSlaveData_old[217]<>awSlaveData[217]) OR (awSlaveData_old[216]<>awSlaveData[216]);
    x22:=MANUAL_Y02_old<>MANUAL_Y02;
    x23:=(awSlaveData_old[219]<>awSlaveData[219]) OR (awSlaveData_old[218]<>awSlaveData[218]);
    x24:=MANUAL_Y03_old<>MANUAL_Y03;
    x25:=(awSlaveData_old[221]<>awSlaveData[221]) OR (awSlaveData_old[220]<>awSlaveData[220]);
    x26:=MANUAL_Y04_old<>MANUAL_Y04;
    x27:=(awSlaveData_old[223]<>awSlaveData[223]) OR (awSlaveData_old[222]<>awSlaveData[222]);
    x28:=MANUAL_Y05_old<>MANUAL_Y05;
    x29:=(awSlaveData_old[225]<>awSlaveData[225]) OR (awSlaveData_old[224]<>awSlaveData[224]);
    x30:=MANUAL_Y06_old<>MANUAL_Y06;
    x31:=(awSlaveData_old[227]<>awSlaveData[227]) OR (awSlaveData_old[226]<>awSlaveData[226]);
    x32:=MANUAL_Y07_old<>MANUAL_Y07;
    x33:=(awSlaveData_old[229]<>awSlaveData[229]) OR (awSlaveData_old[228]<>awSlaveData[228]);
    x34:=MANUAL_Y08_old<>MANUAL_Y08;
    x35:=(awSlaveData_old[231]<>awSlaveData[231]) OR (awSlaveData_old[230]<>awSlaveData[230]);
    x36:=MANUAL_Y09_old<>MANUAL_Y09;
    
    x37:=(awSlaveData_old[251]<>awSlaveData[251]) OR (awSlaveData_old[250]<>awSlaveData[250]);
    x38:=P_Y01_old<>P_Y01;
    x39:=(awSlaveData_old[253]<>awSlaveData[253]) OR (awSlaveData_old[252]<>awSlaveData[252]);
    x40:=P_Y02_old<>P_Y02;
    x41:=(awSlaveData_old[255]<>awSlaveData[255]) OR (awSlaveData_old[254]<>awSlaveData[254]);
    x42:=P_Y03_old<>P_Y03;
    x43:=(awSlaveData_old[257]<>awSlaveData[257]) OR (awSlaveData_old[256]<>awSlaveData[256]);
    x44:=P_Y04_old<>P_Y04;
    x45:=(awSlaveData_old[259]<>awSlaveData[259]) OR (awSlaveData_old[258]<>awSlaveData[258]);
    x46:=P_Y05_old<>P_Y05;
    x47:=(awSlaveData_old[261]<>awSlaveData[261]) OR (awSlaveData_old[260]<>awSlaveData[260]);
    x48:=P_Y06_old<>P_Y06;
    x49:=(awSlaveData_old[263]<>awSlaveData[263]) OR (awSlaveData_old[262]<>awSlaveData[262]);
    x50:=P_Y07_old<>P_Y07;
    x51:=(awSlaveData_old[265]<>awSlaveData[265]) OR (awSlaveData_old[264]<>awSlaveData[264]);
    x52:=P_Y08_old<>P_Y08;
    x53:=(awSlaveData_old[267]<>awSlaveData[267]) OR (awSlaveData_old[266]<>awSlaveData[266]);
    x54:=P_Y09_old<>P_Y09;
    
    x55:=(awSlaveData_old[269]<>awSlaveData[269]) OR (awSlaveData_old[268]<>awSlaveData[268]);
    x56:=I_Y01_old<>I_Y01;
    x57:=(awSlaveData_old[271]<>awSlaveData[271]) OR (awSlaveData_old[270]<>awSlaveData[270]);
    x58:=I_Y02_old<>I_Y02;
    x59:=(awSlaveData_old[273]<>awSlaveData[273]) OR (awSlaveData_old[272]<>awSlaveData[272]);
    x60:=I_Y03_old<>I_Y03;
    x61:=(awSlaveData_old[275]<>awSlaveData[275]) OR (awSlaveData_old[274]<>awSlaveData[274]);
    x62:=I_Y04_old<>I_Y04;
    x63:=(awSlaveData_old[277]<>awSlaveData[277]) OR (awSlaveData_old[276]<>awSlaveData[276]);
    x64:=I_Y05_old<>I_Y05;
    x65:=(awSlaveData_old[279]<>awSlaveData[279]) OR (awSlaveData_old[278]<>awSlaveData[278]);
    x66:=I_Y06_old<>I_Y06;
    x67:=(awSlaveData_old[281]<>awSlaveData[281]) OR (awSlaveData_old[280]<>awSlaveData[280]);
    x68:=I_Y07_old<>I_Y07;
    x69:=(awSlaveData_old[283]<>awSlaveData[283]) OR (awSlaveData_old[282]<>awSlaveData[282]);
    x70:=I_Y08_old<>I_Y08;
    x71:=(awSlaveData_old[285]<>awSlaveData[285]) OR (awSlaveData_old[284]<>awSlaveData[284]);
    x72:=I_Y09_old<>I_Y09;
    
    x73:=(awSlaveData_old[287]<>awSlaveData[287]) OR (awSlaveData_old[286]<>awSlaveData[286]);
    x74:=D_Y01_old<>D_Y01;
    x75:=(awSlaveData_old[289]<>awSlaveData[289]) OR (awSlaveData_old[288]<>awSlaveData[288]);
    x76:=D_Y02_old<>D_Y02;
    x77:=(awSlaveData_old[291]<>awSlaveData[291]) OR (awSlaveData_old[290]<>awSlaveData[290]);
    x78:=D_Y03_old<>D_Y03;
    x79:=(awSlaveData_old[293]<>awSlaveData[293]) OR (awSlaveData_old[292]<>awSlaveData[292]);
    x80:=D_Y04_old<>D_Y04;
    x81:=(awSlaveData_old[295]<>awSlaveData[295]) OR (awSlaveData_old[294]<>awSlaveData[294]);
    x82:=D_Y05_old<>D_Y05;
    x83:=(awSlaveData_old[297]<>awSlaveData[297]) OR (awSlaveData_old[296]<>awSlaveData[296]);
    x84:=D_Y06_old<>D_Y06;
    x85:=(awSlaveData_old[299]<>awSlaveData[299]) OR (awSlaveData_old[298]<>awSlaveData[298]);
    x86:=D_Y07_old<>D_Y07;
    x87:=(awSlaveData_old[301]<>awSlaveData[301]) OR (awSlaveData_old[300]<>awSlaveData[300]);
    x88:=D_Y08_old<>D_Y08;
    x89:=(awSlaveData_old[303]<>awSlaveData[303]) OR (awSlaveData_old[302]<>awSlaveData[302]);
    x90:=D_Y09_old<>D_Y09;
    
    x91:=(awSlaveData_old[417]<>awSlaveData[417]) OR (awSlaveData_old[416]<>awSlaveData[416]);
    x92:=P05_Pset_old<>P05_Pset;
    x93:=(awSlaveData_old[419]<>awSlaveData[419]) OR (awSlaveData_old[418]<>awSlaveData[418]);
    x94:=P10_Pset_old<>P10_Pset;
    x95:=(awSlaveData_old[421]<>awSlaveData[421]) OR (awSlaveData_old[420]<>awSlaveData[420]);
    x96:=P15_Pset_old<>P15_Pset;
    x97:=(awSlaveData_old[423]<>awSlaveData[423]) OR (awSlaveData_old[422]<>awSlaveData[422]);
    x98:=P21_Pset_old<>P21_Pset;
    x99:=(awSlaveData_old[425]<>awSlaveData[425]) OR (awSlaveData_old[424]<>awSlaveData[424]);
    x100:=P27_Pset_old<>P27_Pset;
    x101    :=    awSlaveData_old[    305    ]    <>    awSlaveData[    305    ]    ;
    x103    :=    awSlaveData_old[    308    ]    <>    awSlaveData[    308    ]    ;
    x105    :=    awSlaveData_old[    311    ]    <>    awSlaveData[    311    ]    ;
    x107    :=    awSlaveData_old[    314    ]    <>    awSlaveData[    314    ]    ;
    x109    :=    awSlaveData_old[    317    ]    <>    awSlaveData[    317    ]    ;
    x111    :=    awSlaveData_old[    320    ]    <>    awSlaveData[    320    ]    ;
    x113    :=    awSlaveData_old[    323    ]    <>    awSlaveData[    323    ]    ;
    x115    :=    awSlaveData_old[    326    ]    <>    awSlaveData[    326    ]    ;
    x117    :=    awSlaveData_old[    329    ]    <>    awSlaveData[    329    ]    ;
    x119    :=    awSlaveData_old[    332    ]    <>    awSlaveData[    332    ]    ;
    x121    :=    awSlaveData_old[    335    ]    <>    awSlaveData[    335    ]    ;
    x123    :=    awSlaveData_old[    338    ]    <>    awSlaveData[    338    ]    ;
    x125    :=    awSlaveData_old[    341    ]    <>    awSlaveData[    341    ]    ;
    x127    :=    awSlaveData_old[    344    ]    <>    awSlaveData[    344    ]    ;
    x129    :=    awSlaveData_old[    347    ]    <>    awSlaveData[    347    ]    ;
    x131    :=    awSlaveData_old[    350    ]    <>    awSlaveData[    350    ]    ;
    x133    :=    awSlaveData_old[    353    ]    <>    awSlaveData[    353    ]    ;
    x135    :=    awSlaveData_old[    356    ]    <>    awSlaveData[    356    ]    ;
    x137    :=    awSlaveData_old[    359    ]    <>    awSlaveData[    359    ]    ;
    x139    :=    awSlaveData_old[    362    ]    <>    awSlaveData[    362    ]    ;
    x141    :=    awSlaveData_old[    365    ]    <>    awSlaveData[    365    ]    ;
    x143    :=    awSlaveData_old[    368    ]    <>    awSlaveData[    368    ]    ;
    x145    :=    awSlaveData_old[    371    ]    <>    awSlaveData[    371    ]    ;
    x147    :=    awSlaveData_old[    374    ]    <>    awSlaveData[    374    ]    ;
    x149    :=    awSlaveData_old[    377    ]    <>    awSlaveData[    377    ]    ;
    x151    :=    awSlaveData_old[    380    ]    <>    awSlaveData[    380    ]    ;
    x153    :=    awSlaveData_old[    383    ]    <>    awSlaveData[    383    ]    ;
    x155    :=    awSlaveData_old[    386    ]    <>    awSlaveData[    386    ]    ;
    x157    :=    awSlaveData_old[    389    ]    <>    awSlaveData[    389    ]    ;
    x159    :=    awSlaveData_old[    392    ]    <>    awSlaveData[    392    ]    ;
    x161    :=    awSlaveData_old[    395    ]    <>    awSlaveData[    395    ]    ;
    x163    :=    awSlaveData_old[    406    ]    <>    awSlaveData[    406    ]    ;
    x165    :=    awSlaveData_old[    407    ]    <>    awSlaveData[    407    ]    ;
    x167    :=    awSlaveData_old[    408    ]    <>    awSlaveData[    408    ]    ;
    x169    :=    awSlaveData_old[    409    ]    <>    awSlaveData[    409    ]    ;
    x171    :=    awSlaveData_old[    410    ]    <>    awSlaveData[    410    ]    ;
    x173    :=    awSlaveData_old[    411    ]    <>    awSlaveData[    411    ]    ;
    x175    :=    awSlaveData_old[    412    ]    <>    awSlaveData[    412    ]    ;
    x177    :=    awSlaveData_old[    413    ]    <>    awSlaveData[    413    ]    ;
    x179    :=    awSlaveData_old[    414    ]    <>    awSlaveData[    414    ]    ;
    
    x102    :=    P17_CMD_old<>P17_CMD;
    x104    :=    P18_CMD_old<>P18_CMD;
    x106    :=    P19_CMD_old<>P19_CMD;
    x108    :=    P20_CMD_old<>P20_CMD;
    x110    :=    P21_CMD_old<>P21_CMD;
    x112    :=    P22_CMD_old<>P22_CMD;
    x114    :=    P23_CMD_old<>P23_CMD;
    x116    :=    P24_CMD_old<>P24_CMD;
    x118    :=    P25_CMD_old<>P25_CMD;
    x120    :=    P26_CMD_old<>P26_CMD;
    x122    :=    P27_CMD_old<>P27_CMD;
    x124    :=    P28_CMD_old<>P28_CMD;
    x126    :=    P29_CMD_old<>P29_CMD;
    x128    :=    P30_CMD_old<>P30_CMD;
    x130    :=    P01_CMD_old<>P01_CMD;
    x132    :=    P02_CMD_old<>P02_CMD;
    x134    :=    P03_CMD_old<>P03_CMD;
    x136    :=    P04_CMD_old<>P04_CMD;
    x138    :=    P05_CMD_old<>P05_CMD;
    x140    :=    HL02_CMD_old<>HL02_CMD;
    x142    :=    P06_CMD_old<>P06_CMD;
    x144    :=    P07_CMD_old<>P07_CMD;
    x146    :=    P08_CMD_old<>P08_CMD;
    x148    :=    P09_CMD_old<>P09_CMD;
    x150    :=    P10_CMD_old<>P10_CMD;
    x152    :=    P11_CMD_old<>P11_CMD;
    x154    :=    P12_CMD_old<>P12_CMD;
    x156    :=    P13_CMD_old<>P13_CMD;
    x158    :=    P14_CMD_old<>P14_CMD;
    x160    :=    P15_CMD_old<>P15_CMD;
    x162    :=    P16_CMD_old<>P16_CMD;
    x164    :=    REG_Y01_CMD_old<>REG_Y01_CMD;
    x166    :=    REG_Y02_CMD_old<>REG_Y02_CMD;
    x168    :=    REG_Y03_CMD_old<>REG_Y03_CMD;
    x170    :=    REG_Y04_CMD_old<>REG_Y04_CMD;
    x172    :=    REG_Y05_CMD_old<>REG_Y05_CMD;
    x174    :=    REG_Y06_CMD_old<>REG_Y06_CMD;
    x176    :=    REG_Y07_CMD_old<>REG_Y07_CMD;
    x178    :=    REG_Y08_CMD_old<>REG_Y08_CMD;
    x180    :=    REG_Y09_CMD_old<>REG_Y09_CMD;
    
    x181    :=    (    awSlaveData_old[    435    ]    <>    awSlaveData[    435    ]    )    OR    (    awSlaveData_old[    434    ]    <>    awSlaveData[    434    ]    )    ;
    x183    :=    (    awSlaveData_old[    437    ]    <>    awSlaveData[    437    ]    )    OR    (    awSlaveData_old[    436    ]    <>    awSlaveData[    436    ]    )    ;
    x185    :=    (    awSlaveData_old[    439    ]    <>    awSlaveData[    439    ]    )    OR    (    awSlaveData_old[    438    ]    <>    awSlaveData[    438    ]    )    ;
    x187    :=    (    awSlaveData_old[    441    ]    <>    awSlaveData[    441    ]    )    OR    (    awSlaveData_old[    440    ]    <>    awSlaveData[    440    ]    )    ;
    x189    :=    (    awSlaveData_old[    443    ]    <>    awSlaveData[    443    ]    )    OR    (    awSlaveData_old[    442    ]    <>    awSlaveData[    442    ]    )    ;
    x191    :=    (    awSlaveData_old[    445    ]    <>    awSlaveData[    445    ]    )    OR    (    awSlaveData_old[    444    ]    <>    awSlaveData[    444    ]    )    ;
    x193    :=    (    awSlaveData_old[    447    ]    <>    awSlaveData[    447    ]    )    OR    (    awSlaveData_old[    446    ]    <>    awSlaveData[    446    ]    )    ;
    x195    :=    (    awSlaveData_old[    449    ]    <>    awSlaveData[    449    ]    )    OR    (    awSlaveData_old[    448    ]    <>    awSlaveData[    448    ]    )    ;
    x197    :=    (    awSlaveData_old[    451    ]    <>    awSlaveData[    451    ]    )    OR    (    awSlaveData_old[    450    ]    <>    awSlaveData[    450    ]    )    ;
    x199    :=    (    awSlaveData_old[    453    ]    <>    awSlaveData[    453    ]    )    OR    (    awSlaveData_old[    452    ]    <>    awSlaveData[    452    ]    )    ;
    x201    :=    (    awSlaveData_old[    455    ]    <>    awSlaveData[    455    ]    )    OR    (    awSlaveData_old[    454    ]    <>    awSlaveData[    454    ]    )    ;
    x203    :=    (    awSlaveData_old[    457    ]    <>    awSlaveData[    457    ]    )    OR    (    awSlaveData_old[    456    ]    <>    awSlaveData[    456    ]    )    ;
    x205    :=    (    awSlaveData_old[    459    ]    <>    awSlaveData[    459    ]    )    OR    (    awSlaveData_old[    458    ]    <>    awSlaveData[    458    ]    )    ;
    x207    :=    (    awSlaveData_old[    461    ]    <>    awSlaveData[    461    ]    )    OR    (    awSlaveData_old[    460    ]    <>    awSlaveData[    460    ]    )    ;
    x209    :=    (    awSlaveData_old[    463    ]    <>    awSlaveData[    463    ]    )    OR    (    awSlaveData_old[    462    ]    <>    awSlaveData[    462    ]    )    ;
    x211    :=    (    awSlaveData_old[    465    ]    <>    awSlaveData[    465    ]    )    OR    (    awSlaveData_old[    464    ]    <>    awSlaveData[    464    ]    )    ;
    x213    :=    (    awSlaveData_old[    467    ]    <>    awSlaveData[    467    ]    )    OR    (    awSlaveData_old[    466    ]    <>    awSlaveData[    466    ]    )    ;
    x215    :=    (    awSlaveData_old[    469    ]    <>    awSlaveData[    469    ]    )    OR    (    awSlaveData_old[    468    ]    <>    awSlaveData[    468    ]    )    ;
    x217    :=    (    awSlaveData_old[    471    ]    <>    awSlaveData[    471    ]    )    OR    (    awSlaveData_old[    470    ]    <>    awSlaveData[    470    ]    )    ;
    x219    :=    (    awSlaveData_old[    473    ]    <>    awSlaveData[    473    ]    )    OR    (    awSlaveData_old[    472    ]    <>    awSlaveData[    472    ]    )    ;
    x221    :=    (    awSlaveData_old[    475    ]    <>    awSlaveData[    475    ]    )    OR    (    awSlaveData_old[    474    ]    <>    awSlaveData[    474    ]    )    ;
    x223    :=    (    awSlaveData_old[    477    ]    <>    awSlaveData[    477    ]    )    OR    (    awSlaveData_old[    476    ]    <>    awSlaveData[    476    ]    )    ;
    x225    :=    (    awSlaveData_old[    479    ]    <>    awSlaveData[    479    ]    )    OR    (    awSlaveData_old[    478    ]    <>    awSlaveData[    478    ]    )    ;
    x227    :=    (    awSlaveData_old[    481    ]    <>    awSlaveData[    481    ]    )    OR    (    awSlaveData_old[    480    ]    <>    awSlaveData[    480    ]    )    ;
    x229    :=    (    awSlaveData_old[    483    ]    <>    awSlaveData[    483    ]    )    OR    (    awSlaveData_old[    482    ]    <>    awSlaveData[    482    ]    )    ;
    x231    :=    (    awSlaveData_old[    485    ]    <>    awSlaveData[    485    ]    )    OR    (    awSlaveData_old[    484    ]    <>    awSlaveData[    484    ]    )    ;
    x233    :=    (    awSlaveData_old[    487    ]    <>    awSlaveData[    487    ]    )    OR    (    awSlaveData_old[    486    ]    <>    awSlaveData[    486    ]    )    ;
    x235    :=    (    awSlaveData_old[    489    ]    <>    awSlaveData[    489    ]    )    OR    (    awSlaveData_old[    488    ]    <>    awSlaveData[    488    ]    )    ;
    x237    :=    (    awSlaveData_old[    491    ]    <>    awSlaveData[    491    ]    )    OR    (    awSlaveData_old[    490    ]    <>    awSlaveData[    490    ]    )    ;
    x239    :=    (    awSlaveData_old[    493    ]    <>    awSlaveData[    493    ]    )    OR    (    awSlaveData_old[    492    ]    <>    awSlaveData[    492    ]    )    ;
    x241    :=    (    awSlaveData_old[    495    ]    <>    awSlaveData[    495    ]    )    OR    (    awSlaveData_old[    494    ]    <>    awSlaveData[    494    ]    )    ;
    x243    :=    (    awSlaveData_old[    497    ]    <>    awSlaveData[    497    ]    )    OR    (    awSlaveData_old[    496    ]    <>    awSlaveData[    496    ]    )    ;
    x245    :=    (    awSlaveData_old[    499    ]    <>    awSlaveData[    499    ]    )    OR    (    awSlaveData_old[    498    ]    <>    awSlaveData[    498    ]    )    ;
    x247    :=    (    awSlaveData_old[    501    ]    <>    awSlaveData[    501    ]    )    OR    (    awSlaveData_old[    500    ]    <>    awSlaveData[    500    ]    )    ;
    x249    :=    (    awSlaveData_old[    503    ]    <>    awSlaveData[    503    ]    )    OR    (    awSlaveData_old[    502    ]    <>    awSlaveData[    502    ]    )    ;
    x251    :=    (    awSlaveData_old[    505    ]    <>    awSlaveData[    505    ]    )    OR    (    awSlaveData_old[    504    ]    <>    awSlaveData[    504    ]    )    ;
    
    x182:=SP_Y01_1_old<>SP_Y01_1;
    x184:=SP_Y01_2_old<>SP_Y01_2;
    x186:=SP_Y01_3_old<>SP_Y01_3;
    x188:=SP_Y01_4_old<>SP_Y01_4;
    x190:=SP_Y02_1_old<>SP_Y02_1;
    x192:=SP_Y02_2_old<>SP_Y02_2;
    x194:=SP_Y02_3_old<>SP_Y02_3;
    x196:=SP_Y02_4_old<>SP_Y02_4;
    x198:=SP_Y03_1_old<>SP_Y03_1;
    x200:=SP_Y03_2_old<>SP_Y03_2;
    x202:=SP_Y03_3_old<>SP_Y03_3;
    x204:=SP_Y03_4_old<>SP_Y03_4;
    x206:=SP_Y04_1_old<>SP_Y04_1;
    x208:=SP_Y04_2_old<>SP_Y04_2;
    x210:=SP_Y04_3_old<>SP_Y04_3;
    x212:=SP_Y04_4_old<>SP_Y04_4;
    x214:=SP_Y05_1_old<>SP_Y05_1;
    x216:=SP_Y05_2_old<>SP_Y05_2;
    x218:=SP_Y05_3_old<>SP_Y05_3;
    x220:=SP_Y05_4_old<>SP_Y05_4;
    x222:=SP_Y06_1_old<>SP_Y06_1;
    x224:=SP_Y06_2_old<>SP_Y06_2;
    x226:=SP_Y06_3_old<>SP_Y06_3;
    x228:=SP_Y06_4_old<>SP_Y06_4;
    x230:=SP_Y07_1_old<>SP_Y07_1;
    x232:=SP_Y07_2_old<>SP_Y07_2;
    x234:=SP_Y07_3_old<>SP_Y07_3;
    x236:=SP_Y07_4_old<>SP_Y07_4;
    x238:=SP_Y08_1_old<>SP_Y08_1;
    x240:=SP_Y08_2_old<>SP_Y08_2;
    x242:=SP_Y08_3_old<>SP_Y08_3;
    x244:=SP_Y08_4_old<>SP_Y08_4;
    x246:=SP_Y09_1_old<>SP_Y09_1;
    x248:=SP_Y09_2_old<>SP_Y09_2;
    x250:=SP_Y09_3_old<>SP_Y09_3;
    x252:=SP_Y09_4_old<>SP_Y09_4;
    
    
    
    fbRealToWord1    (rInput :=    PE05_    , wOutput1 => awSlaveData[    1    ], wOutput2 => awSlaveData[    0    ]);
    fbRealToWord2    (rInput :=    PE04_    , wOutput1 => awSlaveData[    3    ], wOutput2 => awSlaveData[    2    ]);
    fbRealToWord3    (rInput :=    PE03_    , wOutput1 => awSlaveData[    5    ], wOutput2 => awSlaveData[    4    ]);
    fbRealToWord4    (rInput :=    PE02_    , wOutput1 => awSlaveData[    7    ], wOutput2 => awSlaveData[    6    ]);
    fbRealToWord5    (rInput :=    PE01_    , wOutput1 => awSlaveData[    9    ], wOutput2 => awSlaveData[    8    ]);
    fbRealToWord6    (rInput :=    TE05_    , wOutput1 => awSlaveData[    11    ], wOutput2 => awSlaveData[    10    ]);
    fbRealToWord7    (rInput :=    TE04_    , wOutput1 => awSlaveData[    13    ], wOutput2 => awSlaveData[    12    ]);
    fbRealToWord8    (rInput :=    TE03_    , wOutput1 => awSlaveData[    15    ], wOutput2 => awSlaveData[    14    ]);
    fbRealToWord9    (rInput :=    PE10_    , wOutput1 => awSlaveData[    17    ], wOutput2 => awSlaveData[    16    ]);
    fbRealToWord10    (rInput :=    PE09_    , wOutput1 => awSlaveData[    19    ], wOutput2 => awSlaveData[    18    ]);
    fbRealToWord11    (rInput :=    PE08_    , wOutput1 => awSlaveData[    21    ], wOutput2 => awSlaveData[    20    ]);
    fbRealToWord12    (rInput :=    PE07_    , wOutput1 => awSlaveData[    23    ], wOutput2 => awSlaveData[    22    ]);
    fbRealToWord13    (rInput :=    PE06_    , wOutput1 => awSlaveData[    25    ], wOutput2 => awSlaveData[    24    ]);
    fbRealToWord14    (rInput :=    TE10_    , wOutput1 => awSlaveData[    27    ], wOutput2 => awSlaveData[    26    ]);
    fbRealToWord15    (rInput :=    TE09_    , wOutput1 => awSlaveData[    29    ], wOutput2 => awSlaveData[    28    ]);
    fbRealToWord16    (rInput :=    TE08_    , wOutput1 => awSlaveData[    31    ], wOutput2 => awSlaveData[    30    ]);
    fbRealToWord17    (rInput :=    PE14_    , wOutput1 => awSlaveData[    33    ], wOutput2 => awSlaveData[    32    ]);
    fbRealToWord18    (rInput :=    PE13_    , wOutput1 => awSlaveData[    35    ], wOutput2 => awSlaveData[    34    ]);
    fbRealToWord19    (rInput :=    PE12_    , wOutput1 => awSlaveData[    37    ], wOutput2 => awSlaveData[    36    ]);
    fbRealToWord20    (rInput :=    PE11_    , wOutput1 => awSlaveData[    39    ], wOutput2 => awSlaveData[    38    ]);
    fbRealToWord21    (rInput :=    TE15_    , wOutput1 => awSlaveData[    41    ], wOutput2 => awSlaveData[    40    ]);
    fbRealToWord22    (rInput :=    TE14_    , wOutput1 => awSlaveData[    43    ], wOutput2 => awSlaveData[    42    ]);
    fbRealToWord23    (rInput :=    TE13_    , wOutput1 => awSlaveData[    45    ], wOutput2 => awSlaveData[    44    ]);
    fbRealToWord24    (rInput :=    PE19_    , wOutput1 => awSlaveData[    47    ], wOutput2 => awSlaveData[    46    ]);
    fbRealToWord25    (rInput :=    PE18_    , wOutput1 => awSlaveData[    49    ], wOutput2 => awSlaveData[    48    ]);
    fbRealToWord26    (rInput :=    PE17_    , wOutput1 => awSlaveData[    51    ], wOutput2 => awSlaveData[    50    ]);
    fbRealToWord27    (rInput :=    PE16_    , wOutput1 => awSlaveData[    53    ], wOutput2 => awSlaveData[    52    ]);
    fbRealToWord28    (rInput :=    PE15_    , wOutput1 => awSlaveData[    55    ], wOutput2 => awSlaveData[    54    ]);
    fbRealToWord29    (rInput :=    TE20_    , wOutput1 => awSlaveData[    57    ], wOutput2 => awSlaveData[    56    ]);
    fbRealToWord30    (rInput :=    TE19_    , wOutput1 => awSlaveData[    59    ], wOutput2 => awSlaveData[    58    ]);
    fbRealToWord31    (rInput :=    TE18_    , wOutput1 => awSlaveData[    61    ], wOutput2 => awSlaveData[    60    ]);
    fbRealToWord32    (rInput :=    PE24_    , wOutput1 => awSlaveData[    63    ], wOutput2 => awSlaveData[    62    ]);
    fbRealToWord33    (rInput :=    PE23_    , wOutput1 => awSlaveData[    65    ], wOutput2 => awSlaveData[    64    ]);
    fbRealToWord34    (rInput :=    PE22_    , wOutput1 => awSlaveData[    67    ], wOutput2 => awSlaveData[    66    ]);
    fbRealToWord35    (rInput :=    PE21_    , wOutput1 => awSlaveData[    69    ], wOutput2 => awSlaveData[    68    ]);
    fbRealToWord36    (rInput :=    PE20_    , wOutput1 => awSlaveData[    71    ], wOutput2 => awSlaveData[    70    ]);
    fbRealToWord37    (rInput :=    TE25_    , wOutput1 => awSlaveData[    73    ], wOutput2 => awSlaveData[    72    ]);
    fbRealToWord38    (rInput :=    TE24_    , wOutput1 => awSlaveData[    75    ], wOutput2 => awSlaveData[    74    ]);
    fbRealToWord39    (rInput :=    TE23_    , wOutput1 => awSlaveData[    77    ], wOutput2 => awSlaveData[    76    ]);
    fbRealToWord40    (rInput :=    PE29_    , wOutput1 => awSlaveData[    79    ], wOutput2 => awSlaveData[    78    ]);
    fbRealToWord41    (rInput :=    PE28_    , wOutput1 => awSlaveData[    81    ], wOutput2 => awSlaveData[    80    ]);
    fbRealToWord42    (rInput :=    PE27_    , wOutput1 => awSlaveData[    83    ], wOutput2 => awSlaveData[    82    ]);
    fbRealToWord43    (rInput :=    PE26_    , wOutput1 => awSlaveData[    85    ], wOutput2 => awSlaveData[    84    ]);
    fbRealToWord44    (rInput :=    PE25_    , wOutput1 => awSlaveData[    87    ], wOutput2 => awSlaveData[    86    ]);
    fbRealToWord45    (rInput :=    TE30_    , wOutput1 => awSlaveData[    89    ], wOutput2 => awSlaveData[    88    ]);
    fbRealToWord46    (rInput :=    TE29_    , wOutput1 => awSlaveData[    91    ], wOutput2 => awSlaveData[    90    ]);
    fbRealToWord47    (rInput :=    TE28_    , wOutput1 => awSlaveData[    93    ], wOutput2 => awSlaveData[    92    ]);
    fbRealToWord48    (rInput :=    PE34_    , wOutput1 => awSlaveData[    95    ], wOutput2 => awSlaveData[    94    ]);
    fbRealToWord49    (rInput :=    PE33_    , wOutput1 => awSlaveData[    97    ], wOutput2 => awSlaveData[    96    ]);
    fbRealToWord50    (rInput :=    PE32_    , wOutput1 => awSlaveData[    99    ], wOutput2 => awSlaveData[    98    ]);
    fbRealToWord51    (rInput :=    PE31_    , wOutput1 => awSlaveData[    101    ], wOutput2 => awSlaveData[    100    ]);
    fbRealToWord52    (rInput :=    PE30_    , wOutput1 => awSlaveData[    103    ], wOutput2 => awSlaveData[    102    ]);
    fbRealToWord53    (rInput :=    TE35_    , wOutput1 => awSlaveData[    105    ], wOutput2 => awSlaveData[    104    ]);
    fbRealToWord54    (rInput :=    TE34_    , wOutput1 => awSlaveData[    107    ], wOutput2 => awSlaveData[    106    ]);
    fbRealToWord55    (rInput :=    TE33_    , wOutput1 => awSlaveData[    109    ], wOutput2 => awSlaveData[    108    ]);
    fbRealToWord56    (rInput :=    PE39_    , wOutput1 => awSlaveData[    111    ], wOutput2 => awSlaveData[    110    ]);
    fbRealToWord57    (rInput :=    PE38_    , wOutput1 => awSlaveData[    113    ], wOutput2 => awSlaveData[    112    ]);
    fbRealToWord58    (rInput :=    PE37_    , wOutput1 => awSlaveData[    115    ], wOutput2 => awSlaveData[    114    ]);
    fbRealToWord59    (rInput :=    PE36_    , wOutput1 => awSlaveData[    117    ], wOutput2 => awSlaveData[    116    ]);
    fbRealToWord60    (rInput :=    PE35_    , wOutput1 => awSlaveData[    119    ], wOutput2 => awSlaveData[    118    ]);
    fbRealToWord61    (rInput :=    TE40_    , wOutput1 => awSlaveData[    121    ], wOutput2 => awSlaveData[    120    ]);
    fbRealToWord62    (rInput :=    TE39_    , wOutput1 => awSlaveData[    123    ], wOutput2 => awSlaveData[    122    ]);
    fbRealToWord63    (rInput :=    TE38_    , wOutput1 => awSlaveData[    125    ], wOutput2 => awSlaveData[    124    ]);
    fbRealToWord64    (rInput :=    TE02_    , wOutput1 => awSlaveData[    127    ], wOutput2 => awSlaveData[    126    ]);
    fbRealToWord65    (rInput :=    TE01_    , wOutput1 => awSlaveData[    129    ], wOutput2 => awSlaveData[    128    ]);
    fbRealToWord66    (rInput :=    TE07_    , wOutput1 => awSlaveData[    131    ], wOutput2 => awSlaveData[    130    ]);
    fbRealToWord67    (rInput :=    TE06_    , wOutput1 => awSlaveData[    133    ], wOutput2 => awSlaveData[    132    ]);
    fbRealToWord68    (rInput :=    TE12_    , wOutput1 => awSlaveData[    135    ], wOutput2 => awSlaveData[    134    ]);
    fbRealToWord69    (rInput :=    TE11_    , wOutput1 => awSlaveData[    137    ], wOutput2 => awSlaveData[    136    ]);
    fbRealToWord70    (rInput :=    TE17_    , wOutput1 => awSlaveData[    139    ], wOutput2 => awSlaveData[    138    ]);
    fbRealToWord71    (rInput :=    TE16_    , wOutput1 => awSlaveData[    141    ], wOutput2 => awSlaveData[    140    ]);
    fbRealToWord72    (rInput :=    TE22_    , wOutput1 => awSlaveData[    143    ], wOutput2 => awSlaveData[    142    ]);
    fbRealToWord73    (rInput :=    TE21_    , wOutput1 => awSlaveData[    145    ], wOutput2 => awSlaveData[    144    ]);
    fbRealToWord74    (rInput :=    Y09i_    , wOutput1 => awSlaveData[    147    ], wOutput2 => awSlaveData[    146    ]);
    fbRealToWord75    (rInput :=    Y08i_    , wOutput1 => awSlaveData[    149    ], wOutput2 => awSlaveData[    148    ]);
    fbRealToWord76    (rInput :=    Y06i_    , wOutput1 => awSlaveData[    151    ], wOutput2 => awSlaveData[    150    ]);
    fbRealToWord77    (rInput :=    Y04i_    , wOutput1 => awSlaveData[    153    ], wOutput2 => awSlaveData[    152    ]);
    fbRealToWord78    (rInput :=    Y02i_    , wOutput1 => awSlaveData[    155    ], wOutput2 => awSlaveData[    154    ]);
    //fbRealToWord79    (rInput :=    tmp1_    , wOutput1 => awSlaveData[    157    ], wOutput2 => awSlaveData[    156    ]);
    fbRealToWord80    (rInput :=    Y07i_    , wOutput1 => awSlaveData[    159    ], wOutput2 => awSlaveData[    158    ]);
    fbRealToWord81    (rInput :=    Y05i_    , wOutput1 => awSlaveData[    161    ], wOutput2 => awSlaveData[    160    ]);
    fbRealToWord82    (rInput :=    Y03i_    , wOutput1 => awSlaveData[    163    ], wOutput2 => awSlaveData[    162    ]);
    fbRealToWord83    (rInput :=    Y01i_    , wOutput1 => awSlaveData[    165    ], wOutput2 => awSlaveData[    164    ]);
    fbRealToWord84    (rInput :=    TE27_    , wOutput1 => awSlaveData[    167    ], wOutput2 => awSlaveData[    166    ]);
    fbRealToWord85    (rInput :=    TE26_    , wOutput1 => awSlaveData[    169    ], wOutput2 => awSlaveData[    168    ]);
    fbRealToWord86    (rInput :=    TE32_    , wOutput1 => awSlaveData[    171    ], wOutput2 => awSlaveData[    170    ]);
    fbRealToWord87    (rInput :=    TE31_    , wOutput1 => awSlaveData[    173    ], wOutput2 => awSlaveData[    172    ]);
    fbRealToWord88    (rInput :=    TE37_    , wOutput1 => awSlaveData[    175    ], wOutput2 => awSlaveData[    174    ]);
    fbRealToWord89    (rInput :=    TE36_    , wOutput1 => awSlaveData[    177    ], wOutput2 => awSlaveData[    176    ]);
    fbRealToWord90    (rInput :=    TE_Y01    , wOutput1 => awSlaveData[    179    ], wOutput2 => awSlaveData[    178    ]);
    fbRealToWord91    (rInput :=    TE_Y02    , wOutput1 => awSlaveData[    181    ], wOutput2 => awSlaveData[    180    ]);
    fbRealToWord92    (rInput :=    TE_Y03    , wOutput1 => awSlaveData[    183    ], wOutput2 => awSlaveData[    182    ]);
    fbRealToWord93    (rInput :=    TE_Y04    , wOutput1 => awSlaveData[    185    ], wOutput2 => awSlaveData[    184    ]);
    fbRealToWord94    (rInput :=    TE_Y05    , wOutput1 => awSlaveData[    187    ], wOutput2 => awSlaveData[    186    ]);
    fbRealToWord95    (rInput :=    TE_Y06    , wOutput1 => awSlaveData[    189    ], wOutput2 => awSlaveData[    188    ]);
    fbRealToWord96    (rInput :=    TE_Y07    , wOutput1 => awSlaveData[    191    ], wOutput2 => awSlaveData[    190    ]);
    fbRealToWord97    (rInput :=    TE_Y08    , wOutput1 => awSlaveData[    193    ], wOutput2 => awSlaveData[    192    ]);
    fbRealToWord98    (rInput :=    TE_Y09    , wOutput1 => awSlaveData[    195    ], wOutput2 => awSlaveData[    194    ]);
    IF x2 THEN fbRealToWord99    (rInput :=    SP_Y01    , wOutput1 => awSlaveData[    197    ], wOutput2 => awSlaveData[    196    ]); END_IF;
    IF x4 THEN fbRealToWord100    (rInput :=    SP_Y02    , wOutput1 => awSlaveData[    199    ], wOutput2 => awSlaveData[    198    ]); END_IF;
    IF x6 THEN fbRealToWord101    (rInput :=    SP_Y03    , wOutput1 => awSlaveData[    201    ], wOutput2 => awSlaveData[    200    ]); END_IF;
    IF x8 THEN fbRealToWord102    (rInput :=    SP_Y04 , wOutput1 => awSlaveData[    203    ], wOutput2 => awSlaveData[    202    ]); END_IF;
    IF x10 THEN fbRealToWord103    (rInput :=    SP_Y05    , wOutput1 => awSlaveData[    205    ], wOutput2 => awSlaveData[    204    ]); END_IF;
    IF x12 THEN fbRealToWord104    (rInput :=    SP_Y06    , wOutput1 => awSlaveData[    207    ], wOutput2 => awSlaveData[    206    ]); END_IF;
    IF x14 THEN fbRealToWord105    (rInput :=    SP_Y07    , wOutput1 => awSlaveData[    209    ], wOutput2 => awSlaveData[    208    ]); END_IF;
    IF x16 THEN fbRealToWord106    (rInput :=    SP_Y08    , wOutput1 => awSlaveData[    211    ], wOutput2 => awSlaveData[    210    ]); END_IF;
    IF x18 THEN fbRealToWord107    (rInput :=    SP_Y09 , wOutput1 => awSlaveData[    213    ], wOutput2 => awSlaveData[    212    ]); END_IF;
    IF x20 THEN fbRealToWord108    (rInput :=    MANUAL_Y01    , wOutput1 => awSlaveData[    215    ], wOutput2 => awSlaveData[    214    ]); END_IF;
    IF x22 THEN fbRealToWord109    (rInput :=    MANUAL_Y02    , wOutput1 => awSlaveData[    217    ], wOutput2 => awSlaveData[    216    ]); END_IF;
    IF x24 THEN fbRealToWord110    (rInput :=    MANUAL_Y03    , wOutput1 => awSlaveData[    219    ], wOutput2 => awSlaveData[    218    ]); END_IF;
    IF x26 THEN fbRealToWord111    (rInput :=    MANUAL_Y04    , wOutput1 => awSlaveData[    221    ], wOutput2 => awSlaveData[    220    ]); END_IF;
    IF x28 THEN fbRealToWord112    (rInput :=    MANUAL_Y05    , wOutput1 => awSlaveData[    223    ], wOutput2 => awSlaveData[    222    ]); END_IF;
    IF x30 THEN fbRealToWord113    (rInput :=    MANUAL_Y06    , wOutput1 => awSlaveData[    225    ], wOutput2 => awSlaveData[    224    ]); END_IF;
    IF x32 THEN fbRealToWord114    (rInput :=    MANUAL_Y07    , wOutput1 => awSlaveData[    227    ], wOutput2 => awSlaveData[    226    ]); END_IF;
    IF x34 THEN fbRealToWord115    (rInput :=    MANUAL_Y08    , wOutput1 => awSlaveData[    229    ], wOutput2 => awSlaveData[    228    ]); END_IF;
    IF x36 THEN fbRealToWord116    (rInput :=    MANUAL_Y09    , wOutput1 => awSlaveData[    231    ], wOutput2 => awSlaveData[    230    ]); END_IF;
    fbRealToWord117    (rInput :=    Position_Y01    , wOutput1 => awSlaveData[    233    ], wOutput2 => awSlaveData[    232    ]);
    fbRealToWord118    (rInput :=    Position_Y02    , wOutput1 => awSlaveData[    235    ], wOutput2 => awSlaveData[    234    ]);
    fbRealToWord119    (rInput :=    Position_Y03    , wOutput1 => awSlaveData[    237    ], wOutput2 => awSlaveData[    236    ]);
    fbRealToWord120    (rInput :=    Position_Y04    , wOutput1 => awSlaveData[    239    ], wOutput2 => awSlaveData[    238    ]);
    fbRealToWord121    (rInput :=    Position_Y05    , wOutput1 => awSlaveData[    241    ], wOutput2 => awSlaveData[    240    ]);
    fbRealToWord122    (rInput :=    Position_Y06    , wOutput1 => awSlaveData[    243    ], wOutput2 => awSlaveData[    242    ]);
    fbRealToWord123    (rInput :=    Position_Y07    , wOutput1 => awSlaveData[    245    ], wOutput2 => awSlaveData[    244    ]);
    fbRealToWord124    (rInput :=    Position_Y08    , wOutput1 => awSlaveData[    247    ], wOutput2 => awSlaveData[    246    ]);
    fbRealToWord125    (rInput :=    Position_Y09    , wOutput1 => awSlaveData[    249    ], wOutput2 => awSlaveData[    248    ]);
    IF x38 THEN fbRealToWord126    (rInput :=    P_Y01    , wOutput1 => awSlaveData[    251    ], wOutput2 => awSlaveData[    250    ]); END_IF;
    IF x40 THEN fbRealToWord127    (rInput :=    P_Y02    , wOutput1 => awSlaveData[    253    ], wOutput2 => awSlaveData[    252    ]); END_IF;
    IF x42 THEN fbRealToWord128    (rInput :=    P_Y03    , wOutput1 => awSlaveData[    255    ], wOutput2 => awSlaveData[    254    ]); END_IF;
    IF x44 THEN fbRealToWord129    (rInput :=    P_Y04    , wOutput1 => awSlaveData[    257    ], wOutput2 => awSlaveData[    256    ]); END_IF;
    IF x46 THEN fbRealToWord130    (rInput :=    P_Y05    , wOutput1 => awSlaveData[    259    ], wOutput2 => awSlaveData[    258    ]); END_IF;
    IF x48 THEN fbRealToWord131    (rInput :=    P_Y06    , wOutput1 => awSlaveData[    261    ], wOutput2 => awSlaveData[    260    ]); END_IF;
    IF x50 THEN fbRealToWord132    (rInput :=    P_Y07    , wOutput1 => awSlaveData[    263    ], wOutput2 => awSlaveData[    262    ]); END_IF;
    IF x52 THEN fbRealToWord133    (rInput :=    P_Y08    , wOutput1 => awSlaveData[    265    ], wOutput2 => awSlaveData[    264    ]); END_IF;
    IF x54 THEN fbRealToWord134    (rInput :=    P_Y09    , wOutput1 => awSlaveData[    267    ], wOutput2 => awSlaveData[    266    ]); END_IF;
    IF x56 THEN fbRealToWord135    (rInput :=    I_Y01    , wOutput1 => awSlaveData[    269    ], wOutput2 => awSlaveData[    268    ]); END_IF;
    IF x58 THEN fbRealToWord136    (rInput :=    I_Y02    , wOutput1 => awSlaveData[    271    ], wOutput2 => awSlaveData[    270    ]); END_IF;
    IF x60 THEN fbRealToWord137    (rInput :=    I_Y03    , wOutput1 => awSlaveData[    273    ], wOutput2 => awSlaveData[    272    ]); END_IF;
    IF x62 THEN fbRealToWord138    (rInput :=    I_Y04    , wOutput1 => awSlaveData[    275    ], wOutput2 => awSlaveData[    274    ]); END_IF;
    IF x64 THEN fbRealToWord139    (rInput :=    I_Y05    , wOutput1 => awSlaveData[    277    ], wOutput2 => awSlaveData[    276    ]); END_IF;
    IF x66 THEN fbRealToWord140    (rInput :=    I_Y06    , wOutput1 => awSlaveData[    279    ], wOutput2 => awSlaveData[    278    ]); END_IF;
    IF x68 THEN fbRealToWord141    (rInput :=    I_Y07    , wOutput1 => awSlaveData[    281    ], wOutput2 => awSlaveData[    280    ]); END_IF;
    IF x70 THEN fbRealToWord142    (rInput :=    I_Y08    , wOutput1 => awSlaveData[    283    ], wOutput2 => awSlaveData[    282    ]); END_IF;
    IF x72 THEN fbRealToWord143    (rInput :=    I_Y09    , wOutput1 => awSlaveData[    285    ], wOutput2 => awSlaveData[    284    ]); END_IF;
    IF x74 THEN fbRealToWord144    (rInput :=    D_Y01    , wOutput1 => awSlaveData[    287    ], wOutput2 => awSlaveData[    286    ]); END_IF;
    IF x76 THEN fbRealToWord145    (rInput :=    D_Y02    , wOutput1 => awSlaveData[    289    ], wOutput2 => awSlaveData[    288    ]); END_IF;
    IF x78 THEN fbRealToWord146    (rInput :=    D_Y03    , wOutput1 => awSlaveData[    291    ], wOutput2 => awSlaveData[    290    ]); END_IF;
    IF x80 THEN fbRealToWord147    (rInput :=    D_Y04    , wOutput1 => awSlaveData[    293    ], wOutput2 => awSlaveData[    292    ]); END_IF;
    IF x82 THEN fbRealToWord148    (rInput :=    D_Y05    , wOutput1 => awSlaveData[    295    ], wOutput2 => awSlaveData[    294    ]); END_IF;
    IF x84 THEN fbRealToWord149    (rInput :=    D_Y06    , wOutput1 => awSlaveData[    297    ], wOutput2 => awSlaveData[    296    ]); END_IF;
    IF x86 THEN fbRealToWord150    (rInput :=    D_Y07    , wOutput1 => awSlaveData[    299    ], wOutput2 => awSlaveData[    298    ]); END_IF;
    IF x88 THEN fbRealToWord151    (rInput :=    D_Y08    , wOutput1 => awSlaveData[    301    ], wOutput2 => awSlaveData[    300    ]); END_IF;
    IF x90 THEN fbRealToWord152    (rInput :=    D_Y09    , wOutput1 => awSlaveData[    303    ], wOutput2 => awSlaveData[    302    ]); END_IF;
    
    IF x92 THEN  fbRealToWord153    (rInput :=    P05_Pset    , wOutput1 => awSlaveData[    417    ], wOutput2 => awSlaveData[    416    ]); END_IF;
    IF x94 THEN  fbRealToWord154    (rInput :=    P10_Pset    , wOutput1 => awSlaveData[    419    ], wOutput2 => awSlaveData[    418    ]); END_IF;
    IF x96 THEN  fbRealToWord155    (rInput :=    P15_Pset    , wOutput1 => awSlaveData[    421    ], wOutput2 => awSlaveData[    420    ]); END_IF;
    IF x98 THEN  fbRealToWord156    (rInput :=    P21_Pset    , wOutput1 => awSlaveData[    423    ], wOutput2 => awSlaveData[    422    ]); END_IF;
    IF x100 THEN  fbRealToWord157    (rInput :=    P27_Pset    , wOutput1 => awSlaveData[    425    ], wOutput2 => awSlaveData[    424    ]); END_IF;
    
    IF    x102    THEN    awSlaveData[    305    ]    :=    P17_CMD    ;    END_IF;
    IF    x104    THEN    awSlaveData[    308    ]    :=    P18_CMD    ;    END_IF;
    IF    x106    THEN    awSlaveData[    311    ]    :=    P19_CMD    ;    END_IF;
    IF    x108    THEN    awSlaveData[    314    ]    :=    P20_CMD    ;    END_IF;
    IF    x110    THEN    awSlaveData[    317    ]    :=    P21_CMD    ;    END_IF;
    IF    x112    THEN    awSlaveData[    320    ]    :=    P22_CMD    ;    END_IF;
    IF    x114    THEN    awSlaveData[    323    ]    :=    P23_CMD    ;    END_IF;
    IF    x116    THEN    awSlaveData[    326    ]    :=    P24_CMD    ;    END_IF;
    IF    x118    THEN    awSlaveData[    329    ]    :=    P25_CMD    ;    END_IF;
    IF    x120    THEN    awSlaveData[    332    ]    :=    P26_CMD    ;    END_IF;
    IF    x122    THEN    awSlaveData[    335    ]    :=    P27_CMD    ;    END_IF;
    IF    x124    THEN    awSlaveData[    338    ]    :=    P28_CMD    ;    END_IF;
    IF    x126    THEN    awSlaveData[    341    ]    :=    P29_CMD    ;    END_IF;
    IF    x128    THEN    awSlaveData[    344    ]    :=    P30_CMD    ;    END_IF;
    IF    x130    THEN    awSlaveData[    347    ]    :=    P01_CMD    ;    END_IF;
    IF    x132    THEN    awSlaveData[    350    ]    :=    P02_CMD    ;    END_IF;
    IF    x134    THEN    awSlaveData[    353    ]    :=    P03_CMD    ;    END_IF;
    IF    x136    THEN    awSlaveData[    356    ]    :=    P04_CMD    ;    END_IF;
    IF    x138    THEN    awSlaveData[    359    ]    :=    P05_CMD    ;    END_IF;
    IF    x140    THEN    awSlaveData[    362    ]    :=    HL02_CMD;    END_IF;
    IF    x142    THEN    awSlaveData[    365    ]    :=    P06_CMD    ;    END_IF;
    IF    x144    THEN    awSlaveData[    368    ]    :=    P07_CMD    ;    END_IF;
    IF    x146    THEN    awSlaveData[    371    ]    :=    P08_CMD    ;    END_IF;
    IF    x148    THEN    awSlaveData[    374    ]    :=    P09_CMD    ;    END_IF;
    IF    x150    THEN    awSlaveData[    377    ]    :=    P10_CMD    ;    END_IF;
    IF    x152    THEN    awSlaveData[    380    ]    :=    P11_CMD    ;    END_IF;
    IF    x154    THEN    awSlaveData[    383    ]    :=    P12_CMD    ;    END_IF;
    IF    x156    THEN    awSlaveData[    386    ]    :=    P13_CMD    ;    END_IF;
    IF    x158    THEN    awSlaveData[    389    ]    :=    P14_CMD    ;    END_IF;
    IF    x160    THEN    awSlaveData[    392    ]    :=    P15_CMD    ;    END_IF;
    IF    x162    THEN    awSlaveData[    395    ]    :=    P16_CMD    ;    END_IF;
    IF    x164    THEN    awSlaveData[    406    ]    :=    REG_Y01_CMD    ;    END_IF;
    IF    x166    THEN    awSlaveData[    407    ]    :=    REG_Y02_CMD    ;    END_IF;
    IF    x168    THEN    awSlaveData[    408    ]    :=    REG_Y03_CMD    ;    END_IF;
    IF    x170    THEN    awSlaveData[    409    ]    :=    REG_Y04_CMD    ;    END_IF;
    IF    x172    THEN    awSlaveData[    410    ]    :=    REG_Y05_CMD    ;    END_IF;
    IF    x174    THEN    awSlaveData[    411    ]    :=    REG_Y06_CMD    ;    END_IF;
    IF    x176    THEN    awSlaveData[    412    ]    :=    REG_Y07_CMD    ;    END_IF;
    IF    x178    THEN    awSlaveData[    413    ]    :=    REG_Y08_CMD    ;    END_IF;
    IF    x180    THEN    awSlaveData[    414    ]    :=    REG_Y09_CMD    ;    END_IF;
    
    IF    x182    THEN    fbRealToWord158    (rInput :=    SP_Y01_1    , wOutput1 => awSlaveData[    435    ], wOutput2 => awSlaveData[    434    ]); END_IF;
    IF    x184    THEN    fbRealToWord159    (rInput :=    SP_Y01_2    , wOutput1 => awSlaveData[    437    ], wOutput2 => awSlaveData[    436    ]); END_IF;
    IF    x186    THEN    fbRealToWord160    (rInput :=    SP_Y01_3    , wOutput1 => awSlaveData[    439    ], wOutput2 => awSlaveData[    438    ]); END_IF;
    IF    x188    THEN    fbRealToWord161    (rInput :=    SP_Y01_4    , wOutput1 => awSlaveData[    441    ], wOutput2 => awSlaveData[    440    ]); END_IF;
    IF    x190    THEN    fbRealToWord162    (rInput :=    SP_Y02_1    , wOutput1 => awSlaveData[    443    ], wOutput2 => awSlaveData[    442    ]); END_IF;
    IF    x192    THEN    fbRealToWord163    (rInput :=    SP_Y02_2    , wOutput1 => awSlaveData[    445    ], wOutput2 => awSlaveData[    444    ]); END_IF;
    IF    x194    THEN    fbRealToWord164    (rInput :=    SP_Y02_3    , wOutput1 => awSlaveData[    447    ], wOutput2 => awSlaveData[    446    ]); END_IF;
    IF    x196    THEN    fbRealToWord165    (rInput :=    SP_Y02_4    , wOutput1 => awSlaveData[    449    ], wOutput2 => awSlaveData[    448    ]); END_IF;
    IF    x198    THEN    fbRealToWord166    (rInput :=    SP_Y03_1    , wOutput1 => awSlaveData[    451    ], wOutput2 => awSlaveData[    450    ]); END_IF;
    IF    x200    THEN    fbRealToWord167    (rInput :=    SP_Y03_2    , wOutput1 => awSlaveData[    453    ], wOutput2 => awSlaveData[    452    ]); END_IF;
    IF    x202    THEN    fbRealToWord168    (rInput :=    SP_Y03_3    , wOutput1 => awSlaveData[    455    ], wOutput2 => awSlaveData[    454    ]); END_IF;
    IF    x204    THEN    fbRealToWord169    (rInput :=    SP_Y03_4    , wOutput1 => awSlaveData[    457    ], wOutput2 => awSlaveData[    456    ]); END_IF;
    IF    x206    THEN    fbRealToWord170    (rInput :=    SP_Y04_1    , wOutput1 => awSlaveData[    459    ], wOutput2 => awSlaveData[    458    ]); END_IF;
    IF    x208    THEN    fbRealToWord171    (rInput :=    SP_Y04_2    , wOutput1 => awSlaveData[    461    ], wOutput2 => awSlaveData[    460    ]); END_IF;
    IF    x210    THEN    fbRealToWord172    (rInput :=    SP_Y04_3    , wOutput1 => awSlaveData[    463    ], wOutput2 => awSlaveData[    462    ]); END_IF;
    IF    x212    THEN    fbRealToWord173    (rInput :=    SP_Y04_4    , wOutput1 => awSlaveData[    465    ], wOutput2 => awSlaveData[    464    ]); END_IF;
    IF    x214    THEN    fbRealToWord174    (rInput :=    SP_Y05_1    , wOutput1 => awSlaveData[    467    ], wOutput2 => awSlaveData[    466    ]); END_IF;
    IF    x216    THEN    fbRealToWord175    (rInput :=    SP_Y05_2    , wOutput1 => awSlaveData[    469    ], wOutput2 => awSlaveData[    468    ]); END_IF;
    IF    x218    THEN    fbRealToWord176    (rInput :=    SP_Y05_3    , wOutput1 => awSlaveData[    471    ], wOutput2 => awSlaveData[    470    ]); END_IF;
    IF    x220    THEN    fbRealToWord177    (rInput :=    SP_Y05_4    , wOutput1 => awSlaveData[    473    ], wOutput2 => awSlaveData[    472    ]); END_IF;
    IF    x222    THEN    fbRealToWord178    (rInput :=    SP_Y06_1    , wOutput1 => awSlaveData[    475    ], wOutput2 => awSlaveData[    474    ]); END_IF;
    IF    x224    THEN    fbRealToWord179    (rInput :=    SP_Y06_2    , wOutput1 => awSlaveData[    477    ], wOutput2 => awSlaveData[    476    ]); END_IF;
    IF    x226    THEN    fbRealToWord180    (rInput :=    SP_Y06_3    , wOutput1 => awSlaveData[    479    ], wOutput2 => awSlaveData[    478    ]); END_IF;
    IF    x228    THEN    fbRealToWord181    (rInput :=    SP_Y06_4    , wOutput1 => awSlaveData[    481    ], wOutput2 => awSlaveData[    480    ]); END_IF;
    IF    x230    THEN    fbRealToWord182    (rInput :=    SP_Y07_1    , wOutput1 => awSlaveData[    483    ], wOutput2 => awSlaveData[    482    ]); END_IF;
    IF    x232    THEN    fbRealToWord183    (rInput :=    SP_Y07_2    , wOutput1 => awSlaveData[    485    ], wOutput2 => awSlaveData[    484    ]); END_IF;
    IF    x234    THEN    fbRealToWord184    (rInput :=    SP_Y07_3    , wOutput1 => awSlaveData[    487    ], wOutput2 => awSlaveData[    486    ]); END_IF;
    IF    x236    THEN    fbRealToWord185    (rInput :=    SP_Y07_4    , wOutput1 => awSlaveData[    489    ], wOutput2 => awSlaveData[    488    ]); END_IF;
    IF    x238    THEN    fbRealToWord186    (rInput :=    SP_Y08_1    , wOutput1 => awSlaveData[    491    ], wOutput2 => awSlaveData[    490    ]); END_IF;
    IF    x240    THEN    fbRealToWord187    (rInput :=    SP_Y08_2    , wOutput1 => awSlaveData[    493    ], wOutput2 => awSlaveData[    492    ]); END_IF;
    IF    x242    THEN    fbRealToWord188    (rInput :=    SP_Y08_3    , wOutput1 => awSlaveData[    495    ], wOutput2 => awSlaveData[    494    ]); END_IF;
    IF    x244    THEN    fbRealToWord189    (rInput :=    SP_Y08_4    , wOutput1 => awSlaveData[    497    ], wOutput2 => awSlaveData[    496    ]); END_IF;
    IF    x246    THEN    fbRealToWord190    (rInput :=    SP_Y09_1    , wOutput1 => awSlaveData[    499    ], wOutput2 => awSlaveData[    498    ]); END_IF;
    IF    x248    THEN    fbRealToWord191    (rInput :=    SP_Y09_2    , wOutput1 => awSlaveData[    501    ], wOutput2 => awSlaveData[    500    ]); END_IF;
    IF    x250    THEN    fbRealToWord192    (rInput :=    SP_Y09_3    , wOutput1 => awSlaveData[    503    ], wOutput2 => awSlaveData[    502    ]); END_IF;
    IF    x252    THEN    fbRealToWord193    (rInput :=    SP_Y09_4    , wOutput1 => awSlaveData[    505    ], wOutput2 => awSlaveData[    504    ]); END_IF;
    
    
    
    // Пишем из переменных в регистры
    awSlaveData[    304    ]:=    P17_STS    ;
    awSlaveData[    306    ]:=    P17_ALM    ;
    awSlaveData[    307    ]:=    P18_STS    ;
    awSlaveData[    309    ]:=    P18_ALM    ;
    awSlaveData[    310    ]:=    P19_STS    ;
    awSlaveData[    312    ]:=    P19_ALM    ;
    awSlaveData[    313    ]:=    P20_STS    ;
    awSlaveData[    315    ]:=    P20_ALM    ;
    awSlaveData[    316    ]:=    P21_STS    ;
    awSlaveData[    318    ]:=    P21_ALM    ;
    awSlaveData[    319    ]:=    P22_STS    ;
    awSlaveData[    321    ]:=    P22_ALM    ;
    awSlaveData[    322    ]:=    P23_STS    ;
    awSlaveData[    324    ]:=    P23_ALM    ;
    awSlaveData[    325    ]:=    P24_STS    ;
    awSlaveData[    327    ]:=    P24_ALM    ;
    awSlaveData[    328    ]:=    P25_STS    ;
    awSlaveData[    330    ]:=    P25_ALM    ;
    awSlaveData[    331    ]:=    P26_STS    ;
    awSlaveData[    333    ]:=    P26_ALM    ;
    awSlaveData[    334    ]:=    P27_STS    ;
    awSlaveData[    336    ]:=    P27_ALM    ;
    awSlaveData[    337    ]:=    P28_STS    ;
    awSlaveData[    339    ]:=    P28_ALM    ;
    awSlaveData[    340    ]:=    P29_STS    ;
    awSlaveData[    342    ]:=    P29_ALM    ;
    awSlaveData[    343    ]:=    P30_STS    ;
    awSlaveData[    345    ]:=    P30_ALM    ;
    awSlaveData[    346    ]:=    P01_STS    ;
    awSlaveData[    348    ]:=    P01_ALM    ;
    awSlaveData[    349    ]:=    P02_STS    ;
    awSlaveData[    351    ]:=    P02_ALM    ;
    awSlaveData[    352    ]:=    P03_STS    ;
    awSlaveData[    354    ]:=    P03_ALM    ;
    awSlaveData[    355    ]:=    P04_STS    ;
    awSlaveData[    357    ]:=    P04_ALM    ;
    awSlaveData[    358    ]:=    P05_STS    ;
    awSlaveData[    360    ]:=    P05_ALM    ;
    awSlaveData[    361    ]:=    HL02_STS    ;
    awSlaveData[    363    ]:=    HL02_ALM    ;
    awSlaveData[    364    ]:=    P06_STS    ;
    awSlaveData[    366    ]:=    P06_ALM    ;
    awSlaveData[    367    ]:=    P07_STS    ;
    awSlaveData[    369    ]:=    P07_ALM    ;
    awSlaveData[    370    ]:=    P08_STS    ;
    awSlaveData[    372    ]:=    P08_ALM    ;
    awSlaveData[    373    ]:=    P09_STS    ;
    awSlaveData[    375    ]:=    P09_ALM    ;
    awSlaveData[    376    ]:=    P10_STS    ;
    awSlaveData[    378    ]:=    P10_ALM    ;
    awSlaveData[    379    ]:=    P11_STS    ;
    awSlaveData[    381    ]:=    P11_ALM    ;
    awSlaveData[    382    ]:=    P12_STS    ;
    awSlaveData[    384    ]:=    P12_ALM    ;
    awSlaveData[    385    ]:=    P13_STS    ;
    awSlaveData[    387    ]:=    P13_ALM    ;
    awSlaveData[    388    ]:=    P14_STS    ;
    awSlaveData[    390    ]:=    P14_ALM    ;
    awSlaveData[    391    ]:=    P15_STS    ;
    awSlaveData[    393    ]:=    P15_ALM    ;
    awSlaveData[    394    ]:=    P16_STS    ;
    awSlaveData[    396    ]:=    P16_ALM    ;
    awSlaveData[    397    ]:=    REG_Y01_STS    ;
    awSlaveData[    398    ]:=    REG_Y02_STS    ;
    awSlaveData[    399    ]:=    REG_Y03_STS    ;
    awSlaveData[    400    ]:=    REG_Y04_STS    ;
    awSlaveData[    401    ]:=    REG_Y05_STS    ;
    awSlaveData[    402    ]:=    REG_Y06_STS    ;
    awSlaveData[    403    ]:=    REG_Y07_STS    ;
    awSlaveData[    404    ]:=    REG_Y08_STS    ;
    awSlaveData[    405    ]:=    REG_Y09_STS    ;
    
    awSlaveData[415]:=Connect;
    awSlaveData[    426    ]    :=    VENT_ALM    ;
    awSlaveData[    427    ]    :=    GVS_ALM    ;
    awSlaveData[    428    ]    :=    MAIN_ALM    ;
    awSlaveData[    429    ]    :=    PTP_ALM    ;
    awSlaveData[    430    ]    :=    TC_ALM    ;
    awSlaveData[    431    ]    :=    HVS_ALM    ;
    awSlaveData[    432    ]    :=    CO_ALM    ;
    
    
    // То, что пишет панель
    IF x1 THEN SP_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    197    ], awSlaveData[    196    ], FALSE); END_IF;
    IF x3 THEN SP_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    199    ], awSlaveData[    198    ], FALSE); END_IF;
    IF x5 THEN SP_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    201    ], awSlaveData[    200    ], FALSE); END_IF;
    IF x7 THEN SP_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    203    ], awSlaveData[    202    ], FALSE); END_IF;
    IF x9 THEN SP_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    205    ], awSlaveData[    204    ], FALSE); END_IF;
    IF x11 THEN SP_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    207    ], awSlaveData[    206    ], FALSE); END_IF;
    IF x13 THEN SP_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    209    ], awSlaveData[    208    ], FALSE); END_IF;
    IF x15 THEN SP_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    211    ], awSlaveData[    210    ], FALSE); END_IF;
    IF x17 THEN SP_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    213    ], awSlaveData[    212    ], FALSE); END_IF;
    
    IF x19 THEN MANUAL_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    215    ], awSlaveData[    214    ], FALSE); END_IF;
    IF x21 THEN MANUAL_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    217    ], awSlaveData[    216    ], FALSE); END_IF;
    IF x23 THEN MANUAL_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    219    ], awSlaveData[    218    ], FALSE); END_IF;
    IF x25 THEN MANUAL_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    221    ], awSlaveData[    220    ], FALSE); END_IF;
    IF x27 THEN MANUAL_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    223    ], awSlaveData[    222    ], FALSE); END_IF;
    IF x29 THEN MANUAL_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    225    ], awSlaveData[    224    ], FALSE); END_IF;
    IF x31 THEN MANUAL_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    227    ], awSlaveData[    226    ], FALSE); END_IF;
    IF x33 THEN MANUAL_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    229    ], awSlaveData[    228    ], FALSE); END_IF;
    IF x35 THEN MANUAL_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    231    ], awSlaveData[    230    ], FALSE); END_IF;
    
    
    IF x37 THEN P_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    251    ], awSlaveData[    250    ], FALSE); END_IF;
    IF x39 THEN P_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    253    ], awSlaveData[    252    ], FALSE); END_IF;
    IF x41 THEN P_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    255    ], awSlaveData[    254    ], FALSE); END_IF;
    IF x43 THEN P_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    257    ], awSlaveData[    256    ], FALSE); END_IF;
    IF x45 THEN P_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    259 ], awSlaveData[    258    ], FALSE); END_IF;
    IF x47 THEN P_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    261    ], awSlaveData[    260    ], FALSE); END_IF;
    IF x49 THEN P_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    263    ], awSlaveData[    262    ], FALSE); END_IF;
    IF x51 THEN P_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    265    ], awSlaveData[    264    ], FALSE); END_IF;
    IF x53 THEN P_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    267    ], awSlaveData[    266    ], FALSE); END_IF;
    IF x55 THEN I_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    269    ], awSlaveData[    268    ], FALSE); END_IF;
    IF x57 THEN I_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    271    ], awSlaveData[    270    ], FALSE); END_IF;
    IF x59 THEN I_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    273    ], awSlaveData[    272    ], FALSE); END_IF;
    IF x61 THEN I_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    275    ], awSlaveData[    274    ], FALSE); END_IF;
    IF x63 THEN I_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    277    ], awSlaveData[    276    ], FALSE); END_IF;
    IF x65 THEN I_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    279    ], awSlaveData[    278    ], FALSE); END_IF;
    IF x67 THEN I_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    281    ], awSlaveData[    280    ], FALSE); END_IF;
    IF x69 THEN I_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    283    ], awSlaveData[    282    ], FALSE); END_IF;
    IF x71 THEN I_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    285    ], awSlaveData[    284    ], FALSE); END_IF;
    IF x73 THEN D_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    287    ], awSlaveData[    286    ], FALSE); END_IF;
    IF x75 THEN D_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    289    ], awSlaveData[    288    ], FALSE); END_IF;
    IF x77 THEN D_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    291    ], awSlaveData[    290    ], FALSE); END_IF;
    IF x79 THEN D_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    293    ], awSlaveData[    292    ], FALSE); END_IF;
    IF x81 THEN D_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    295    ], awSlaveData[    294    ], FALSE); END_IF;
    IF x83 THEN D_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    297    ], awSlaveData[    296    ], FALSE); END_IF;
    IF x85 THEN D_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    299    ], awSlaveData[    298    ], FALSE); END_IF;
    IF x87 THEN D_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    301    ], awSlaveData[    300    ], FALSE); END_IF;
    IF x89 THEN D_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    303    ], awSlaveData[    302    ], FALSE); END_IF;
    
    IF x91 THEN  P05_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    417    ], awSlaveData[    416    ], FALSE); END_IF;
    IF x93 THEN  P10_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    419    ], awSlaveData[    418    ], FALSE); END_IF;
    IF x95 THEN  P15_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    421    ], awSlaveData[    420    ], FALSE); END_IF;
    IF x97 THEN  P21_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    423    ], awSlaveData[    422    ], FALSE); END_IF;
    IF x99 THEN  P27_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    425    ], awSlaveData[    424    ], FALSE); END_IF;
    
    
    IF x101 THEN  P17_CMD    :=    awSlaveData[    305    ]    ; END_IF;
    IF x103 THEN  P18_CMD    :=    awSlaveData[    308    ]    ; END_IF;
    IF x105 THEN  P19_CMD    :=    awSlaveData[    311    ]    ; END_IF;
    IF x107 THEN  P20_CMD    :=    awSlaveData[    314    ]    ; END_IF;
    IF x109 THEN  P21_CMD    :=    awSlaveData[    317    ]    ; END_IF;
    IF x111 THEN  P22_CMD    :=    awSlaveData[    320    ]    ; END_IF;
    IF x113 THEN  P23_CMD    :=    awSlaveData[    323    ]    ; END_IF;
    IF x115 THEN  P24_CMD    :=    awSlaveData[    326    ]    ; END_IF;
    IF x117 THEN  P25_CMD    :=    awSlaveData[    329    ]    ; END_IF;
    IF x119 THEN  P26_CMD    :=    awSlaveData[    332    ]    ; END_IF;
    IF x121 THEN  P27_CMD    :=    awSlaveData[    335    ]    ; END_IF;
    IF x123 THEN  P28_CMD    :=    awSlaveData[    338    ]    ; END_IF;
    IF x125 THEN  P29_CMD    :=    awSlaveData[    341    ]    ; END_IF;
    IF x127 THEN  P30_CMD    :=    awSlaveData[    344    ]    ; END_IF;
    IF x129 THEN  P01_CMD    :=    awSlaveData[    347    ]    ; END_IF;
    IF x131 THEN  P02_CMD    :=    awSlaveData[    350    ]    ; END_IF;
    IF x133 THEN  P03_CMD    :=    awSlaveData[    353    ]    ; END_IF;
    IF x135 THEN  P04_CMD    :=    awSlaveData[    356    ]    ; END_IF;
    IF x137 THEN  P05_CMD    :=    awSlaveData[    359    ]    ; END_IF;
    IF x139 THEN  HL02_CMD    :=    awSlaveData[    362    ]    ; END_IF;
    IF x141 THEN  P06_CMD    :=    awSlaveData[    365    ]    ; END_IF;
    IF x143 THEN  P07_CMD    :=    awSlaveData[    368    ]    ; END_IF;
    IF x145 THEN  P08_CMD    :=    awSlaveData[    371    ]    ; END_IF;
    IF x147 THEN  P09_CMD    :=    awSlaveData[    374    ]    ; END_IF;
    IF x149 THEN  P10_CMD    :=    awSlaveData[    377    ]    ; END_IF;
    IF x151 THEN  P11_CMD    :=    awSlaveData[    380    ]    ; END_IF;
    IF x153 THEN  P12_CMD    :=    awSlaveData[    383    ]    ; END_IF;
    IF x155 THEN  P13_CMD    :=    awSlaveData[    386    ]    ; END_IF;
    IF x157 THEN  P14_CMD    :=    awSlaveData[    389    ]    ; END_IF;
    IF x159 THEN  P15_CMD    :=    awSlaveData[    392    ]    ; END_IF;
    IF x161 THEN  P16_CMD    :=    awSlaveData[    395    ]    ; END_IF;
    IF x163 THEN  REG_Y01_CMD    :=    awSlaveData[    406    ]    ; END_IF;
    IF x165 THEN  REG_Y02_CMD    :=    awSlaveData[    407    ]    ; END_IF;
    IF x167 THEN  REG_Y03_CMD    :=    awSlaveData[    408    ]    ; END_IF;
    IF x169 THEN  REG_Y04_CMD    :=    awSlaveData[    409    ]    ; END_IF;
    IF x171 THEN  REG_Y05_CMD    :=    awSlaveData[    410    ]    ; END_IF;
    IF x173 THEN  REG_Y06_CMD    :=    awSlaveData[    411    ]    ; END_IF;
    IF x175 THEN  REG_Y07_CMD    :=    awSlaveData[    412    ]    ; END_IF;
    IF x177 THEN  REG_Y08_CMD    :=    awSlaveData[    413    ]    ; END_IF;
    IF x179 THEN  REG_Y09_CMD    :=    awSlaveData[    414    ]    ; END_IF;
    
    IF    x181    THEN    SP_Y01_1     := OCL.WORD2_TO_REAL(awSlaveData[    435    ], awSlaveData[    434    ], FALSE); END_IF;    
    IF    x183    THEN    SP_Y01_2     := OCL.WORD2_TO_REAL(awSlaveData[    437    ], awSlaveData[    436    ], FALSE); END_IF;    
    IF    x185    THEN    SP_Y01_3     := OCL.WORD2_TO_REAL(awSlaveData[    439    ], awSlaveData[    438    ], FALSE); END_IF;    
    IF    x187    THEN    SP_Y01_4     := OCL.WORD2_TO_REAL(awSlaveData[    441    ], awSlaveData[    440    ], FALSE); END_IF;    
    IF    x189    THEN    SP_Y02_1     := OCL.WORD2_TO_REAL(awSlaveData[    443    ], awSlaveData[    442    ], FALSE); END_IF;    
    IF    x191    THEN    SP_Y02_2     := OCL.WORD2_TO_REAL(awSlaveData[    445    ], awSlaveData[    444    ], FALSE); END_IF;    
    IF    x193    THEN    SP_Y02_3     := OCL.WORD2_TO_REAL(awSlaveData[    447    ], awSlaveData[    446    ], FALSE); END_IF;    
    IF    x195    THEN    SP_Y02_4     := OCL.WORD2_TO_REAL(awSlaveData[    449    ], awSlaveData[    448    ], FALSE); END_IF;    
    IF    x197    THEN    SP_Y03_1     := OCL.WORD2_TO_REAL(awSlaveData[    451    ], awSlaveData[    450    ], FALSE); END_IF;    
    IF    x199    THEN    SP_Y03_2     := OCL.WORD2_TO_REAL(awSlaveData[    453    ], awSlaveData[    452    ], FALSE); END_IF;    
    IF    x201    THEN    SP_Y03_3     := OCL.WORD2_TO_REAL(awSlaveData[    455    ], awSlaveData[    454    ], FALSE); END_IF;    
    IF    x203    THEN    SP_Y03_4     := OCL.WORD2_TO_REAL(awSlaveData[    457    ], awSlaveData[    456    ], FALSE); END_IF;    
    IF    x205    THEN    SP_Y04_1     := OCL.WORD2_TO_REAL(awSlaveData[    459    ], awSlaveData[    458    ], FALSE); END_IF;    
    IF    x207    THEN    SP_Y04_2     := OCL.WORD2_TO_REAL(awSlaveData[    461    ], awSlaveData[    460    ], FALSE); END_IF;    
    IF    x209    THEN    SP_Y04_3     := OCL.WORD2_TO_REAL(awSlaveData[    463    ], awSlaveData[    462    ], FALSE); END_IF;    
    IF    x211    THEN    SP_Y04_4     := OCL.WORD2_TO_REAL(awSlaveData[    465    ], awSlaveData[    464    ], FALSE); END_IF;    
    IF    x213    THEN    SP_Y05_1     := OCL.WORD2_TO_REAL(awSlaveData[    467    ], awSlaveData[    466    ], FALSE); END_IF;    
    IF    x215    THEN    SP_Y05_2     := OCL.WORD2_TO_REAL(awSlaveData[    469    ], awSlaveData[    468    ], FALSE); END_IF;    
    IF    x217    THEN    SP_Y05_3     := OCL.WORD2_TO_REAL(awSlaveData[    471    ], awSlaveData[    470    ], FALSE); END_IF;    
    IF    x219    THEN    SP_Y05_4     := OCL.WORD2_TO_REAL(awSlaveData[    473    ], awSlaveData[    472    ], FALSE); END_IF;    
    IF    x221    THEN    SP_Y06_1     := OCL.WORD2_TO_REAL(awSlaveData[    475    ], awSlaveData[    474    ], FALSE); END_IF;    
    IF    x223    THEN    SP_Y06_2     := OCL.WORD2_TO_REAL(awSlaveData[    477    ], awSlaveData[    476    ], FALSE); END_IF;    
    IF    x225    THEN    SP_Y06_3     := OCL.WORD2_TO_REAL(awSlaveData[    479    ], awSlaveData[    478    ], FALSE); END_IF;    
    IF    x227    THEN    SP_Y06_4     := OCL.WORD2_TO_REAL(awSlaveData[    481    ], awSlaveData[    480    ], FALSE); END_IF;    
    IF    x229    THEN    SP_Y07_1     := OCL.WORD2_TO_REAL(awSlaveData[    483    ], awSlaveData[    482    ], FALSE); END_IF;    
    IF    x231    THEN    SP_Y07_2     := OCL.WORD2_TO_REAL(awSlaveData[    485    ], awSlaveData[    484    ], FALSE); END_IF;    
    IF    x233    THEN    SP_Y07_3     := OCL.WORD2_TO_REAL(awSlaveData[    487    ], awSlaveData[    486    ], FALSE); END_IF;    
    IF    x235    THEN    SP_Y07_4     := OCL.WORD2_TO_REAL(awSlaveData[    489    ], awSlaveData[    488    ], FALSE); END_IF;    
    IF    x237    THEN    SP_Y08_1     := OCL.WORD2_TO_REAL(awSlaveData[    491    ], awSlaveData[    490    ], FALSE); END_IF;    
    IF    x239    THEN    SP_Y08_2     := OCL.WORD2_TO_REAL(awSlaveData[    493    ], awSlaveData[    492    ], FALSE); END_IF;    
    IF    x241    THEN    SP_Y08_3     := OCL.WORD2_TO_REAL(awSlaveData[    495    ], awSlaveData[    494    ], FALSE); END_IF;    
    IF    x243    THEN    SP_Y08_4     := OCL.WORD2_TO_REAL(awSlaveData[    497    ], awSlaveData[    496    ], FALSE); END_IF;    
    IF    x245    THEN    SP_Y09_1     := OCL.WORD2_TO_REAL(awSlaveData[    499    ], awSlaveData[    498    ], FALSE); END_IF;    
    IF    x247    THEN    SP_Y09_2     := OCL.WORD2_TO_REAL(awSlaveData[    501    ], awSlaveData[    500    ], FALSE); END_IF;    
    IF    x249    THEN    SP_Y09_3     := OCL.WORD2_TO_REAL(awSlaveData[    503    ], awSlaveData[    502    ], FALSE); END_IF;    
    IF    x251    THEN    SP_Y09_4     := OCL.WORD2_TO_REAL(awSlaveData[    505    ], awSlaveData[    504    ], FALSE); END_IF;    
    
    
    SP_Y01_old:=SP_Y01;
    SP_Y02_old:=SP_Y02;
    SP_Y03_old:=SP_Y03;
    SP_Y04_old:=SP_Y04;
    SP_Y05_old:=SP_Y05;
    SP_Y06_old:=SP_Y06;
    SP_Y07_old:=SP_Y07;
    SP_Y08_old:=SP_Y08;
    SP_Y09_old:=SP_Y09;
    MANUAL_Y01_old:=MANUAL_Y01;
    MANUAL_Y02_old:=MANUAL_Y02;
    MANUAL_Y03_old:=MANUAL_Y03;
    MANUAL_Y04_old:=MANUAL_Y04;
    MANUAL_Y05_old:=MANUAL_Y05;
    MANUAL_Y06_old:=MANUAL_Y06;
    MANUAL_Y07_old:=MANUAL_Y07;
    MANUAL_Y08_old:=MANUAL_Y08;
    MANUAL_Y09_old:=MANUAL_Y09;
    P_Y01_old:=P_Y01;
    P_Y02_old:=P_Y02;
    P_Y03_old:=P_Y03;
    P_Y04_old:=P_Y04;
    P_Y05_old:=P_Y05;
    P_Y06_old:=P_Y06;
    P_Y07_old:=P_Y07;
    P_Y08_old:=P_Y08;
    P_Y09_old:=P_Y09;
    I_Y01_old:=I_Y01;
    I_Y02_old:=I_Y02;
    I_Y03_old:=I_Y03;
    I_Y04_old:=I_Y04;
    I_Y05_old:=I_Y05;
    I_Y06_old:=I_Y06;
    I_Y07_old:=I_Y07;
    I_Y08_old:=I_Y08;
    I_Y09_old:=I_Y09;
    D_Y01_old:=D_Y01;
    D_Y02_old:=D_Y02;
    D_Y03_old:=D_Y03;
    D_Y04_old:=D_Y04;
    D_Y05_old:=D_Y05;
    D_Y06_old:=D_Y06;
    D_Y07_old:=D_Y07;
    D_Y08_old:=D_Y08;
    D_Y09_old:=D_Y09;
    
    P05_Pset_old:=P05_Pset;
    P10_Pset_old:=P10_Pset;
    P15_Pset_old:=P15_Pset;
    P21_Pset_old:=P21_Pset;
    P27_Pset_old:=P27_Pset;
    
    P17_CMD_old:=P17_CMD;
    P18_CMD_old:=P18_CMD;
    P19_CMD_old:=P19_CMD;
    P20_CMD_old:=P20_CMD;
    P21_CMD_old:=P21_CMD;
    P22_CMD_old:=P22_CMD;
    P23_CMD_old:=P23_CMD;
    P24_CMD_old:=P24_CMD;
    P25_CMD_old:=P25_CMD;
    P26_CMD_old:=P26_CMD;
    P27_CMD_old:=P27_CMD;
    P28_CMD_old:=P28_CMD;
    P29_CMD_old:=P29_CMD;
    P30_CMD_old:=P30_CMD;
    P01_CMD_old:=P01_CMD;
    P02_CMD_old:=P02_CMD;
    P03_CMD_old:=P03_CMD;
    P04_CMD_old:=P04_CMD;
    P05_CMD_old:=P05_CMD;
    HL02_CMD_old:=HL02_CMD;
    P06_CMD_old:=P06_CMD;
    P07_CMD_old:=P07_CMD;
    P08_CMD_old:=P08_CMD;
    P09_CMD_old:=P09_CMD;
    P10_CMD_old:=P10_CMD;
    P11_CMD_old:=P11_CMD;
    P12_CMD_old:=P12_CMD;
    P13_CMD_old:=P13_CMD;
    P14_CMD_old:=P14_CMD;
    P15_CMD_old:=P15_CMD;
    P16_CMD_old:=P16_CMD;
    REG_Y01_CMD_old:=REG_Y01_CMD;
    REG_Y02_CMD_old:=REG_Y02_CMD;
    REG_Y03_CMD_old:=REG_Y03_CMD;
    REG_Y04_CMD_old:=REG_Y04_CMD;
    REG_Y05_CMD_old:=REG_Y05_CMD;
    REG_Y06_CMD_old:=REG_Y06_CMD;
    REG_Y07_CMD_old:=REG_Y07_CMD;
    REG_Y08_CMD_old:=REG_Y08_CMD;
    REG_Y09_CMD_old:=REG_Y09_CMD;
    SP_Y01_1_old:=SP_Y01_1;
    SP_Y01_2_old:=SP_Y01_2;
    SP_Y01_3_old:=SP_Y01_3;
    SP_Y01_4_old:=SP_Y01_4;
    SP_Y02_1_old:=SP_Y02_1;
    SP_Y02_2_old:=SP_Y02_2;
    SP_Y02_3_old:=SP_Y02_3;
    SP_Y02_4_old:=SP_Y02_4;
    SP_Y03_1_old:=SP_Y03_1;
    SP_Y03_2_old:=SP_Y03_2;
    SP_Y03_3_old:=SP_Y03_3;
    SP_Y03_4_old:=SP_Y03_4;
    SP_Y04_1_old:=SP_Y04_1;
    SP_Y04_2_old:=SP_Y04_2;
    SP_Y04_3_old:=SP_Y04_3;
    SP_Y04_4_old:=SP_Y04_4;
    SP_Y05_1_old:=SP_Y05_1;
    SP_Y05_2_old:=SP_Y05_2;
    SP_Y05_3_old:=SP_Y05_3;
    SP_Y05_4_old:=SP_Y05_4;
    SP_Y06_1_old:=SP_Y06_1;
    SP_Y06_2_old:=SP_Y06_2;
    SP_Y06_3_old:=SP_Y06_3;
    SP_Y06_4_old:=SP_Y06_4;
    SP_Y07_1_old:=SP_Y07_1;
    SP_Y07_2_old:=SP_Y07_2;
    SP_Y07_3_old:=SP_Y07_3;
    SP_Y07_4_old:=SP_Y07_4;
    SP_Y08_1_old:=SP_Y08_1;
    SP_Y08_2_old:=SP_Y08_2;
    SP_Y08_3_old:=SP_Y08_3;
    SP_Y08_4_old:=SP_Y08_4;
    SP_Y09_1_old:=SP_Y09_1;
    SP_Y09_2_old:=SP_Y09_2;
    SP_Y09_3_old:=SP_Y09_3;
    SP_Y09_4_old:=SP_Y09_4;
    
    
     
    awSlaveData_old[196]:=awSlaveData[196];
    awSlaveData_old[197]:=awSlaveData[197]; 
    awSlaveData_old[198]:=awSlaveData[198];
    awSlaveData_old[199]:=awSlaveData[199]; 
    awSlaveData_old[200]:=awSlaveData[200];
    awSlaveData_old[201]:=awSlaveData[201]; 
    awSlaveData_old[202]:=awSlaveData[202];
    awSlaveData_old[203]:=awSlaveData[203]; 
    awSlaveData_old[204]:=awSlaveData[204];
    awSlaveData_old[205]:=awSlaveData[205]; 
    awSlaveData_old[206]:=awSlaveData[206];
    awSlaveData_old[207]:=awSlaveData[207]; 
    awSlaveData_old[208]:=awSlaveData[208];
    awSlaveData_old[209]:=awSlaveData[209]; 
    awSlaveData_old[210]:=awSlaveData[210];
    awSlaveData_old[211]:=awSlaveData[211]; 
    awSlaveData_old[212]:=awSlaveData[212];
    awSlaveData_old[213]:=awSlaveData[213]; 
    awSlaveData_old[214]:=awSlaveData[214];
    awSlaveData_old[215]:=awSlaveData[215];
    awSlaveData_old[216]:=awSlaveData[216]; 
    awSlaveData_old[217]:=awSlaveData[217];
    awSlaveData_old[218]:=awSlaveData[218]; 
    awSlaveData_old[219]:=awSlaveData[219];
    awSlaveData_old[220]:=awSlaveData[220]; 
    awSlaveData_old[221]:=awSlaveData[221];
    awSlaveData_old[222]:=awSlaveData[222]; 
    awSlaveData_old[223]:=awSlaveData[223];
    awSlaveData_old[224]:=awSlaveData[224]; 
    awSlaveData_old[225]:=awSlaveData[225];
    awSlaveData_old[226]:=awSlaveData[226]; 
    awSlaveData_old[227]:=awSlaveData[227];
    awSlaveData_old[228]:=awSlaveData[228]; 
    awSlaveData_old[229]:=awSlaveData[229];
    awSlaveData_old[230]:=awSlaveData[230]; 
    awSlaveData_old[231]:=awSlaveData[231];
    
    awSlaveData_old[250]:=awSlaveData[250];
    awSlaveData_old[251]:=awSlaveData[251]; 
    awSlaveData_old[252]:=awSlaveData[252];
    awSlaveData_old[253]:=awSlaveData[253]; 
    awSlaveData_old[254]:=awSlaveData[254];
    awSlaveData_old[255]:=awSlaveData[255]; 
    awSlaveData_old[256]:=awSlaveData[256];
    awSlaveData_old[257]:=awSlaveData[257]; 
    awSlaveData_old[258]:=awSlaveData[258];
    awSlaveData_old[259]:=awSlaveData[259];
    awSlaveData_old[260]:=awSlaveData[260]; 
    awSlaveData_old[261]:=awSlaveData[261];
    awSlaveData_old[262]:=awSlaveData[262]; 
    awSlaveData_old[263]:=awSlaveData[263];
    awSlaveData_old[264]:=awSlaveData[264]; 
    awSlaveData_old[265]:=awSlaveData[265];
    awSlaveData_old[266]:=awSlaveData[266]; 
    awSlaveData_old[267]:=awSlaveData[267];
    awSlaveData_old[268]:=awSlaveData[268]; 
    awSlaveData_old[269]:=awSlaveData[269];
    awSlaveData_old[270]:=awSlaveData[270]; 
    awSlaveData_old[271]:=awSlaveData[271];
    awSlaveData_old[272]:=awSlaveData[272]; 
    awSlaveData_old[273]:=awSlaveData[273];
    awSlaveData_old[274]:=awSlaveData[274]; 
    awSlaveData_old[275]:=awSlaveData[275];
    awSlaveData_old[276]:=awSlaveData[276];
    awSlaveData_old[277]:=awSlaveData[277];
    awSlaveData_old[278]:=awSlaveData[278]; 
    awSlaveData_old[279]:=awSlaveData[279];
    awSlaveData_old[280]:=awSlaveData[280]; 
    awSlaveData_old[281]:=awSlaveData[281];
    awSlaveData_old[282]:=awSlaveData[282]; 
    awSlaveData_old[283]:=awSlaveData[283];
    awSlaveData_old[284]:=awSlaveData[284]; 
    awSlaveData_old[285]:=awSlaveData[285];
    awSlaveData_old[286]:=awSlaveData[286]; 
    awSlaveData_old[287]:=awSlaveData[287];
    awSlaveData_old[288]:=awSlaveData[288]; 
    awSlaveData_old[289]:=awSlaveData[289];
    awSlaveData_old[290]:=awSlaveData[290]; 
    awSlaveData_old[291]:=awSlaveData[291];
    awSlaveData_old[292]:=awSlaveData[292]; 
    awSlaveData_old[293]:=awSlaveData[293];
    awSlaveData_old[294]:=awSlaveData[294]; 
    awSlaveData_old[295]:=awSlaveData[295];
    awSlaveData_old[296]:=awSlaveData[296]; 
    awSlaveData_old[297]:=awSlaveData[297];
    awSlaveData_old[298]:=awSlaveData[298]; 
    awSlaveData_old[299]:=awSlaveData[299];
    awSlaveData_old[300]:=awSlaveData[300]; 
    awSlaveData_old[301]:=awSlaveData[301];
    awSlaveData_old[302]:=awSlaveData[302]; 
    awSlaveData_old[303]:=awSlaveData[303]; 
    
    awSlaveData_old[416]:=awSlaveData[416]; 
    awSlaveData_old[417]:=awSlaveData[417]; 
    awSlaveData_old[418]:=awSlaveData[418]; 
    awSlaveData_old[419]:=awSlaveData[419]; 
    awSlaveData_old[420]:=awSlaveData[420]; 
    awSlaveData_old[421]:=awSlaveData[421]; 
    awSlaveData_old[422]:=awSlaveData[422]; 
    awSlaveData_old[423]:=awSlaveData[423]; 
    awSlaveData_old[424]:=awSlaveData[424]; 
    awSlaveData_old[425]:=awSlaveData[425]; 
    
    awSlaveData_old[    305    ]    :=    awSlaveData[    305    ]    ;
    awSlaveData_old[    308    ]    :=    awSlaveData[    308    ]    ;
    awSlaveData_old[    311    ]    :=    awSlaveData[    311    ]    ;
    awSlaveData_old[    314    ]    :=    awSlaveData[    314    ]    ;
    awSlaveData_old[    317    ]    :=    awSlaveData[    317    ]    ;
    awSlaveData_old[    320    ]    :=    awSlaveData[    320    ]    ;
    awSlaveData_old[    323    ]    :=    awSlaveData[    323    ]    ;
    awSlaveData_old[    326    ]    :=    awSlaveData[    326    ]    ;
    awSlaveData_old[    329    ]    :=    awSlaveData[    329    ]    ;
    awSlaveData_old[    332    ]    :=    awSlaveData[    332    ]    ;
    awSlaveData_old[    335    ]    :=    awSlaveData[    335    ]    ;
    awSlaveData_old[    338    ]    :=    awSlaveData[    338    ]    ;
    awSlaveData_old[    341    ]    :=    awSlaveData[    341    ]    ;
    awSlaveData_old[    344    ]    :=    awSlaveData[    344    ]    ;
    awSlaveData_old[    347    ]    :=    awSlaveData[    347    ]    ;
    awSlaveData_old[    350    ]    :=    awSlaveData[    350    ]    ;
    awSlaveData_old[    353    ]    :=    awSlaveData[    353    ]    ;
    awSlaveData_old[    356    ]    :=    awSlaveData[    356    ]    ;
    awSlaveData_old[    359    ]    :=    awSlaveData[    359    ]    ;
    awSlaveData_old[    362    ]    :=    awSlaveData[    362    ]    ;
    awSlaveData_old[    365    ]    :=    awSlaveData[    365    ]    ;
    awSlaveData_old[    368    ]    :=    awSlaveData[    368    ]    ;
    awSlaveData_old[    371    ]    :=    awSlaveData[    371    ]    ;
    awSlaveData_old[    374    ]    :=    awSlaveData[    374    ]    ;
    awSlaveData_old[    377    ]    :=    awSlaveData[    377    ]    ;
    awSlaveData_old[    380    ]    :=    awSlaveData[    380    ]    ;
    awSlaveData_old[    383    ]    :=    awSlaveData[    383    ]    ;
    awSlaveData_old[    386    ]    :=    awSlaveData[    386    ]    ;
    awSlaveData_old[    389    ]    :=    awSlaveData[    389    ]    ;
    awSlaveData_old[    392    ]    :=    awSlaveData[    392    ]    ;
    awSlaveData_old[    395    ]    :=    awSlaveData[    395    ]    ;
    awSlaveData_old[    406    ]    :=    awSlaveData[    406    ]    ;
    awSlaveData_old[    407    ]    :=    awSlaveData[    407    ]    ;
    awSlaveData_old[    408    ]    :=    awSlaveData[    408    ]    ;
    awSlaveData_old[    409    ]    :=    awSlaveData[    409    ]    ;
    awSlaveData_old[    410    ]    :=    awSlaveData[    410    ]    ;
    awSlaveData_old[    411    ]    :=    awSlaveData[    411    ]    ;
    awSlaveData_old[    412    ]    :=    awSlaveData[    412    ]    ;
    awSlaveData_old[    413    ]    :=    awSlaveData[    413    ]    ;
    awSlaveData_old[    414    ]    :=    awSlaveData[    414    ]    ;
    
    awSlaveData_old[    434    ]    :=    awSlaveData[    434    ]    ;
    awSlaveData_old[    435    ]    :=    awSlaveData[    435    ]    ;
    awSlaveData_old[    436    ]    :=    awSlaveData[    436    ]    ;
    awSlaveData_old[    437    ]    :=    awSlaveData[    437    ]    ;
    awSlaveData_old[    438    ]    :=    awSlaveData[    438    ]    ;
    awSlaveData_old[    439    ]    :=    awSlaveData[    439    ]    ;
    awSlaveData_old[    440    ]    :=    awSlaveData[    440    ]    ;
    awSlaveData_old[    441    ]    :=    awSlaveData[    441    ]    ;
    awSlaveData_old[    442    ]    :=    awSlaveData[    442    ]    ;
    awSlaveData_old[    443    ]    :=    awSlaveData[    443    ]    ;
    awSlaveData_old[    444    ]    :=    awSlaveData[    444    ]    ;
    awSlaveData_old[    445    ]    :=    awSlaveData[    445    ]    ;
    awSlaveData_old[    446    ]    :=    awSlaveData[    446    ]    ;
    awSlaveData_old[    447    ]    :=    awSlaveData[    447    ]    ;
    awSlaveData_old[    448    ]    :=    awSlaveData[    448    ]    ;
    awSlaveData_old[    449    ]    :=    awSlaveData[    449    ]    ;
    awSlaveData_old[    450    ]    :=    awSlaveData[    450    ]    ;
    awSlaveData_old[    451    ]    :=    awSlaveData[    451    ]    ;
    awSlaveData_old[    452    ]    :=    awSlaveData[    452    ]    ;
    awSlaveData_old[    453    ]    :=    awSlaveData[    453    ]    ;
    awSlaveData_old[    454    ]    :=    awSlaveData[    454    ]    ;
    awSlaveData_old[    455    ]    :=    awSlaveData[    455    ]    ;
    awSlaveData_old[    456    ]    :=    awSlaveData[    456    ]    ;
    awSlaveData_old[    457    ]    :=    awSlaveData[    457    ]    ;
    awSlaveData_old[    458    ]    :=    awSlaveData[    458    ]    ;
    awSlaveData_old[    459    ]    :=    awSlaveData[    459    ]    ;
    awSlaveData_old[    460    ]    :=    awSlaveData[    460    ]    ;
    awSlaveData_old[    461    ]    :=    awSlaveData[    461    ]    ;
    awSlaveData_old[    462    ]    :=    awSlaveData[    462    ]    ;
    awSlaveData_old[    463    ]    :=    awSlaveData[    463    ]    ;
    awSlaveData_old[    464    ]    :=    awSlaveData[    464    ]    ;
    awSlaveData_old[    465    ]    :=    awSlaveData[    465    ]    ;
    awSlaveData_old[    466    ]    :=    awSlaveData[    466    ]    ;
    awSlaveData_old[    467    ]    :=    awSlaveData[    467    ]    ;
    awSlaveData_old[    468    ]    :=    awSlaveData[    468    ]    ;
    awSlaveData_old[    469    ]    :=    awSlaveData[    469    ]    ;
    awSlaveData_old[    470    ]    :=    awSlaveData[    470    ]    ;
    awSlaveData_old[    471    ]    :=    awSlaveData[    471    ]    ;
    awSlaveData_old[    472    ]    :=    awSlaveData[    472    ]    ;
    awSlaveData_old[    473    ]    :=    awSlaveData[    473    ]    ;
    awSlaveData_old[    474    ]    :=    awSlaveData[    474    ]    ;
    awSlaveData_old[    475    ]    :=    awSlaveData[    475    ]    ;
    awSlaveData_old[    476    ]    :=    awSlaveData[    476    ]    ;
    awSlaveData_old[    477    ]    :=    awSlaveData[    477    ]    ;
    awSlaveData_old[    478    ]    :=    awSlaveData[    478    ]    ;
    awSlaveData_old[    479    ]    :=    awSlaveData[    479    ]    ;
    awSlaveData_old[    480    ]    :=    awSlaveData[    480    ]    ;
    awSlaveData_old[    481    ]    :=    awSlaveData[    481    ]    ;
    awSlaveData_old[    482    ]    :=    awSlaveData[    482    ]    ;
    awSlaveData_old[    483    ]    :=    awSlaveData[    483    ]    ;
    awSlaveData_old[    484    ]    :=    awSlaveData[    484    ]    ;
    awSlaveData_old[    485    ]    :=    awSlaveData[    485    ]    ;
    awSlaveData_old[    486    ]    :=    awSlaveData[    486    ]    ;
    awSlaveData_old[    487    ]    :=    awSlaveData[    487    ]    ;
    awSlaveData_old[    488    ]    :=    awSlaveData[    488    ]    ;
    awSlaveData_old[    489    ]    :=    awSlaveData[    489    ]    ;
    awSlaveData_old[    490    ]    :=    awSlaveData[    490    ]    ;
    awSlaveData_old[    491    ]    :=    awSlaveData[    491    ]    ;
    awSlaveData_old[    492    ]    :=    awSlaveData[    492    ]    ;
    awSlaveData_old[    493    ]    :=    awSlaveData[    493    ]    ;
    awSlaveData_old[    494    ]    :=    awSlaveData[    494    ]    ;
    awSlaveData_old[    495    ]    :=    awSlaveData[    495    ]    ;
    awSlaveData_old[    496    ]    :=    awSlaveData[    496    ]    ;
    awSlaveData_old[    497    ]    :=    awSlaveData[    497    ]    ;
    awSlaveData_old[    498    ]    :=    awSlaveData[    498    ]    ;
    awSlaveData_old[    499    ]    :=    awSlaveData[    499    ]    ;
    awSlaveData_old[    500    ]    :=    awSlaveData[    500    ]    ;
    awSlaveData_old[    501    ]    :=    awSlaveData[    501    ]    ;
    awSlaveData_old[    502    ]    :=    awSlaveData[    502    ]    ;
    awSlaveData_old[    503    ]    :=    awSlaveData[    503    ]    ;
    awSlaveData_old[    504    ]    :=    awSlaveData[    504    ]    ;
    awSlaveData_old[    505    ]    :=    awSlaveData[    505    ]    ;
    С уважением,
    Лапшин Вячеслав

  2. #12
    Пользователь Аватар для capzap
    Регистрация
    25.02.2011
    Адрес
    Киров
    Сообщений
    9,716

    По умолчанию

    может сперва сделать awSlaveData_old := awSlaveData, а потом если что то нужно индивидуально, то персональное копирование
    Bad programmers worry about the code. Good programmers worry about data structures and their relationships

    среди успешных людей я не встречала нытиков
    Барбара Коркоран

  3. #13

    По умолчанию

    Такой способ улавливания изменений он вроде логичен для ST. Обрабатывается страница кода, в конце нее присвоение нового к старому, а в начале страницы - анализ/сравнение. Если есть изменение - действие, так считаю не потеряется цикл, сразу его обработаете и уже после обработки в конце кода - опять приравняете. Так вроде как однозначно выходит.
    Впрочем не с чем не спорю, просто поделился как делаю.
    С уважением,
    Лапшин Вячеслав

  4. #14
    Пользователь
    Регистрация
    10.04.2010
    Адрес
    Алтайский край,г.Рубцовск
    Сообщений
    904

    По умолчанию

    Цитата Сообщение от krollcbas Посмотреть сообщение
    ПЛК210_01. В проекте про который пишу задействовано на данный момент 505 регистров хранения.
    Из них около 40% это только запись в регистры, например датчики температуры, давления, состояния устройств и нарушения
    Остальные 60% это различные переменные вроде уставок, команд и прочего, что предполагает некую событийную запись. Хоть из вне контроллера, по интерфейсу, хоть изнутри из кода. Запись в моем случае всегда делается импульсно. Это позволяет одну переменную использовать в разных местах
    IMG_20210819_0050041.jpg IMG_20210819_1523211.jpg

    Зачем данный пост: в ПЛК110, если мы используем конфигуратор, то он так и работает по умолчанию. Нет разделения переменных на чтения и на запись. Если в переменную никто циклически не пишет, то переменную можно менять, это удобно и правильно.
    В ПЛК210 несколько все иначе и эту событийность нужно создавать руками, прописывать. Делать через библиотеку.
    Евгений, все что Вы объясняли - работает, только вот кода вышло под 1000 строк для не самого большого проекта и это только для организации обмена по интерфейсу. Пытался оптимизировать, компоновать все что нужно для одной переменной в блок, но стали вылезать жуткие непонятные сообщения и эксперимент был свернут. Код размещенный ниже работает так как задумано, однако мне не могут нравиться такие "некомпактные" решения

    Возможно кто-то делает иначе, прошу тогда поделиться

    Код:
    FUNCTION_BLOCK Interface1
    VAR_INPUT
    END_VAR
    VAR_OUTPUT
    END_VAR
    VAR
    fbModbusTcpSlave: OCL.MB_TcpSlave;// ФБ для реализиации Modbus Slave
    
    awSlaveData:ARRAY [0..508] OF WORD;  // буфер данных Modbus Slave
    awSlaveData_old:ARRAY [0..508] OF WORD;  // буфер данных Modbus Slave
    
    ENABLE1:BOOL:=TRUE;
    
    x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14,x15,x16,x17,x18,x19,x20,x21,x22,x23,x24,x25,x26,x27,x28,x29,x30,x31,x32,x33,x34,x35,x36,x37,x38,x39,x40,x41,x42,x43,x44,x45,x46,x47,x48,x49,x50,x51,x52,x53,x54,x55,x56,x57,x58,x59,x60:BOOL;
    x61,x62,x63,x64,x65,x66,x67,x68,x69,x70,x71,x72,x73,x74,x75,x76,x77,x78,x79,x80,x81,x82,x83,x84,x85,x86,x87,x88,x89,x90,x91,x92,x93,x94,x95,x96,x97,x98,x99,x100:BOOL;
    x101,x102,x103,x104,x105,x106,x107,x108,x109,x110,x111,x112,x113,x114,x115,x116,x117,x118,x119,x120,x121,x122,x123,x124,x125,x126,x127,x128,x129,x130:BOOL;
    x131,x132,x133,x134,x135,x136,x137,x138,x139,x140,x141,x142,x143,x144,x145,x146,x147,x148,x149,x150,x151,x152,x153,x154,x155,x156,x157,x158,x159,x160:BOOL;
    x161,x162,x163,x164,x165,x166,x167,x168,x169,x170,x171,x172,x173,x174,x175,x176,x177,x178,x179,x180,x181,x182,x183,x184,x185,x186,x187,x188,x189,x190:BOOL;
    x191,x192,x193,x194,x195,x196,x197,x198,x199,x200,x201,x202,x203,x204,x205,x206,x207,x208,x209,x210,x211,x212,x213,x214,x215,x216,x217,x218,x219,x220,x221,x222,x223,x224,x225,x226,x227,x228,x229,x230,
    x231,x232,x233,x234,x235,x236,x237,x238,x239,x240,x241,x242,x243,x244,x245,x246,x247,x248,x249,x250,x251,x252,x253,x254,x255,x256,x257,x258,x259,x260,x261,x262,x263,x264,x265,x266,x267,x268,x269,x270:BOOL;
    
    SP_Y01_old,SP_Y02_old,SP_Y03_old,SP_Y04_old,SP_Y05_old,SP_Y06_old,SP_Y07_old,SP_Y08_old,SP_Y09_old,MANUAL_Y01_old,MANUAL_Y02_old,MANUAL_Y03_old,MANUAL_Y04_old,MANUAL_Y05_old,MANUAL_Y06_old,MANUAL_Y07_old,
    MANUAL_Y08_old,MANUAL_Y09_old,P_Y01_old,P_Y02_old,P_Y03_old,P_Y04_old,P_Y05_old,P_Y06_old,P_Y07_old,P_Y08_old,P_Y09_old,I_Y01_old,I_Y02_old,I_Y03_old,I_Y04_old,I_Y05_old,
    I_Y06_old,I_Y07_old,I_Y08_old,I_Y09_old,D_Y01_old,D_Y02_old,D_Y03_old,D_Y04_old,D_Y05_old,D_Y06_old,D_Y07_old,D_Y08_old,D_Y09_old,P05_Pset_old,P10_Pset_old,P15_Pset_old,P21_Pset_old,P27_Pset_old:REAL;
    
    P17_CMD_old,P18_CMD_old,P19_CMD_old,P20_CMD_old,P21_CMD_old,P22_CMD_old,P23_CMD_old,P24_CMD_old,P25_CMD_old,P26_CMD_old,P27_CMD_old,P28_CMD_old,P29_CMD_old,P30_CMD_old,P01_CMD_old,P02_CMD_old,
    P03_CMD_old,P04_CMD_old,P05_CMD_old,HL02_CMD_old,P06_CMD_old,P07_CMD_old,P08_CMD_old,P09_CMD_old,P10_CMD_old,P11_CMD_old,P12_CMD_old,P13_CMD_old,P14_CMD_old,P15_CMD_old,P16_CMD_old,REG_Y01_CMD_old,
    REG_Y02_CMD_old,REG_Y03_CMD_old,REG_Y04_CMD_old,REG_Y05_CMD_old,REG_Y06_CMD_old,REG_Y07_CMD_old,REG_Y08_CMD_old,REG_Y09_CMD_old:WORD;
    
    SP_Y01_1_old,SP_Y01_2_old,SP_Y01_3_old,SP_Y01_4_old,SP_Y02_1_old,SP_Y02_2_old,SP_Y02_3_old,SP_Y02_4_old,SP_Y03_1_old,SP_Y03_2_old,SP_Y03_3_old,SP_Y03_4_old,SP_Y04_1_old,SP_Y04_2_old,SP_Y04_3_old,SP_Y04_4_old,
    SP_Y05_1_old,SP_Y05_2_old,SP_Y05_3_old,SP_Y05_4_old,SP_Y06_1_old,SP_Y06_2_old,SP_Y06_3_old,SP_Y06_4_old,SP_Y07_1_old,SP_Y07_2_old,SP_Y07_3_old,SP_Y07_4_old,SP_Y08_1_old,SP_Y08_2_old,SP_Y08_3_old,SP_Y08_4_old,
    SP_Y09_1_old,SP_Y09_2_old,SP_Y09_3_old,SP_Y09_4_old:REAL;
    
    //fbRealToWord2 ФБ преобразования REAL в две переменные типа WORD
    fbRealToWord1,fbRealToWord2,fbRealToWord3,fbRealToWord4,fbRealToWord5,fbRealToWord6,fbRealToWord7,fbRealToWord8,fbRealToWord9,fbRealToWord10,fbRealToWord11,fbRealToWord12,fbRealToWord13,fbRealToWord14,fbRealToWord15,fbRealToWord16,fbRealToWord17,fbRealToWord18,
    fbRealToWord19,fbRealToWord20,fbRealToWord21,fbRealToWord22,fbRealToWord23,fbRealToWord24,fbRealToWord25,fbRealToWord26,fbRealToWord27,fbRealToWord28,fbRealToWord29,fbRealToWord30,fbRealToWord31,fbRealToWord32,fbRealToWord33,fbRealToWord34,
    fbRealToWord35,fbRealToWord36,fbRealToWord37,fbRealToWord38,fbRealToWord39,fbRealToWord40,fbRealToWord41,fbRealToWord42,fbRealToWord43,fbRealToWord44,fbRealToWord45,fbRealToWord46,fbRealToWord47,fbRealToWord48,fbRealToWord49,fbRealToWord50,
    fbRealToWord51,fbRealToWord52,fbRealToWord53,fbRealToWord54,fbRealToWord55,fbRealToWord56,fbRealToWord57,fbRealToWord58,fbRealToWord59,fbRealToWord60,fbRealToWord61,fbRealToWord62,fbRealToWord63,fbRealToWord64,fbRealToWord65,fbRealToWord66,
    fbRealToWord67,fbRealToWord68,fbRealToWord69,fbRealToWord70,fbRealToWord71,fbRealToWord72,fbRealToWord73,fbRealToWord74,fbRealToWord75,fbRealToWord76,fbRealToWord77,fbRealToWord78,fbRealToWord79,fbRealToWord80,fbRealToWord81,fbRealToWord82,
    fbRealToWord83,fbRealToWord84,fbRealToWord85,fbRealToWord86,fbRealToWord87,fbRealToWord88,fbRealToWord89,fbRealToWord90,fbRealToWord91,fbRealToWord92,fbRealToWord93,fbRealToWord94,fbRealToWord95,fbRealToWord96,fbRealToWord97,fbRealToWord98,
    fbRealToWord99,fbRealToWord100,fbRealToWord101,fbRealToWord102,fbRealToWord103,fbRealToWord104,fbRealToWord105,fbRealToWord106,fbRealToWord107,fbRealToWord108,fbRealToWord109,fbRealToWord110,fbRealToWord111,fbRealToWord112,fbRealToWord113,fbRealToWord114,
    fbRealToWord115,fbRealToWord116,fbRealToWord117,fbRealToWord118,fbRealToWord119,fbRealToWord120,fbRealToWord121,fbRealToWord122,fbRealToWord123,fbRealToWord124,fbRealToWord125,fbRealToWord126,fbRealToWord127,fbRealToWord128,fbRealToWord129,fbRealToWord130,
    fbRealToWord131,fbRealToWord132,fbRealToWord133,fbRealToWord134,fbRealToWord135,fbRealToWord136,fbRealToWord137,fbRealToWord138,fbRealToWord139,fbRealToWord140,fbRealToWord141,fbRealToWord142,fbRealToWord143,fbRealToWord144,fbRealToWord145,fbRealToWord146,
    fbRealToWord147,fbRealToWord148,fbRealToWord149,fbRealToWord150,fbRealToWord151,fbRealToWord152,fbRealToWord153,fbRealToWord154,fbRealToWord155,fbRealToWord156,fbRealToWord157: OCL.REAL_TO_WORD2;
    fbRealToWord158,fbRealToWord159,fbRealToWord160,fbRealToWord161,fbRealToWord162,fbRealToWord163,fbRealToWord164,fbRealToWord165,fbRealToWord166,fbRealToWord167,fbRealToWord168,fbRealToWord169,fbRealToWord170,fbRealToWord171,fbRealToWord172,fbRealToWord173,fbRealToWord174,fbRealToWord175,fbRealToWord176,
    fbRealToWord177,fbRealToWord178,fbRealToWord179,fbRealToWord180,fbRealToWord181,fbRealToWord182,fbRealToWord183,fbRealToWord184,fbRealToWord185,fbRealToWord186,fbRealToWord187,fbRealToWord188,fbRealToWord189,fbRealToWord190,fbRealToWord191,fbRealToWord192,fbRealToWord193: OCL.REAL_TO_WORD2;
    
    
    END_VAR
    
    fbModbusTcpSlave
    (
    xEnable:= ENABLE1, 
    sIpAddr:= '0.0.0.0',
     uiPort      := 502,
    usiUnitId:= 1, 
    pData:= ADR(awSlaveData), 
    szSize:= SIZEOF(awSlaveData) 
    );
    
    // То, что передаем в панель
    x1:=(awSlaveData_old[197]<>awSlaveData[197]) OR (awSlaveData_old[196]<>awSlaveData[196]);
    x2:=SP_Y01_old<>SP_Y01;
    x3:=(awSlaveData_old[199]<>awSlaveData[199]) OR (awSlaveData_old[198]<>awSlaveData[198]);
    x4:=SP_Y02_old<>SP_Y02;
    x5:=(awSlaveData_old[201]<>awSlaveData[201]) OR (awSlaveData_old[200]<>awSlaveData[200]);
    x6:=SP_Y03_old<>SP_Y03;
    x7:=(awSlaveData_old[203]<>awSlaveData[203]) OR (awSlaveData_old[202]<>awSlaveData[202]);
    x8:=SP_Y04_old<>SP_Y04;
    x9:=(awSlaveData_old[205]<>awSlaveData[205]) OR (awSlaveData_old[204]<>awSlaveData[204]);
    x10:=SP_Y05_old<>SP_Y05;
    x11:=(awSlaveData_old[207]<>awSlaveData[207]) OR (awSlaveData_old[206]<>awSlaveData[206]);
    x12:=SP_Y06_old<>SP_Y06;
    x13:=(awSlaveData_old[209]<>awSlaveData[209]) OR (awSlaveData_old[208]<>awSlaveData[208]);
    x14:=SP_Y07_old<>SP_Y07;
    x15:=(awSlaveData_old[211]<>awSlaveData[211]) OR (awSlaveData_old[210]<>awSlaveData[210]);
    x16:=SP_Y08_old<>SP_Y08;
    x17:=(awSlaveData_old[213]<>awSlaveData[213]) OR (awSlaveData_old[212]<>awSlaveData[212]);
    x18:=SP_Y09_old<>SP_Y09;
    
    x19:=(awSlaveData_old[215]<>awSlaveData[215]) OR (awSlaveData_old[214]<>awSlaveData[214]);
    x20:=MANUAL_Y01_old<>MANUAL_Y01;
    x21:=(awSlaveData_old[217]<>awSlaveData[217]) OR (awSlaveData_old[216]<>awSlaveData[216]);
    x22:=MANUAL_Y02_old<>MANUAL_Y02;
    x23:=(awSlaveData_old[219]<>awSlaveData[219]) OR (awSlaveData_old[218]<>awSlaveData[218]);
    x24:=MANUAL_Y03_old<>MANUAL_Y03;
    x25:=(awSlaveData_old[221]<>awSlaveData[221]) OR (awSlaveData_old[220]<>awSlaveData[220]);
    x26:=MANUAL_Y04_old<>MANUAL_Y04;
    x27:=(awSlaveData_old[223]<>awSlaveData[223]) OR (awSlaveData_old[222]<>awSlaveData[222]);
    x28:=MANUAL_Y05_old<>MANUAL_Y05;
    x29:=(awSlaveData_old[225]<>awSlaveData[225]) OR (awSlaveData_old[224]<>awSlaveData[224]);
    x30:=MANUAL_Y06_old<>MANUAL_Y06;
    x31:=(awSlaveData_old[227]<>awSlaveData[227]) OR (awSlaveData_old[226]<>awSlaveData[226]);
    x32:=MANUAL_Y07_old<>MANUAL_Y07;
    x33:=(awSlaveData_old[229]<>awSlaveData[229]) OR (awSlaveData_old[228]<>awSlaveData[228]);
    x34:=MANUAL_Y08_old<>MANUAL_Y08;
    x35:=(awSlaveData_old[231]<>awSlaveData[231]) OR (awSlaveData_old[230]<>awSlaveData[230]);
    x36:=MANUAL_Y09_old<>MANUAL_Y09;
    
    x37:=(awSlaveData_old[251]<>awSlaveData[251]) OR (awSlaveData_old[250]<>awSlaveData[250]);
    x38:=P_Y01_old<>P_Y01;
    x39:=(awSlaveData_old[253]<>awSlaveData[253]) OR (awSlaveData_old[252]<>awSlaveData[252]);
    x40:=P_Y02_old<>P_Y02;
    x41:=(awSlaveData_old[255]<>awSlaveData[255]) OR (awSlaveData_old[254]<>awSlaveData[254]);
    x42:=P_Y03_old<>P_Y03;
    x43:=(awSlaveData_old[257]<>awSlaveData[257]) OR (awSlaveData_old[256]<>awSlaveData[256]);
    x44:=P_Y04_old<>P_Y04;
    x45:=(awSlaveData_old[259]<>awSlaveData[259]) OR (awSlaveData_old[258]<>awSlaveData[258]);
    x46:=P_Y05_old<>P_Y05;
    x47:=(awSlaveData_old[261]<>awSlaveData[261]) OR (awSlaveData_old[260]<>awSlaveData[260]);
    x48:=P_Y06_old<>P_Y06;
    x49:=(awSlaveData_old[263]<>awSlaveData[263]) OR (awSlaveData_old[262]<>awSlaveData[262]);
    x50:=P_Y07_old<>P_Y07;
    x51:=(awSlaveData_old[265]<>awSlaveData[265]) OR (awSlaveData_old[264]<>awSlaveData[264]);
    x52:=P_Y08_old<>P_Y08;
    x53:=(awSlaveData_old[267]<>awSlaveData[267]) OR (awSlaveData_old[266]<>awSlaveData[266]);
    x54:=P_Y09_old<>P_Y09;
    
    x55:=(awSlaveData_old[269]<>awSlaveData[269]) OR (awSlaveData_old[268]<>awSlaveData[268]);
    x56:=I_Y01_old<>I_Y01;
    x57:=(awSlaveData_old[271]<>awSlaveData[271]) OR (awSlaveData_old[270]<>awSlaveData[270]);
    x58:=I_Y02_old<>I_Y02;
    x59:=(awSlaveData_old[273]<>awSlaveData[273]) OR (awSlaveData_old[272]<>awSlaveData[272]);
    x60:=I_Y03_old<>I_Y03;
    x61:=(awSlaveData_old[275]<>awSlaveData[275]) OR (awSlaveData_old[274]<>awSlaveData[274]);
    x62:=I_Y04_old<>I_Y04;
    x63:=(awSlaveData_old[277]<>awSlaveData[277]) OR (awSlaveData_old[276]<>awSlaveData[276]);
    x64:=I_Y05_old<>I_Y05;
    x65:=(awSlaveData_old[279]<>awSlaveData[279]) OR (awSlaveData_old[278]<>awSlaveData[278]);
    x66:=I_Y06_old<>I_Y06;
    x67:=(awSlaveData_old[281]<>awSlaveData[281]) OR (awSlaveData_old[280]<>awSlaveData[280]);
    x68:=I_Y07_old<>I_Y07;
    x69:=(awSlaveData_old[283]<>awSlaveData[283]) OR (awSlaveData_old[282]<>awSlaveData[282]);
    x70:=I_Y08_old<>I_Y08;
    x71:=(awSlaveData_old[285]<>awSlaveData[285]) OR (awSlaveData_old[284]<>awSlaveData[284]);
    x72:=I_Y09_old<>I_Y09;
    
    x73:=(awSlaveData_old[287]<>awSlaveData[287]) OR (awSlaveData_old[286]<>awSlaveData[286]);
    x74:=D_Y01_old<>D_Y01;
    x75:=(awSlaveData_old[289]<>awSlaveData[289]) OR (awSlaveData_old[288]<>awSlaveData[288]);
    x76:=D_Y02_old<>D_Y02;
    x77:=(awSlaveData_old[291]<>awSlaveData[291]) OR (awSlaveData_old[290]<>awSlaveData[290]);
    x78:=D_Y03_old<>D_Y03;
    x79:=(awSlaveData_old[293]<>awSlaveData[293]) OR (awSlaveData_old[292]<>awSlaveData[292]);
    x80:=D_Y04_old<>D_Y04;
    x81:=(awSlaveData_old[295]<>awSlaveData[295]) OR (awSlaveData_old[294]<>awSlaveData[294]);
    x82:=D_Y05_old<>D_Y05;
    x83:=(awSlaveData_old[297]<>awSlaveData[297]) OR (awSlaveData_old[296]<>awSlaveData[296]);
    x84:=D_Y06_old<>D_Y06;
    x85:=(awSlaveData_old[299]<>awSlaveData[299]) OR (awSlaveData_old[298]<>awSlaveData[298]);
    x86:=D_Y07_old<>D_Y07;
    x87:=(awSlaveData_old[301]<>awSlaveData[301]) OR (awSlaveData_old[300]<>awSlaveData[300]);
    x88:=D_Y08_old<>D_Y08;
    x89:=(awSlaveData_old[303]<>awSlaveData[303]) OR (awSlaveData_old[302]<>awSlaveData[302]);
    x90:=D_Y09_old<>D_Y09;
    
    x91:=(awSlaveData_old[417]<>awSlaveData[417]) OR (awSlaveData_old[416]<>awSlaveData[416]);
    x92:=P05_Pset_old<>P05_Pset;
    x93:=(awSlaveData_old[419]<>awSlaveData[419]) OR (awSlaveData_old[418]<>awSlaveData[418]);
    x94:=P10_Pset_old<>P10_Pset;
    x95:=(awSlaveData_old[421]<>awSlaveData[421]) OR (awSlaveData_old[420]<>awSlaveData[420]);
    x96:=P15_Pset_old<>P15_Pset;
    x97:=(awSlaveData_old[423]<>awSlaveData[423]) OR (awSlaveData_old[422]<>awSlaveData[422]);
    x98:=P21_Pset_old<>P21_Pset;
    x99:=(awSlaveData_old[425]<>awSlaveData[425]) OR (awSlaveData_old[424]<>awSlaveData[424]);
    x100:=P27_Pset_old<>P27_Pset;
    x101    :=    awSlaveData_old[    305    ]    <>    awSlaveData[    305    ]    ;
    x103    :=    awSlaveData_old[    308    ]    <>    awSlaveData[    308    ]    ;
    x105    :=    awSlaveData_old[    311    ]    <>    awSlaveData[    311    ]    ;
    x107    :=    awSlaveData_old[    314    ]    <>    awSlaveData[    314    ]    ;
    x109    :=    awSlaveData_old[    317    ]    <>    awSlaveData[    317    ]    ;
    x111    :=    awSlaveData_old[    320    ]    <>    awSlaveData[    320    ]    ;
    x113    :=    awSlaveData_old[    323    ]    <>    awSlaveData[    323    ]    ;
    x115    :=    awSlaveData_old[    326    ]    <>    awSlaveData[    326    ]    ;
    x117    :=    awSlaveData_old[    329    ]    <>    awSlaveData[    329    ]    ;
    x119    :=    awSlaveData_old[    332    ]    <>    awSlaveData[    332    ]    ;
    x121    :=    awSlaveData_old[    335    ]    <>    awSlaveData[    335    ]    ;
    x123    :=    awSlaveData_old[    338    ]    <>    awSlaveData[    338    ]    ;
    x125    :=    awSlaveData_old[    341    ]    <>    awSlaveData[    341    ]    ;
    x127    :=    awSlaveData_old[    344    ]    <>    awSlaveData[    344    ]    ;
    x129    :=    awSlaveData_old[    347    ]    <>    awSlaveData[    347    ]    ;
    x131    :=    awSlaveData_old[    350    ]    <>    awSlaveData[    350    ]    ;
    x133    :=    awSlaveData_old[    353    ]    <>    awSlaveData[    353    ]    ;
    x135    :=    awSlaveData_old[    356    ]    <>    awSlaveData[    356    ]    ;
    x137    :=    awSlaveData_old[    359    ]    <>    awSlaveData[    359    ]    ;
    x139    :=    awSlaveData_old[    362    ]    <>    awSlaveData[    362    ]    ;
    x141    :=    awSlaveData_old[    365    ]    <>    awSlaveData[    365    ]    ;
    x143    :=    awSlaveData_old[    368    ]    <>    awSlaveData[    368    ]    ;
    x145    :=    awSlaveData_old[    371    ]    <>    awSlaveData[    371    ]    ;
    x147    :=    awSlaveData_old[    374    ]    <>    awSlaveData[    374    ]    ;
    x149    :=    awSlaveData_old[    377    ]    <>    awSlaveData[    377    ]    ;
    x151    :=    awSlaveData_old[    380    ]    <>    awSlaveData[    380    ]    ;
    x153    :=    awSlaveData_old[    383    ]    <>    awSlaveData[    383    ]    ;
    x155    :=    awSlaveData_old[    386    ]    <>    awSlaveData[    386    ]    ;
    x157    :=    awSlaveData_old[    389    ]    <>    awSlaveData[    389    ]    ;
    x159    :=    awSlaveData_old[    392    ]    <>    awSlaveData[    392    ]    ;
    x161    :=    awSlaveData_old[    395    ]    <>    awSlaveData[    395    ]    ;
    x163    :=    awSlaveData_old[    406    ]    <>    awSlaveData[    406    ]    ;
    x165    :=    awSlaveData_old[    407    ]    <>    awSlaveData[    407    ]    ;
    x167    :=    awSlaveData_old[    408    ]    <>    awSlaveData[    408    ]    ;
    x169    :=    awSlaveData_old[    409    ]    <>    awSlaveData[    409    ]    ;
    x171    :=    awSlaveData_old[    410    ]    <>    awSlaveData[    410    ]    ;
    x173    :=    awSlaveData_old[    411    ]    <>    awSlaveData[    411    ]    ;
    x175    :=    awSlaveData_old[    412    ]    <>    awSlaveData[    412    ]    ;
    x177    :=    awSlaveData_old[    413    ]    <>    awSlaveData[    413    ]    ;
    x179    :=    awSlaveData_old[    414    ]    <>    awSlaveData[    414    ]    ;
    
    x102    :=    P17_CMD_old<>P17_CMD;
    x104    :=    P18_CMD_old<>P18_CMD;
    x106    :=    P19_CMD_old<>P19_CMD;
    x108    :=    P20_CMD_old<>P20_CMD;
    x110    :=    P21_CMD_old<>P21_CMD;
    x112    :=    P22_CMD_old<>P22_CMD;
    x114    :=    P23_CMD_old<>P23_CMD;
    x116    :=    P24_CMD_old<>P24_CMD;
    x118    :=    P25_CMD_old<>P25_CMD;
    x120    :=    P26_CMD_old<>P26_CMD;
    x122    :=    P27_CMD_old<>P27_CMD;
    x124    :=    P28_CMD_old<>P28_CMD;
    x126    :=    P29_CMD_old<>P29_CMD;
    x128    :=    P30_CMD_old<>P30_CMD;
    x130    :=    P01_CMD_old<>P01_CMD;
    x132    :=    P02_CMD_old<>P02_CMD;
    x134    :=    P03_CMD_old<>P03_CMD;
    x136    :=    P04_CMD_old<>P04_CMD;
    x138    :=    P05_CMD_old<>P05_CMD;
    x140    :=    HL02_CMD_old<>HL02_CMD;
    x142    :=    P06_CMD_old<>P06_CMD;
    x144    :=    P07_CMD_old<>P07_CMD;
    x146    :=    P08_CMD_old<>P08_CMD;
    x148    :=    P09_CMD_old<>P09_CMD;
    x150    :=    P10_CMD_old<>P10_CMD;
    x152    :=    P11_CMD_old<>P11_CMD;
    x154    :=    P12_CMD_old<>P12_CMD;
    x156    :=    P13_CMD_old<>P13_CMD;
    x158    :=    P14_CMD_old<>P14_CMD;
    x160    :=    P15_CMD_old<>P15_CMD;
    x162    :=    P16_CMD_old<>P16_CMD;
    x164    :=    REG_Y01_CMD_old<>REG_Y01_CMD;
    x166    :=    REG_Y02_CMD_old<>REG_Y02_CMD;
    x168    :=    REG_Y03_CMD_old<>REG_Y03_CMD;
    x170    :=    REG_Y04_CMD_old<>REG_Y04_CMD;
    x172    :=    REG_Y05_CMD_old<>REG_Y05_CMD;
    x174    :=    REG_Y06_CMD_old<>REG_Y06_CMD;
    x176    :=    REG_Y07_CMD_old<>REG_Y07_CMD;
    x178    :=    REG_Y08_CMD_old<>REG_Y08_CMD;
    x180    :=    REG_Y09_CMD_old<>REG_Y09_CMD;
    
    x181    :=    (    awSlaveData_old[    435    ]    <>    awSlaveData[    435    ]    )    OR    (    awSlaveData_old[    434    ]    <>    awSlaveData[    434    ]    )    ;
    x183    :=    (    awSlaveData_old[    437    ]    <>    awSlaveData[    437    ]    )    OR    (    awSlaveData_old[    436    ]    <>    awSlaveData[    436    ]    )    ;
    x185    :=    (    awSlaveData_old[    439    ]    <>    awSlaveData[    439    ]    )    OR    (    awSlaveData_old[    438    ]    <>    awSlaveData[    438    ]    )    ;
    x187    :=    (    awSlaveData_old[    441    ]    <>    awSlaveData[    441    ]    )    OR    (    awSlaveData_old[    440    ]    <>    awSlaveData[    440    ]    )    ;
    x189    :=    (    awSlaveData_old[    443    ]    <>    awSlaveData[    443    ]    )    OR    (    awSlaveData_old[    442    ]    <>    awSlaveData[    442    ]    )    ;
    x191    :=    (    awSlaveData_old[    445    ]    <>    awSlaveData[    445    ]    )    OR    (    awSlaveData_old[    444    ]    <>    awSlaveData[    444    ]    )    ;
    x193    :=    (    awSlaveData_old[    447    ]    <>    awSlaveData[    447    ]    )    OR    (    awSlaveData_old[    446    ]    <>    awSlaveData[    446    ]    )    ;
    x195    :=    (    awSlaveData_old[    449    ]    <>    awSlaveData[    449    ]    )    OR    (    awSlaveData_old[    448    ]    <>    awSlaveData[    448    ]    )    ;
    x197    :=    (    awSlaveData_old[    451    ]    <>    awSlaveData[    451    ]    )    OR    (    awSlaveData_old[    450    ]    <>    awSlaveData[    450    ]    )    ;
    x199    :=    (    awSlaveData_old[    453    ]    <>    awSlaveData[    453    ]    )    OR    (    awSlaveData_old[    452    ]    <>    awSlaveData[    452    ]    )    ;
    x201    :=    (    awSlaveData_old[    455    ]    <>    awSlaveData[    455    ]    )    OR    (    awSlaveData_old[    454    ]    <>    awSlaveData[    454    ]    )    ;
    x203    :=    (    awSlaveData_old[    457    ]    <>    awSlaveData[    457    ]    )    OR    (    awSlaveData_old[    456    ]    <>    awSlaveData[    456    ]    )    ;
    x205    :=    (    awSlaveData_old[    459    ]    <>    awSlaveData[    459    ]    )    OR    (    awSlaveData_old[    458    ]    <>    awSlaveData[    458    ]    )    ;
    x207    :=    (    awSlaveData_old[    461    ]    <>    awSlaveData[    461    ]    )    OR    (    awSlaveData_old[    460    ]    <>    awSlaveData[    460    ]    )    ;
    x209    :=    (    awSlaveData_old[    463    ]    <>    awSlaveData[    463    ]    )    OR    (    awSlaveData_old[    462    ]    <>    awSlaveData[    462    ]    )    ;
    x211    :=    (    awSlaveData_old[    465    ]    <>    awSlaveData[    465    ]    )    OR    (    awSlaveData_old[    464    ]    <>    awSlaveData[    464    ]    )    ;
    x213    :=    (    awSlaveData_old[    467    ]    <>    awSlaveData[    467    ]    )    OR    (    awSlaveData_old[    466    ]    <>    awSlaveData[    466    ]    )    ;
    x215    :=    (    awSlaveData_old[    469    ]    <>    awSlaveData[    469    ]    )    OR    (    awSlaveData_old[    468    ]    <>    awSlaveData[    468    ]    )    ;
    x217    :=    (    awSlaveData_old[    471    ]    <>    awSlaveData[    471    ]    )    OR    (    awSlaveData_old[    470    ]    <>    awSlaveData[    470    ]    )    ;
    x219    :=    (    awSlaveData_old[    473    ]    <>    awSlaveData[    473    ]    )    OR    (    awSlaveData_old[    472    ]    <>    awSlaveData[    472    ]    )    ;
    x221    :=    (    awSlaveData_old[    475    ]    <>    awSlaveData[    475    ]    )    OR    (    awSlaveData_old[    474    ]    <>    awSlaveData[    474    ]    )    ;
    x223    :=    (    awSlaveData_old[    477    ]    <>    awSlaveData[    477    ]    )    OR    (    awSlaveData_old[    476    ]    <>    awSlaveData[    476    ]    )    ;
    x225    :=    (    awSlaveData_old[    479    ]    <>    awSlaveData[    479    ]    )    OR    (    awSlaveData_old[    478    ]    <>    awSlaveData[    478    ]    )    ;
    x227    :=    (    awSlaveData_old[    481    ]    <>    awSlaveData[    481    ]    )    OR    (    awSlaveData_old[    480    ]    <>    awSlaveData[    480    ]    )    ;
    x229    :=    (    awSlaveData_old[    483    ]    <>    awSlaveData[    483    ]    )    OR    (    awSlaveData_old[    482    ]    <>    awSlaveData[    482    ]    )    ;
    x231    :=    (    awSlaveData_old[    485    ]    <>    awSlaveData[    485    ]    )    OR    (    awSlaveData_old[    484    ]    <>    awSlaveData[    484    ]    )    ;
    x233    :=    (    awSlaveData_old[    487    ]    <>    awSlaveData[    487    ]    )    OR    (    awSlaveData_old[    486    ]    <>    awSlaveData[    486    ]    )    ;
    x235    :=    (    awSlaveData_old[    489    ]    <>    awSlaveData[    489    ]    )    OR    (    awSlaveData_old[    488    ]    <>    awSlaveData[    488    ]    )    ;
    x237    :=    (    awSlaveData_old[    491    ]    <>    awSlaveData[    491    ]    )    OR    (    awSlaveData_old[    490    ]    <>    awSlaveData[    490    ]    )    ;
    x239    :=    (    awSlaveData_old[    493    ]    <>    awSlaveData[    493    ]    )    OR    (    awSlaveData_old[    492    ]    <>    awSlaveData[    492    ]    )    ;
    x241    :=    (    awSlaveData_old[    495    ]    <>    awSlaveData[    495    ]    )    OR    (    awSlaveData_old[    494    ]    <>    awSlaveData[    494    ]    )    ;
    x243    :=    (    awSlaveData_old[    497    ]    <>    awSlaveData[    497    ]    )    OR    (    awSlaveData_old[    496    ]    <>    awSlaveData[    496    ]    )    ;
    x245    :=    (    awSlaveData_old[    499    ]    <>    awSlaveData[    499    ]    )    OR    (    awSlaveData_old[    498    ]    <>    awSlaveData[    498    ]    )    ;
    x247    :=    (    awSlaveData_old[    501    ]    <>    awSlaveData[    501    ]    )    OR    (    awSlaveData_old[    500    ]    <>    awSlaveData[    500    ]    )    ;
    x249    :=    (    awSlaveData_old[    503    ]    <>    awSlaveData[    503    ]    )    OR    (    awSlaveData_old[    502    ]    <>    awSlaveData[    502    ]    )    ;
    x251    :=    (    awSlaveData_old[    505    ]    <>    awSlaveData[    505    ]    )    OR    (    awSlaveData_old[    504    ]    <>    awSlaveData[    504    ]    )    ;
    
    x182:=SP_Y01_1_old<>SP_Y01_1;
    x184:=SP_Y01_2_old<>SP_Y01_2;
    x186:=SP_Y01_3_old<>SP_Y01_3;
    x188:=SP_Y01_4_old<>SP_Y01_4;
    x190:=SP_Y02_1_old<>SP_Y02_1;
    x192:=SP_Y02_2_old<>SP_Y02_2;
    x194:=SP_Y02_3_old<>SP_Y02_3;
    x196:=SP_Y02_4_old<>SP_Y02_4;
    x198:=SP_Y03_1_old<>SP_Y03_1;
    x200:=SP_Y03_2_old<>SP_Y03_2;
    x202:=SP_Y03_3_old<>SP_Y03_3;
    x204:=SP_Y03_4_old<>SP_Y03_4;
    x206:=SP_Y04_1_old<>SP_Y04_1;
    x208:=SP_Y04_2_old<>SP_Y04_2;
    x210:=SP_Y04_3_old<>SP_Y04_3;
    x212:=SP_Y04_4_old<>SP_Y04_4;
    x214:=SP_Y05_1_old<>SP_Y05_1;
    x216:=SP_Y05_2_old<>SP_Y05_2;
    x218:=SP_Y05_3_old<>SP_Y05_3;
    x220:=SP_Y05_4_old<>SP_Y05_4;
    x222:=SP_Y06_1_old<>SP_Y06_1;
    x224:=SP_Y06_2_old<>SP_Y06_2;
    x226:=SP_Y06_3_old<>SP_Y06_3;
    x228:=SP_Y06_4_old<>SP_Y06_4;
    x230:=SP_Y07_1_old<>SP_Y07_1;
    x232:=SP_Y07_2_old<>SP_Y07_2;
    x234:=SP_Y07_3_old<>SP_Y07_3;
    x236:=SP_Y07_4_old<>SP_Y07_4;
    x238:=SP_Y08_1_old<>SP_Y08_1;
    x240:=SP_Y08_2_old<>SP_Y08_2;
    x242:=SP_Y08_3_old<>SP_Y08_3;
    x244:=SP_Y08_4_old<>SP_Y08_4;
    x246:=SP_Y09_1_old<>SP_Y09_1;
    x248:=SP_Y09_2_old<>SP_Y09_2;
    x250:=SP_Y09_3_old<>SP_Y09_3;
    x252:=SP_Y09_4_old<>SP_Y09_4;
    
    
    
    fbRealToWord1    (rInput :=    PE05_    , wOutput1 => awSlaveData[    1    ], wOutput2 => awSlaveData[    0    ]);
    fbRealToWord2    (rInput :=    PE04_    , wOutput1 => awSlaveData[    3    ], wOutput2 => awSlaveData[    2    ]);
    fbRealToWord3    (rInput :=    PE03_    , wOutput1 => awSlaveData[    5    ], wOutput2 => awSlaveData[    4    ]);
    fbRealToWord4    (rInput :=    PE02_    , wOutput1 => awSlaveData[    7    ], wOutput2 => awSlaveData[    6    ]);
    fbRealToWord5    (rInput :=    PE01_    , wOutput1 => awSlaveData[    9    ], wOutput2 => awSlaveData[    8    ]);
    fbRealToWord6    (rInput :=    TE05_    , wOutput1 => awSlaveData[    11    ], wOutput2 => awSlaveData[    10    ]);
    fbRealToWord7    (rInput :=    TE04_    , wOutput1 => awSlaveData[    13    ], wOutput2 => awSlaveData[    12    ]);
    fbRealToWord8    (rInput :=    TE03_    , wOutput1 => awSlaveData[    15    ], wOutput2 => awSlaveData[    14    ]);
    fbRealToWord9    (rInput :=    PE10_    , wOutput1 => awSlaveData[    17    ], wOutput2 => awSlaveData[    16    ]);
    fbRealToWord10    (rInput :=    PE09_    , wOutput1 => awSlaveData[    19    ], wOutput2 => awSlaveData[    18    ]);
    fbRealToWord11    (rInput :=    PE08_    , wOutput1 => awSlaveData[    21    ], wOutput2 => awSlaveData[    20    ]);
    fbRealToWord12    (rInput :=    PE07_    , wOutput1 => awSlaveData[    23    ], wOutput2 => awSlaveData[    22    ]);
    fbRealToWord13    (rInput :=    PE06_    , wOutput1 => awSlaveData[    25    ], wOutput2 => awSlaveData[    24    ]);
    fbRealToWord14    (rInput :=    TE10_    , wOutput1 => awSlaveData[    27    ], wOutput2 => awSlaveData[    26    ]);
    fbRealToWord15    (rInput :=    TE09_    , wOutput1 => awSlaveData[    29    ], wOutput2 => awSlaveData[    28    ]);
    fbRealToWord16    (rInput :=    TE08_    , wOutput1 => awSlaveData[    31    ], wOutput2 => awSlaveData[    30    ]);
    fbRealToWord17    (rInput :=    PE14_    , wOutput1 => awSlaveData[    33    ], wOutput2 => awSlaveData[    32    ]);
    fbRealToWord18    (rInput :=    PE13_    , wOutput1 => awSlaveData[    35    ], wOutput2 => awSlaveData[    34    ]);
    fbRealToWord19    (rInput :=    PE12_    , wOutput1 => awSlaveData[    37    ], wOutput2 => awSlaveData[    36    ]);
    fbRealToWord20    (rInput :=    PE11_    , wOutput1 => awSlaveData[    39    ], wOutput2 => awSlaveData[    38    ]);
    fbRealToWord21    (rInput :=    TE15_    , wOutput1 => awSlaveData[    41    ], wOutput2 => awSlaveData[    40    ]);
    fbRealToWord22    (rInput :=    TE14_    , wOutput1 => awSlaveData[    43    ], wOutput2 => awSlaveData[    42    ]);
    fbRealToWord23    (rInput :=    TE13_    , wOutput1 => awSlaveData[    45    ], wOutput2 => awSlaveData[    44    ]);
    fbRealToWord24    (rInput :=    PE19_    , wOutput1 => awSlaveData[    47    ], wOutput2 => awSlaveData[    46    ]);
    fbRealToWord25    (rInput :=    PE18_    , wOutput1 => awSlaveData[    49    ], wOutput2 => awSlaveData[    48    ]);
    fbRealToWord26    (rInput :=    PE17_    , wOutput1 => awSlaveData[    51    ], wOutput2 => awSlaveData[    50    ]);
    fbRealToWord27    (rInput :=    PE16_    , wOutput1 => awSlaveData[    53    ], wOutput2 => awSlaveData[    52    ]);
    fbRealToWord28    (rInput :=    PE15_    , wOutput1 => awSlaveData[    55    ], wOutput2 => awSlaveData[    54    ]);
    fbRealToWord29    (rInput :=    TE20_    , wOutput1 => awSlaveData[    57    ], wOutput2 => awSlaveData[    56    ]);
    fbRealToWord30    (rInput :=    TE19_    , wOutput1 => awSlaveData[    59    ], wOutput2 => awSlaveData[    58    ]);
    fbRealToWord31    (rInput :=    TE18_    , wOutput1 => awSlaveData[    61    ], wOutput2 => awSlaveData[    60    ]);
    fbRealToWord32    (rInput :=    PE24_    , wOutput1 => awSlaveData[    63    ], wOutput2 => awSlaveData[    62    ]);
    fbRealToWord33    (rInput :=    PE23_    , wOutput1 => awSlaveData[    65    ], wOutput2 => awSlaveData[    64    ]);
    fbRealToWord34    (rInput :=    PE22_    , wOutput1 => awSlaveData[    67    ], wOutput2 => awSlaveData[    66    ]);
    fbRealToWord35    (rInput :=    PE21_    , wOutput1 => awSlaveData[    69    ], wOutput2 => awSlaveData[    68    ]);
    fbRealToWord36    (rInput :=    PE20_    , wOutput1 => awSlaveData[    71    ], wOutput2 => awSlaveData[    70    ]);
    fbRealToWord37    (rInput :=    TE25_    , wOutput1 => awSlaveData[    73    ], wOutput2 => awSlaveData[    72    ]);
    fbRealToWord38    (rInput :=    TE24_    , wOutput1 => awSlaveData[    75    ], wOutput2 => awSlaveData[    74    ]);
    fbRealToWord39    (rInput :=    TE23_    , wOutput1 => awSlaveData[    77    ], wOutput2 => awSlaveData[    76    ]);
    fbRealToWord40    (rInput :=    PE29_    , wOutput1 => awSlaveData[    79    ], wOutput2 => awSlaveData[    78    ]);
    fbRealToWord41    (rInput :=    PE28_    , wOutput1 => awSlaveData[    81    ], wOutput2 => awSlaveData[    80    ]);
    fbRealToWord42    (rInput :=    PE27_    , wOutput1 => awSlaveData[    83    ], wOutput2 => awSlaveData[    82    ]);
    fbRealToWord43    (rInput :=    PE26_    , wOutput1 => awSlaveData[    85    ], wOutput2 => awSlaveData[    84    ]);
    fbRealToWord44    (rInput :=    PE25_    , wOutput1 => awSlaveData[    87    ], wOutput2 => awSlaveData[    86    ]);
    fbRealToWord45    (rInput :=    TE30_    , wOutput1 => awSlaveData[    89    ], wOutput2 => awSlaveData[    88    ]);
    fbRealToWord46    (rInput :=    TE29_    , wOutput1 => awSlaveData[    91    ], wOutput2 => awSlaveData[    90    ]);
    fbRealToWord47    (rInput :=    TE28_    , wOutput1 => awSlaveData[    93    ], wOutput2 => awSlaveData[    92    ]);
    fbRealToWord48    (rInput :=    PE34_    , wOutput1 => awSlaveData[    95    ], wOutput2 => awSlaveData[    94    ]);
    fbRealToWord49    (rInput :=    PE33_    , wOutput1 => awSlaveData[    97    ], wOutput2 => awSlaveData[    96    ]);
    fbRealToWord50    (rInput :=    PE32_    , wOutput1 => awSlaveData[    99    ], wOutput2 => awSlaveData[    98    ]);
    fbRealToWord51    (rInput :=    PE31_    , wOutput1 => awSlaveData[    101    ], wOutput2 => awSlaveData[    100    ]);
    fbRealToWord52    (rInput :=    PE30_    , wOutput1 => awSlaveData[    103    ], wOutput2 => awSlaveData[    102    ]);
    fbRealToWord53    (rInput :=    TE35_    , wOutput1 => awSlaveData[    105    ], wOutput2 => awSlaveData[    104    ]);
    fbRealToWord54    (rInput :=    TE34_    , wOutput1 => awSlaveData[    107    ], wOutput2 => awSlaveData[    106    ]);
    fbRealToWord55    (rInput :=    TE33_    , wOutput1 => awSlaveData[    109    ], wOutput2 => awSlaveData[    108    ]);
    fbRealToWord56    (rInput :=    PE39_    , wOutput1 => awSlaveData[    111    ], wOutput2 => awSlaveData[    110    ]);
    fbRealToWord57    (rInput :=    PE38_    , wOutput1 => awSlaveData[    113    ], wOutput2 => awSlaveData[    112    ]);
    fbRealToWord58    (rInput :=    PE37_    , wOutput1 => awSlaveData[    115    ], wOutput2 => awSlaveData[    114    ]);
    fbRealToWord59    (rInput :=    PE36_    , wOutput1 => awSlaveData[    117    ], wOutput2 => awSlaveData[    116    ]);
    fbRealToWord60    (rInput :=    PE35_    , wOutput1 => awSlaveData[    119    ], wOutput2 => awSlaveData[    118    ]);
    fbRealToWord61    (rInput :=    TE40_    , wOutput1 => awSlaveData[    121    ], wOutput2 => awSlaveData[    120    ]);
    fbRealToWord62    (rInput :=    TE39_    , wOutput1 => awSlaveData[    123    ], wOutput2 => awSlaveData[    122    ]);
    fbRealToWord63    (rInput :=    TE38_    , wOutput1 => awSlaveData[    125    ], wOutput2 => awSlaveData[    124    ]);
    fbRealToWord64    (rInput :=    TE02_    , wOutput1 => awSlaveData[    127    ], wOutput2 => awSlaveData[    126    ]);
    fbRealToWord65    (rInput :=    TE01_    , wOutput1 => awSlaveData[    129    ], wOutput2 => awSlaveData[    128    ]);
    fbRealToWord66    (rInput :=    TE07_    , wOutput1 => awSlaveData[    131    ], wOutput2 => awSlaveData[    130    ]);
    fbRealToWord67    (rInput :=    TE06_    , wOutput1 => awSlaveData[    133    ], wOutput2 => awSlaveData[    132    ]);
    fbRealToWord68    (rInput :=    TE12_    , wOutput1 => awSlaveData[    135    ], wOutput2 => awSlaveData[    134    ]);
    fbRealToWord69    (rInput :=    TE11_    , wOutput1 => awSlaveData[    137    ], wOutput2 => awSlaveData[    136    ]);
    fbRealToWord70    (rInput :=    TE17_    , wOutput1 => awSlaveData[    139    ], wOutput2 => awSlaveData[    138    ]);
    fbRealToWord71    (rInput :=    TE16_    , wOutput1 => awSlaveData[    141    ], wOutput2 => awSlaveData[    140    ]);
    fbRealToWord72    (rInput :=    TE22_    , wOutput1 => awSlaveData[    143    ], wOutput2 => awSlaveData[    142    ]);
    fbRealToWord73    (rInput :=    TE21_    , wOutput1 => awSlaveData[    145    ], wOutput2 => awSlaveData[    144    ]);
    fbRealToWord74    (rInput :=    Y09i_    , wOutput1 => awSlaveData[    147    ], wOutput2 => awSlaveData[    146    ]);
    fbRealToWord75    (rInput :=    Y08i_    , wOutput1 => awSlaveData[    149    ], wOutput2 => awSlaveData[    148    ]);
    fbRealToWord76    (rInput :=    Y06i_    , wOutput1 => awSlaveData[    151    ], wOutput2 => awSlaveData[    150    ]);
    fbRealToWord77    (rInput :=    Y04i_    , wOutput1 => awSlaveData[    153    ], wOutput2 => awSlaveData[    152    ]);
    fbRealToWord78    (rInput :=    Y02i_    , wOutput1 => awSlaveData[    155    ], wOutput2 => awSlaveData[    154    ]);
    //fbRealToWord79    (rInput :=    tmp1_    , wOutput1 => awSlaveData[    157    ], wOutput2 => awSlaveData[    156    ]);
    fbRealToWord80    (rInput :=    Y07i_    , wOutput1 => awSlaveData[    159    ], wOutput2 => awSlaveData[    158    ]);
    fbRealToWord81    (rInput :=    Y05i_    , wOutput1 => awSlaveData[    161    ], wOutput2 => awSlaveData[    160    ]);
    fbRealToWord82    (rInput :=    Y03i_    , wOutput1 => awSlaveData[    163    ], wOutput2 => awSlaveData[    162    ]);
    fbRealToWord83    (rInput :=    Y01i_    , wOutput1 => awSlaveData[    165    ], wOutput2 => awSlaveData[    164    ]);
    fbRealToWord84    (rInput :=    TE27_    , wOutput1 => awSlaveData[    167    ], wOutput2 => awSlaveData[    166    ]);
    fbRealToWord85    (rInput :=    TE26_    , wOutput1 => awSlaveData[    169    ], wOutput2 => awSlaveData[    168    ]);
    fbRealToWord86    (rInput :=    TE32_    , wOutput1 => awSlaveData[    171    ], wOutput2 => awSlaveData[    170    ]);
    fbRealToWord87    (rInput :=    TE31_    , wOutput1 => awSlaveData[    173    ], wOutput2 => awSlaveData[    172    ]);
    fbRealToWord88    (rInput :=    TE37_    , wOutput1 => awSlaveData[    175    ], wOutput2 => awSlaveData[    174    ]);
    fbRealToWord89    (rInput :=    TE36_    , wOutput1 => awSlaveData[    177    ], wOutput2 => awSlaveData[    176    ]);
    fbRealToWord90    (rInput :=    TE_Y01    , wOutput1 => awSlaveData[    179    ], wOutput2 => awSlaveData[    178    ]);
    fbRealToWord91    (rInput :=    TE_Y02    , wOutput1 => awSlaveData[    181    ], wOutput2 => awSlaveData[    180    ]);
    fbRealToWord92    (rInput :=    TE_Y03    , wOutput1 => awSlaveData[    183    ], wOutput2 => awSlaveData[    182    ]);
    fbRealToWord93    (rInput :=    TE_Y04    , wOutput1 => awSlaveData[    185    ], wOutput2 => awSlaveData[    184    ]);
    fbRealToWord94    (rInput :=    TE_Y05    , wOutput1 => awSlaveData[    187    ], wOutput2 => awSlaveData[    186    ]);
    fbRealToWord95    (rInput :=    TE_Y06    , wOutput1 => awSlaveData[    189    ], wOutput2 => awSlaveData[    188    ]);
    fbRealToWord96    (rInput :=    TE_Y07    , wOutput1 => awSlaveData[    191    ], wOutput2 => awSlaveData[    190    ]);
    fbRealToWord97    (rInput :=    TE_Y08    , wOutput1 => awSlaveData[    193    ], wOutput2 => awSlaveData[    192    ]);
    fbRealToWord98    (rInput :=    TE_Y09    , wOutput1 => awSlaveData[    195    ], wOutput2 => awSlaveData[    194    ]);
    IF x2 THEN fbRealToWord99    (rInput :=    SP_Y01    , wOutput1 => awSlaveData[    197    ], wOutput2 => awSlaveData[    196    ]); END_IF;
    IF x4 THEN fbRealToWord100    (rInput :=    SP_Y02    , wOutput1 => awSlaveData[    199    ], wOutput2 => awSlaveData[    198    ]); END_IF;
    IF x6 THEN fbRealToWord101    (rInput :=    SP_Y03    , wOutput1 => awSlaveData[    201    ], wOutput2 => awSlaveData[    200    ]); END_IF;
    IF x8 THEN fbRealToWord102    (rInput :=    SP_Y04 , wOutput1 => awSlaveData[    203    ], wOutput2 => awSlaveData[    202    ]); END_IF;
    IF x10 THEN fbRealToWord103    (rInput :=    SP_Y05    , wOutput1 => awSlaveData[    205    ], wOutput2 => awSlaveData[    204    ]); END_IF;
    IF x12 THEN fbRealToWord104    (rInput :=    SP_Y06    , wOutput1 => awSlaveData[    207    ], wOutput2 => awSlaveData[    206    ]); END_IF;
    IF x14 THEN fbRealToWord105    (rInput :=    SP_Y07    , wOutput1 => awSlaveData[    209    ], wOutput2 => awSlaveData[    208    ]); END_IF;
    IF x16 THEN fbRealToWord106    (rInput :=    SP_Y08    , wOutput1 => awSlaveData[    211    ], wOutput2 => awSlaveData[    210    ]); END_IF;
    IF x18 THEN fbRealToWord107    (rInput :=    SP_Y09 , wOutput1 => awSlaveData[    213    ], wOutput2 => awSlaveData[    212    ]); END_IF;
    IF x20 THEN fbRealToWord108    (rInput :=    MANUAL_Y01    , wOutput1 => awSlaveData[    215    ], wOutput2 => awSlaveData[    214    ]); END_IF;
    IF x22 THEN fbRealToWord109    (rInput :=    MANUAL_Y02    , wOutput1 => awSlaveData[    217    ], wOutput2 => awSlaveData[    216    ]); END_IF;
    IF x24 THEN fbRealToWord110    (rInput :=    MANUAL_Y03    , wOutput1 => awSlaveData[    219    ], wOutput2 => awSlaveData[    218    ]); END_IF;
    IF x26 THEN fbRealToWord111    (rInput :=    MANUAL_Y04    , wOutput1 => awSlaveData[    221    ], wOutput2 => awSlaveData[    220    ]); END_IF;
    IF x28 THEN fbRealToWord112    (rInput :=    MANUAL_Y05    , wOutput1 => awSlaveData[    223    ], wOutput2 => awSlaveData[    222    ]); END_IF;
    IF x30 THEN fbRealToWord113    (rInput :=    MANUAL_Y06    , wOutput1 => awSlaveData[    225    ], wOutput2 => awSlaveData[    224    ]); END_IF;
    IF x32 THEN fbRealToWord114    (rInput :=    MANUAL_Y07    , wOutput1 => awSlaveData[    227    ], wOutput2 => awSlaveData[    226    ]); END_IF;
    IF x34 THEN fbRealToWord115    (rInput :=    MANUAL_Y08    , wOutput1 => awSlaveData[    229    ], wOutput2 => awSlaveData[    228    ]); END_IF;
    IF x36 THEN fbRealToWord116    (rInput :=    MANUAL_Y09    , wOutput1 => awSlaveData[    231    ], wOutput2 => awSlaveData[    230    ]); END_IF;
    fbRealToWord117    (rInput :=    Position_Y01    , wOutput1 => awSlaveData[    233    ], wOutput2 => awSlaveData[    232    ]);
    fbRealToWord118    (rInput :=    Position_Y02    , wOutput1 => awSlaveData[    235    ], wOutput2 => awSlaveData[    234    ]);
    fbRealToWord119    (rInput :=    Position_Y03    , wOutput1 => awSlaveData[    237    ], wOutput2 => awSlaveData[    236    ]);
    fbRealToWord120    (rInput :=    Position_Y04    , wOutput1 => awSlaveData[    239    ], wOutput2 => awSlaveData[    238    ]);
    fbRealToWord121    (rInput :=    Position_Y05    , wOutput1 => awSlaveData[    241    ], wOutput2 => awSlaveData[    240    ]);
    fbRealToWord122    (rInput :=    Position_Y06    , wOutput1 => awSlaveData[    243    ], wOutput2 => awSlaveData[    242    ]);
    fbRealToWord123    (rInput :=    Position_Y07    , wOutput1 => awSlaveData[    245    ], wOutput2 => awSlaveData[    244    ]);
    fbRealToWord124    (rInput :=    Position_Y08    , wOutput1 => awSlaveData[    247    ], wOutput2 => awSlaveData[    246    ]);
    fbRealToWord125    (rInput :=    Position_Y09    , wOutput1 => awSlaveData[    249    ], wOutput2 => awSlaveData[    248    ]);
    IF x38 THEN fbRealToWord126    (rInput :=    P_Y01    , wOutput1 => awSlaveData[    251    ], wOutput2 => awSlaveData[    250    ]); END_IF;
    IF x40 THEN fbRealToWord127    (rInput :=    P_Y02    , wOutput1 => awSlaveData[    253    ], wOutput2 => awSlaveData[    252    ]); END_IF;
    IF x42 THEN fbRealToWord128    (rInput :=    P_Y03    , wOutput1 => awSlaveData[    255    ], wOutput2 => awSlaveData[    254    ]); END_IF;
    IF x44 THEN fbRealToWord129    (rInput :=    P_Y04    , wOutput1 => awSlaveData[    257    ], wOutput2 => awSlaveData[    256    ]); END_IF;
    IF x46 THEN fbRealToWord130    (rInput :=    P_Y05    , wOutput1 => awSlaveData[    259    ], wOutput2 => awSlaveData[    258    ]); END_IF;
    IF x48 THEN fbRealToWord131    (rInput :=    P_Y06    , wOutput1 => awSlaveData[    261    ], wOutput2 => awSlaveData[    260    ]); END_IF;
    IF x50 THEN fbRealToWord132    (rInput :=    P_Y07    , wOutput1 => awSlaveData[    263    ], wOutput2 => awSlaveData[    262    ]); END_IF;
    IF x52 THEN fbRealToWord133    (rInput :=    P_Y08    , wOutput1 => awSlaveData[    265    ], wOutput2 => awSlaveData[    264    ]); END_IF;
    IF x54 THEN fbRealToWord134    (rInput :=    P_Y09    , wOutput1 => awSlaveData[    267    ], wOutput2 => awSlaveData[    266    ]); END_IF;
    IF x56 THEN fbRealToWord135    (rInput :=    I_Y01    , wOutput1 => awSlaveData[    269    ], wOutput2 => awSlaveData[    268    ]); END_IF;
    IF x58 THEN fbRealToWord136    (rInput :=    I_Y02    , wOutput1 => awSlaveData[    271    ], wOutput2 => awSlaveData[    270    ]); END_IF;
    IF x60 THEN fbRealToWord137    (rInput :=    I_Y03    , wOutput1 => awSlaveData[    273    ], wOutput2 => awSlaveData[    272    ]); END_IF;
    IF x62 THEN fbRealToWord138    (rInput :=    I_Y04    , wOutput1 => awSlaveData[    275    ], wOutput2 => awSlaveData[    274    ]); END_IF;
    IF x64 THEN fbRealToWord139    (rInput :=    I_Y05    , wOutput1 => awSlaveData[    277    ], wOutput2 => awSlaveData[    276    ]); END_IF;
    IF x66 THEN fbRealToWord140    (rInput :=    I_Y06    , wOutput1 => awSlaveData[    279    ], wOutput2 => awSlaveData[    278    ]); END_IF;
    IF x68 THEN fbRealToWord141    (rInput :=    I_Y07    , wOutput1 => awSlaveData[    281    ], wOutput2 => awSlaveData[    280    ]); END_IF;
    IF x70 THEN fbRealToWord142    (rInput :=    I_Y08    , wOutput1 => awSlaveData[    283    ], wOutput2 => awSlaveData[    282    ]); END_IF;
    IF x72 THEN fbRealToWord143    (rInput :=    I_Y09    , wOutput1 => awSlaveData[    285    ], wOutput2 => awSlaveData[    284    ]); END_IF;
    IF x74 THEN fbRealToWord144    (rInput :=    D_Y01    , wOutput1 => awSlaveData[    287    ], wOutput2 => awSlaveData[    286    ]); END_IF;
    IF x76 THEN fbRealToWord145    (rInput :=    D_Y02    , wOutput1 => awSlaveData[    289    ], wOutput2 => awSlaveData[    288    ]); END_IF;
    IF x78 THEN fbRealToWord146    (rInput :=    D_Y03    , wOutput1 => awSlaveData[    291    ], wOutput2 => awSlaveData[    290    ]); END_IF;
    IF x80 THEN fbRealToWord147    (rInput :=    D_Y04    , wOutput1 => awSlaveData[    293    ], wOutput2 => awSlaveData[    292    ]); END_IF;
    IF x82 THEN fbRealToWord148    (rInput :=    D_Y05    , wOutput1 => awSlaveData[    295    ], wOutput2 => awSlaveData[    294    ]); END_IF;
    IF x84 THEN fbRealToWord149    (rInput :=    D_Y06    , wOutput1 => awSlaveData[    297    ], wOutput2 => awSlaveData[    296    ]); END_IF;
    IF x86 THEN fbRealToWord150    (rInput :=    D_Y07    , wOutput1 => awSlaveData[    299    ], wOutput2 => awSlaveData[    298    ]); END_IF;
    IF x88 THEN fbRealToWord151    (rInput :=    D_Y08    , wOutput1 => awSlaveData[    301    ], wOutput2 => awSlaveData[    300    ]); END_IF;
    IF x90 THEN fbRealToWord152    (rInput :=    D_Y09    , wOutput1 => awSlaveData[    303    ], wOutput2 => awSlaveData[    302    ]); END_IF;
    
    IF x92 THEN  fbRealToWord153    (rInput :=    P05_Pset    , wOutput1 => awSlaveData[    417    ], wOutput2 => awSlaveData[    416    ]); END_IF;
    IF x94 THEN  fbRealToWord154    (rInput :=    P10_Pset    , wOutput1 => awSlaveData[    419    ], wOutput2 => awSlaveData[    418    ]); END_IF;
    IF x96 THEN  fbRealToWord155    (rInput :=    P15_Pset    , wOutput1 => awSlaveData[    421    ], wOutput2 => awSlaveData[    420    ]); END_IF;
    IF x98 THEN  fbRealToWord156    (rInput :=    P21_Pset    , wOutput1 => awSlaveData[    423    ], wOutput2 => awSlaveData[    422    ]); END_IF;
    IF x100 THEN  fbRealToWord157    (rInput :=    P27_Pset    , wOutput1 => awSlaveData[    425    ], wOutput2 => awSlaveData[    424    ]); END_IF;
    
    IF    x102    THEN    awSlaveData[    305    ]    :=    P17_CMD    ;    END_IF;
    IF    x104    THEN    awSlaveData[    308    ]    :=    P18_CMD    ;    END_IF;
    IF    x106    THEN    awSlaveData[    311    ]    :=    P19_CMD    ;    END_IF;
    IF    x108    THEN    awSlaveData[    314    ]    :=    P20_CMD    ;    END_IF;
    IF    x110    THEN    awSlaveData[    317    ]    :=    P21_CMD    ;    END_IF;
    IF    x112    THEN    awSlaveData[    320    ]    :=    P22_CMD    ;    END_IF;
    IF    x114    THEN    awSlaveData[    323    ]    :=    P23_CMD    ;    END_IF;
    IF    x116    THEN    awSlaveData[    326    ]    :=    P24_CMD    ;    END_IF;
    IF    x118    THEN    awSlaveData[    329    ]    :=    P25_CMD    ;    END_IF;
    IF    x120    THEN    awSlaveData[    332    ]    :=    P26_CMD    ;    END_IF;
    IF    x122    THEN    awSlaveData[    335    ]    :=    P27_CMD    ;    END_IF;
    IF    x124    THEN    awSlaveData[    338    ]    :=    P28_CMD    ;    END_IF;
    IF    x126    THEN    awSlaveData[    341    ]    :=    P29_CMD    ;    END_IF;
    IF    x128    THEN    awSlaveData[    344    ]    :=    P30_CMD    ;    END_IF;
    IF    x130    THEN    awSlaveData[    347    ]    :=    P01_CMD    ;    END_IF;
    IF    x132    THEN    awSlaveData[    350    ]    :=    P02_CMD    ;    END_IF;
    IF    x134    THEN    awSlaveData[    353    ]    :=    P03_CMD    ;    END_IF;
    IF    x136    THEN    awSlaveData[    356    ]    :=    P04_CMD    ;    END_IF;
    IF    x138    THEN    awSlaveData[    359    ]    :=    P05_CMD    ;    END_IF;
    IF    x140    THEN    awSlaveData[    362    ]    :=    HL02_CMD;    END_IF;
    IF    x142    THEN    awSlaveData[    365    ]    :=    P06_CMD    ;    END_IF;
    IF    x144    THEN    awSlaveData[    368    ]    :=    P07_CMD    ;    END_IF;
    IF    x146    THEN    awSlaveData[    371    ]    :=    P08_CMD    ;    END_IF;
    IF    x148    THEN    awSlaveData[    374    ]    :=    P09_CMD    ;    END_IF;
    IF    x150    THEN    awSlaveData[    377    ]    :=    P10_CMD    ;    END_IF;
    IF    x152    THEN    awSlaveData[    380    ]    :=    P11_CMD    ;    END_IF;
    IF    x154    THEN    awSlaveData[    383    ]    :=    P12_CMD    ;    END_IF;
    IF    x156    THEN    awSlaveData[    386    ]    :=    P13_CMD    ;    END_IF;
    IF    x158    THEN    awSlaveData[    389    ]    :=    P14_CMD    ;    END_IF;
    IF    x160    THEN    awSlaveData[    392    ]    :=    P15_CMD    ;    END_IF;
    IF    x162    THEN    awSlaveData[    395    ]    :=    P16_CMD    ;    END_IF;
    IF    x164    THEN    awSlaveData[    406    ]    :=    REG_Y01_CMD    ;    END_IF;
    IF    x166    THEN    awSlaveData[    407    ]    :=    REG_Y02_CMD    ;    END_IF;
    IF    x168    THEN    awSlaveData[    408    ]    :=    REG_Y03_CMD    ;    END_IF;
    IF    x170    THEN    awSlaveData[    409    ]    :=    REG_Y04_CMD    ;    END_IF;
    IF    x172    THEN    awSlaveData[    410    ]    :=    REG_Y05_CMD    ;    END_IF;
    IF    x174    THEN    awSlaveData[    411    ]    :=    REG_Y06_CMD    ;    END_IF;
    IF    x176    THEN    awSlaveData[    412    ]    :=    REG_Y07_CMD    ;    END_IF;
    IF    x178    THEN    awSlaveData[    413    ]    :=    REG_Y08_CMD    ;    END_IF;
    IF    x180    THEN    awSlaveData[    414    ]    :=    REG_Y09_CMD    ;    END_IF;
    
    IF    x182    THEN    fbRealToWord158    (rInput :=    SP_Y01_1    , wOutput1 => awSlaveData[    435    ], wOutput2 => awSlaveData[    434    ]); END_IF;
    IF    x184    THEN    fbRealToWord159    (rInput :=    SP_Y01_2    , wOutput1 => awSlaveData[    437    ], wOutput2 => awSlaveData[    436    ]); END_IF;
    IF    x186    THEN    fbRealToWord160    (rInput :=    SP_Y01_3    , wOutput1 => awSlaveData[    439    ], wOutput2 => awSlaveData[    438    ]); END_IF;
    IF    x188    THEN    fbRealToWord161    (rInput :=    SP_Y01_4    , wOutput1 => awSlaveData[    441    ], wOutput2 => awSlaveData[    440    ]); END_IF;
    IF    x190    THEN    fbRealToWord162    (rInput :=    SP_Y02_1    , wOutput1 => awSlaveData[    443    ], wOutput2 => awSlaveData[    442    ]); END_IF;
    IF    x192    THEN    fbRealToWord163    (rInput :=    SP_Y02_2    , wOutput1 => awSlaveData[    445    ], wOutput2 => awSlaveData[    444    ]); END_IF;
    IF    x194    THEN    fbRealToWord164    (rInput :=    SP_Y02_3    , wOutput1 => awSlaveData[    447    ], wOutput2 => awSlaveData[    446    ]); END_IF;
    IF    x196    THEN    fbRealToWord165    (rInput :=    SP_Y02_4    , wOutput1 => awSlaveData[    449    ], wOutput2 => awSlaveData[    448    ]); END_IF;
    IF    x198    THEN    fbRealToWord166    (rInput :=    SP_Y03_1    , wOutput1 => awSlaveData[    451    ], wOutput2 => awSlaveData[    450    ]); END_IF;
    IF    x200    THEN    fbRealToWord167    (rInput :=    SP_Y03_2    , wOutput1 => awSlaveData[    453    ], wOutput2 => awSlaveData[    452    ]); END_IF;
    IF    x202    THEN    fbRealToWord168    (rInput :=    SP_Y03_3    , wOutput1 => awSlaveData[    455    ], wOutput2 => awSlaveData[    454    ]); END_IF;
    IF    x204    THEN    fbRealToWord169    (rInput :=    SP_Y03_4    , wOutput1 => awSlaveData[    457    ], wOutput2 => awSlaveData[    456    ]); END_IF;
    IF    x206    THEN    fbRealToWord170    (rInput :=    SP_Y04_1    , wOutput1 => awSlaveData[    459    ], wOutput2 => awSlaveData[    458    ]); END_IF;
    IF    x208    THEN    fbRealToWord171    (rInput :=    SP_Y04_2    , wOutput1 => awSlaveData[    461    ], wOutput2 => awSlaveData[    460    ]); END_IF;
    IF    x210    THEN    fbRealToWord172    (rInput :=    SP_Y04_3    , wOutput1 => awSlaveData[    463    ], wOutput2 => awSlaveData[    462    ]); END_IF;
    IF    x212    THEN    fbRealToWord173    (rInput :=    SP_Y04_4    , wOutput1 => awSlaveData[    465    ], wOutput2 => awSlaveData[    464    ]); END_IF;
    IF    x214    THEN    fbRealToWord174    (rInput :=    SP_Y05_1    , wOutput1 => awSlaveData[    467    ], wOutput2 => awSlaveData[    466    ]); END_IF;
    IF    x216    THEN    fbRealToWord175    (rInput :=    SP_Y05_2    , wOutput1 => awSlaveData[    469    ], wOutput2 => awSlaveData[    468    ]); END_IF;
    IF    x218    THEN    fbRealToWord176    (rInput :=    SP_Y05_3    , wOutput1 => awSlaveData[    471    ], wOutput2 => awSlaveData[    470    ]); END_IF;
    IF    x220    THEN    fbRealToWord177    (rInput :=    SP_Y05_4    , wOutput1 => awSlaveData[    473    ], wOutput2 => awSlaveData[    472    ]); END_IF;
    IF    x222    THEN    fbRealToWord178    (rInput :=    SP_Y06_1    , wOutput1 => awSlaveData[    475    ], wOutput2 => awSlaveData[    474    ]); END_IF;
    IF    x224    THEN    fbRealToWord179    (rInput :=    SP_Y06_2    , wOutput1 => awSlaveData[    477    ], wOutput2 => awSlaveData[    476    ]); END_IF;
    IF    x226    THEN    fbRealToWord180    (rInput :=    SP_Y06_3    , wOutput1 => awSlaveData[    479    ], wOutput2 => awSlaveData[    478    ]); END_IF;
    IF    x228    THEN    fbRealToWord181    (rInput :=    SP_Y06_4    , wOutput1 => awSlaveData[    481    ], wOutput2 => awSlaveData[    480    ]); END_IF;
    IF    x230    THEN    fbRealToWord182    (rInput :=    SP_Y07_1    , wOutput1 => awSlaveData[    483    ], wOutput2 => awSlaveData[    482    ]); END_IF;
    IF    x232    THEN    fbRealToWord183    (rInput :=    SP_Y07_2    , wOutput1 => awSlaveData[    485    ], wOutput2 => awSlaveData[    484    ]); END_IF;
    IF    x234    THEN    fbRealToWord184    (rInput :=    SP_Y07_3    , wOutput1 => awSlaveData[    487    ], wOutput2 => awSlaveData[    486    ]); END_IF;
    IF    x236    THEN    fbRealToWord185    (rInput :=    SP_Y07_4    , wOutput1 => awSlaveData[    489    ], wOutput2 => awSlaveData[    488    ]); END_IF;
    IF    x238    THEN    fbRealToWord186    (rInput :=    SP_Y08_1    , wOutput1 => awSlaveData[    491    ], wOutput2 => awSlaveData[    490    ]); END_IF;
    IF    x240    THEN    fbRealToWord187    (rInput :=    SP_Y08_2    , wOutput1 => awSlaveData[    493    ], wOutput2 => awSlaveData[    492    ]); END_IF;
    IF    x242    THEN    fbRealToWord188    (rInput :=    SP_Y08_3    , wOutput1 => awSlaveData[    495    ], wOutput2 => awSlaveData[    494    ]); END_IF;
    IF    x244    THEN    fbRealToWord189    (rInput :=    SP_Y08_4    , wOutput1 => awSlaveData[    497    ], wOutput2 => awSlaveData[    496    ]); END_IF;
    IF    x246    THEN    fbRealToWord190    (rInput :=    SP_Y09_1    , wOutput1 => awSlaveData[    499    ], wOutput2 => awSlaveData[    498    ]); END_IF;
    IF    x248    THEN    fbRealToWord191    (rInput :=    SP_Y09_2    , wOutput1 => awSlaveData[    501    ], wOutput2 => awSlaveData[    500    ]); END_IF;
    IF    x250    THEN    fbRealToWord192    (rInput :=    SP_Y09_3    , wOutput1 => awSlaveData[    503    ], wOutput2 => awSlaveData[    502    ]); END_IF;
    IF    x252    THEN    fbRealToWord193    (rInput :=    SP_Y09_4    , wOutput1 => awSlaveData[    505    ], wOutput2 => awSlaveData[    504    ]); END_IF;
    
    
    
    // Пишем из переменных в регистры
    awSlaveData[    304    ]:=    P17_STS    ;
    awSlaveData[    306    ]:=    P17_ALM    ;
    awSlaveData[    307    ]:=    P18_STS    ;
    awSlaveData[    309    ]:=    P18_ALM    ;
    awSlaveData[    310    ]:=    P19_STS    ;
    awSlaveData[    312    ]:=    P19_ALM    ;
    awSlaveData[    313    ]:=    P20_STS    ;
    awSlaveData[    315    ]:=    P20_ALM    ;
    awSlaveData[    316    ]:=    P21_STS    ;
    awSlaveData[    318    ]:=    P21_ALM    ;
    awSlaveData[    319    ]:=    P22_STS    ;
    awSlaveData[    321    ]:=    P22_ALM    ;
    awSlaveData[    322    ]:=    P23_STS    ;
    awSlaveData[    324    ]:=    P23_ALM    ;
    awSlaveData[    325    ]:=    P24_STS    ;
    awSlaveData[    327    ]:=    P24_ALM    ;
    awSlaveData[    328    ]:=    P25_STS    ;
    awSlaveData[    330    ]:=    P25_ALM    ;
    awSlaveData[    331    ]:=    P26_STS    ;
    awSlaveData[    333    ]:=    P26_ALM    ;
    awSlaveData[    334    ]:=    P27_STS    ;
    awSlaveData[    336    ]:=    P27_ALM    ;
    awSlaveData[    337    ]:=    P28_STS    ;
    awSlaveData[    339    ]:=    P28_ALM    ;
    awSlaveData[    340    ]:=    P29_STS    ;
    awSlaveData[    342    ]:=    P29_ALM    ;
    awSlaveData[    343    ]:=    P30_STS    ;
    awSlaveData[    345    ]:=    P30_ALM    ;
    awSlaveData[    346    ]:=    P01_STS    ;
    awSlaveData[    348    ]:=    P01_ALM    ;
    awSlaveData[    349    ]:=    P02_STS    ;
    awSlaveData[    351    ]:=    P02_ALM    ;
    awSlaveData[    352    ]:=    P03_STS    ;
    awSlaveData[    354    ]:=    P03_ALM    ;
    awSlaveData[    355    ]:=    P04_STS    ;
    awSlaveData[    357    ]:=    P04_ALM    ;
    awSlaveData[    358    ]:=    P05_STS    ;
    awSlaveData[    360    ]:=    P05_ALM    ;
    awSlaveData[    361    ]:=    HL02_STS    ;
    awSlaveData[    363    ]:=    HL02_ALM    ;
    awSlaveData[    364    ]:=    P06_STS    ;
    awSlaveData[    366    ]:=    P06_ALM    ;
    awSlaveData[    367    ]:=    P07_STS    ;
    awSlaveData[    369    ]:=    P07_ALM    ;
    awSlaveData[    370    ]:=    P08_STS    ;
    awSlaveData[    372    ]:=    P08_ALM    ;
    awSlaveData[    373    ]:=    P09_STS    ;
    awSlaveData[    375    ]:=    P09_ALM    ;
    awSlaveData[    376    ]:=    P10_STS    ;
    awSlaveData[    378    ]:=    P10_ALM    ;
    awSlaveData[    379    ]:=    P11_STS    ;
    awSlaveData[    381    ]:=    P11_ALM    ;
    awSlaveData[    382    ]:=    P12_STS    ;
    awSlaveData[    384    ]:=    P12_ALM    ;
    awSlaveData[    385    ]:=    P13_STS    ;
    awSlaveData[    387    ]:=    P13_ALM    ;
    awSlaveData[    388    ]:=    P14_STS    ;
    awSlaveData[    390    ]:=    P14_ALM    ;
    awSlaveData[    391    ]:=    P15_STS    ;
    awSlaveData[    393    ]:=    P15_ALM    ;
    awSlaveData[    394    ]:=    P16_STS    ;
    awSlaveData[    396    ]:=    P16_ALM    ;
    awSlaveData[    397    ]:=    REG_Y01_STS    ;
    awSlaveData[    398    ]:=    REG_Y02_STS    ;
    awSlaveData[    399    ]:=    REG_Y03_STS    ;
    awSlaveData[    400    ]:=    REG_Y04_STS    ;
    awSlaveData[    401    ]:=    REG_Y05_STS    ;
    awSlaveData[    402    ]:=    REG_Y06_STS    ;
    awSlaveData[    403    ]:=    REG_Y07_STS    ;
    awSlaveData[    404    ]:=    REG_Y08_STS    ;
    awSlaveData[    405    ]:=    REG_Y09_STS    ;
    
    awSlaveData[415]:=Connect;
    awSlaveData[    426    ]    :=    VENT_ALM    ;
    awSlaveData[    427    ]    :=    GVS_ALM    ;
    awSlaveData[    428    ]    :=    MAIN_ALM    ;
    awSlaveData[    429    ]    :=    PTP_ALM    ;
    awSlaveData[    430    ]    :=    TC_ALM    ;
    awSlaveData[    431    ]    :=    HVS_ALM    ;
    awSlaveData[    432    ]    :=    CO_ALM    ;
    
    
    // То, что пишет панель
    IF x1 THEN SP_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    197    ], awSlaveData[    196    ], FALSE); END_IF;
    IF x3 THEN SP_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    199    ], awSlaveData[    198    ], FALSE); END_IF;
    IF x5 THEN SP_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    201    ], awSlaveData[    200    ], FALSE); END_IF;
    IF x7 THEN SP_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    203    ], awSlaveData[    202    ], FALSE); END_IF;
    IF x9 THEN SP_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    205    ], awSlaveData[    204    ], FALSE); END_IF;
    IF x11 THEN SP_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    207    ], awSlaveData[    206    ], FALSE); END_IF;
    IF x13 THEN SP_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    209    ], awSlaveData[    208    ], FALSE); END_IF;
    IF x15 THEN SP_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    211    ], awSlaveData[    210    ], FALSE); END_IF;
    IF x17 THEN SP_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    213    ], awSlaveData[    212    ], FALSE); END_IF;
    
    IF x19 THEN MANUAL_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    215    ], awSlaveData[    214    ], FALSE); END_IF;
    IF x21 THEN MANUAL_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    217    ], awSlaveData[    216    ], FALSE); END_IF;
    IF x23 THEN MANUAL_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    219    ], awSlaveData[    218    ], FALSE); END_IF;
    IF x25 THEN MANUAL_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    221    ], awSlaveData[    220    ], FALSE); END_IF;
    IF x27 THEN MANUAL_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    223    ], awSlaveData[    222    ], FALSE); END_IF;
    IF x29 THEN MANUAL_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    225    ], awSlaveData[    224    ], FALSE); END_IF;
    IF x31 THEN MANUAL_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    227    ], awSlaveData[    226    ], FALSE); END_IF;
    IF x33 THEN MANUAL_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    229    ], awSlaveData[    228    ], FALSE); END_IF;
    IF x35 THEN MANUAL_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    231    ], awSlaveData[    230    ], FALSE); END_IF;
    
    
    IF x37 THEN P_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    251    ], awSlaveData[    250    ], FALSE); END_IF;
    IF x39 THEN P_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    253    ], awSlaveData[    252    ], FALSE); END_IF;
    IF x41 THEN P_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    255    ], awSlaveData[    254    ], FALSE); END_IF;
    IF x43 THEN P_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    257    ], awSlaveData[    256    ], FALSE); END_IF;
    IF x45 THEN P_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    259 ], awSlaveData[    258    ], FALSE); END_IF;
    IF x47 THEN P_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    261    ], awSlaveData[    260    ], FALSE); END_IF;
    IF x49 THEN P_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    263    ], awSlaveData[    262    ], FALSE); END_IF;
    IF x51 THEN P_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    265    ], awSlaveData[    264    ], FALSE); END_IF;
    IF x53 THEN P_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    267    ], awSlaveData[    266    ], FALSE); END_IF;
    IF x55 THEN I_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    269    ], awSlaveData[    268    ], FALSE); END_IF;
    IF x57 THEN I_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    271    ], awSlaveData[    270    ], FALSE); END_IF;
    IF x59 THEN I_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    273    ], awSlaveData[    272    ], FALSE); END_IF;
    IF x61 THEN I_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    275    ], awSlaveData[    274    ], FALSE); END_IF;
    IF x63 THEN I_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    277    ], awSlaveData[    276    ], FALSE); END_IF;
    IF x65 THEN I_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    279    ], awSlaveData[    278    ], FALSE); END_IF;
    IF x67 THEN I_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    281    ], awSlaveData[    280    ], FALSE); END_IF;
    IF x69 THEN I_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    283    ], awSlaveData[    282    ], FALSE); END_IF;
    IF x71 THEN I_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    285    ], awSlaveData[    284    ], FALSE); END_IF;
    IF x73 THEN D_Y01     := OCL.WORD2_TO_REAL(awSlaveData[    287    ], awSlaveData[    286    ], FALSE); END_IF;
    IF x75 THEN D_Y02     := OCL.WORD2_TO_REAL(awSlaveData[    289    ], awSlaveData[    288    ], FALSE); END_IF;
    IF x77 THEN D_Y03     := OCL.WORD2_TO_REAL(awSlaveData[    291    ], awSlaveData[    290    ], FALSE); END_IF;
    IF x79 THEN D_Y04     := OCL.WORD2_TO_REAL(awSlaveData[    293    ], awSlaveData[    292    ], FALSE); END_IF;
    IF x81 THEN D_Y05     := OCL.WORD2_TO_REAL(awSlaveData[    295    ], awSlaveData[    294    ], FALSE); END_IF;
    IF x83 THEN D_Y06     := OCL.WORD2_TO_REAL(awSlaveData[    297    ], awSlaveData[    296    ], FALSE); END_IF;
    IF x85 THEN D_Y07     := OCL.WORD2_TO_REAL(awSlaveData[    299    ], awSlaveData[    298    ], FALSE); END_IF;
    IF x87 THEN D_Y08     := OCL.WORD2_TO_REAL(awSlaveData[    301    ], awSlaveData[    300    ], FALSE); END_IF;
    IF x89 THEN D_Y09     := OCL.WORD2_TO_REAL(awSlaveData[    303    ], awSlaveData[    302    ], FALSE); END_IF;
    
    IF x91 THEN  P05_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    417    ], awSlaveData[    416    ], FALSE); END_IF;
    IF x93 THEN  P10_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    419    ], awSlaveData[    418    ], FALSE); END_IF;
    IF x95 THEN  P15_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    421    ], awSlaveData[    420    ], FALSE); END_IF;
    IF x97 THEN  P21_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    423    ], awSlaveData[    422    ], FALSE); END_IF;
    IF x99 THEN  P27_Pset     := OCL.WORD2_TO_REAL(awSlaveData[    425    ], awSlaveData[    424    ], FALSE); END_IF;
    
    
    IF x101 THEN  P17_CMD    :=    awSlaveData[    305    ]    ; END_IF;
    IF x103 THEN  P18_CMD    :=    awSlaveData[    308    ]    ; END_IF;
    IF x105 THEN  P19_CMD    :=    awSlaveData[    311    ]    ; END_IF;
    IF x107 THEN  P20_CMD    :=    awSlaveData[    314    ]    ; END_IF;
    IF x109 THEN  P21_CMD    :=    awSlaveData[    317    ]    ; END_IF;
    IF x111 THEN  P22_CMD    :=    awSlaveData[    320    ]    ; END_IF;
    IF x113 THEN  P23_CMD    :=    awSlaveData[    323    ]    ; END_IF;
    IF x115 THEN  P24_CMD    :=    awSlaveData[    326    ]    ; END_IF;
    IF x117 THEN  P25_CMD    :=    awSlaveData[    329    ]    ; END_IF;
    IF x119 THEN  P26_CMD    :=    awSlaveData[    332    ]    ; END_IF;
    IF x121 THEN  P27_CMD    :=    awSlaveData[    335    ]    ; END_IF;
    IF x123 THEN  P28_CMD    :=    awSlaveData[    338    ]    ; END_IF;
    IF x125 THEN  P29_CMD    :=    awSlaveData[    341    ]    ; END_IF;
    IF x127 THEN  P30_CMD    :=    awSlaveData[    344    ]    ; END_IF;
    IF x129 THEN  P01_CMD    :=    awSlaveData[    347    ]    ; END_IF;
    IF x131 THEN  P02_CMD    :=    awSlaveData[    350    ]    ; END_IF;
    IF x133 THEN  P03_CMD    :=    awSlaveData[    353    ]    ; END_IF;
    IF x135 THEN  P04_CMD    :=    awSlaveData[    356    ]    ; END_IF;
    IF x137 THEN  P05_CMD    :=    awSlaveData[    359    ]    ; END_IF;
    IF x139 THEN  HL02_CMD    :=    awSlaveData[    362    ]    ; END_IF;
    IF x141 THEN  P06_CMD    :=    awSlaveData[    365    ]    ; END_IF;
    IF x143 THEN  P07_CMD    :=    awSlaveData[    368    ]    ; END_IF;
    IF x145 THEN  P08_CMD    :=    awSlaveData[    371    ]    ; END_IF;
    IF x147 THEN  P09_CMD    :=    awSlaveData[    374    ]    ; END_IF;
    IF x149 THEN  P10_CMD    :=    awSlaveData[    377    ]    ; END_IF;
    IF x151 THEN  P11_CMD    :=    awSlaveData[    380    ]    ; END_IF;
    IF x153 THEN  P12_CMD    :=    awSlaveData[    383    ]    ; END_IF;
    IF x155 THEN  P13_CMD    :=    awSlaveData[    386    ]    ; END_IF;
    IF x157 THEN  P14_CMD    :=    awSlaveData[    389    ]    ; END_IF;
    IF x159 THEN  P15_CMD    :=    awSlaveData[    392    ]    ; END_IF;
    IF x161 THEN  P16_CMD    :=    awSlaveData[    395    ]    ; END_IF;
    IF x163 THEN  REG_Y01_CMD    :=    awSlaveData[    406    ]    ; END_IF;
    IF x165 THEN  REG_Y02_CMD    :=    awSlaveData[    407    ]    ; END_IF;
    IF x167 THEN  REG_Y03_CMD    :=    awSlaveData[    408    ]    ; END_IF;
    IF x169 THEN  REG_Y04_CMD    :=    awSlaveData[    409    ]    ; END_IF;
    IF x171 THEN  REG_Y05_CMD    :=    awSlaveData[    410    ]    ; END_IF;
    IF x173 THEN  REG_Y06_CMD    :=    awSlaveData[    411    ]    ; END_IF;
    IF x175 THEN  REG_Y07_CMD    :=    awSlaveData[    412    ]    ; END_IF;
    IF x177 THEN  REG_Y08_CMD    :=    awSlaveData[    413    ]    ; END_IF;
    IF x179 THEN  REG_Y09_CMD    :=    awSlaveData[    414    ]    ; END_IF;
    
    IF    x181    THEN    SP_Y01_1     := OCL.WORD2_TO_REAL(awSlaveData[    435    ], awSlaveData[    434    ], FALSE); END_IF;    
    IF    x183    THEN    SP_Y01_2     := OCL.WORD2_TO_REAL(awSlaveData[    437    ], awSlaveData[    436    ], FALSE); END_IF;    
    IF    x185    THEN    SP_Y01_3     := OCL.WORD2_TO_REAL(awSlaveData[    439    ], awSlaveData[    438    ], FALSE); END_IF;    
    IF    x187    THEN    SP_Y01_4     := OCL.WORD2_TO_REAL(awSlaveData[    441    ], awSlaveData[    440    ], FALSE); END_IF;    
    IF    x189    THEN    SP_Y02_1     := OCL.WORD2_TO_REAL(awSlaveData[    443    ], awSlaveData[    442    ], FALSE); END_IF;    
    IF    x191    THEN    SP_Y02_2     := OCL.WORD2_TO_REAL(awSlaveData[    445    ], awSlaveData[    444    ], FALSE); END_IF;    
    IF    x193    THEN    SP_Y02_3     := OCL.WORD2_TO_REAL(awSlaveData[    447    ], awSlaveData[    446    ], FALSE); END_IF;    
    IF    x195    THEN    SP_Y02_4     := OCL.WORD2_TO_REAL(awSlaveData[    449    ], awSlaveData[    448    ], FALSE); END_IF;    
    IF    x197    THEN    SP_Y03_1     := OCL.WORD2_TO_REAL(awSlaveData[    451    ], awSlaveData[    450    ], FALSE); END_IF;    
    IF    x199    THEN    SP_Y03_2     := OCL.WORD2_TO_REAL(awSlaveData[    453    ], awSlaveData[    452    ], FALSE); END_IF;    
    IF    x201    THEN    SP_Y03_3     := OCL.WORD2_TO_REAL(awSlaveData[    455    ], awSlaveData[    454    ], FALSE); END_IF;    
    IF    x203    THEN    SP_Y03_4     := OCL.WORD2_TO_REAL(awSlaveData[    457    ], awSlaveData[    456    ], FALSE); END_IF;    
    IF    x205    THEN    SP_Y04_1     := OCL.WORD2_TO_REAL(awSlaveData[    459    ], awSlaveData[    458    ], FALSE); END_IF;    
    IF    x207    THEN    SP_Y04_2     := OCL.WORD2_TO_REAL(awSlaveData[    461    ], awSlaveData[    460    ], FALSE); END_IF;    
    IF    x209    THEN    SP_Y04_3     := OCL.WORD2_TO_REAL(awSlaveData[    463    ], awSlaveData[    462    ], FALSE); END_IF;    
    IF    x211    THEN    SP_Y04_4     := OCL.WORD2_TO_REAL(awSlaveData[    465    ], awSlaveData[    464    ], FALSE); END_IF;    
    IF    x213    THEN    SP_Y05_1     := OCL.WORD2_TO_REAL(awSlaveData[    467    ], awSlaveData[    466    ], FALSE); END_IF;    
    IF    x215    THEN    SP_Y05_2     := OCL.WORD2_TO_REAL(awSlaveData[    469    ], awSlaveData[    468    ], FALSE); END_IF;    
    IF    x217    THEN    SP_Y05_3     := OCL.WORD2_TO_REAL(awSlaveData[    471    ], awSlaveData[    470    ], FALSE); END_IF;    
    IF    x219    THEN    SP_Y05_4     := OCL.WORD2_TO_REAL(awSlaveData[    473    ], awSlaveData[    472    ], FALSE); END_IF;    
    IF    x221    THEN    SP_Y06_1     := OCL.WORD2_TO_REAL(awSlaveData[    475    ], awSlaveData[    474    ], FALSE); END_IF;    
    IF    x223    THEN    SP_Y06_2     := OCL.WORD2_TO_REAL(awSlaveData[    477    ], awSlaveData[    476    ], FALSE); END_IF;    
    IF    x225    THEN    SP_Y06_3     := OCL.WORD2_TO_REAL(awSlaveData[    479    ], awSlaveData[    478    ], FALSE); END_IF;    
    IF    x227    THEN    SP_Y06_4     := OCL.WORD2_TO_REAL(awSlaveData[    481    ], awSlaveData[    480    ], FALSE); END_IF;    
    IF    x229    THEN    SP_Y07_1     := OCL.WORD2_TO_REAL(awSlaveData[    483    ], awSlaveData[    482    ], FALSE); END_IF;    
    IF    x231    THEN    SP_Y07_2     := OCL.WORD2_TO_REAL(awSlaveData[    485    ], awSlaveData[    484    ], FALSE); END_IF;    
    IF    x233    THEN    SP_Y07_3     := OCL.WORD2_TO_REAL(awSlaveData[    487    ], awSlaveData[    486    ], FALSE); END_IF;    
    IF    x235    THEN    SP_Y07_4     := OCL.WORD2_TO_REAL(awSlaveData[    489    ], awSlaveData[    488    ], FALSE); END_IF;    
    IF    x237    THEN    SP_Y08_1     := OCL.WORD2_TO_REAL(awSlaveData[    491    ], awSlaveData[    490    ], FALSE); END_IF;    
    IF    x239    THEN    SP_Y08_2     := OCL.WORD2_TO_REAL(awSlaveData[    493    ], awSlaveData[    492    ], FALSE); END_IF;    
    IF    x241    THEN    SP_Y08_3     := OCL.WORD2_TO_REAL(awSlaveData[    495    ], awSlaveData[    494    ], FALSE); END_IF;    
    IF    x243    THEN    SP_Y08_4     := OCL.WORD2_TO_REAL(awSlaveData[    497    ], awSlaveData[    496    ], FALSE); END_IF;    
    IF    x245    THEN    SP_Y09_1     := OCL.WORD2_TO_REAL(awSlaveData[    499    ], awSlaveData[    498    ], FALSE); END_IF;    
    IF    x247    THEN    SP_Y09_2     := OCL.WORD2_TO_REAL(awSlaveData[    501    ], awSlaveData[    500    ], FALSE); END_IF;    
    IF    x249    THEN    SP_Y09_3     := OCL.WORD2_TO_REAL(awSlaveData[    503    ], awSlaveData[    502    ], FALSE); END_IF;    
    IF    x251    THEN    SP_Y09_4     := OCL.WORD2_TO_REAL(awSlaveData[    505    ], awSlaveData[    504    ], FALSE); END_IF;    
    
    
    SP_Y01_old:=SP_Y01;
    SP_Y02_old:=SP_Y02;
    SP_Y03_old:=SP_Y03;
    SP_Y04_old:=SP_Y04;
    SP_Y05_old:=SP_Y05;
    SP_Y06_old:=SP_Y06;
    SP_Y07_old:=SP_Y07;
    SP_Y08_old:=SP_Y08;
    SP_Y09_old:=SP_Y09;
    MANUAL_Y01_old:=MANUAL_Y01;
    MANUAL_Y02_old:=MANUAL_Y02;
    MANUAL_Y03_old:=MANUAL_Y03;
    MANUAL_Y04_old:=MANUAL_Y04;
    MANUAL_Y05_old:=MANUAL_Y05;
    MANUAL_Y06_old:=MANUAL_Y06;
    MANUAL_Y07_old:=MANUAL_Y07;
    MANUAL_Y08_old:=MANUAL_Y08;
    MANUAL_Y09_old:=MANUAL_Y09;
    P_Y01_old:=P_Y01;
    P_Y02_old:=P_Y02;
    P_Y03_old:=P_Y03;
    P_Y04_old:=P_Y04;
    P_Y05_old:=P_Y05;
    P_Y06_old:=P_Y06;
    P_Y07_old:=P_Y07;
    P_Y08_old:=P_Y08;
    P_Y09_old:=P_Y09;
    I_Y01_old:=I_Y01;
    I_Y02_old:=I_Y02;
    I_Y03_old:=I_Y03;
    I_Y04_old:=I_Y04;
    I_Y05_old:=I_Y05;
    I_Y06_old:=I_Y06;
    I_Y07_old:=I_Y07;
    I_Y08_old:=I_Y08;
    I_Y09_old:=I_Y09;
    D_Y01_old:=D_Y01;
    D_Y02_old:=D_Y02;
    D_Y03_old:=D_Y03;
    D_Y04_old:=D_Y04;
    D_Y05_old:=D_Y05;
    D_Y06_old:=D_Y06;
    D_Y07_old:=D_Y07;
    D_Y08_old:=D_Y08;
    D_Y09_old:=D_Y09;
    
    P05_Pset_old:=P05_Pset;
    P10_Pset_old:=P10_Pset;
    P15_Pset_old:=P15_Pset;
    P21_Pset_old:=P21_Pset;
    P27_Pset_old:=P27_Pset;
    
    P17_CMD_old:=P17_CMD;
    P18_CMD_old:=P18_CMD;
    P19_CMD_old:=P19_CMD;
    P20_CMD_old:=P20_CMD;
    P21_CMD_old:=P21_CMD;
    P22_CMD_old:=P22_CMD;
    P23_CMD_old:=P23_CMD;
    P24_CMD_old:=P24_CMD;
    P25_CMD_old:=P25_CMD;
    P26_CMD_old:=P26_CMD;
    P27_CMD_old:=P27_CMD;
    P28_CMD_old:=P28_CMD;
    P29_CMD_old:=P29_CMD;
    P30_CMD_old:=P30_CMD;
    P01_CMD_old:=P01_CMD;
    P02_CMD_old:=P02_CMD;
    P03_CMD_old:=P03_CMD;
    P04_CMD_old:=P04_CMD;
    P05_CMD_old:=P05_CMD;
    HL02_CMD_old:=HL02_CMD;
    P06_CMD_old:=P06_CMD;
    P07_CMD_old:=P07_CMD;
    P08_CMD_old:=P08_CMD;
    P09_CMD_old:=P09_CMD;
    P10_CMD_old:=P10_CMD;
    P11_CMD_old:=P11_CMD;
    P12_CMD_old:=P12_CMD;
    P13_CMD_old:=P13_CMD;
    P14_CMD_old:=P14_CMD;
    P15_CMD_old:=P15_CMD;
    P16_CMD_old:=P16_CMD;
    REG_Y01_CMD_old:=REG_Y01_CMD;
    REG_Y02_CMD_old:=REG_Y02_CMD;
    REG_Y03_CMD_old:=REG_Y03_CMD;
    REG_Y04_CMD_old:=REG_Y04_CMD;
    REG_Y05_CMD_old:=REG_Y05_CMD;
    REG_Y06_CMD_old:=REG_Y06_CMD;
    REG_Y07_CMD_old:=REG_Y07_CMD;
    REG_Y08_CMD_old:=REG_Y08_CMD;
    REG_Y09_CMD_old:=REG_Y09_CMD;
    SP_Y01_1_old:=SP_Y01_1;
    SP_Y01_2_old:=SP_Y01_2;
    SP_Y01_3_old:=SP_Y01_3;
    SP_Y01_4_old:=SP_Y01_4;
    SP_Y02_1_old:=SP_Y02_1;
    SP_Y02_2_old:=SP_Y02_2;
    SP_Y02_3_old:=SP_Y02_3;
    SP_Y02_4_old:=SP_Y02_4;
    SP_Y03_1_old:=SP_Y03_1;
    SP_Y03_2_old:=SP_Y03_2;
    SP_Y03_3_old:=SP_Y03_3;
    SP_Y03_4_old:=SP_Y03_4;
    SP_Y04_1_old:=SP_Y04_1;
    SP_Y04_2_old:=SP_Y04_2;
    SP_Y04_3_old:=SP_Y04_3;
    SP_Y04_4_old:=SP_Y04_4;
    SP_Y05_1_old:=SP_Y05_1;
    SP_Y05_2_old:=SP_Y05_2;
    SP_Y05_3_old:=SP_Y05_3;
    SP_Y05_4_old:=SP_Y05_4;
    SP_Y06_1_old:=SP_Y06_1;
    SP_Y06_2_old:=SP_Y06_2;
    SP_Y06_3_old:=SP_Y06_3;
    SP_Y06_4_old:=SP_Y06_4;
    SP_Y07_1_old:=SP_Y07_1;
    SP_Y07_2_old:=SP_Y07_2;
    SP_Y07_3_old:=SP_Y07_3;
    SP_Y07_4_old:=SP_Y07_4;
    SP_Y08_1_old:=SP_Y08_1;
    SP_Y08_2_old:=SP_Y08_2;
    SP_Y08_3_old:=SP_Y08_3;
    SP_Y08_4_old:=SP_Y08_4;
    SP_Y09_1_old:=SP_Y09_1;
    SP_Y09_2_old:=SP_Y09_2;
    SP_Y09_3_old:=SP_Y09_3;
    SP_Y09_4_old:=SP_Y09_4;
    
    
     
    awSlaveData_old[196]:=awSlaveData[196];
    awSlaveData_old[197]:=awSlaveData[197]; 
    awSlaveData_old[198]:=awSlaveData[198];
    awSlaveData_old[199]:=awSlaveData[199]; 
    awSlaveData_old[200]:=awSlaveData[200];
    awSlaveData_old[201]:=awSlaveData[201]; 
    awSlaveData_old[202]:=awSlaveData[202];
    awSlaveData_old[203]:=awSlaveData[203]; 
    awSlaveData_old[204]:=awSlaveData[204];
    awSlaveData_old[205]:=awSlaveData[205]; 
    awSlaveData_old[206]:=awSlaveData[206];
    awSlaveData_old[207]:=awSlaveData[207]; 
    awSlaveData_old[208]:=awSlaveData[208];
    awSlaveData_old[209]:=awSlaveData[209]; 
    awSlaveData_old[210]:=awSlaveData[210];
    awSlaveData_old[211]:=awSlaveData[211]; 
    awSlaveData_old[212]:=awSlaveData[212];
    awSlaveData_old[213]:=awSlaveData[213]; 
    awSlaveData_old[214]:=awSlaveData[214];
    awSlaveData_old[215]:=awSlaveData[215];
    awSlaveData_old[216]:=awSlaveData[216]; 
    awSlaveData_old[217]:=awSlaveData[217];
    awSlaveData_old[218]:=awSlaveData[218]; 
    awSlaveData_old[219]:=awSlaveData[219];
    awSlaveData_old[220]:=awSlaveData[220]; 
    awSlaveData_old[221]:=awSlaveData[221];
    awSlaveData_old[222]:=awSlaveData[222]; 
    awSlaveData_old[223]:=awSlaveData[223];
    awSlaveData_old[224]:=awSlaveData[224]; 
    awSlaveData_old[225]:=awSlaveData[225];
    awSlaveData_old[226]:=awSlaveData[226]; 
    awSlaveData_old[227]:=awSlaveData[227];
    awSlaveData_old[228]:=awSlaveData[228]; 
    awSlaveData_old[229]:=awSlaveData[229];
    awSlaveData_old[230]:=awSlaveData[230]; 
    awSlaveData_old[231]:=awSlaveData[231];
    
    awSlaveData_old[250]:=awSlaveData[250];
    awSlaveData_old[251]:=awSlaveData[251]; 
    awSlaveData_old[252]:=awSlaveData[252];
    awSlaveData_old[253]:=awSlaveData[253]; 
    awSlaveData_old[254]:=awSlaveData[254];
    awSlaveData_old[255]:=awSlaveData[255]; 
    awSlaveData_old[256]:=awSlaveData[256];
    awSlaveData_old[257]:=awSlaveData[257]; 
    awSlaveData_old[258]:=awSlaveData[258];
    awSlaveData_old[259]:=awSlaveData[259];
    awSlaveData_old[260]:=awSlaveData[260]; 
    awSlaveData_old[261]:=awSlaveData[261];
    awSlaveData_old[262]:=awSlaveData[262]; 
    awSlaveData_old[263]:=awSlaveData[263];
    awSlaveData_old[264]:=awSlaveData[264]; 
    awSlaveData_old[265]:=awSlaveData[265];
    awSlaveData_old[266]:=awSlaveData[266]; 
    awSlaveData_old[267]:=awSlaveData[267];
    awSlaveData_old[268]:=awSlaveData[268]; 
    awSlaveData_old[269]:=awSlaveData[269];
    awSlaveData_old[270]:=awSlaveData[270]; 
    awSlaveData_old[271]:=awSlaveData[271];
    awSlaveData_old[272]:=awSlaveData[272]; 
    awSlaveData_old[273]:=awSlaveData[273];
    awSlaveData_old[274]:=awSlaveData[274]; 
    awSlaveData_old[275]:=awSlaveData[275];
    awSlaveData_old[276]:=awSlaveData[276];
    awSlaveData_old[277]:=awSlaveData[277];
    awSlaveData_old[278]:=awSlaveData[278]; 
    awSlaveData_old[279]:=awSlaveData[279];
    awSlaveData_old[280]:=awSlaveData[280]; 
    awSlaveData_old[281]:=awSlaveData[281];
    awSlaveData_old[282]:=awSlaveData[282]; 
    awSlaveData_old[283]:=awSlaveData[283];
    awSlaveData_old[284]:=awSlaveData[284]; 
    awSlaveData_old[285]:=awSlaveData[285];
    awSlaveData_old[286]:=awSlaveData[286]; 
    awSlaveData_old[287]:=awSlaveData[287];
    awSlaveData_old[288]:=awSlaveData[288]; 
    awSlaveData_old[289]:=awSlaveData[289];
    awSlaveData_old[290]:=awSlaveData[290]; 
    awSlaveData_old[291]:=awSlaveData[291];
    awSlaveData_old[292]:=awSlaveData[292]; 
    awSlaveData_old[293]:=awSlaveData[293];
    awSlaveData_old[294]:=awSlaveData[294]; 
    awSlaveData_old[295]:=awSlaveData[295];
    awSlaveData_old[296]:=awSlaveData[296]; 
    awSlaveData_old[297]:=awSlaveData[297];
    awSlaveData_old[298]:=awSlaveData[298]; 
    awSlaveData_old[299]:=awSlaveData[299];
    awSlaveData_old[300]:=awSlaveData[300]; 
    awSlaveData_old[301]:=awSlaveData[301];
    awSlaveData_old[302]:=awSlaveData[302]; 
    awSlaveData_old[303]:=awSlaveData[303]; 
    
    awSlaveData_old[416]:=awSlaveData[416]; 
    awSlaveData_old[417]:=awSlaveData[417]; 
    awSlaveData_old[418]:=awSlaveData[418]; 
    awSlaveData_old[419]:=awSlaveData[419]; 
    awSlaveData_old[420]:=awSlaveData[420]; 
    awSlaveData_old[421]:=awSlaveData[421]; 
    awSlaveData_old[422]:=awSlaveData[422]; 
    awSlaveData_old[423]:=awSlaveData[423]; 
    awSlaveData_old[424]:=awSlaveData[424]; 
    awSlaveData_old[425]:=awSlaveData[425]; 
    
    awSlaveData_old[    305    ]    :=    awSlaveData[    305    ]    ;
    awSlaveData_old[    308    ]    :=    awSlaveData[    308    ]    ;
    awSlaveData_old[    311    ]    :=    awSlaveData[    311    ]    ;
    awSlaveData_old[    314    ]    :=    awSlaveData[    314    ]    ;
    awSlaveData_old[    317    ]    :=    awSlaveData[    317    ]    ;
    awSlaveData_old[    320    ]    :=    awSlaveData[    320    ]    ;
    awSlaveData_old[    323    ]    :=    awSlaveData[    323    ]    ;
    awSlaveData_old[    326    ]    :=    awSlaveData[    326    ]    ;
    awSlaveData_old[    329    ]    :=    awSlaveData[    329    ]    ;
    awSlaveData_old[    332    ]    :=    awSlaveData[    332    ]    ;
    awSlaveData_old[    335    ]    :=    awSlaveData[    335    ]    ;
    awSlaveData_old[    338    ]    :=    awSlaveData[    338    ]    ;
    awSlaveData_old[    341    ]    :=    awSlaveData[    341    ]    ;
    awSlaveData_old[    344    ]    :=    awSlaveData[    344    ]    ;
    awSlaveData_old[    347    ]    :=    awSlaveData[    347    ]    ;
    awSlaveData_old[    350    ]    :=    awSlaveData[    350    ]    ;
    awSlaveData_old[    353    ]    :=    awSlaveData[    353    ]    ;
    awSlaveData_old[    356    ]    :=    awSlaveData[    356    ]    ;
    awSlaveData_old[    359    ]    :=    awSlaveData[    359    ]    ;
    awSlaveData_old[    362    ]    :=    awSlaveData[    362    ]    ;
    awSlaveData_old[    365    ]    :=    awSlaveData[    365    ]    ;
    awSlaveData_old[    368    ]    :=    awSlaveData[    368    ]    ;
    awSlaveData_old[    371    ]    :=    awSlaveData[    371    ]    ;
    awSlaveData_old[    374    ]    :=    awSlaveData[    374    ]    ;
    awSlaveData_old[    377    ]    :=    awSlaveData[    377    ]    ;
    awSlaveData_old[    380    ]    :=    awSlaveData[    380    ]    ;
    awSlaveData_old[    383    ]    :=    awSlaveData[    383    ]    ;
    awSlaveData_old[    386    ]    :=    awSlaveData[    386    ]    ;
    awSlaveData_old[    389    ]    :=    awSlaveData[    389    ]    ;
    awSlaveData_old[    392    ]    :=    awSlaveData[    392    ]    ;
    awSlaveData_old[    395    ]    :=    awSlaveData[    395    ]    ;
    awSlaveData_old[    406    ]    :=    awSlaveData[    406    ]    ;
    awSlaveData_old[    407    ]    :=    awSlaveData[    407    ]    ;
    awSlaveData_old[    408    ]    :=    awSlaveData[    408    ]    ;
    awSlaveData_old[    409    ]    :=    awSlaveData[    409    ]    ;
    awSlaveData_old[    410    ]    :=    awSlaveData[    410    ]    ;
    awSlaveData_old[    411    ]    :=    awSlaveData[    411    ]    ;
    awSlaveData_old[    412    ]    :=    awSlaveData[    412    ]    ;
    awSlaveData_old[    413    ]    :=    awSlaveData[    413    ]    ;
    awSlaveData_old[    414    ]    :=    awSlaveData[    414    ]    ;
    
    awSlaveData_old[    434    ]    :=    awSlaveData[    434    ]    ;
    awSlaveData_old[    435    ]    :=    awSlaveData[    435    ]    ;
    awSlaveData_old[    436    ]    :=    awSlaveData[    436    ]    ;
    awSlaveData_old[    437    ]    :=    awSlaveData[    437    ]    ;
    awSlaveData_old[    438    ]    :=    awSlaveData[    438    ]    ;
    awSlaveData_old[    439    ]    :=    awSlaveData[    439    ]    ;
    awSlaveData_old[    440    ]    :=    awSlaveData[    440    ]    ;
    awSlaveData_old[    441    ]    :=    awSlaveData[    441    ]    ;
    awSlaveData_old[    442    ]    :=    awSlaveData[    442    ]    ;
    awSlaveData_old[    443    ]    :=    awSlaveData[    443    ]    ;
    awSlaveData_old[    444    ]    :=    awSlaveData[    444    ]    ;
    awSlaveData_old[    445    ]    :=    awSlaveData[    445    ]    ;
    awSlaveData_old[    446    ]    :=    awSlaveData[    446    ]    ;
    awSlaveData_old[    447    ]    :=    awSlaveData[    447    ]    ;
    awSlaveData_old[    448    ]    :=    awSlaveData[    448    ]    ;
    awSlaveData_old[    449    ]    :=    awSlaveData[    449    ]    ;
    awSlaveData_old[    450    ]    :=    awSlaveData[    450    ]    ;
    awSlaveData_old[    451    ]    :=    awSlaveData[    451    ]    ;
    awSlaveData_old[    452    ]    :=    awSlaveData[    452    ]    ;
    awSlaveData_old[    453    ]    :=    awSlaveData[    453    ]    ;
    awSlaveData_old[    454    ]    :=    awSlaveData[    454    ]    ;
    awSlaveData_old[    455    ]    :=    awSlaveData[    455    ]    ;
    awSlaveData_old[    456    ]    :=    awSlaveData[    456    ]    ;
    awSlaveData_old[    457    ]    :=    awSlaveData[    457    ]    ;
    awSlaveData_old[    458    ]    :=    awSlaveData[    458    ]    ;
    awSlaveData_old[    459    ]    :=    awSlaveData[    459    ]    ;
    awSlaveData_old[    460    ]    :=    awSlaveData[    460    ]    ;
    awSlaveData_old[    461    ]    :=    awSlaveData[    461    ]    ;
    awSlaveData_old[    462    ]    :=    awSlaveData[    462    ]    ;
    awSlaveData_old[    463    ]    :=    awSlaveData[    463    ]    ;
    awSlaveData_old[    464    ]    :=    awSlaveData[    464    ]    ;
    awSlaveData_old[    465    ]    :=    awSlaveData[    465    ]    ;
    awSlaveData_old[    466    ]    :=    awSlaveData[    466    ]    ;
    awSlaveData_old[    467    ]    :=    awSlaveData[    467    ]    ;
    awSlaveData_old[    468    ]    :=    awSlaveData[    468    ]    ;
    awSlaveData_old[    469    ]    :=    awSlaveData[    469    ]    ;
    awSlaveData_old[    470    ]    :=    awSlaveData[    470    ]    ;
    awSlaveData_old[    471    ]    :=    awSlaveData[    471    ]    ;
    awSlaveData_old[    472    ]    :=    awSlaveData[    472    ]    ;
    awSlaveData_old[    473    ]    :=    awSlaveData[    473    ]    ;
    awSlaveData_old[    474    ]    :=    awSlaveData[    474    ]    ;
    awSlaveData_old[    475    ]    :=    awSlaveData[    475    ]    ;
    awSlaveData_old[    476    ]    :=    awSlaveData[    476    ]    ;
    awSlaveData_old[    477    ]    :=    awSlaveData[    477    ]    ;
    awSlaveData_old[    478    ]    :=    awSlaveData[    478    ]    ;
    awSlaveData_old[    479    ]    :=    awSlaveData[    479    ]    ;
    awSlaveData_old[    480    ]    :=    awSlaveData[    480    ]    ;
    awSlaveData_old[    481    ]    :=    awSlaveData[    481    ]    ;
    awSlaveData_old[    482    ]    :=    awSlaveData[    482    ]    ;
    awSlaveData_old[    483    ]    :=    awSlaveData[    483    ]    ;
    awSlaveData_old[    484    ]    :=    awSlaveData[    484    ]    ;
    awSlaveData_old[    485    ]    :=    awSlaveData[    485    ]    ;
    awSlaveData_old[    486    ]    :=    awSlaveData[    486    ]    ;
    awSlaveData_old[    487    ]    :=    awSlaveData[    487    ]    ;
    awSlaveData_old[    488    ]    :=    awSlaveData[    488    ]    ;
    awSlaveData_old[    489    ]    :=    awSlaveData[    489    ]    ;
    awSlaveData_old[    490    ]    :=    awSlaveData[    490    ]    ;
    awSlaveData_old[    491    ]    :=    awSlaveData[    491    ]    ;
    awSlaveData_old[    492    ]    :=    awSlaveData[    492    ]    ;
    awSlaveData_old[    493    ]    :=    awSlaveData[    493    ]    ;
    awSlaveData_old[    494    ]    :=    awSlaveData[    494    ]    ;
    awSlaveData_old[    495    ]    :=    awSlaveData[    495    ]    ;
    awSlaveData_old[    496    ]    :=    awSlaveData[    496    ]    ;
    awSlaveData_old[    497    ]    :=    awSlaveData[    497    ]    ;
    awSlaveData_old[    498    ]    :=    awSlaveData[    498    ]    ;
    awSlaveData_old[    499    ]    :=    awSlaveData[    499    ]    ;
    awSlaveData_old[    500    ]    :=    awSlaveData[    500    ]    ;
    awSlaveData_old[    501    ]    :=    awSlaveData[    501    ]    ;
    awSlaveData_old[    502    ]    :=    awSlaveData[    502    ]    ;
    awSlaveData_old[    503    ]    :=    awSlaveData[    503    ]    ;
    awSlaveData_old[    504    ]    :=    awSlaveData[    504    ]    ;
    awSlaveData_old[    505    ]    :=    awSlaveData[    505    ]    ;
    Сильно, круто респект

Страница 2 из 2 ПерваяПервая 12

Похожие темы

  1. ПЛК200 - старт продаж
    от Евгений Кислов в разделе ПЛК2хх
    Ответов: 14
    Последнее сообщение: 31.03.2021, 12:10
  2. ПЛК200: история версий прошивок
    от Евгений Кислов в разделе ПЛК2хх
    Ответов: 2
    Последнее сообщение: 17.03.2021, 11:10
  3. Опрос ПЛК-100 Р. М. через ModBusTCP
    от moon-guest в разделе ПЛК1хх
    Ответов: 1
    Последнее сообщение: 30.12.2011, 08:49
  4. плк63 + modbusTCP
    от Blusman в разделе ПЛК63/73
    Ответов: 1
    Последнее сообщение: 30.04.2010, 10:49
  5. ModbusTCP
    от Назаров Александр в разделе ПЛК1хх
    Ответов: 11
    Последнее сообщение: 29.12.2009, 17:16

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •