GTB identity employee nr search
This commit is contained in:
@@ -9,30 +9,34 @@
|
||||
{
|
||||
public static void Main()
|
||||
{
|
||||
var connection = new OmniUniProConnection("COM9");
|
||||
var connection = new OmniIrdaConnection("COM26");
|
||||
connection.StateChenged += Console.WriteLine;
|
||||
|
||||
connection.Open();
|
||||
connection.FactorySeal(false);
|
||||
connection.ViewBuildInformation();
|
||||
connection.ViewFactoryCorrection();
|
||||
var defaults = connection.ViewInputVolume();
|
||||
connection.Set(new RegisterSettings
|
||||
{
|
||||
IntPart = defaults.IntPart,
|
||||
Fraction = defaults.Fraction,
|
||||
Size = defaults.Size,
|
||||
Range = defaults.Range,
|
||||
VolumePerPulseUnit = 0,
|
||||
MeterUnits = (byte)MessurementUnits.CubicMeters,
|
||||
FlowUnits = (byte)MessurementUnits.CubicMeters,
|
||||
FlowRate = (byte)TimeUnits.Hours,
|
||||
FactoryCorrection = 0,
|
||||
FieldCorrection = 0,
|
||||
PulseWeight = 0,
|
||||
PulseWidth = 7,
|
||||
PulseUpdate = 0,
|
||||
});
|
||||
|
||||
Console.WriteLine(connection.ViewBuildInformation().Value);
|
||||
Console.WriteLine(connection.ViewFactoryCorrection().Value);
|
||||
|
||||
var rs = connection.ViewRegisterSettings();
|
||||
//connection.ViewBuildInformation();
|
||||
//connection.ViewFactoryCorrection();
|
||||
//var defaults = connection.ViewInputVolume();
|
||||
//connection.Set(new RegisterSettings
|
||||
//{
|
||||
// IntPart = defaults.IntPart,
|
||||
// Fraction = defaults.Fraction,
|
||||
// Size = defaults.Size,
|
||||
// Range = defaults.Range,
|
||||
// VolumePerPulseUnit = 0,
|
||||
// MeterUnits = (byte)MessurementUnits.CubicMeters,
|
||||
// FlowUnits = (byte)MessurementUnits.CubicMeters,
|
||||
// FlowRate = (byte)TimeUnits.Hours,
|
||||
// FactoryCorrection = 0,
|
||||
// FieldCorrection = 0,
|
||||
// PulseWeight = 0,
|
||||
// PulseWidth = 7,
|
||||
// PulseUpdate = 0,
|
||||
//});
|
||||
|
||||
|
||||
connection.Close();
|
||||
|
||||
Reference in New Issue
Block a user