looks like a student ssue again....why not telling us what you have tried so far ?
I can say to be carefull of your prox cycle VS plc scan time, you may have to use an high speed counter input.
Make some math to determine on many pulse you would get by second and check if youre scan time would miss some