소스 검색

改洗对接

qinqi 2 년 전
부모
커밋
aa01f83cf5
2개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      wwwroot/API/PLC/gaiXi3_plc/gaixi6381.ashx
  2. BIN
      wwwroot/DOC/恒洁PLC及扫码头-对接设置.xlsx

+ 1 - 0
wwwroot/API/PLC/gaiXi3_plc/gaixi6381.ashx

@@ -96,6 +96,7 @@ public class gaixi6381 : IHttpHandler
         int i = 0;
         while ( !isSuccess && i<repeat )
         {
+            s7.IS_OPEN = false;
             isSuccess = s7.Write<T>(db, (T)(value));
             result.Add(new JObject(new JProperty("PLC写入数据(重写第" + i.ToString() + "次):", db + "=" + value.ToString())));
             i++;

BIN
wwwroot/DOC/恒洁PLC及扫码头-对接设置.xlsx