2018 IMC
306.5.1 Sloped roofs.
Where appliances, equipment, fans or other components that require service are installed on a roof having a slope of three units vertical in 12 units horizontal (25-percent slope) or greater and having an edge more than 30 inches (762 mm) above grade at such edge, a level platform shall be provided on each side of the appliance or equipment to which access is required for service, repair or maintenance. The platform shall be not less than 30 inches (762 mm) in any dimension and shall be provided with guards. The guards shall extend not less than 42 inches (1067 mm) above the platform, shall be constructed so as to prevent the passage of a 21-inch-diameter (533 mm) sphere and shall comply with the loading requirements for guards specified in the International Building Code. Access shall not require walking on roofs having a slope greater than four units vertical in 12 units horizontal (33-percent slope). Where access involves obstructions greater than 30 inches (762 mm) in height, such obstructions shall be provided with ladders installed in accordance with Section 306.5 or stairways installed in accordance with the requirements specified in the International Building Code in the path of travel to and from appliances, fans or equipment requiring service.
2018 IRC
M1305.1 Appliance access for inspection service, repair and replacement.
Appliances shall be accessible for inspection, service, repair and replacement without removing permanent construction, other appliances, or any other piping or ducts not connected to the appliance being inspected, serviced, repaired or replaced. A level working space at least 30 inches deep and 30 inches wide (762 mm by 762 mm) shall be provided in front of the control side to service an appliance. Installation of room heaters shall be permitted with at least an 18-inch (457 mm) working space. A platform shall not be required for room heaters.