Mmmm wait when the train is not even on the track the signal is still turning red, but the train is not even there. Thats why it closes the train stop for 1 second. I think this should not happen. I will make a youtube.
Just want to inform you guy's that i programmed a train stop to enable/disable. When X ammount is reached then green 1 output, + signal hooked up before train station. Then i connected everything and coded the trainstation to enable disable, enabled green = 2.