(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
(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?
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
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
(no subject) (by Ihor Nehrutsa)
Announce a competition! Who came up with greatest number of variants of pulse relay, he has honor and respect ;)
(no subject) (by Alex)
trigger instruction does that,right?
(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.
(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
Post a reply to this comment:
|