![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Feb 2021
Location: Atlanta
Posts: 3
|
Need to inhibit an INPUT if it was the last INPUT...
Question-
Say I have 8 digital INPUTS to my PLC, any of which may be asserted HIGH for a few seconds, all these inputs "OR'd", currently, to produce a 1 second OUTPUT pulse, to show general activity in my plant. Say further that activity is fairly quiet and the same input is the ONLY input asserting itself multiple times in a row... I'd like to somehow inhibit any input from causing an output pulse IF it was the LAST input to have created an output pulse.... I.e., I don't want any one input to cause an output if it isn't preceded by an input other than itself... Once any other input causes an output, the inhibited input can rejoin the fun... Any simple ideas? https://ibb.co/9HNnBXR Many thanks! Last edited by themaze; February 20th, 2021 at 09:25 PM. Reason: adding pic |
![]() |
![]() |
#2 |
Lifetime Supporting Member + Moderator
|
Brute force method:
Create this tag: Any_Input = Input1 OR Input2 OR Input 3, etc Input1 latches an Input1_Anti_Repeat bit which is unlatched by Any_Input AND NOT Input1 Repeat for Input 2 through Input8 |
![]() |
![]() |
#3 |
Member
![]() ![]() Join Date: Feb 2021
Location: Atlanta
Posts: 3
|
will try. thanks
|
![]() |
![]() |
#4 |
Lifetime Supporting Member
|
but otherwise I think this is about as simple and concise as it can get. Update: Alternative, becasue it does not need to be bits (and the environment is not stated so I'll go with ladder): Code:
inp1 ---] [---[NEQ ]---[P]---[MOV ]--- [SourceA last_edge] [Source 1] [SourceB 1] [Dest last_edge]
A TOF timer might be of use here. Last edited by drbitboy; February 21st, 2021 at 05:03 AM. |
![]() |
![]() |
#5 |
Member
![]() ![]() Join Date: Apr 2015
Location: home
Posts: 317
|
drbb, l am concerned for your mental health, are you a PLC junky (if you are, which l think you are) do you do anything else than look at this forum.
Now l think you are doing the PLC industry a great service by supporting them as l see you have moved onto to other products than AB, but to put the amount of effort and time you do into any question posed by anyone, it concerns me. One thing about it you will be the fastest poster to 10,000 there has every been, unless you end up in the nut farm. Don't get me wrong, if l needed help on a PLC l would be happy for you to answer it, but as l have said, you seem to be addicted and as we know you only learn't about them a bit over a year ago, your knowledge does astound me and as l have said before, are you sure your not your brother the PLC expert?????? Regards Kevin |
![]() |
![]() |
#6 |
Lifetime Supporting Member
|
Based on DRB's suggestion here is how it can be done in Siemens S7.
M12.0 is on for one scan so you can use this to start your timer. Whilst it is for S7 I am sure you can convert it to use with whatever PLC you have. Should have added - MB 10 is your input bits, Last edited by moggie; February 21st, 2021 at 05:13 AM. |
![]() |
![]() |
#7 |
Lifetime Supporting Member
|
Thanks for your concern. I have had the same thoughts, even to the point of wondering if my activity here is annoying to others, esp. those more experienced than myself; I welcome any feedback there. And yes I almost certainly have an obsession with solving any problem that catches my eye, an addictive personality, and insomnia. But I am sure that eventually this will lose its lustre. Also, I have a wonderful spouse who keeps me honest and interested in other things: the rudder for her boat, her delaminated Nordic ski, and our Rhodes Bantam dinghy aren't going to fix and/or restore themselves. Thanks again. Just let me know if I become a troll. Last edited by drbitboy; February 21st, 2021 at 05:33 AM. |
![]() |
![]() |
#8 |
Member
![]() ![]() Join Date: Apr 2015
Location: home
Posts: 317
|
drbb, l am only jealousy of your intellect and your ability to nut the problem out and solve it.
Please don't loose your love of helping others with there PLC problems. I love the way you are willing to help from a school exercise to problems that you have to work out yourself from the OPs thread which are very involved. Keep up the great work, but if l can give one bit of advise, let the OP give some input, personally it ***** me when they ask a basic question (or even an in-depth one) then they intermittently if at all answer questions some time down the track. PLC's and industrial processors are interesting, but there is way more to life, then you are dead. My favourite saying that l didn't come up with is, " know one on there death bed ever said l wished l spent more time at work" l think a great point to think about. I like that you have a war office that will hopefully drag you away from helping PLC people in need(because they are out of there depth) for some real time together. Personnel l think to many people are playing with PLC's when they shouldn't be, imagine what would happen if this forum wasn't answering questions (well some people like yourself) Have we had questions from nuclear power stations???????????????? |
![]() |
![]() |
#9 |
Member
![]() ![]() Join Date: Jan 2006
Location: Finland
Posts: 1,602
|
If input and not output then
output = true end if And reset output after 5 second time Why this would not work? |
![]() |
![]() |
#10 |
Lifetime Supporting Member
![]() ![]() Join Date: Nov 2006
Location: UK
Posts: 6,221
|
What is supposed to happen under the following conditions?
__________________
S7-300 to 1500 conversions done - email to s7conversions@hotmail.com |
![]() |
![]() |
#12 |
Lifetime Supporting Member
|
One approach
Caveats
xxx.png |
![]() |
![]() |
#13 |
Member
![]() ![]() Join Date: Feb 2021
Location: Atlanta
Posts: 3
|
Dr Bit Boy- thanks! Your suggestion(s) will get me what I need.
|
![]() |
![]() |
#14 |
Lifetime Supporting Member
|
You're welcome.
Note that adding an [XIO T4:0/DN]* on the one-shot rungs changes the behavior, especially if input pulses overlap (e.g. see @LD's query). For example, a rising edge from inputM while an inputN-triggered TOF is timing
* i.e. inhibit receipt of new pulses when the timer is timing. |
![]() |
![]() |
#15 | |
Lifetime Supporting Member
![]() ![]() Join Date: Jun 2012
Location: Australia
Posts: 3,262
|
Quote:
DRB, keep on doing your thing, just watch out for semi-trailers ![]() |
|
![]() |
![]() |
Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Input leds on/off | REHJ | LIVE PLC Questions And Answers | 3 | June 17th, 2016 04:06 PM |
FactoryTalk View SE Numeric Input Focus | zacslade | LIVE PLC Questions And Answers | 1 | March 2nd, 2016 06:26 AM |
Analog input / Analog Output - Twin CAT System | tech007 | LIVE PLC Questions And Answers | 1 | September 30th, 2011 06:21 PM |
Analog Input Fluctuations | Steve Etter | LIVE PLC Questions And Answers | 18 | October 20th, 2004 07:34 AM |
AB Analog Input Help | GTX | LIVE PLC Questions And Answers | 2 | December 14th, 2003 03:37 PM |