i hv to programme a encoder ratated question , in which encoder generate 5000 pulse per revolution. how to get output after each 1 meter and after 40 meter completed there should be another output after 200 mm. with siemens s7 200 plc. i m new in programming some one plz. help me it's my 2ed project