FUNCTION_BLOCK FB0
(*$_COM prioritni vypousteni*)

CMPSET
         S7Graph-Version: 4000
         WarningLevel: All
         FBInterface: Standard
         SSBLevel: Array
         ASMsgLevel: No
         TargetMachine: AS300StdBlock
         RuntimeBlock: FC 72
         CritAvail: F
         SSkipOn: F
         AckReq: T
         SyncAvail: F
         PermILMan: F
END_CMPSET

(*$_SETTINGS
         ProgLang: LAD
*)

STEP Step1 (*$_NUM 12*):
(*$_COM Step1@Step comment*)

END_STEP

STEP Step27_2 (*$_NUM 60*):
(*$_COM Step comment*)

"zadost"   (S)
END_STEP

STEP Step28_6 (*$_NUM 61*):
(*$_COM Step comment*)

"v3"   (S)
"mm3"   (S)
END_STEP

STEP Step29_6 (*$_NUM 62*):
(*$_COM Step comment*)

"mm1"   (R)
END_STEP

STEP Step33_6 (*$_NUM 63*):
(*$_COM Step comment*)

"mm3"   (S)
END_STEP

STEP Step39_2 (*$_NUM 64*):
(*$_COM Step comment*)

"n3"   (R)
"mm3"   (R)
"v3"   (R)
END_STEP

STEP Step28_7 (*$_NUM 65*):
(*$_COM Step comment*)

"v2"   (S)
"mm2"   (S)
END_STEP

STEP Step29_7 (*$_NUM 67*):
(*$_COM Step comment*)

"mm2"   (R)
END_STEP

STEP Step33_7 (*$_NUM 66*):
(*$_COM Step comment*)

"mm2"   (S)
END_STEP

STEP Step38_2 (*$_NUM 68*):
(*$_COM Step comment*)

"n2"   (R)
"mm2"   (R)
"v2"   (R)
END_STEP

STEP Step28_8 (*$_NUM 69*):
(*$_COM Step comment*)

"v1"   (S)
"mm1"   (S)
END_STEP

STEP Step29_8 (*$_NUM 70*):
(*$_COM Step comment*)

"mm1"   (R)
END_STEP

STEP Step33_8 (*$_NUM 72*):
(*$_COM Step comment*)

"mm1"   (S)
END_STEP

STEP Step44_2 (*$_NUM 71*):
(*$_COM Step comment*)

"volno"   (R)
"n1"   (R)
"mm1"   (R)
"v1"   (R)
END_STEP

STEP Step73 (*$_NUM 73*):
(*$_COM Step comment*)

"volno"   (R)
END_STEP

STEP Step27_1 (*$_NUM 48*):
(*$_COM Step comment*)

"zadost"   (S)
END_STEP

STEP Step28_3 (*$_NUM 49*):
(*$_COM Step comment*)

"v2"   (S)
"mm2"   (S)
END_STEP

STEP Step29_3 (*$_NUM 50*):
(*$_COM Step comment*)

"mm2"   (R)
END_STEP

STEP Step33_4 (*$_NUM 51*):
(*$_COM Step comment*)

"mm2"   (S)
END_STEP

STEP Step39_1 (*$_NUM 52*):
(*$_COM Step comment*)

"n2"   (R)
"mm2"   (R)
"v2"   (R)
END_STEP

STEP Step28_4 (*$_NUM 53*):
(*$_COM Step comment*)

"v1"   (S)
"mm2"   (S)
END_STEP

STEP Step29_4 (*$_NUM 54*):
(*$_COM Step comment*)

"mm1"   (R)
END_STEP

STEP Step33_5 (*$_NUM 55*):
(*$_COM Step comment*)

"mm1"   (S)
END_STEP

STEP Step38_1 (*$_NUM 56*):
(*$_COM Step comment*)

"n1"   (R)
"mm1"   (R)
"v1"   (R)
END_STEP

STEP Step28_5 (*$_NUM 57*):
(*$_COM Step comment*)

"v3"   (S)
"mm3"   (S)
END_STEP

STEP Step29_5 (*$_NUM 58*):
(*$_COM Step comment*)

"mm2"   (R)
END_STEP

STEP Step33_3 (*$_NUM 47*):
(*$_COM Step comment*)

"mm3"   (S)
END_STEP

STEP Step44_1 (*$_NUM 59*):
(*$_COM Step comment*)

"n3"   (R)
"mm3"   (R)
"v3"   (R)
END_STEP

STEP Step73_1 (*$_NUM 74*):
(*$_COM Step comment*)

"volno"   (R)
END_STEP

STEP Step27 (*$_NUM 27*):
(*$_COM Step comment*)

"zadost"   (S)
END_STEP

STEP Step28 (*$_NUM 28*):
(*$_COM Step comment*)

"v1"   (S)
"mm1"   (S)
END_STEP

STEP Step29 (*$_NUM 29*):
(*$_COM Step comment*)

"mm1"   (R)
END_STEP

STEP Step33 (*$_NUM 33*):
(*$_COM Step comment*)

"mm1"   (S)
END_STEP

STEP Step39 (*$_NUM 39*):
(*$_COM Step comment*)

"n1"   (R)
"mm1"   (R)
"v1"   (R)
END_STEP

STEP Step28_1 (*$_NUM 35*):
(*$_COM Step comment*)

"v2"   (S)
"mm2"   (S)
END_STEP

STEP Step29_1 (*$_NUM 37*):
(*$_COM Step comment*)

"mm2"   (R)
END_STEP

STEP Step33_1 (*$_NUM 36*):
(*$_COM Step comment*)

"mm2"   (S)
END_STEP

STEP Step38 (*$_NUM 38*):
(*$_COM Step comment*)

"n2"   (R)
"mm2"   (R)
"v2"   (R)
END_STEP

STEP Step28_2 (*$_NUM 41*):
(*$_COM Step comment*)

"v3"   (S)
"mm3"   (S)
END_STEP

STEP Step29_2 (*$_NUM 43*):
(*$_COM Step comment*)

"mm2"   (R)
END_STEP

STEP Step33_2 (*$_NUM 42*):
(*$_COM Step comment*)

"mm3"   (S)
END_STEP

STEP Step44 (*$_NUM 44*):
(*$_COM Step comment*)

"n3"   (R)
"mm3"   (R)
"v3"   (R)
END_STEP

STEP Step73_2 (*$_NUM 75*):
(*$_COM Step comment*)

"volno"   (R)
END_STEP

TRANSITION Trans57 (*$_NUM 57*)
  FROM Step1
  TO Step27
CONDITION := "n1" 
END_TRANSITION

TRANSITION Trans59 (*$_NUM 59*)
  FROM Step27
  TO Step28
CONDITION := "volno" 
END_TRANSITION

TRANSITION Trans60 (*$_NUM 60*)
  FROM Step28
  TO Step29
CONDITION := Step28.T > T#3S 
END_TRANSITION

TRANSITION Trans61 (*$_NUM 61*)
  FROM Step29
  TO Step33
CONDITION := Step29.T > T#2S 
END_TRANSITION

TRANSITION Trans63 (*$_NUM 63*)
  FROM Step33
  TO Step28 (*$_JUMP*)
CONDITION := NOT "d1" 
END_TRANSITION

TRANSITION Trans62 (*$_NUM 62*)
  FROM Step33
  TO Step39
CONDITION := "d1" 
END_TRANSITION

TRANSITION Trans70 (*$_NUM 70*)
  FROM Step39
  TO Step38 (*$_JUMP*)
CONDITION := NOT "n2" 
END_TRANSITION

TRANSITION Trans69 (*$_NUM 69*)
  FROM Step39
  TO Step28_1
CONDITION := "n2" AND "volno" 
END_TRANSITION

TRANSITION Trans60_1 (*$_NUM 66*)
  FROM Step28_1
  TO Step29_1
CONDITION := Step28_1.T > T#3S 
END_TRANSITION

TRANSITION Trans61_1 (*$_NUM 65*)
  FROM Step29_1
  TO Step33_1
CONDITION := Step29_1.T > T#2S 
END_TRANSITION

TRANSITION Trans68 (*$_NUM 68*)
  FROM Step33_1
  TO Step39 (*$_JUMP*)
CONDITION := NOT "d2" 
END_TRANSITION

TRANSITION Trans67 (*$_NUM 67*)
  FROM Step33_1
  TO Step38
CONDITION := "d2" 
END_TRANSITION

