Advertisement
Guest User

Untitled

a guest
Apr 15th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.64 KB | None | 0 0
  1. with Datos, IO, Control;
  2. use Datos, IO, Control;
  3. with ada.Text_IO; use ada.Text_IO;
  4. procedure controlador is
  5.    ST2 : Temperatura;
  6.    SD1 : Radiacion;
  7.    SC1, SC2 : Caudal;
  8.    cont: Integer:= 1;
  9. begin
  10.    ST2:=85.00;
  11.    SC1:=10.00;
  12.    SC2:=500.00;
  13.    for i in 1..8 loop
  14.       lecturaT(ST2);
  15.       SistemaSeguridad(ST2, SC1, SC2);
  16.       if(cont mod 2 = 0) then
  17.          lecturaT(ST2);
  18.          ControlST2(ST2, SC1);
  19.          escrituraC(SC1);
  20.       end if;
  21.       if (cont mod 4 = 0) then
  22.          lecturaR(SD1);
  23.          ControlSD1(SD1, SC2);
  24.          escrituraC(SC2);
  25.       end if;
  26.       cont:= cont+1;
  27.    end loop;
  28. end controlador;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement