Proizvod Daska auto
math
0|0
33
EAutomatskim
TpokreniHoblanje	E1
TSirovina[1].Lager	ESirovina[1].Lager-2
TProizvod[1].Lager	EProizvod[1].Lager+5
TProizvod[4].Lager	EProizvod[4].Lager+2
TSirovina[2].Lager	ESirovina[2].Lager-2
TProizvod[2].Lager	EProizvod[2].Lager+5
TProizvod[5].Lager	EProizvod[5].Lager+2
TSirovina[3].Lager	ESirovina[3].Lager-2
TProizvod[3].Lager	EProizvod[3].Lager+5
TProizvod[6].Lager	EProizvod[6].Lager+2
TostrinaNozaHoble	EostrinaNozaHoble-0.01
TostrinaNozaRezaca1	EostrinaNozaRezaca1-0.01
TkolicinaOtpadaHoble	EkolicinaOtpadaHoble+0.02
TkolicinaOtpadaRezaca1	EkolicinaOtpadaRezaca1+0.02
TkolicinaOtpadaHoble	Eif(ventilOtpadHobla = 1, kolicinaOtpadaHoble -0.4)
TkolicinaOtpadaRezaca1	Eif(ventilOtpadRezac1 = 1, kolicinaOtpadaRezaca1 -0.4)
TventilOtpadHobla	Eif(kolicinaOtpadaHoble >= 5,1,0)
TventilOtpadRezac1	Eif(kolicinaOtpadaRezaca1 >= 5,1,0)
TpokreniRezanjeProfila1	Eif((Sirovina[1].Lager <= 0) or (Sirovina[2].Lager <= 0) or (Sirovina[3].Lager <= 0),1)
TAutomatskim	Eif((Sirovina[1].Lager <= 0) or (Sirovina[2].Lager <= 0) or (Sirovina[3].Lager <= 0),0)
TpokreniHoblanje	Eif((Sirovina[1].Lager <= 0) or (Sirovina[2].Lager <= 0) or (Sirovina[3].Lager <= 0),0)
TostrinaNozaHoble	EostrinaNozaHoble-0.01
TostrinaNozaRezaca1	EostrinaNozaRezaca1-0.01
TkolicinaOtpadaHoble	Eif(ventilOtpadHobla=0, kolicinaOtpadaHoble+0.07)
TkolicinaOtpadaRezaca1	Eif(ventilOtpadRezac1=0, kolicinaOtpadaRezaca1+0.07)
TkolicinaOtpadaHoble	Eif(ventilOtpadHobla = 1, kolicinaOtpadaHoble -0.4)
TkolicinaOtpadaRezaca1	Eif(ventilOtpadRezac1 = 1, kolicinaOtpadaRezaca1 -0.4)
TventilOtpadHobla	Eif(kolicinaOtpadaHoble >= 5,1)
TventilOtpadRezac1	Eif(kolicinaOtpadaRezaca1 >= 5,1)
TpokreniHoblanje	Eif (Sirovina[Sirovina_ID].Lager<=0,0)
TventilOtpadHobla	Eif(kolicinaOtpadaHoble <= 0,0)
TventilOtpadRezac1	Eif(kolicinaOtpadaRezaca1 <= 0,0)
T	Ewait(100)
