27.04.2013 Views

1. Objectius - Recercat

1. Objectius - Recercat

1. Objectius - Recercat

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Treball de Recerca: Disseny i Construcció d’un Ascensor de 4 Plantes<br />

if ETAPA_1=1 and FC0=1 then<br />

ETAPA_0=1<br />

ETAPA_1=0<br />

endif<br />

if ETAPA_2=1 and FC1=1 then<br />

ETAPA_0=1<br />

ETAPA_2=0<br />

endif<br />

if ETAPA_3=1 and FC1=1 then<br />

ETAPA_0=1<br />

ETAPA_3=0<br />

endif<br />

if ETAPA_4=1 and FC2=1 then<br />

ETAPA_0=1<br />

ETAPA_4=0<br />

endif<br />

if ETAPA_5=1 and FC2=1 then<br />

ETAPA_0=1<br />

ETAPA_5=0<br />

endif<br />

if ETAPA_6=1 and FC3=1 then<br />

ETAPA_0=1<br />

ETAPA_6=0<br />

endif<br />

'Programació Motors<br />

if ETAPA_0=1 then<br />

KMP=0<br />

KMB=0<br />

endif<br />

if ETAPA_1=1 or ETAPA_2=1 or ETAPA_5=1 then<br />

KMB=1<br />

end if<br />

if ETAPA_3=1 or ETAPA_4=1 or ETAPA_6=1 then<br />

KMP=1<br />

endif<br />

gosub ACTUALITZAR_SORTIDES<br />

goto main<br />

'Subrutines<br />

37

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!