I'm not sure,
because you have only posted the code about the station and not also the relative command .Stop;
but a common mistake for a BVE developer is assign the comand .Sta and .Stop at the same distance. Due to a probable BVE bug, if the train is stop before the .Sta distance (even if in the admissible tolerance range) the doors will be open,but at the time of departure will not be close, so the train cannot move.
Thanks for asking this topic. I remember when I am still testing his route during Alpha Stage the doors cannot close. So I have to close it myself by pressing the F6. Now it is solved, not just his routes even the Taiwan Rapid Transit route as the same thing too at some stations.