To study the working of One Shot Rising (OSR) and One Shot Falling (OSF) functions in Allen Bradley programmable logic…