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 - Just once

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

Just once (by Edward)
Hello,
Could someone please guide me on how to make a relay turn on and off five times when the PIC is powered on, just once, and then start the main program, which it will run continuously?

Thank you in advance.
Mon Feb 9 2026, 22:34:14
(no subject) (by MGP)
Here's an example of how to do that.
There are other options, but this works well.

You need to place the main program between the two MASTER RLY instructions because the main program starts when the five relay pulses have finished.

Simulate it and explore the possibilities. Then adjust the time (T1) of the relay pulse.
Tue Feb 10 2026, 02:47:42, download attachment Edward_progam.ld
(no subject) (by Edward)
Thanks for your reply, MGP.
It's exactly what I think I need.
I'm going to try it.
Again, thank you so much for your valuable help.
Best regards!
Tue Feb 10 2026, 14:22:35
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):