While consulting the manual it says that the motor lead length needs to be under 200m ...
www.automation.siemens.com