Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Cycle Overrun?

(you are viewing a thread; or go back to list of threads)

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?
Tue May 25 2010, 21:42:27
(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.
Tue May 25 2010, 22:01:02
(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.
Wed May 26 2010, 03:14:40
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):