Problem with Python and LinearRail


Could you help me?
When I use this code:
dType.SetHOMECmd(api, temp = 0, isQueued = 1)
Dobot begins to move to left side, and doesn’t stop when it touch switch in LinearRail. It stop never.
If I use dobot studio that i don’t have this problem.