A method of automatically generating the cam data capable of realizing
such a smooth cam profile that an acceleration at a designated point is
zero without necessitating a special technique, comprising the steps of
first obtaining an inclination at each designated point when an optimum
cam profile is realized for each designated point by an automatic set
value generating section (15), automatically obtaining, by using the
inclination value and a preset equation, such a cam profile that the
acceleration at the designated point is zero for each district between
two designated start and endpoints, and lastly obtaining an entire cam
profile by synthesizing the cam profiles obtained for each district.