A teaching simulator. Real PLCs differ in addressing, instruction names and timing; follow your manufacturer's manual and the IEC 61131-3 documentation for your platform. Safety functions (emergency stops, fire shutdowns) must be designed to the relevant safety standards, not in ordinary PLC logic alone.