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 - can i miss a rung?

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

can i miss a rung? (by Alex)
Hello everyone, i have a question, if i have a ladder with 50 comparison instructions in 1 rung (see image attach please) and i set cycle time 1ms, can i miss some comparison instructions than using 10ms cycle time?
Fri Nov 29 2019, 21:51:22, download attachment comparison.jpg
(no subject) (by Tom J.)
In the PIC configuration window I believe the available cycle time is limited by the oscillation frequency.
It shouldn't let you select a cycle time that doesn't work mathematically to have enough time to run the ladder from what I've noticed.
I could be incorrect but I don't think so, if it's glitchy you could try running a faster crystal.
Sat Nov 30 2019, 02:25:33
(no subject) (by MGP)
No, you never miss a rung, but you can only set 8 instructions in parallel and 8 instructions in series in 1 rung.
Ldmicro will give you a warning.

But the program you have made is ugly ;)

Use --[var>=1]--[var<=50]----(led)-
Sat Nov 30 2019, 02:29:23
(no subject) (by Alex)
Thanks for your reply, so, with 1 ms it will work faster right? Because you can select cycle time 0, for faster operation

https://github.com/LDmicro/LDmicro/wiki/PLC-Cycle-Time-0

Pd: yeah my ladder is ugly :( but it was just a "bad" example to catch the idea, i didn't noticed it was wrong
Sat Nov 30 2019, 05:44:50
(no subject) (by MGP)
Not always, depending on how many µs you have left.

You can measure that if you check the YPlcCycleDuty checkbox in the menue Settings how much faster that works.
Sat Nov 30 2019, 07:02:54
(no subject) (by Ihor Nehrutsa)
Never You can miss(loss) a rung.
But You could skip over a rung or rungs (without any calculation inside rung) with GOTO command.
Sat Nov 30 2019, 15:00:47
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):