Ladder

puokis

Member
Join Date
Jul 2021
Location
Lithuania
Posts
2
Hello, today i have one job, but i can’t do that. So my job is: The trigger is activated, but the signal must not disappear for a certain set time. I must delay the signal, but all timers when the trigger is active immediately coil is active. Trying to do with ladder but unsuccessfully. The trigger is rear switch with NC contact. Maybe someone can help?
 
Which platform? Can you post a picture?


It may be that you are using the wrong timer or the time preset is incorrect, like wrong units, milliseconds, so it appears as if the output is immediately set.
 
Rear switch |\|——————(plc input) When the rear switch triggered, i must hold the signal for a while, and after set time must off for 1sec than back to normal
 
What environment? Tia? Rslogix/studio 5000? Schneider? Something else?

Can you draw a contact tracer/timing diagram, that is how the input and the output change vs. time?

What happens if the input goes from 0 to 1, and the output goes to 1, the input goes back to 0, but while the delayed output is still 1 the input goes back to 1 again? Does that extend the time the output should be 1?

I think @GaryS is right about the TOF, but the expected behavior is not clear yet; a contact tracer would help.
 
Rear switch |\|——————(plc input) When the rear switch triggered, i must hold the signal for a while, and after set time must off for 1sec than back to normal

What starts the "set time?". Is it the rising edge of the input? Or is it the falling edge of the input?

What does "back to normal" mean?

What should happen if the input is still 1 when the "set time" expires?

The problem definition is not clear yet.

Also, if you have attempted to solve this, please show your code, and say how the behavior of your code is different from the behavior you want to see.
 
Last edited:
Rear switch |\|——————(plc input) When the rear switch triggered, i must hold the signal for a while, and after set time must off for 1sec than back to normal
Now that reads like a pulse timer. But his part throws me off:
" I must delay the signal, but all timers when the trigger is active immediately coil is active." That tells me you are looking for on delay.


Unless you are looking for both, first on delay then after times out you want to the ouptubtob on for a specific period then off, pulse timer.
 
Last edited:
But his part throws me off: ...


Dear OP/@puokis: this is what I mean when I say the process and the desired behavior are not well understood yet, so it is hard to help you.


If the desired behavior is a "pulse extender" i.e. "pulse stretcher," then the following might work, assuming the duration of trigger is short:


Code:
     Trigger  tof.DN
-------] [-----]/[-----[TOF tof]--
TOF is the Timer OFf delay instruction, e.g. see https://literature.rockwellautomation.com/idc/groups/literature/documents/rm/1756-rm003_-en-p.pdf#%5B%7B%22num%22%3A474%2C%22gen%22%3A0%7D%2C%7B%22name%22%3A%22XYZ%22%7D%2C45%2C176%2C0%5D.


tof is the data structure that holds the state of the TOF timer (tof.DN, tof.ACCumulator, tof.PREset, etc.).



tof.DN, which may be tof.Q in non-Allen-Bradley PLCs, is the output "stretched pulse," that is initiated by a rising edge of the input [Trigger]. Setting tof.PRE (tof.Preset) is up to you.
 
Everyone is so gullible. Sounds like homework to me. Show us what you have so far, then ask questions.


The only thing that got me interested is the guessing otherwise it would've been more of the same. I mean, "The trigger is rear switch with NC contact", you don't get that everyday 🤾
 
From the comments, yes


Well, that was not the case because I considered it early on. That's one reason I asked to see any attempts at a solution by the OP.

This is either a homework problem or an ESL problem; I still don't think we understand what behavior they are trying to achieve. Maybe it's the TOF, maybe not.

I wonder if it would work better if they typed it in their native language into Google translate, then it might be clearer, or maybe that has already been done.

@puokis: I am not criticizing your English, it is certainly better than my Lithuanian. But we do need a clear description of the problem, e.g a drawing or schematic or timing diagram of desired behavior, which should be language-neutral.

Also, if this is a homework problem then you should state that, because it is more important that you learn by doing than pass the course using plagiarism.
 

Similar Topics

Hello, I am trying to replicate a piece of logic on the PLC5 onto an SEL RTAC. I am using ladder on SEL and FBD. I am having issue on the ladder...
Replies
9
Views
103
Hi all. Is this the simplest way to debounce inputs in Ladder (there are 2 points being debounced here)? The TOF drives the tag. I'm expecting...
Replies
15
Views
487
I have a machine which is undergoing upgradation. As part of the process two SEW drives are being replaced., existing Gen B with new Gen C. The...
Replies
3
Views
193
Does anyone have RSLogix 5000 ladder diagram program of tank leveling (factory IO). Fill valve, discharge valve, set point, level, etc? I looked...
Replies
2
Views
155
Hi, I have a program running which is, occasionally, giving me problems. Although I'm a ladder stalwart I've used ST and SFC in its construction...
Replies
12
Views
435
Back
Top Bottom