输送添加高低料位

dep_deliver
杨威 6 months ago
parent 688984bfb8
commit d99ff59e3e

@ -224,7 +224,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]);
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]);
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]);
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloN, list[13]);
ControlsImprot.SetSwitchLight(SwitchlightE.LSiloO, list[14]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloO, list[14]);
@ -243,11 +243,11 @@ namespace Mesnac.Action.ChemicalWeighing.LjDeliver
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloI, list[8]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloI, list[8]);
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloJ, list[9]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloJ, list[9]);
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloK, list[10]);
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloL, list[11]);
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[12]);
//ControlsImprot.SetSwitchLight(SwitchlightE.LSiloM, list[13]); ControlsImprot.SetSwitchLight(SwitchlightE.LSiloN, list[13]);
ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[10]); ControlsImprot.SetSwitchLight(SwitchlightE.HSiloO, list[14]);
} }

@ -74,6 +74,14 @@ namespace DataBlockHelper.DBHelpers
result.Add(con.GetBit(2)); result.Add(con.GetBit(2));
db = PlcConnect.Instance.Read("M1202.0", 1);
content = db.Content.ToArray();
con = content[0];
result.Add(con.GetBit(0));
result.Add(con.GetBit(1));
result.Add(con.GetBit(2));
result.Add(con.GetBit(3));
return result; return result;
} }
} }

@ -1,3 +1,3 @@
<DataSources> <DataSources>
<DataSourceItem Name="DataSource1" Driver="MS SQL Server" Server="127.0.0.1" UserName="sa" Password="123456" DataBase="CWSSHG" ConnectionTimeout="5" DriverAssembly="ICSharpCode.Data.SQLServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" DriverClass="ICSharpCode.Data.Core.DatabaseDrivers.SQLServer.SQLServerDatabaseDriver" DataSourceClass="ICSharpCode.Data.Core.DatabaseObjects.Database" /> <DataSourceItem Name="DataSource1" Driver="MS SQL Server" Server="172.18.4.111" UserName="sa" Password="123456" DataBase="CWSSHG" ConnectionTimeout="5" DriverAssembly="ICSharpCode.Data.SQLServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" DriverClass="ICSharpCode.Data.Core.DatabaseDrivers.SQLServer.SQLServerDatabaseDriver" DataSourceClass="ICSharpCode.Data.Core.DatabaseObjects.Database" />
</DataSources> </DataSources>
Loading…
Cancel
Save