Advertisement
Javic9

Untitled

May 2nd, 2020
3,631
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.93 KB | None | 0 0
  1. with data_types, IO;
  2. use data_types, IO;
  3.  
  4. package body control_procedures is
  5.    procedure Control_CS(ST2: Temperatura; SC1: out Caudal) is
  6.    begin
  7.       SC1:= 50.0;
  8.       Put_Line("Control del sistema del campo solar");
  9.       delay 0.6;
  10.       Put_Line("");
  11.    end;
  12.    
  13.    procedure Control_MD(ST2: Temperatura; SC2: out Caudal) is
  14.    begin
  15.       SC2:= 50.0;
  16.       if ST2 > 100.0 then
  17.     Put_Line("--FALLO EN EL BLOQUE DE CONTROL DEL MODULO DE DESTILACION--");
  18.    else
  19.       Put_Line("Modulo de destilacion correcto");
  20.       end if;
  21.       end;
  22.    
  23.    procedure Control_Seguridad(ST2: Temperatura; SC1: out Caudal; SC2: out Caudal) is
  24.       begin
  25.       SC1:= 50.0;
  26.       SC2:= 50.0;
  27.       Put_Line("Control del sistema de seguridad");
  28.       if ST2 > 100.0 then
  29.     Put_Line("--FALLO DE SEGURIDAD EN BOMBA 1--");
  30.    else
  31.       Put_Line("Condiciones de seguridad correctas");
  32.      end if;
  33.       end;
  34.      
  35. end control_procedures;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement