L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,701 Jul 28, 2016 #1 Code: L P#0.0 T MW 20 A m0.0 L mw 20 + 2 T mw20 Why not increase during the cycle?
L D[AR2P#0.0] Lifetime Supporting Member OP L Join Date Nov 2006 Location UK Posts 6,701 Jul 28, 2016 #2 Monitor the code and show the accumulators. At the start of OB1 0 is loaded into MW20 MW20 is then incremented by 2 so that at the end of OB1 MW20=2 At the start of OB1 0 is loaded into MW20 MW20 is then incremented by 2 so that at the end of OB1 MW20=2 You get the picture?
Monitor the code and show the accumulators. At the start of OB1 0 is loaded into MW20 MW20 is then incremented by 2 so that at the end of OB1 MW20=2 At the start of OB1 0 is loaded into MW20 MW20 is then incremented by 2 so that at the end of OB1 MW20=2 You get the picture?
SapherJalt Member S Join Date Jul 2016 Location Kamchatka Posts 4 Jul 29, 2016 #3 Thank you! I'm always forget about conditions for first increment! From here: http://www.plctalk.net/qanda/showthread.php?t=104485
Thank you! I'm always forget about conditions for first increment! From here: http://www.plctalk.net/qanda/showthread.php?t=104485