Pulse Timing Sequencing Logic

Myhells

Member
Join Date
Sep 2023
Location
Minnesota
Posts
11
Hello,

I am struggling to figure out some logic. I have an analog pressure sensor coming into the PLC and would like to have multiple timing conditions depending on what the sensor is reading.
I am calling these: Stage 0 / Stage 1 / Stage 2 / Stage 3.
Each stage has its own TONOFF timer with different setpoints.
I want the timer to repeat until the pressure sensor changes to the next stage, but I want the timer to finish timing before switching to the next stage.
See attached image.
Thanks
 

Attachments

  • PLC Logic1.JPG
    PLC Logic1.JPG
    87.4 KB · Views: 11
There are two OTEs writing to the same bit (TimerDone_1). It may not matter because that bit is not being used, but that is usually a red flag that summat is amiss.

Also, no timers will run in the 0.01-sized+ gaps in the limits for AnalogInput0Scaled. You are using < and >=, so you can use the same breakpoint on each pair of lines.

Finally, it is probably simpler to have each as a single TON with a .PT of T#Xs100ms with an XIO on its .Q, and then use >= .ET T#Xs0ms for the 100ms pulse at the end.
 
you could also do this with one timer:

Code:
XIC ton0.DN MOV T#1s100ms timetotal >= AnalogInput0Scaled 18.0 ADD MOV T#2s100ms timetotal >= AnalogInput0Scaled 21.0 MOV T#3s100ms timetotal
XIO ton0.DN TON ton0 timetotal 0
- timetotal ton0.ET timeleft <= timeleft T#100ms OTE air_pulse
 

Similar Topics

Hi, The hardware is: Click Plc model # CO-O1DD1-O HMI model # S3ML-R magnetic-inductive flow meter model # FMM100-1001. I will set the flow meter...
Replies
4
Views
146
Hi All, I'd like to know can we use DTR instruction to get a week pulse ? Could anyone please help me to understand that one ? I've managed to...
Replies
4
Views
182
I have PLC Omron CJ2M with OD211 module. I want to use the pulse output and PWM output and this module. But i confuse how to activated this, i...
Replies
0
Views
111
I am monitoring two BMXDDO3202K digital outputs for their behaviour, they are each for opening and closing, and so the on time affects how far the...
Replies
1
Views
287
Hi, So we have a flowmeter installed but doesnt have a feature to send a pulse to plc for it to compute the total volume. I want to somehow...
Replies
3
Views
577
Back
Top Bottom