소스 검색

plc set bool

chenxy 5 년 전
부모
커밋
aa1a0f11b8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Curtain.Net.Sockets/PLC/Model/Siemens/SiemensS7_1200Model.cs

+ 1 - 1
Curtain.Net.Sockets/PLC/Model/Siemens/SiemensS7_1200Model.cs

@@ -938,7 +938,7 @@ Boolean[]
                 plc_m.CommandBytes[13] = 0;
                 plc_m.CommandBytes[13] = 0;
                 plc_m.CommandBytes[14] = 14;
                 plc_m.CommandBytes[14] = 14;
                 plc_m.CommandBytes[15] = 0;//(byte)((4 + 1) / 256);
                 plc_m.CommandBytes[15] = 0;//(byte)((4 + 1) / 256);
-                plc_m.CommandBytes[16] = 4;//(byte)((4 + 1) % 256);
+                plc_m.CommandBytes[16] = 5;//(byte)((4 + 1) % 256);
                 plc_m.CommandBytes[17] = 5;
                 plc_m.CommandBytes[17] = 5;
                 plc_m.CommandBytes[18] = 1;
                 plc_m.CommandBytes[18] = 1;
                 plc_m.CommandBytes[19] = 18;
                 plc_m.CommandBytes[19] = 18;