generated from wenjy/Sln.Iot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
226 lines
9.1 KiB
C#
226 lines
9.1 KiB
C#
using CFX.Structures;
|
|
using CFX.Structures.CommonUseEquipment;
|
|
using CFX.Structures.SolderReflow;
|
|
using Sln.Iot.Model.Entity;
|
|
|
|
namespace Sln.Iot.CFX.CFXBusiness
|
|
{
|
|
public class CFXUnitProcessedDataGet
|
|
{
|
|
private static readonly Lazy<CFXUnitProcessedDataGet> lazy = new Lazy<CFXUnitProcessedDataGet>(() => new CFXUnitProcessedDataGet());
|
|
|
|
public static CFXUnitProcessedDataGet Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 真空点胶数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public CommonProcessData ProcessDataGetVacuum(UnitsProcessVacuumEntity entity)
|
|
{
|
|
entity = new UnitsProcessVacuumEntity()
|
|
{
|
|
FormulaData = "F-001",
|
|
GluePushSpeedSetValue = 10.1f,
|
|
GlueAmountSetValue1 = 123.4f,
|
|
GlueAmountSetValue2 = 123.4f,
|
|
GlueAmountSetValue3 = 100.0f,
|
|
GlueAmountSetValue4 = 100.0f,
|
|
GlueAmountSetValue5 = 100.0f,
|
|
GlueAmountSetValue6 = 80.0f,
|
|
GlueAmountSetValue7 = 80.0f,
|
|
GlueAmountSetValue8 = 80.0f,
|
|
GlueAmountSetValue9 = 50.0f,
|
|
GlueAmountSetValue10 = 50.0f,
|
|
VacuumDegreeSetValue = 3000.0f,
|
|
PressureHoldTimeSetValue = 100,
|
|
VacuumIsUseSetValue = 1,
|
|
TotalGlueAmountSetValue = 970.2f,
|
|
PumpAPressureActValue = 3.5f,
|
|
PumpBPressureActValue = 3.2f,
|
|
VacuumDegreeActValue = 3000.4f,
|
|
};
|
|
|
|
CommonProcessData processData = new CommonProcessData()
|
|
{
|
|
ZoneData = new List<CommonUseZoneData>
|
|
{
|
|
new CommonUseZoneData()
|
|
{
|
|
Setpoints = new List<CommonUseSetpoint>()
|
|
{
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GluePushSpeedSetValue,
|
|
SetpointName = "GluePushSpeedSetValue"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue1,
|
|
SetpointName = "GlueAmountSetValue1"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue2,
|
|
SetpointName = "GlueAmountSetValue2"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue3,
|
|
SetpointName = "GlueAmountSetValue3"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue4,
|
|
SetpointName = "GlueAmountSetValue4"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue5,
|
|
SetpointName = "GlueAmountSetValue5"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue6,
|
|
SetpointName = "GlueAmountSetValue6"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue7,
|
|
SetpointName = "GlueAmountSetValue7"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue8,
|
|
SetpointName = "GlueAmountSetValue8"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue9,
|
|
SetpointName = "GlueAmountSetValue9"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.GlueAmountSetValue10,
|
|
SetpointName = "GlueAmountSetValue10"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.VacuumDegreeSetValue,
|
|
SetpointName = "VacuumDegreeSetValue"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.PressureHoldTimeSetValue,
|
|
SetpointName = "PressureHoldTimeSetValue"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.VacuumIsUseSetValue,
|
|
SetpointName = "VacuumIsUseSetValue"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.TotalGlueAmountSetValue,
|
|
SetpointName = "TotalGlueAmountSetValue"
|
|
},
|
|
},
|
|
Readings = new List<CommonUseReading>()
|
|
{
|
|
new CommonUseReading()
|
|
{
|
|
ReadingValue = entity.PumpAPressureActValue,
|
|
ReadingName = "PumpAPressureActValue",
|
|
},
|
|
new CommonUseReading()
|
|
{
|
|
ReadingValue = entity.PumpBPressureActValue,
|
|
ReadingName = "PumpBPressureActValue",
|
|
},
|
|
new CommonUseReading()
|
|
{
|
|
ReadingValue = entity.VacuumDegreeActValue,
|
|
ReadingName = "VacuumDegreeActValue",
|
|
}
|
|
},
|
|
Zone = new CommonUseZone()
|
|
{
|
|
ZoneName = "Zone1",
|
|
StageSequence = 1,
|
|
StageName = "Vacuum"
|
|
},
|
|
}
|
|
}
|
|
};
|
|
|
|
return processData;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 隧道烤箱数据
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
public CommonProcessData ProcessDataGetOven(UnitsProcessOvenEntity entity)
|
|
{
|
|
entity = new UnitsProcessOvenEntity()
|
|
{
|
|
CureOven1SetValue = 800,
|
|
CureOven2SetValue = 750,
|
|
CureOven1ActValue = 798,
|
|
CureOven2ActValue = 752,
|
|
};
|
|
|
|
CommonProcessData processData = new CommonProcessData()
|
|
{
|
|
ZoneData = new List<CommonUseZoneData>
|
|
{
|
|
new CommonUseZoneData()
|
|
{
|
|
Setpoints = new List<CommonUseSetpoint>()
|
|
{
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.CureOven1SetValue,
|
|
SetpointName = "CureOven1SetValue"
|
|
},
|
|
new CommonUseSetpoint()
|
|
{
|
|
Setpoint = entity.CureOven2SetValue,
|
|
SetpointName = "CureOven2SetValue"
|
|
},
|
|
},
|
|
Readings = new List<CommonUseReading>()
|
|
{
|
|
new CommonUseReading()
|
|
{
|
|
ReadingValue = entity.CureOven1ActValue,
|
|
ReadingName = "CureOven1ActValue",
|
|
},
|
|
new CommonUseReading()
|
|
{
|
|
ReadingValue = entity.CureOven2ActValue,
|
|
ReadingName = "CureOven2ActValue",
|
|
}
|
|
},
|
|
Zone = new CommonUseZone()
|
|
{
|
|
ZoneName = "Zone1",
|
|
StageSequence = 1,
|
|
StageName = "Oven"
|
|
|
|
},
|
|
},
|
|
|
|
}
|
|
};
|
|
|
|
return processData;
|
|
}
|
|
}
|
|
}
|