From d3efe7688a79e541146394c29cce604759abdaaf Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 26 Oct 2021 18:35:52 +0200 Subject: [PATCH] =?UTF-8?q?Aggiunto=20in=20SDK=20gestione=20unit=C3=A0=20d?= =?UTF-8?q?i=20misura?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MapoSDK/Objects.cs | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/MapoSDK/Objects.cs b/MapoSDK/Objects.cs index d38ca404..ad72c8b9 100644 --- a/MapoSDK/Objects.cs +++ b/MapoSDK/Objects.cs @@ -310,6 +310,11 @@ namespace MapoSDK [JsonConverter(typeof(StringEnumConverter))] public plcDataType tipoMem { get; set; } = plcDataType.Int; + /// + /// Unità di misura del parametro + /// + public string unit { get; set; } = ""; + /// /// Valore parametro (come stringa, decimali con ",", default VUOTO), poi LETTO da PLC (o appena scritto) /// @@ -819,6 +824,20 @@ namespace MapoSDK #endregion Public Properties } + public class StCheckOverride + { + #region Public Properties + + public bool CanForce { get; set; } = false; + public string CodGruppo { get; set; } = ""; + public string CodTipo { get; set; } = ""; + public int IdxST { get; set; } = 0; + public int Num { get; set; } = 0; + public int Oggetto { get; set; } = 0; + + #endregion Public Properties + } + /// /// Classe oggetto base TimeSeries /// @@ -982,14 +1001,4 @@ namespace MapoSDK #endregion Public Properties } - - public class StCheckOverride - { - public bool CanForce { get; set; } = false; - public string CodGruppo { get; set; } = ""; - public string CodTipo { get; set; } = ""; - public int IdxST { get; set; } = 0; - public int Num { get; set; } = 0; - public int Oggetto { get; set; } = 0; - } } \ No newline at end of file