A generator control device controls a generator that is driven by an
engine to charge a battery and supply electric power to electric loads.
In the generator control device the following steps are carried out:
calculating a required electric power; calculating a difference rate that
is a difference in an amount of a hazardous gas component of engine
exhaust gas between a first case in which the generator generates the
required electric power and a second case in which the generator does not
generate an electric power divided by the electric power and controlling
the generator to generate the required electric power if the difference
is equal to or smaller than a first reference value.