插入的plc的 前提是 清理所有的step

wangsr
nodyang 1 year ago
parent 2e94fb7cb2
commit a594bc6510

@ -475,6 +475,7 @@ namespace Mesnac.Action.ChemicalWeighing.AutoControl
DB2105WriteHelper.WriteManScrewH4(); DB2105WriteHelper.WriteManScrewH4();
DB2105WriteHelper.WriteSetValueH2(value); DB2105WriteHelper.WriteSetValueH2(value);
break; break;
case 5: case 5:
DB2105WriteHelper.WriteManScrewH5(); DB2105WriteHelper.WriteManScrewH5();
DB2105WriteHelper.WriteSetValueH3(value); DB2105WriteHelper.WriteSetValueH3(value);

@ -697,7 +697,7 @@ namespace Mesnac.Action.ChemicalWeighing.LjPlanning
private static void DowMSteps(int start, MixStep step) private static void DowMSteps(int start, MixStep step)
{ {
int mixCode = start; int mixCode = start;
var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode); var s= PlcConnect.Instance.Write($"DB2104.{mixCode}.0", step.MixCode);
int mixTime = start + 2; int mixTime = start + 2;
PlcConnect.Instance.Write($"DB2104.{mixTime}.0", step.MixTime); PlcConnect.Instance.Write($"DB2104.{mixTime}.0", step.MixTime);

@ -205,6 +205,7 @@ namespace DataBlockHelper.DBHelpers
} }
public static bool WriteG2Pd() public static bool WriteG2Pd()
{ {
return WriteG(96,3); return WriteG(96,3);

Loading…
Cancel
Save