/*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy",4)*/ system ControlSystem; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),209(55,25))*/ SIGNAL InCard, InCode, Ask, Answer, GateStatus; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),125(40,42))*/ channel /*#E*/ C1 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),104(15,15))*/ env to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),251(50,40))*/ CardReader with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),126(25,50))*/ InCard; endchannel C1; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),257(90,42))*/ channel /*#E*/ C2 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),251(50,40))*/ CardReader to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),119(90,60))*/ CheckPoint with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),258(112,47))*/ InCode; endchannel C2; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),134(130,60))*/ channel /*#E*/ C4 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),119(90,60))*/ CheckPoint to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),122(125,95))*/ Processor with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),135(147,87))*/ Ask; endchannel C4; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),164(65,72))*/ channel /*#E*/ C3 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),119(90,60))*/ CheckPoint to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),104(15,15))*/ env with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),165(36,80))*/ GateStatus; endchannel C3; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),152(103,81))*/ channel /*#E*/ C5 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),122(125,95))*/ Processor to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),119(90,60))*/ CheckPoint with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),153(113,93))*/ Answer; endchannel C5; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),251(50,40))*/ block /*#E*/ CardReader referenced; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),119(90,60))*/ block /*#E*/ CheckPoint referenced; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy"(1),122(125,95))*/ block /*#E*/ Processor referenced; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\ControlSystem.ssy",4)*/ endsystem ControlSystem; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk",4)*/ block Processor; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),146(75,25))*/ SIGNAL Ask, Answer; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),122(47,52))*/ signalroute /*#E*/ K1 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),104(15,15))*/ env to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),116(75,55))*/ Processor with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),123(67,52))*/ Ask; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),131(47,62))*/ signalroute /*#E*/ K2 from /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),116(75,55))*/ Processor to /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),104(15,15))*/ env with /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),132(17,72))*/ Answer; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),116(75,55))*/ process /*#E*/ Processor referenced; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),128(7,57))*/ connect /*#E*/ C4 and /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),122(47,52))*/ K1; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),137(7,67))*/ connect /*#E*/ C5 and /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk"(1),131(47,62))*/ K2; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.sbk",4)*/ endblock Processor; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr",4)*/ process Processor; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),170(125,45))*/ DCL code1 Integer, code2 Integer; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),116(40,25))*/ start /*#E*/ ; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),119(40,45))*/ nextstate /*#E*/ Generate; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),125(90,25))*/ state /*#E*/ Generate; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),134(80,45))*/ input /*#E*/ code1,code2; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),137(75,65))*/ decision /*#E*/ code1=code2; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),152(102,82))*/ (TRUE): /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),146(85,95))*/ output /*#E*/ Answer(1); /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),158(90,120))*/ nextstate /*#E*/ _; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),155(147,75))*/ (FALSE): /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),149(130,95))*/ output /*#E*/ Answer(0); /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),164(135,120))*/ nextstate /*#E*/ _; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),137(75,65))*/ enddecision; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr"(1),125(90,25))*/ endstate; /*#SDTREF(SDL,"C:\\Documents and Settings\\student\\Рабочий стол\\Задание 2\\Var.22\\Processor.spr",4)*/ endprocess Processor;