From d7ed74a50f1c03abe4e9a9950bc7b630ccc25845 Mon Sep 17 00:00:00 2001 From: luciomaranta Date: Fri, 26 Jun 2020 12:44:29 +0200 Subject: [PATCH] Fix balluf writing life data --- CMS_CORE_Library/Siemens/Nc_Siemens.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMS_CORE_Library/Siemens/Nc_Siemens.cs b/CMS_CORE_Library/Siemens/Nc_Siemens.cs index ac2e466..1cd17b5 100644 --- a/CMS_CORE_Library/Siemens/Nc_Siemens.cs +++ b/CMS_CORE_Library/Siemens/Nc_Siemens.cs @@ -4792,7 +4792,7 @@ namespace CMS_CORE_Library.Siemens new Item(){ Path = string.Format("DB{0}.DBW70", BALLUF_EMPTY_TABLE.Address), Value = 1 }, - // Edge data + // Edge data new Item(){ Path = string.Format("DB{0}.DBW86", BALLUF_EMPTY_TABLE.Address), Value = tool.ToolType }, new Item(){ Path = string.Format("DB{0}.DBW88", BALLUF_EMPTY_TABLE.Address), Value = 9 }, }; @@ -4832,9 +4832,9 @@ namespace CMS_CORE_Library.Siemens case SIEMENS_LIFE_TYPE.COUNT: { - items.Add(new Item() { Path = string.Format("DB{0}.DBW192", BALLUF_EMPTY_TABLE.Address), Value = GetSiemensFormattedDouble(edge.ResidualLife) }); // MOP4 - items.Add(new Item() { Path = string.Format("DB{0}.DBW198", BALLUF_EMPTY_TABLE.Address), Value = GetSiemensFormattedDouble(edge.NominalLife) }); // MOP13 - items.Add(new Item() { Path = string.Format("DB{0}.DBW190", BALLUF_EMPTY_TABLE.Address), Value = GetSiemensFormattedDouble(edge.PreAlmLife) }); // MOP3 + items.Add(new Item() { Path = string.Format("DB{0}.DBW192", BALLUF_EMPTY_TABLE.Address), Value = Convert.ToUInt16(edge.ResidualLife) }); // MOP4 + items.Add(new Item() { Path = string.Format("DB{0}.DBW198", BALLUF_EMPTY_TABLE.Address), Value = Convert.ToUInt16(edge.NominalLife) }); // MOP13 + items.Add(new Item() { Path = string.Format("DB{0}.DBW190", BALLUF_EMPTY_TABLE.Address), Value = Convert.ToUInt16(edge.PreAlmLife) }); // MOP3 } break;