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 - How to reduce these steps

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

How to reduce these steps (by Amjad)
i need help that how can i reduce my rungs with same timing values
Tue Feb 11 2020, 11:33:05, download attachment Pulser.ld
How to reduce these steps (by Amjad) (by DanielH)
@Amjad:

I wish to collaborate with you solving the issues in your application.
I've dowloaded your Pulser.ld and opened it in LDmicro.

Sincerely, I cann't understand what are the tasks that your program executes.
Also, I've encountered that your program has many many timers to set differents pulse times, that are innecesarily exhausting the microcontroller's RAM, and I suspect that a third digital input is required to trigger the pulser output (or at least, another internal relay Rx linking that kind of trigger with other subtask in program).

To facilitate my efforts to help you: could you provide a carefully description of the tasks required in your application.

Best regards,
DanielH
Fri Feb 14 2020, 10:12:42
(no subject) (by MGP)
I don't understand your program either.

You have to be careful with timers, if you have a duty cycle of 0.5ms then the precision is 0.5 ... 1 ... 1.5mS, everything in between is rounded off.

1.2 and 1.4ms have the same delay with a duty cycle of 0.5mS.
Fri Feb 14 2020, 13:20:11
(no subject) (by MGP)
Sorry, duty cycle must be read as cycle time.
Fri Feb 14 2020, 13:27:41
(no subject) (by Ihor Nehrutsa)
Positive pulse T = N * Tcycle; Tcycle = 0.2ms;

N is changed inside range [5 .. 50]

Tmin = Tcycle * N = 0.2ms * 5 = 1 ms
1.2 ms
1.4 ms
1.6 ms
...
9.6 ms
9.8 ms
Tmax = Tcycle * N = 0.2ms * 50 = 10 ms
Mon Feb 17 2020, 08:27:44, download attachment Pulser2.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):