Hello all,
Can anyone give me some pointers as to the best way to measure/calculate cylces per hour on a real-time basis. Note that I am using an Automation Direct DL-06DD1 monitoring three machines and communicating via three C-more panels via ethernet.
I have been doing some thinking about this and to me what it boils down to is being able to accurately capture the time between two cycles, then do the appropriate math. The machine runs at about 10,000 cycles per hour which is about 3 times per second.
Am I on the right track if I am thinking of using Mode 40 for this? Capture a pulse, note the time, capture the next pulse, note the time, subtract to get the time difference, then divide 3600 by the number of seconds to get cycles per hour?
How do I go about capturing time 1 and time 2? If I am in an interrupt routine when the next pulse comes it will be missed, correct?
To anyone who has done a rate calculation on this PLC can you tell me if this is reasonable?
Thanks again!
Can anyone give me some pointers as to the best way to measure/calculate cylces per hour on a real-time basis. Note that I am using an Automation Direct DL-06DD1 monitoring three machines and communicating via three C-more panels via ethernet.
I have been doing some thinking about this and to me what it boils down to is being able to accurately capture the time between two cycles, then do the appropriate math. The machine runs at about 10,000 cycles per hour which is about 3 times per second.
Am I on the right track if I am thinking of using Mode 40 for this? Capture a pulse, note the time, capture the next pulse, note the time, subtract to get the time difference, then divide 3600 by the number of seconds to get cycles per hour?
How do I go about capturing time 1 and time 2? If I am in an interrupt routine when the next pulse comes it will be missed, correct?
To anyone who has done a rate calculation on this PLC can you tell me if this is reasonable?
Thanks again!