Dear sir, Interlock circuit top

Create Interlock circuit program. Use N/C Switch. How to decide temp. Level in plc for example more than 50°c show in denger. Not use limit s/w. Please Clear my doubt.