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 - One pulse relay output

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

One pulse relay output (by Antonio Oliveira Jr)
Hi guys

i need a ladder diagram to do a one cycle output relay (like impulse relay on others ladders compilers).

i would like to implement one pulse button to SET and RESET a coil.

Using and simulating with "Rise On" detector it isn't working properly.

Thanks so much

Antônio
Wed Jan 18 2017, 19:17:32
(no subject) (by Ihor Nehrutsa)
Give please a timing diagram of the relay (the input level, the output level, time).

fragment:
...
A digital impulse relay is a electronic circuit that mimics perfect the all functions of a impulse relay with ratchet mechanism: the first press to the button turns the relay on and the second press turns it off, and relay in the circuit operating room illuminates.
...
You need this operation of relay?
Thu Jan 19 2017, 02:30:08
One pulse relay output (by DanieH)
Hi Antonio!

Attached telerruptor.ld, a little program that works as you need.

In spanish, an output thats go ON and OFF at each rising edge on an input signal (e.g. push button) is called "telerruptor".

Of course, similar program can be used to toggle an internal relay, its input can be any external or internal signal (counter, timer, comparator, etc.).

Good luck!
DanielH
Thu Jan 19 2017, 06:39:27, download attachment telerruptor.ld
Solved (by Antonio Oliveira Jr)
Thanks mrs Nehrutsa and DanielH!

DanielH, your program is perfect!

I was using contacts from (S)(R) coil (R1 in your example) after OSR, and not contacts from output coil (Y1) to solve.

Thank you!

Regards
Thu Jan 19 2017, 10:13:31
(no subject) (by Ihor Nehrutsa)
Announce a competition! Who came up with greatest number of variants of pulse relay, he has honor and respect ;)
Thu Jan 19 2017, 10:20:54, download attachment telerruptor2.ld
(no subject) (by Alex)
trigger instruction does that,right?
Thu Jan 19 2017, 13:02:04, download attachment telerruptor3.ld
(no subject) (by Ihor Nehrutsa)
In variant 3 not need OSR between X3 and Y3. There's OSR inside the Y3.
Variant 3 needs only 18 ASM/HEX operation for PIC's MCU.
Fri Jan 20 2017, 02:33:52, download attachment telerruptor3.ld
(no subject) (by DanielH)
@Antonio: you're welcome!

@Alex: variant 3 doesn't works as needed: Antonio requires an output Yn (or internal relay Rn) that toggles its status (OFF > ON > OFF > ON...) on each positive edge in the input Xn.
Your program outputs a single pulse during one cycle time on each positive edge in the input X...

@Ihor: compiling on 16F887;
telerruptor.hex=137 words; telerruptor2.hex=138 words.
My program is shorten than yours by only one word...

Best regards,
DanielH
Fri Jan 20 2017, 09:47:15
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):