Devices for the automatic drive or the program control of the machines