To study the working of comparator blocks (EQU, NEQ, LES, GRT, LEQ and GEQ) using simple example in Allen Bradley…