{
    S7_Author := "HCR";
    S7_BlockComment := "MLC_3Rf";
    S7_BlockNumber := "15000";
    S7_BlockTitle := "MLC_3br";
    S7_EditorMode := "SCL";
    S7_Family := "ZeusControl";
    S7_Optimized := "TRUE";
    S7_Version := "1.0"
}
FUNCTION "FC15000_ZC_INT_TO_TIME" : Time
    VAR_INPUT
        { S7_MLC := "MLC_4cD" }
        Valor : Int;
    END_VAR
    VAR CONSTANT
        { S7_MLC := "MLC_ki" }
        BASE_TIEMPO : Int := 1000;
    END_VAR

    { S7_Language := "SCL" }
    NETWORK
        REGION DESCRIPCION
        (*
        ###### (C)Copyright ZeusControl 2023 - 2023
        
        ---
        ### Información del Sistema
        | Hardware Compatible | Entorno de Ingeniería |
        |---------------------|-----------------------|
        | PLC serie 1200/1500 | TIA Portal 18         |
        
        ---
        > **Restricciones:** Ninguna.
        
        ---
        ### Descripción Funcional
        
        Función encargada de convertir tipo de dato INT a TIME.
        
        ---
        ### Dependencias Requeridas
        | Tipo | Elementos |
        |------|-----------|
        | FC   | - |
        | FB   | - |
        | DB   | - |
        | UDT  | - |
            
        ---
        ### Historial de Cambios
        | Versión  | Fecha      | Técnico | Cambios |
        |----------|------------|---------|---------|
        | 01.00.00 | 10.05.2023 | (HCR)   | Primera version. |
        *)
        END_REGION DESCRIPCION
        
        
        //  ==========================================================================================================
        REGION CALCULO
            
            #FC15000_ZC_INT_TO_TIME := DINT_TO_TIME(IN := INT_TO_DINT(IN := #Valor)) * #BASE_TIEMPO;
            
        END_REGION CALCULO
        
        
    END_NETWORK
END_FUNCTION
