Sign in to follow this  
Followers 0
Karthikeyan_cmps

Allen Bradley

3 posts in this topic

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

Share this post


Link to post
Share on other sites

Welcome Karthikeyan_cmps

Im assuming here that your using RSLogix 5000/Studio 5000?

If so, once you have configured your Input/ Output Device in the Controller Organiser- you simply need to follow the structure defined by the Slot Number.

So lets say you have an Input Card in Slot 1. In your controller tags you will find a structure called (Local:1:I.Data) inside this all bits will be mapped and updated every scan.

If you need to Monitor Input 0 On Slot 1 ---> Local:1:I.Data.0 is the tag you need.

 

 

 

Regards

Daniel

 

 

 

 

1 person likes this

Share this post


Link to post
Share on other sites

Use a normally open contact to enable a rententive timer.  Then add another rung that looks at the normally closed contact of the same input to MOV the retentive time accumulated to another DINT and then RES the retnetive timer.  In the next rung, do some math to get the DINT (in terms of microsecs) into secs, minutes and hours (all should be in REAL datatypes) then round down.  THen display those values on your screen. 

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0