Thank you, this works.
But I wish use minimum LUA for this. I recommend to modify current command module (vehicle is located on track/contact).
Currently this module uses boolean. Please, add a programmable number: "vehicle is located on track/contact > number" where number is zero by default.
Thank you in advance!