MTerm1/KMachine.cpp
@@ -496,7 +496,7 @@ } int KMachine::ProcessPLCBinProg(const stBinProg1 * pBinprog, int nSize) int KMachine::ProcessPLCBinProg(const stBinProg1 * pBinprog, int nProgSteps) { if (nScanCount == 0) { SetCoilValue(KLCoilTypeSR, 13, 1); @@ -528,7 +528,7 @@ int lastScanInputVal = 1;//上个扫描周期,当前指令输入状态,为 微分 做参考 while (CurPos < nSize) while (CurPos < nProgSteps) { unsigned int nNextPos = 1; unsigned int thisOP = pBinprog[CurPos].nOp; @@ -544,6 +544,9 @@ // case OP_NOP: break; //无参数 指令 case OP_END: nNextPos = nProgSteps; break; case OP_NOT: case OP_ANS: case OP_ORS: