03 f250 desel heater is hot and cold every 30 seconds?

Check thermostat, if that's ok make sure the system is full of coolant. If you have recently changed a cooling system part (water pump, thermostat, heater core, etc.) then you may have an air pocket in the system which will make you think it is full of coolant but actually is not, thus intermitten heat. Hope this helps.