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 - Counter preset value!

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

Counter preset value! (by vlada)
I need some help concerning changing of counter preset value over digital input. LDmicro is in quiestion. Any ideas?
Thanx in advance!
Wed Jun 29 2011, 08:16:13
(no subject) (by Boris)
Use MOVE, ADD, SUB instead counter.
Wed Jun 29 2011, 12:35:10
(no subject) (by Jonathan Westhues)
As noted, you can make your own counter, using some combination of ADD, SUB, MOV, and OSR/OSF operations. This allows you to increment, decrement, and reset the counters under whatever conditions you'd like. An example is attached.

You also can combine these operations with CTU and CTD instructions; the counter variable is an integer variable like any other, so these instructions all work as usual.
Mon Jul 4 2011, 20:54:26, download attachment diy-counter.ld
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):