In this video you can see a Commodore C64 controlling a pallet warehouse.
The pallet warehouse has 20 places for pallets. Three stepper motors control the X,Y and Z movement. The Commodore C64 send it's commands for the stepper motors via the user-port. The program is written in BASIC, and the pulses for the stepper motor are generated by a machine-code program.