Advertisement
Javic9

Untitled

May 2nd, 2020
3,641
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ada 0.57 KB | None | 0 0
  1. with data_types, IO, control_procedures, Ada.Text_IO;
  2. use data_types, IO, control_procedures, Ada.Text_IO;
  3.  
  4. procedure sistema_control is
  5.    ST2: Temperatura;
  6.    SC1, SC2: Caudal;
  7.    
  8. begin
  9.    ST2:= 0.0;
  10.    SC1:= 0.0;
  11.    SC2:= 0.0;
  12.    
  13.    for i in 1..5 loop
  14.       Put_Line("Iteración: " & i'Img);
  15.       ReadTemp(ST2);
  16.       delay 0.6;
  17.       Control_Seguridad(ST2, SC1, SC2);      
  18.       delay 0.6;
  19.       writeCau(SC1,1);      
  20.       delay 0.6;
  21.       writeCau(SC2,2);      
  22.       delay 0.6;
  23.       Put_Line("");
  24.    end loop;    
  25.    
  26. end sistema_control;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement