FUNCTION_BLOCK FB0
(*$_COM zebra*)

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*)

"Auto_cervena"   (R)
"Auto_oranzova"   (R)
"Auto_zelena"   (S)
"Chodec_cervena"   (R)
"Chodec_zelena"   (S)
END_STEP

STEP Step13 (*$_NUM 13*):
(*$_COM Step comment*)

"Auto_zelena"   (R)
"Auto_oranzova"   (S)
END_STEP

STEP Step14 (*$_NUM 14*):
(*$_COM Step comment*)

"Auto_oranzova"   (R)
"Auto_cervena"   (S)
"Chodec_cervena"   (R)
END_STEP

STEP Step15 (*$_NUM 15*):
(*$_COM Step comment*)

"Chodec_zelena"   (S)
END_STEP

STEP Step16 (*$_NUM 16*):
(*$_COM Step comment*)

"Chodec_zelena"   (R)
"Chodec_cervena"   (S)
END_STEP

STEP Step17 (*$_NUM 17*):
(*$_COM Step comment*)

"Auto_oranzova"   (S)
END_STEP

STEP Step18 (*$_NUM 18*):
(*$_COM Step comment*)

"Auto_oranzova"   (R)
"Auto_cervena"   (R)
"Auto_zelena"   (S)
END_STEP

TRANSITION Trans32 (*$_NUM 32*)
  FROM Step1
  TO Step13
CONDITION := "Chodec_pozadavek" AND Step1.T > T#2S 
END_TRANSITION

TRANSITION Trans33 (*$_NUM 33*)
  FROM Step13
  TO Step14
CONDITION := Step13.T > T#2S 
END_TRANSITION

TRANSITION Trans34 (*$_NUM 34*)
  FROM Step14
  TO Step15
CONDITION := "Auto_cervena" 
END_TRANSITION

TRANSITION Trans35 (*$_NUM 35*)
  FROM Step15
  TO Step16
CONDITION := Step15.T > T#2S 
END_TRANSITION

TRANSITION Trans36 (*$_NUM 36*)
  FROM Step16
  TO Step17
CONDITION := Step16.T > T#2S 
END_TRANSITION

TRANSITION Trans37 (*$_NUM 37*)
  FROM Step17
  TO Step18
CONDITION := Step17.T > T#2S 
END_TRANSITION

TRANSITION Trans38 (*$_NUM 38*)
  FROM Step18
  TO Step1 (*$_JUMP*)
CONDITION := Step18.T > T#2S 
END_TRANSITION

END_FUNCTION_BLOCK
