6/18/2020 10:12 AM | |
Posts: 9 Rating:
|
Sorry 0_Einstein, my answer was for jacek d, not for you. In any case, to clarify, all the commands come from the graphical interface or from the internal logic of the PLC, not from physical inputs. However, with the code attached (here I only show a trivial counter) I almost got what I wanted: a cyclic OB that starts almost immediately only after giving a start command (you can see the counter immediately going to 1), starts cycling with the correct frequency (slow, in this case 5 seconds), but is stopped almost immediately by a stop command. What still does not work well is the first OB call: it is clear that the counter often goes from 1 to 2 in less than 5 seconds. However, you highlighted a problem to solve that I had not considered: my OB can be interrupted by other OBs. This can affect the accuracy of the ramp. Thanks. Attachmentcode.zip (262 Downloads) |
Follow us on