Push Alpha Version
This commit is contained in:
138
uniper_hmi_old/UniperHMI/Model/Models.cs
Normal file
138
uniper_hmi_old/UniperHMI/Model/Models.cs
Normal file
@@ -0,0 +1,138 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace InfineonHMI.Model
|
||||
{
|
||||
public enum E_BMS_CONTROL_MODE : short
|
||||
{
|
||||
AUTO_REMOTE = 1,
|
||||
AUTO_LOCAL = 2,
|
||||
SAFETY_CHECK = 3,
|
||||
CAPACITY_TEST = 4,
|
||||
MANUAL = 5
|
||||
}
|
||||
|
||||
public class BMSControlModeEntry(E_BMS_CONTROL_MODE mode, string name)
|
||||
{
|
||||
public E_BMS_CONTROL_MODE eMode = mode;
|
||||
public string Name = name;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
|
||||
public enum PLCJobenum : short
|
||||
{
|
||||
NONE = 0,
|
||||
SCAN_QR_CODE = 10,
|
||||
VACUUM_ON_ALIGNER = 15,
|
||||
VACUUM_OFF_ALIGNER = 16,
|
||||
VACUUM_ON_ETCHER_1 = 20,
|
||||
VACUUM_ON_ETCHER_2 = 21,
|
||||
VACUUM_OFF_ETCHER_1 = 22,
|
||||
VACUUM_OFF_ETCHER_2 = 23,
|
||||
CHUCK_OPEN_ETCHER_1 = 60,
|
||||
CHUCK_OPEN_ETCHER_2 = 61,
|
||||
CHUCK_CLOSE_ETCHER_1 = 62,
|
||||
CHUCK_CLOSE_ETCHER_2 = 63,
|
||||
}
|
||||
public enum RobotJobenum : short
|
||||
{
|
||||
NONE = 0,
|
||||
PICK_TRAYFEEDER = 10,
|
||||
PLACE_TRAYFEEDER = 11,
|
||||
PUT_ALIGNMENT = 15,
|
||||
PICK_ALIGNMENT = 16,
|
||||
PUT_ETCHER_1 = 20,
|
||||
PUT_ETCHER_2 = 21,
|
||||
PICK_ETCHER_1 = 22,
|
||||
PICK_ETCHER_2 = 23,
|
||||
SWITCH_ETCHER_1 = 24,
|
||||
SWITCH_ETCHER_2 = 25,
|
||||
PUT_HVTEST_HOT = 30,
|
||||
PUT_HVTEST_COLD = 31,
|
||||
PICK_HVTEST_HOT = 32,
|
||||
PICK_HVTEST_COLD = 33,
|
||||
PUT_HOTPLATE = 40,
|
||||
PICK_HOTPLATE = 41,
|
||||
PUT_COOLPLATE = 42,
|
||||
PICK_COOLPLATE = 43,
|
||||
PICK_GRIPPER = 50,
|
||||
PICK_CHUCK_ETCHER_1 = 60,
|
||||
PICK_CHUCK_ETCHER_2 = 61,
|
||||
PUT_CHUCK_ETCHER_1 = 62,
|
||||
PUT_CHUCK_ETCHER_2 = 63,
|
||||
PUT_CHUCK_MAGAZIN = 64,
|
||||
PICK_CHUCK_MAGAZIN = 65,
|
||||
PUT_NIO_STATION = 70,
|
||||
PICK_NIO_STATION = 71,
|
||||
WARMUP = 80
|
||||
}
|
||||
public class PLCJobentry(PLCJobenum job, string name)
|
||||
{
|
||||
public PLCJobenum eJob = job;
|
||||
public string Name = name;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
|
||||
public class RobotJobentry(RobotJobenum job, string name)
|
||||
{
|
||||
public RobotJobenum eJob = job;
|
||||
public string Name = name;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return Name;
|
||||
}
|
||||
}
|
||||
|
||||
public enum Stationenum : uint
|
||||
{
|
||||
EINGABE = 1,
|
||||
QRCODE = 2,
|
||||
AUSRICHTEN = 4,
|
||||
AETZEN = 8,
|
||||
HEIZPLATTE = 16,
|
||||
KUEHLPLATTE = 32,
|
||||
HOCHVOLTHEISS = 64,
|
||||
HOCHVOLTKALT = 128,
|
||||
AUSGABE = 256,
|
||||
NIOSTATION = 512
|
||||
}
|
||||
|
||||
|
||||
public class StationEntry(Stationenum station, string name)
|
||||
{
|
||||
public Stationenum eStation = station;
|
||||
public string sName = name;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return sName;
|
||||
}
|
||||
}
|
||||
|
||||
public class FlowReceipeEntry()
|
||||
{
|
||||
public int NodeId { get; set; }
|
||||
public UInt16 Priority { get; set; }
|
||||
public required StationEntry Station { get; set; }
|
||||
public UInt16 MaxRetries { get; set; }
|
||||
|
||||
public int NextNodeSuccess { get; set; }
|
||||
public int NextNodeRetry { get; set; }
|
||||
public int NextNodeFail { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
225
uniper_hmi_old/UniperHMI/Model/ReceipeDto.cs
Normal file
225
uniper_hmi_old/UniperHMI/Model/ReceipeDto.cs
Normal file
@@ -0,0 +1,225 @@
|
||||
using System.IO;
|
||||
using System.Reflection.PortableExecutable;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using InfineonHMI.Common;
|
||||
|
||||
namespace InfineonHMI.Model;
|
||||
|
||||
public class ReceipeDto
|
||||
{
|
||||
|
||||
public ReceipeDto()
|
||||
{
|
||||
ReceipeObject = new ReceipeObject();
|
||||
}
|
||||
|
||||
public ReceipeObject ReceipeObject { get; set; }
|
||||
public void Write(string filename)
|
||||
{
|
||||
L4ItXmlSerializer.SerializeObject(ReceipeObject, filename);
|
||||
}
|
||||
|
||||
public void Read(string filename)
|
||||
{
|
||||
ReceipeObject = L4ItXmlSerializer.DeSerializeObject<ReceipeObject>(filename);
|
||||
}
|
||||
}
|
||||
|
||||
public class ReceipeObject
|
||||
{
|
||||
public MachineParameters MachineParameters { get; set; }
|
||||
public ProductParameters ProductParameters { get; set; }
|
||||
public ReceipeHotplate ReceipeHotplate { get; set; }
|
||||
public ReceipeCoolplate ReceipeCoolplate { get; set; }
|
||||
public ReceipeEtcher ReceipeEtcher { get; set; }
|
||||
public ReceipeHighvoltageTester ReceipeHvTester { get; set; }
|
||||
|
||||
public FlowReceipe Flowreceipe { get; set; }
|
||||
|
||||
|
||||
public ReceipeObject()
|
||||
{
|
||||
MachineParameters = new MachineParameters();
|
||||
ProductParameters = new ProductParameters();
|
||||
ReceipeHotplate = new ReceipeHotplate();
|
||||
ReceipeCoolplate = new ReceipeCoolplate();
|
||||
ReceipeEtcher = new ReceipeEtcher();
|
||||
ReceipeHvTester = new ReceipeHighvoltageTester();
|
||||
Flowreceipe = new FlowReceipe();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public class MachineParameters
|
||||
{
|
||||
public List<TrayPosition> TrayPositions { get; set; }
|
||||
|
||||
public int CameraPrograms { get; set; }
|
||||
|
||||
public int Chucks { get; set; }
|
||||
|
||||
public int Gripper { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Erlaubten Strahlparameter Abweichungen
|
||||
/// </summary>
|
||||
public float PermissibleBeamParameterDeviations { get; set; }
|
||||
|
||||
public MachineParameters()
|
||||
{
|
||||
TrayPositions = new List<TrayPosition>();
|
||||
}
|
||||
}
|
||||
|
||||
public class ProductParameters
|
||||
{
|
||||
public float Diameter { get; set; }
|
||||
|
||||
public float Thickness { get; set; }
|
||||
|
||||
public float TimeIntervallBeamCheck { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
public class ReceipeHotplate
|
||||
{
|
||||
public float RestingTime { get; set; }
|
||||
public float TargetTemperature { get; set; }
|
||||
}
|
||||
public class ReceipeCoolplate
|
||||
{
|
||||
public float RestingTime { get; set; }
|
||||
public float TargetTemperature { get; set; }
|
||||
}
|
||||
|
||||
public class ReceipeHighvoltageTester
|
||||
{
|
||||
/// <summary>
|
||||
/// Test voltage in V
|
||||
/// </summary>
|
||||
public float TestVoltage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Maximum test Current
|
||||
/// </summary>
|
||||
public float MaximumTestCurrent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ramp Time in milliseconds
|
||||
/// </summary>
|
||||
public float RampTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Testfrequency in HZ
|
||||
/// </summary>
|
||||
public float TestFrequency { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Polarity 1=Positive, 2=Negative
|
||||
/// </summary>
|
||||
public UInt16 Polarity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Overpressure N2 in mbar
|
||||
/// </summary>
|
||||
public float TestpressureN2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// N2 pre purging time in seconds
|
||||
/// </summary>
|
||||
public float N2PrePurgetime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Test retries
|
||||
/// </summary>
|
||||
public UInt16 NumRetries { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Temperature for testing (only used in heated HV station)
|
||||
/// </summary>
|
||||
public float TestTemperature { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Test OK Voltage
|
||||
/// </summary>
|
||||
public float TestOkVoltage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Test OK Current
|
||||
/// </summary>
|
||||
public float TestOkCurrent { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class ReceipeEtcher
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of Robot positions
|
||||
/// </summary>
|
||||
public UInt16 NumberRobotPos { get; set; }
|
||||
|
||||
public float Rpm { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Roboter position and setting data
|
||||
/// </summary>
|
||||
public List<EtcherRobotStepData> RobotStepData { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Radial position of water jet under the blank in mm
|
||||
/// </summary>
|
||||
public float RadialPosLowerWaterJet { get; set; }
|
||||
|
||||
public ReceipeEtcher()
|
||||
{
|
||||
RobotStepData = new List<EtcherRobotStepData>();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public class EtcherRobotStepData
|
||||
{
|
||||
public float PosX { get; set; }
|
||||
public float PosY { get; set; }
|
||||
public float PosZ { get; set; }
|
||||
public float AngleAlpha { get; set; }
|
||||
public float MoveSpeed { get; set; }
|
||||
public float Delay { get; set; }
|
||||
public UInt16 Medium { get; set; }
|
||||
public bool WaterFromBelow { get; set; }
|
||||
public bool WaterFromAbove { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class FlowReceipe
|
||||
{
|
||||
public int NodeCount { get; set; }
|
||||
public List<FlowReceipeNode> Nodes { get; set; }
|
||||
|
||||
public FlowReceipe()
|
||||
{
|
||||
Nodes = new List<FlowReceipeNode>();
|
||||
}
|
||||
}
|
||||
|
||||
public class FlowReceipeNode
|
||||
{
|
||||
public UInt16 Priority { get; set; }
|
||||
public Int32 StationType { get; set; }
|
||||
|
||||
public UInt16 MaxRetries { get; set; }
|
||||
public int NextNodeSuccess { get; set; }
|
||||
public int NextNodeRetry { get; set; }
|
||||
public int NextNodeFail { get; set; }
|
||||
}
|
||||
|
||||
public class TrayPosition
|
||||
{
|
||||
public int PosId { get; set; }
|
||||
public float PosX { get; set; }
|
||||
public float PosY { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user