Latching concept

Are we doing practically latching in hardware or only in ladder logic software rung ?