Está en la página 1de 1

Universidad de Oviedo

264 - Problemas M340 ISA

Programa mixto ST y SFC (pr0908)


Preliminar
(*Inicialización de la pantalla de operador*)
If %S13 then
set(MxP_FCE1); set(MxP_FCE2); set(MxP_PLC_Man);set(MxP_FC1);
ClearState := CLEARCHART (Preseleccion, true); ClearState := CLEARCHART (Control, true);
end_if;
(* Variables utilizadas en la pantalla de Operador *)
Mx_Preseleccion:= (Ix_Preseleccion and Ix_LocDist) or(MxP_Preseleccion and not Ix_LocDist);
Mx_Marcha:= (Ix_Marcha and Ix_LocDist) or(MxP_Marcha and not Ix_LocDist);
Mx_Rearme:= (Ix_Rearme and Ix_LocDist) or(MxP_Rearme 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_FCE1:= (Ix_FCE1 and Ix_LocDist) or(MxP_FCE1 and not Ix_LocDist);
Mx_FCE2:= (Ix_FCE2 and Ix_LocDist) or(MxP_FCE2 and not Ix_LocDist);
Mx_PLC_Man:= (Ix_PLC_Man and Ix_LocDist) or(MxP_PLC_Man and not Ix_LocDist);

(* Variables utilizadas en el programa *)


Mx_Para:= (Qx_LP1 and Mx_FC1) or (Qx_LP2 and Mx_FC2) or (Qx_LP3 and Mx_FC3);

if (not Mx_FCE1) or (not Mx_FCE2) then


set (Mx_EnEmergencia);
end_if;

if not Mx_PLC_Man or Mx_EnEmergencia then


ClearState := CLEARCHART (Preseleccion, true); ClearState := CLEARCHART (Control, true);
reset (Mx_Subir); reset (Mx_Bajar);
end_if;

If Mx_Rearme then
Mx_PonCI := CLEARCHART (Preseleccion, true); Mx_PonCI := CLEARCHART (Control, true);
reset (Mx_EnEmergencia);
end_if;

if Mx_PonCI then
Inicializa();
end_if;

if Mx_PuestoCI and not Mx_Rearme then


InitState := INITCHART (Preseleccion,true); InitState := INITCHART (Control,true);
reset (Mx_puestoCI);
end_if;

También podría gustarte