// =====================================================================
// OB30 "Cyclic interrupt" (100 ms)  llamada al PID_Compact "PID_Nivel"
// Crear: Agregar nuevo bloque > Bloque de organizacin > Cyclic interrupt, lenguaje SCL,
// tiempo de ciclo 100000 s. Pegar esta lnea en el cuerpo del OB30:
// =====================================================================

"PID_Nivel"(Setpoint := "NivelPID_DB".Consigna,
            Input := "NivelPID_DB".Nivel,
            Reset := NOT "NivelPID_DB".Permiso,
            Output => "NivelPID_DB".Salida);

// En ladder (KOP) es lo mismo: arrastra PID_Nivel al OB30 y conecta
// Setpoint, Input, Reset (con un contacto NC de Permiso) y Output.
