Tool change time as function of location in tool magazine, index