TRANSITION Trans72 (*$_NUM 72*)
  FROM Step38
  TO Step73_2
CONDITION := NOT "n3" 
END_TRANSITION

TRANSITION Trans117_2 (*$_NUM 119*)
  FROM Step73_2
  TO Step1 (*$_JUMP*)
END_TRANSITION

TRANSITION Trans71 (*$_NUM 71*)
  FROM Step38
  TO Step28_2
CONDITION := "n3" AND "volno" 
END_TRANSITION

TRANSITION Trans60_2 (*$_NUM 75*)
  FROM Step28_2
  TO Step29_2
CONDITION := Step28_2.T > T#3S 
END_TRANSITION

TRANSITION Trans61_2 (*$_NUM 74*)
  FROM Step29_2
  TO Step33_2
CONDITION := Step29_2.T > T#2S 
END_TRANSITION

TRANSITION Trans77 (*$_NUM 77*)
  FROM Step33_2
  TO Step28_2 (*$_JUMP*)
CONDITION := NOT "d3" 
END_TRANSITION

TRANSITION Trans76 (*$_NUM 76*)
  FROM Step33_2
  TO Step44
CONDITION := "d3" 
END_TRANSITION

TRANSITION Trans78 (*$_NUM 78*)
  FROM Step44
  TO Step1 (*$_JUMP*)
END_TRANSITION

TRANSITION Trans57_1 (*$_NUM 81*)
  FROM Step1
  TO Step27_1
CONDITION := "n2" 
END_TRANSITION

TRANSITION Trans59_1 (*$_NUM 82*)
  FROM Step27_1
  TO Step28_3
CONDITION := "volno" 
END_TRANSITION

TRANSITION Trans60_3 (*$_NUM 83*)
  FROM Step28_3
  TO Step29_3
CONDITION := Step28_3.T > T#3S 
END_TRANSITION

TRANSITION Trans61_4 (*$_NUM 84*)
  FROM Step29_3
  TO Step33_4
CONDITION := Step29_3.T > T#2S 
END_TRANSITION

TRANSITION Trans63_1 (*$_NUM 95*)
  FROM Step33_4
  TO Step28_3 (*$_JUMP*)
CONDITION := NOT "d2" 
END_TRANSITION

TRANSITION Trans62_1 (*$_NUM 85*)
  FROM Step33_4
  TO Step39_1
CONDITION := "d2" 
END_TRANSITION

TRANSITION Trans70_1 (*$_NUM 97*)
  FROM Step39_1
  TO Step38_1 (*$_JUMP*)
CONDITION := NOT "n1" 
END_TRANSITION

TRANSITION Trans69_1 (*$_NUM 86*)
  FROM Step39_1
  TO Step28_4
CONDITION := "n1" AND "volno" 
END_TRANSITION

TRANSITION Trans60_4 (*$_NUM 87*)
  FROM Step28_4
  TO Step29_4
CONDITION := Step28_4.T > T#3S 
END_TRANSITION

TRANSITION Trans61_5 (*$_NUM 88*)
  FROM Step29_4
  TO Step33_5
CONDITION := Step29_4.T > T#2S 
END_TRANSITION

TRANSITION Trans68_1 (*$_NUM 92*)
  FROM Step33_5
  TO Step39_1 (*$_JUMP*)
CONDITION := NOT "d1" 
END_TRANSITION

TRANSITION Trans67_1 (*$_NUM 89*)
  FROM Step33_5
  TO Step38_1
CONDITION := "d1" 
END_TRANSITION

TRANSITION Trans72_1 (*$_NUM 96*)
  FROM Step38_1
  TO Step73_1
CONDITION := NOT "n3" 
END_TRANSITION

TRANSITION Trans117_1 (*$_NUM 118*)
  FROM Step73_1
  TO Step1 (*$_JUMP*)
END_TRANSITION

TRANSITION Trans71_1 (*$_NUM 90*)
  FROM Step38_1
  TO Step28_5
CONDITION := "n3" AND "volno" 
END_TRANSITION

TRANSITION Trans60_5 (*$_NUM 91*)
  FROM Step28_5
  TO Step29_5
CONDITION := Step28_5.T > T#3S 
END_TRANSITION

