Compact Logix

karthiknd7

Member
Join Date
Apr 2017
Location
*******
Posts
20
How could I find ON State duration of an Input/Output, in Compact Logix PLC? So it would help me to show in HMI that how long the I/O is ON.

Kindly assist me.

Thanks in advance
 
One way would be to record the time when the input comes on, then record the
time again when the input goes off and subtract start time from end time, store
the difference and display it on the HMI.

Another way would be to start a timer running when the input comes on, then
pull the time out of it when the input goes off and stop and reset the timer.

Poet.
 
Thanks for your suggestion.
BTW,
I have to monitor an Oven door condition. How long it stays Open and Close condition.
In this scenario, I cant get the data when the operator open and close the door. So, without knowing that data, I couldn't set the PRESET Value if I'm using Timer.
 
Last edited:
When the door closes, move the values of the Real Time Clock to a set of tags. When the door opens move them again to a different set of tags. subtract the door closed from the door open tags (there will be a set of tags for hours, minutes and seconds) and move that value to a tag that is monitored. When the door closes again move the RTC values to the door closed tags and do the math again. Each time the door opens or closes just move the RTC values to the "open" tags or "closed" tags and do the math.
 
Karthiknd7 I have to monitor an Oven door condition. How long it stays Open and Close condition.
In this scenario, I cant get the data when the operator open and close the door.


Poet : Do I understand this correctly?
You have to monitor an oven door condition . . but you do not know when the door is
opened or closed?

If that is correct, then the first thing you need is a switch (or a proximity detector) on
the door so you know when it is closed. (And if it is not closed then you know it is open.)

Initialize and display the real time clock on the HMI. When the door goes from closed to
not closed (open) record the clock. When it closes again record the clock in another spot.
The difference is how long the door was open. Next time it opens record the time again
and the difference between the last time recorded and this one is how long the door
was closed.
Poet.
 

Similar Topics

gents, I am trying to configure communication with EMERSON PK300 controller through port A1 using generic ethernet communication module . I could...
Replies
0
Views
85
I've blown the Output Transistor on the Output Card of a Compact Logix 1769-L24ER-QBFC1B It says J378. Does anyone know the replacement part...
Replies
3
Views
193
I am having trouble with getting no control of my analog output signal. I am using the SCL function block to control my analog output. The logic...
Replies
11
Views
233
I was wanting to see if anyone had any information on setting up a cub5 meter and getting the data to a Allen bradley PLC. I think i have the set...
Replies
0
Views
126
I had a comms fault between my VFD and Controller (5069-L320ERS2) that started about a month ago and happened maybe once a day to now where it...
Replies
1
Views
275
Back
Top Bottom