S7net: Draft methods for write warmers data
This commit is contained in:
@@ -171,6 +171,7 @@ namespace CMS_CORE_Library.Models
|
||||
|
||||
public static CmsError NO_ERROR = new CmsError(CMS_ERROR_CODES.OK, "");
|
||||
public static CmsError NOT_CONNECTED_ERROR = new CmsError(CMS_ERROR_CODES.NOT_CONNECTED, "error_not_connected");
|
||||
public static CmsError NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.INTERNAL_ERROR, "error_not_found");
|
||||
public static CmsError PROC_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.FUNCTION_NOT_ALLOWED, "error_process_not_found");
|
||||
public static CmsError FUNCTION_NOT_ALLOWED_ERROR = new CmsError(CMS_ERROR_CODES.FUNCTION_NOT_ALLOWED, "error_function_not_allowed");
|
||||
public static CmsError BIT_NOT_IN_RANGE_ERROR = new CmsError(CMS_ERROR_CODES.BIT_NOT_IN_RANGE, "error_bit_not_in_range");
|
||||
|
||||
@@ -147,9 +147,11 @@ namespace CMS_CORE_Library.Models
|
||||
public class WarmerChannel
|
||||
{
|
||||
public int IdChannel { get; set; } = 0;
|
||||
public double SetpointRecipe { get; set; } = 0;
|
||||
public double SetpointThermoCam { get; set; } = 0;
|
||||
public double SetpointPLC { get; set; } = 0;
|
||||
public byte ChStatus { get; set; } = 0;
|
||||
public double CurrAct { get; set; } = 0;
|
||||
public byte PercAct { get; set; } = 0;
|
||||
|
||||
public override bool Equals(object obj)
|
||||
@@ -160,12 +162,16 @@ namespace CMS_CORE_Library.Models
|
||||
|
||||
if (IdChannel != item.IdChannel)
|
||||
return false;
|
||||
if (SetpointRecipe != item.SetpointRecipe)
|
||||
return false;
|
||||
if (SetpointThermoCam != item.SetpointThermoCam)
|
||||
return false;
|
||||
if (SetpointPLC != item.SetpointPLC)
|
||||
return false;
|
||||
if (ChStatus != item.ChStatus)
|
||||
return false;
|
||||
if (CurrAct != item.CurrAct)
|
||||
return false;
|
||||
if (PercAct != item.PercAct)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user