serhan,
This could be an interesting thread, I bored and in a helpful mood so hear goes... there are many ways to skin a cat the simplist is based on 'relay logic.'
start Light
------[]-------------------------------()
| |
| light |
----[]----
This is called a hold-in unfortunately once turned on it cant be turned off so you need an off button
stop start light
-----[/]-------[]----------------------()
| |
| light |
----[]----
It can also be achieved by using a latch and other more complex ways. There is a link on the top of the page to "Learn PLCs" have a look, have a play and if you get stuck ask a question, but try to limit yourself to a specific issue. Do yourself a favour and don't ask for a traffic light program, Im not quite that bored....
Andrew