dep_yangw
yangw 11 months ago
parent d9fd1d92c5
commit 4eed64e84f

@ -921,10 +921,11 @@ namespace ProductionSystem.Forms
{
XTrace.WriteLine("开始水泵2");
TmTool.SbUx(ModeTypeEnum.BZ1_DB,true);
TmTool.WritePlc(TmTool.ShuiBeng1, 1);
TmTool.WritePlc(TmTool.ShuiBeng2, 1);
TmTool.CleanStatus();
// TmTool.CleanStatus();
// 上位机将四通阀运行到模式1停止水泵1启动水泵2运行致设定转速反馈PLC=1或2可以/不可以测试)
// TmTool.SiTong(ModeTypeEnum.BZ2_DB, 1);
// TmTool.SiTong(ModeTypeEnum.BZ2_DB, 2);

@ -40,6 +40,7 @@ namespace ProductionSystem.Untils
public static string GetCode(string code, EquipmentEnum equipmentEnum)
{
var dic = cache[code] as Dictionary<string, string>;
if (null == dic) return "-1";
if (dic.TryGetValue(equipmentEnum.ToString(), out var value))
{
return value;

Loading…
Cancel
Save