1
Technical support / Time Measurement
« on: March 13, 2007, 05:34:35 PM »
Hello everyone,
I'm new at PLC programming and have a question about measuring time with a PLC. I'm using 2 thru beam sensors connected to a T100MD-888 PLC to measure the speed of randomly passing objects. I want to start a clock when the object passes through the first beam and stop the clock when the object passes through the second beam. I then want to send that measured time to a custom function to calculate the speed of the object.
I understand how to set up the custom function for the speed calculations, but I'm having a problem developing a program that measures time and sends it to the function. Any help would be greatly appreciated.
I'm new at PLC programming and have a question about measuring time with a PLC. I'm using 2 thru beam sensors connected to a T100MD-888 PLC to measure the speed of randomly passing objects. I want to start a clock when the object passes through the first beam and stop the clock when the object passes through the second beam. I then want to send that measured time to a custom function to calculate the speed of the object.
I understand how to set up the custom function for the speed calculations, but I'm having a problem developing a program that measures time and sends it to the function. Any help would be greatly appreciated.