Get rid of:
{$M $450,0,0}
then see if you still have a problem.

Uses shouldn't cause any errors.

(BTW, there are many much simpler Pascal Morse generators.)