Added PLC and NC alarms into demo

This commit is contained in:
Lucio Maranta
2018-02-09 15:04:49 +00:00
parent d08bf19bc5
commit 046387ff3b
6 changed files with 73 additions and 30 deletions
+9 -14
View File
@@ -1,22 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static CMS_CORE.Nc;
namespace CMS_CORE_Library
namespace CMS_CORE_Library
{
public static class DataStructures
{
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#region Data structor models
public struct PreAndPostPowerOnModel
{
public PrePowerOnModel prePowerOn;
public PostPowerOnModel postPowerOn;
public PrePowerOnModel PrePowerOn;
public PostPowerOnModel PostPowerOn;
}
public struct PowerOnDataModel
{
public uint Id;
@@ -77,9 +72,10 @@ namespace CMS_CORE_Library
public int Percentage;
}
#endregion
#endregion Data structor models
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#region Cms Errors Codes
public enum CMS_ERROR_CODES : uint
@@ -98,7 +94,6 @@ namespace CMS_CORE_Library
SIEMENS_HMI_NOT_RUNNING = 11
}
public class CmsError
{
public CMS_ERROR_CODES errorCode;
@@ -140,6 +135,6 @@ namespace CMS_CORE_Library
internal static CmsError SIEMENS_ENVIRONMENT_NOT_FOUND_ERROR = new CmsError(CMS_ERROR_CODES.SIEMENS_ENVIRONMENT_NOT_FOUND, "CMS-Core-Error: Siemens Environment not found");
internal static CmsError SIEMENS_HMI_NOT_RUNNING_ERROR = new CmsError(CMS_ERROR_CODES.SIEMENS_HMI_NOT_RUNNING, "CMS-Core-Error: Siemens HMI is not Running / Ready");
#endregion
#endregion Cms Errors Codes
}
}
}