Implement Siemens PLC Comparator logic like equal, not equal, greater or equal, less or equal, greater than in S7-1200 PLC…