New THERMO data structures

This commit is contained in:
Samuele Locatelli
2020-05-15 18:39:10 +02:00
parent db6a787594
commit d81c738ea1
+81 -6
View File
@@ -95,7 +95,7 @@ namespace CMS_CORE_Library.Models
REVOLVER = 3,
BOX_MAGAZINE = 5,
MAGAZINE_TOOL_BUFFER = 7,
MAGAZINE_LOADING_STATION = 9,
MAGAZINE_LOADING_STATION = 9,
INVISIBLE_MAGAZINE = 99
}
@@ -178,7 +178,7 @@ namespace CMS_CORE_Library.Models
public static CmsError INCORRECT_PARAMETERS_ERROR = new CmsError(CMS_ERROR_CODES.INCORRECT_PARAMETERS, "error_incorrect_parameters");
public static CmsError INCORRECT_LANGUAGE_ERROR = new CmsError(CMS_ERROR_CODES.NC_LANGUAGE_ERROR, "error_invalid_language");
public static CmsError SIEMENS_ENVIRONMENT_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.SIEMENS_ENVIRONMENT_NOT_FOUND, "error_siemens_enviroment_not_found_error");
public static CmsError PLC_IP_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.PLC_IP_NOT_FOUND, "error_plc_ip_not_found_error");
public static CmsError PLC_IP_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.PLC_IP_NOT_FOUND, "error_plc_ip_not_found_error");
public static CmsError SIEMENS_HMI_NOT_RUNNING_ERROR = new CmsError(CMS_ERROR_CODES.SIEMENS_HMI_NOT_RUNNING, "error_siemens_hmi_not_running");
public static CmsError MAX_TOOL_REACHED_ERROR = new CmsError(CMS_ERROR_CODES.MAX_TOOL_REACHED, "error_max_tool_reached");
public static CmsError MAX_EDGES_PER_TOOL_REACHED_ERROR = new CmsError(CMS_ERROR_CODES.MAX_EDGES_PER_TOOL_REACHED, "error_max_edges_per_tool_reached");
@@ -190,7 +190,7 @@ namespace CMS_CORE_Library.Models
public static CmsError MAGAZINE_BUSY_ERROR = new CmsError(CMS_ERROR_CODES.MAGAZINE_OCCUPIED, "error_magazine_occupied");
public static CmsError TOOL_IS_MOUNTED_ERROR = new CmsError(CMS_ERROR_CODES.TOOL_IS_MOUNTED, "error_tool_mounted");
public static CmsError TOOL_AND_POSITION_NOT_MATCHING_ERROR = new CmsError(CMS_ERROR_CODES.TOOL_IS_MOUNTED, "error_tool_and_position_not_matching");
public static CmsError FILE_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.FILE_NOT_FOUND, "error_file_not_found");
public static CmsError FILE_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.FILE_NOT_FOUND, "error_file_not_found");
public static CmsError PLC_NOT_RUNNING_ERROR = new CmsError(CMS_ERROR_CODES.PLC_NOT_RUNNING, "error_plc_not_running");
public static CmsError HMI_NOT_RESPONDING_ERROR = new CmsError(CMS_ERROR_CODES.HMI_NOT_RESPONDING, "error_hmi_not_responding");
public static CmsError PROGRAM_IS_SELECTED_ERROR = new CmsError(CMS_ERROR_CODES.PROGRAM_IS_SELECTED, "error_program_is_selected");
@@ -359,7 +359,7 @@ namespace CMS_CORE_Library.Models
}
public class HeadDataModel
{
{
public uint Id;
public byte Process;
public byte Override;
@@ -424,7 +424,7 @@ namespace CMS_CORE_Library.Models
{
public short Origin { get; set; }
public short ActiveOffsetId { get; set; }
public short ActiveOffsetId { get; set; }
public string ProcessMessage { get; set; }
@@ -462,7 +462,7 @@ namespace CMS_CORE_Library.Models
TRANSFER_WITHOUT_ORIG = 2,
SWITCH = 3
}
public enum MOVEMENT_RESPONSE
{
NONE = 0,
@@ -520,5 +520,80 @@ namespace CMS_CORE_Library.Models
}
#endregion Data structure models
#region Thermo models
public class RecipeParam
{
public ushort Id { get; set; }
public int SetpointHMI { get; set; }
public int SetpointPLC { get; set; }
public double ValMax { get; set; }
public double ValMin { get; set; }
public string UnitMeasure { get; set; }
public bool Visible { get; set; }
public bool Enabled { get; set; }
public bool HasError { get; set; }
public double ValueAct { get; set; }
}
public class RecipeModule
{
public ushort Id { get; set; }
public uint EstimatedDuration { get; set; }
public uint EstimatedDelay { get; set; }
public List<ushort> PrecedingId { get; set; }
public uint ActualDuration { get; set; }
public uint ActualDelay { get; set; }
public bool Visible { get; set; }
public bool Running { get; set; }
public bool HasError { get; set; }
}
public class RecipeWarmerUp
{
public ushort Id { get; set; }
public byte IdRefrector { get; set; }
public double MinCurrent { get; set; }
public byte ChStatus { get; set; }
public byte PercWork { get; set; }
public byte PercAct { get; set; }
}
public class RecipeWarmerDown
{
public ushort Id { get; set; }
public byte SetpointHMI { get; set; }
}
public class RecipeProdInfo
{
public ushort NumTarget { get; set; }
public ushort NumDOne { get; set; }
public uint TimeWarm { get; set; }
public uint TimeVent { get; set; }
public uint TimeVacuum { get; set; }
public uint TimeCycleGross { get; set; }
public uint TimeCycleNet { get; set; }
public double MaterialTempEndWarm { get; set; }
public double MaterialTempEndVent { get; set; }
public double MoldTemp { get; set; }
public double VacuumReadVal { get; set; }
public double MouldEnergyOUT { get; set; }
public double MouldEnergyIN { get; set; }
}
public class RecipeProdCycle
{
public ushort Status { get; set; }
public ushort MessageId { get; set; }
public ushort Mode { get; set; }
public uint TimeAdv { get; set; }
}
#endregion
}
}