Maximum permissible cable lengths depend on the controller being used. The applicable length is specified in the data sheet for the respective controller.