Lower speed of indexing motor if door to turret lathe is open