Added read Osai tool manager file

Added Siemens file list & WIP file info
This commit is contained in:
Lucio Maranta
2018-08-24 11:37:30 +00:00
parent 943dba9e02
commit a48ab8217d
10 changed files with 295 additions and 131 deletions
+64 -63
View File
@@ -753,34 +753,11 @@ namespace CMS_CORE_Library
public double WearRadius { get; set; }
}
public class NcToolModel
{
public ushort Id { get; set; }
public int FamilyId { get; set; }
public int ShankId { get; set; }
public byte Status { get; set; }
public ushort OffsetLength { get; set; }
public ushort ResidualLife { get; set; }
public int OffsetId1 { get; set; }
public int OffsetId2 { get; set; }
public int OffsetId3 { get; set; }
public ushort ResidualRevive { get; set; }
}
public class NcShankModel
{
public int Id { get; set; }
public int ShankId { get; set; }
public ushort Balluf { get; set; }
public int Balluf { get; set; }
public byte MagazinePositionType { get; set; }
@@ -789,49 +766,73 @@ namespace CMS_CORE_Library
public byte PositionId { get; set; }
}
public class NcToolModel
{
public int ToolId { get; set; }
public int OffsetLength { get; set; }
public int ResidualLife { get; set; }
public int ResidualRevive { get; set; }
public byte Status { get; set; }
public int FamilyId { get; set; }
public int ShankId { get; set; }
public int OffsetId1 { get; set; }
public int OffsetId2 { get; set; }
public int OffsetId3 { get; set; }
}
public class NcFamilyModel
{
public ushort Id { get; set; }
public int FamilyId { get; set; }
public byte Type { get; set; }
public byte ToolType { get; set; }
public byte TcpTable { get; set; }
public byte Gamma { get; set; }
public byte RotationType { get; set; }
public byte CoolingByte { get; set; }
public ushort MaxSpeed { get; set; }
public byte MaxLoad { get; set; }
public byte MinLoadPctAutoload { get; set; }
public byte MaxLoadPctAutoload { get; set; }
public ushort DynamicCompensation { get; set; }
public byte MinLoadDynamicCompensation { get; set; }
public byte MaxLoadDynamicCompensation { get; set; }
public byte LifeType { get; set; }
public int NominalLife { get; set; }
public ushort ReviveDelta { get; set; }
public byte RightSize { get; set; }
public byte LeftSize { get; set; }
public byte TcpTable { get; set; }
public byte Gamma { get; set; }
public byte RotationType { get; set; }
public byte CoolingByte { get; set; }
public ushort MaxSpeed { get; set; }
public byte MaxLoad { get; set; }
public byte MinLoadPctAutoload { get; set; }
public byte MaxLoadPctAutoload { get; set; }
public byte DynamicCompensation { get; set; }
public byte MinLoadDynamicCompensation { get; set; }
public byte MaxLoadDynamicCompensation { get; set; }
public byte LifeType { get; set; }
public uint NominalLife { get; set; }
public ushort ReviveDelta { get; set; }
}
internal class NcFamilyFileModel
{
public ushort Id { get; set; }
public byte Type { get; set; }
public int Id { get; set; }
public byte ToolType { get; set; }
public byte TcpTable { get; set; }
public byte Gamma { get; set; }
public byte RotationType { get; set; }
@@ -840,19 +841,19 @@ namespace CMS_CORE_Library
public byte MaxLoad { get; set; }
public byte MinLoadPctAutoload { get; set; }
public byte MaxLoadPctAutoload { get; set; }
public byte DynamicCompensation { get; set; }
public ushort DynamicCompensation { get; set; }
public byte MinLoadDynamicCompensation { get; set; }
public byte MaxLoadDynamicCompensation { get; set; }
public byte LifeType { get; set; }
public uint NominalLife { get; set; }
public int NominalLife { get; set; }
public ushort ReviveDelta { get; set; }
public static explicit operator NcFamilyFileModel(NcFamilyModel obj)
{
return new NcFamilyFileModel()
{
Id = obj.Id,
Type = obj.Type,
Id = obj.FamilyId,
ToolType = obj.ToolType,
TcpTable = obj.TcpTable,
Gamma = obj.Gamma,
RotationType = obj.RotationType,
@@ -873,7 +874,7 @@ namespace CMS_CORE_Library
internal class NcFamilySizeFileModel
{
public ushort Id { get; set; }
public int Id { get; set; }
public byte RightSize { get; set; }
public byte LeftSize { get; set; }
@@ -881,7 +882,7 @@ namespace CMS_CORE_Library
{
return new NcFamilySizeFileModel()
{
Id = obj.Id,
Id = obj.FamilyId,
RightSize = obj.RightSize,
LeftSize = obj.LeftSize
};