Posted 20 Mar 2019 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
Posted 20 Mar 2019 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
Posted 20 Mar 2019 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