TRANSITION Trans61_3 (*$_NUM 79*)
  FROM Step29_5
  TO Step33_3
CONDITION := Step29_5.T > T#2S 
END_TRANSITION

TRANSITION Trans77_1 (*$_NUM 94*)
  FROM Step33_3
  TO Step28_5 (*$_JUMP*)
CONDITION := NOT "d3" 
END_TRANSITION

TRANSITION Trans76_1 (*$_NUM 80*)
  FROM Step33_3
  TO Step44_1
CONDITION := "d3" 
END_TRANSITION

TRANSITION Trans78_1 (*$_NUM 93*)
  FROM Step44_1
  TO Step1 (*$_JUMP*)
END_TRANSITION

TRANSITION Trans57_2 (*$_NUM 98*)
  FROM Step1
  TO Step27_2
CONDITION := "n3" 
END_TRANSITION

TRANSITION Trans59_2 (*$_NUM 99*)
  FROM Step27_2
  TO Step28_6
CONDITION := "volno" 
END_TRANSITION

TRANSITION Trans60_6 (*$_NUM 100*)
  FROM Step28_6
  TO Step29_6
CONDITION := Step28_6.T > T#3S 
END_TRANSITION

TRANSITION Trans61_6 (*$_NUM 101*)
  FROM Step29_6
  TO Step33_6
CONDITION := Step29_6.T > T#2S 
END_TRANSITION

TRANSITION Trans63_2 (*$_NUM 116*)
  FROM Step33_6
  TO Step28_6 (*$_JUMP*)
CONDITION := NOT "d3" 
END_TRANSITION

TRANSITION Trans62_2 (*$_NUM 103*)
  FROM Step33_6
  TO Step39_2
CONDITION := "d3" 
END_TRANSITION

TRANSITION Trans70_2 (*$_NUM 113*)
  FROM Step39_2
  TO Step38_2 (*$_JUMP*)
CONDITION := NOT "n2" 
END_TRANSITION

TRANSITION Trans69_2 (*$_NUM 102*)
  FROM Step39_2
  TO Step28_7
CONDITION := "n2" AND "volno" 
END_TRANSITION

TRANSITION Trans60_7 (*$_NUM 104*)
  FROM Step28_7
  TO Step29_7
CONDITION := Step28_7.T > T#3S 
END_TRANSITION

TRANSITION Trans61_7 (*$_NUM 105*)
  FROM Step29_7
  TO Step33_7
CONDITION := Step29_7.T > T#2S 
END_TRANSITION

TRANSITION Trans68_2 (*$_NUM 112*)
  FROM Step33_7
  TO Step39_2 (*$_JUMP*)
CONDITION := NOT "d2" 
END_TRANSITION

TRANSITION Trans67_2 (*$_NUM 107*)
  FROM Step33_7
  TO Step38_2
CONDITION := "d2" 
END_TRANSITION

TRANSITION Trans72_2 (*$_NUM 115*)
  FROM Step38_2
  TO Step73
CONDITION := NOT "n1" 
END_TRANSITION

TRANSITION Trans117 (*$_NUM 117*)
  FROM Step73
  TO Step1 (*$_JUMP*)
END_TRANSITION

TRANSITION Trans71_2 (*$_NUM 106*)
  FROM Step38_2
  TO Step28_8
CONDITION := "n1" AND "volno" 
END_TRANSITION

TRANSITION Trans60_8 (*$_NUM 108*)
  FROM Step28_8
  TO Step29_8
CONDITION := Step28_8.T > T#3S 
END_TRANSITION

TRANSITION Trans61_8 (*$_NUM 109*)
  FROM Step29_8
  TO Step33_8
CONDITION := Step29_8.T > T#2S 
END_TRANSITION

TRANSITION Trans77_2 (*$_NUM 114*)
  FROM Step33_8
  TO Step28_8 (*$_JUMP*)
CONDITION := NOT "d3" 
END_TRANSITION

TRANSITION Trans76_2 (*$_NUM 111*)
  FROM Step33_8
  TO Step44_2
CONDITION := "d3" 
END_TRANSITION

TRANSITION Trans78_2 (*$_NUM 110*)
  FROM Step44_2
  TO Step1 (*$_JUMP*)
END_TRANSITION

END_FUNCTION_BLOCK
