ParamName

This commit is contained in:
Luca Mascherone
2020-08-26 16:52:36 +02:00
parent 5825b66838
commit 4fa6ed3081
5 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -735,9 +735,9 @@ namespace CMS_CORE_Library.Demo
Id = (uint)i + 1,
Process = readValues[headOffset],
Override = readValues[headOffset + 1],
Load_Abrasive = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint16 = 2 byte
ActualSpeed_Pressure = BitConverter.ToInt32(readValues.ToArray(), headOffset + 4), // Int32 = 4byte
MountedTool_Vacum = BitConverter.ToInt16(readValues.ToArray(), headOffset + 8), // Uint 16 = 2byte
Param3 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint16 = 2 byte
Param1 = BitConverter.ToInt32(readValues.ToArray(), headOffset + 4), // Int32 = 4byte
Param2 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 8), // Uint 16 = 2byte
IsActive = (readValues[headOffset + 10] & 1) != 0, // bit 0
IsSelected = (readValues[headOffset + 10] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 10] & 4) != 0, // bit 2
+3 -3
View File
@@ -884,9 +884,9 @@ namespace CMS_CORE_Library.Fanuc
Id = (uint)i + 1,
Process = readValues[headOffset],
Override = readValues[headOffset + 1],
Load_Abrasive = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint 16 = 2byte
MountedTool_Vacum = BitConverter.ToInt16(readValues.ToArray(), headOffset + 4), // Uint 16 = 2byte
ActualSpeed_Pressure = BitConverter.ToInt32(readValues.ToArray(), headOffset + 6), // Int32 = 4byte
Param3 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint 16 = 2byte
Param2 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 4), // Uint 16 = 2byte
Param1 = BitConverter.ToInt32(readValues.ToArray(), headOffset + 6), // Int32 = 4byte
IsActive = (readValues[headOffset + 10] & 1) != 0, // bit 0
IsSelected = (readValues[headOffset + 10] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 10] & 4) != 0, // bit 2
+3 -3
View File
@@ -380,9 +380,9 @@ namespace CMS_CORE_Library.Models
public uint Id;
public byte Process;
public byte Override;
public short Load_Abrasive;
public int ActualSpeed_Pressure;
public short MountedTool_Vacum;
public short Param3;
public int Param1;
public short Param2;
public bool IsActive;
public bool IsSelected;
+3 -3
View File
@@ -877,9 +877,9 @@ namespace CMS_CORE_Library.Osai
Id = (uint)i + 1,
Process = readValues[headOffset],
Override = readValues[headOffset + 1],
Load_Abrasive = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint 16 = 2byte
MountedTool_Vacum = BitConverter.ToInt16(readValues.ToArray(), headOffset + 4), // Uint 16 = 2byte
ActualSpeed_Pressure = BitConverter.ToInt32(readValues.ToArray(), headOffset + 6), // Int32 = 4byte
Param3 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 2), // Uint 16 = 2byte
Param2 = BitConverter.ToInt16(readValues.ToArray(), headOffset + 4), // Uint 16 = 2byte
Param1 = BitConverter.ToInt32(readValues.ToArray(), headOffset + 6), // Int32 = 4byte
IsActive = (readValues[headOffset + 10] & 1) != 0, // bit 0
IsSelected = (readValues[headOffset + 10] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 10] & 4) != 0, // bit 2
+3 -3
View File
@@ -1183,9 +1183,9 @@ namespace CMS_CORE_Library.Siemens
Id = (uint)i + 1,
Process = readValues[headOffset],
Override = readValues[headOffset + 1],
Load_Abrasive = SwapShortEndianFormat(BitConverter.ToInt16(readValues.ToArray(), headOffset + 2)), // Uint 16 = 2byte
MountedTool_Vacum = toolId, // Uint 16 = 2byte
ActualSpeed_Pressure = SwapIntEndianFormat(BitConverter.ToInt32(readValues.ToArray(), headOffset + 6)), // Int32 = 4byte
Param3 = SwapShortEndianFormat(BitConverter.ToInt16(readValues.ToArray(), headOffset + 2)), // Uint 16 = 2byte
Param2 = toolId, // Uint 16 = 2byte
Param1 = SwapIntEndianFormat(BitConverter.ToInt32(readValues.ToArray(), headOffset + 6)), // Int32 = 4byte
IsActive = (readValues[headOffset + 10] & 1) != 0, // bit 0
IsSelected = (readValues[headOffset + 10] & 2) != 0, // bit 1
OverrideEditable = (readValues[headOffset + 10] & 4) != 0, // bit 2