Cycle Overrun? (by Peter van Hoof)
I have written a ladder here that seems to work ok in the simulator but does not work as expected on a real chip. The program is a little complicated and I was wondering if there could be a problem with a cycletime overrun.
What exactly happens when there is a cycletime overrun?
(no subject) (by Jonathan Westhues)
If the program's execution time exceeds the cycle time, then the PLC will continue to cycle, but slower (and maybe dramatically slower, like a factor of ten or more) than requested.
You can lengthen the cycle time (Settings -> MCU Parameters), to see if that solves the problem.
(no subject) (by BoumPower)
If you are using "ANSI C code" target MCU, you can try the code generated by my LDmicoCompiler (
http://sourceforge.net/projects/ldcompiler/).
It's still at developping state, but fortunatly, it could be enought to help you.
I have changed the way of coding timer element : if the cycle slow down, timers are not affected.