CASE "step" OF
0:
[INDENT] IF "sensorICERIDE" = 0 AND "sensorALT" = 1 AND "kaliciKONV" = 0 AND "kaliciZINCIR_UP"=0 AND "kaliciZINCIR_DOWN"=0 AND "baba".ZINCIR.PULSLER."1.kat".tamam = 1 THEN
"kaliciPISTON" := 1;
END_IF;
IF "sensorICERIDE" = 1 THEN
"step" := 5;
END_IF; //ICERI[/INDENT]
5:
[INDENT] IF ("sensorGIRIS" = 1 AND "sensorICERIDE"=1 AND "sensorALT" = 1 AND "baba".ZINCIR.PULSLER."1.kat".tamam=1) OR "baba".panel.buton.DEVAM=1 THEN
"kaliciKONV" := 1;
END_IF;
IF "baba".KONVEYOR.ENKODER.mm >= "baba".panel.deger.KONVEYOR THEN
"kaliciKONV" := 0;
END_IF;
IF "kaliciKONV"=0 AND "baba".KONVEYOR.ENKODER.mm>="baba".panel.deger.KONVEYOR THEN
"step" := 10;
END_IF; //KONVEYOR[/INDENT]
10:
[INDENT] IF "kaliciKONV" = 0 AND "baba".ZINCIR.PULSLER."1.kat".tamam=1 THEN
"kaliciPISTON":=0;
"baba".KONVEYOR.ENKODER.reset := 1;
END_IF;
IF "sensorDISARIDA"=1 AND "kaliciKONV"=0 THEN
"baba".KONVEYOR.ENKODER.reset := 0;
"step" := 15;
END_IF; //DISARI[/INDENT]
15:
[INDENT] IF ("sensorDISARIDA"=1 AND "baba".ZINCIR.PULSLER."1.kat".tamam=1) OR "baba".panel.buton.DEVAM=1 THEN
"kaliciZINCIR_UP" := 1;
END_IF;
IF "baba".ZINCIR.ENKODER.mm >= 150 THEN
"kaliciZINCIR_UP" := 0;
END_IF;
IF "baba".ZINCIR.PULSLER."1.kat".kalkma = 1 THEN
"baba".ZINCIR.HIZ.panel := 1;
END_IF;
IF "baba".ZINCIR.PULSLER."1.kat".normal = 1 THEN
"baba".ZINCIR.HIZ.panel := 5;
END_IF;
IF "baba".ZINCIR.PULSLER."1.kat".durma = 1 THEN
"baba".ZINCIR.HIZ.panel := 1;
END_IF;
IF "kaliciZINCIR_UP"=0 AND "baba".ZINCIR.ENKODER.mm >= 150 THEN
"step" := 0;
"baba".ZINCIR.ENKODER.deger := 0;
END_IF; //YUKARI
END_CASE