You are on page 1of 1

Universidad de Oviedo Problemas M340 - 251

ISA

Sección "Preliminar"
(* Marcas para la pantalla *)
If %S13 then
Set (MxP_Paro); Set (MxP_FCC);
END_IF;

Mx_Rearme:= (Ix_Rearme and Ix_LocDist) or (MxP_Rearme and not Ix_LocDist);


Mx_Marcha:= (Ix_Marcha and Ix_LocDist) or (MxP_Marcha and not Ix_LocDist);
Mx_Paro:= (Ix_Paro and Ix_LocDist) or (MxP_Paro and not Ix_LocDist);
Mx_FC1:= (Ix_FC1 and Ix_LocDist) or (MxP_FC1 and not Ix_LocDist);
Mx_FC2:= (Ix_FC2 and Ix_LocDist) or (MxP_FC2 and not Ix_LocDist);
Mx_FC3:= (Ix_FC3 and Ix_LocDist) or (MxP_FC3 and not Ix_LocDist);
Mx_FC4:= (Ix_FC4 and Ix_LocDist) or (MxP_FC4 and not Ix_LocDist);
Mx_FC5:= (Ix_FC5 and Ix_LocDist) or (MxP_FC5 and not Ix_LocDist);
Mx_Fca:= (Ix_Fca and Ix_LocDist) or (MxP_Fca and not Ix_LocDist);
Mx_Fcc:= (Ix_Fcc and Ix_LocDist) or (MxP_Fcc and not Ix_LocDist);
MxP_F1FCC:=Mx_Fc1 and Mx_Fcc;
MxP_F1FCA:=Mx_Fc1 and Mx_Fca;
MxP_FCCnoF1:= Mx_Fcc and not Mx_FC1;

(* Programa principal *)
If re (Mx_Rearme) then
set (Mx_PonCi);
reset (Mx_PEv);
end_if;

if Mx_PonCi then
Inicializar();
end_if;

if not Mx_Paro then


reset (Mx_PEv);
end_if;

(* Control de la cinta *)
if Mx_Marcha and Mx_PEv then
set (Qx_Cinta);
end_if;

if (not Qx_Mojado and not Qx_Detergente and not Qx_CepiAclarado and not Qx_Secado and Mx_FC5) or
not Mx_paro or Mx_Rearme then
reset (Qx_Cinta);
end_if;

(* Control del puesto de mojado *)


if Qx_Cinta and Mx_FC1 then
set (Qx_Mojado);
end_if;

You might also like