2105 准备信号

wangsr
nodyang 1 year ago
parent ac7d7251c5
commit c84878f388

@ -38,8 +38,23 @@ namespace Mesnac.Action.ChemicalWeighing.Test
DB2105Helper db2105Helper = new DB2105Helper();
var lis = db2105Helper.ReadReadyG1;
lis = db2105Helper.ReadReadyG2;
lis = db2105Helper.ReadReadyG3;
lis = db2105Helper.ReadReadyG4;
lis = db2105Helper.ReadReadyG5;
lis = db2105Helper.ReadReadyG6;
lis = db2105Helper.ReadReadyG7;
lis = db2105Helper.ReadReadyG8;
var liss = db2105Helper.ReadReadyM1;
liss = db2105Helper.ReadReadyM2;
liss = db2105Helper.ReadReadyM3;
liss = db2105Helper.ReadReadyM4;
liss = db2105Helper.ReadReadyM5;
liss = db2105Helper.ReadReadyM6;
liss = db2105Helper.ReadReadyM7;
liss = db2105Helper.ReadReadyM8;
var yw= Db3000Helper.ReadModel(); var yw= Db3000Helper.ReadModel();

@ -105,6 +105,66 @@ namespace DataBlockHelper.DBHelpers
return ls; return ls;
} }
} }
public List<bool> ReadReadyG1 => ReadReady(94);
public List<bool> ReadReadyG2 => ReadReady(96);
public List<bool> ReadReadyG3 => ReadReady(98);
public List<bool> ReadReadyG4 => ReadReady(100);
public List<bool> ReadReadyG5 => ReadReady(102);
public List<bool> ReadReadyG6 => ReadReady(104);
public List<bool> ReadReadyG7 => ReadReady(106);
public List<bool> ReadReadyG8 => ReadReady(108);
public bool ReadReadyM1 => ReadReadyM(110);
public bool ReadReadyM2 => ReadReadyM(112);
public bool ReadReadyM3 => ReadReadyM(114);
public bool ReadReadyM4 => ReadReadyM(116);
public bool ReadReadyM5 => ReadReadyM(118);
public bool ReadReadyM6 => ReadReadyM(120);
public bool ReadReadyM7 => ReadReadyM(122);
public bool ReadReadyM8 => ReadReadyM(124);
//94
public List<bool> ReadReady(int start)
{
var first = bytes.Skip(start).Take(1).First();
List<bool> ls = new List<bool>(3);
var pd = first.GetBit(3);
var cw = first.GetBit(4);
var hw = first.GetBit(5);
ls.Add(pd);
ls.Add(cw);
ls.Add(hw);
return ls;
}
public bool ReadReadyM(int start)
{
var first = bytes.Skip(start).Take(1).First();
return first.GetBit(1);
}
} }

Loading…
Cancel
Save