diff --git a/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs b/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs index 745c49e..ec20da0 100644 --- a/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs +++ b/MTC_Adapter/SCMCncLib/thdNcEsaGvKvara.cs @@ -33,7 +33,6 @@ namespace SCMCncLib { private UInt16 ReadNumber; private UInt16 WriteNumber; - private UInt16 ETKAreaByteSize; private UInt16 AlarmByteSize; private UInt16 IOT_ByteAreaByteSize; @@ -54,9 +53,6 @@ namespace SCMCncLib private string CommandsAddressName; private TS_REG CommandsAddress; - private string ETKAreaAddressName; - private TS_REG ETKAreaAddress; - private string PlcErrAreaAddressName; private TS_REG PlcErrAreaAddress; @@ -84,15 +80,7 @@ namespace SCMCncLib /// public UInt32[] PLC_MemoryRead; public UInt32[] PLC_MemoryWrite; - - /// - /// Area V: memoria temp di UINT di 4 byte (32 bit) - /// - public UInt32[] PLC_MemAreaV_tmp; - /// - /// memorie a 1 byte (32 bit) x area ETK (status e valori vari) - /// - public UInt32[] PLC_MemoryAreaETK; + /// /// Area Allarmi: memoria temp di UINT di 4 byte (32 bit) /// @@ -222,7 +210,6 @@ namespace SCMCncLib ReadNumber = 265; WriteNumber = 265; - ETKAreaByteSize = 8; AlarmByteSize = 32; // nuove aree: da init mi passa le dimensioni delle memorie @@ -232,7 +219,6 @@ namespace SCMCncLib IOT_String_AreaByteSize = Convert.ToUInt16(IAS_String); CommandsAddressName = fIni.ReadString("NC", "CommandsAddress", "SIMREAD[0]"); - ETKAreaAddressName = fIni.ReadString("NC", "ETKAreaAddress", "ETK"); PlcErrAreaAddressName = fIni.ReadString("NC", "PlcErrAreaAddress", "V"); StatusAddressName = fIni.ReadString("NC", "StatusAddress", "SIMWRITE[0]"); @@ -260,10 +246,7 @@ namespace SCMCncLib // creo array duali in bytes... PLC_MemoryAreaAllarmi = new Byte[AlarmByteSize]; - - // creazione veri buffer giĆ  32bit - PLC_MemoryAreaETK = new UInt32[ETKAreaByteSize]; - + // creo array x aree memoria IOT... PLC_MemoryAreaIOT_Byte_tmp = new UInt32[(int)Math.Ceiling((decimal)IOT_ByteAreaByteSize / 4)]; PLC_MemoryAreaIOT_Byte = new Byte[IOT_ByteAreaByteSize];