mattj Posted November 1, 2006 Report Posted November 1, 2006 Hi, Im new to the forum and new to plc programming. I have a small monitoring project to complete. Basically i need to monitor the cycle time of a production machine, using one input. E.g input on (pulses) start timing, input on again stop timing. i have created a ladder (flip-flop) to do this and it works fine, but how do i store the elapsed time in a registor so that it can be viewed or used at a later stage. If i just use the move function (MOV T1 D2) the data is lost when the timer resets. I need to collect 10 cyle times per hour and then work out the average the result will be displayed in excel using MX sheet software. Im using a QOOJ plc with remote i/o. Thanks Matt. Quote
Crossbow Posted November 1, 2006 Report Posted November 1, 2006 The TTMR teaching timer instruction will time how long some condition is on. So when you hit your pulse, use the FF command or SET to turn on a bit, then use that bit to trigger the TTMR instruction, and when you're done, reset that bit and TTMR will give you a time reading in seconds, tenths of a second, or hundredths of a second. Manual SH(NA)080039-J is the Q Common Instruction programming manual, and TTMR is detailed in it. Quote
mattj Posted November 1, 2006 Author Report Posted November 1, 2006 Thanks crossbow, I have tried to use the TTMR function, but it doesnt seem to be valid in the plc im using. So any other suggestions? Thanks Matt. Quote
funfrok Posted November 1, 2006 Report Posted November 1, 2006 You can use Index registers. (Z0-Z15) Everytime you move value increase index register, so your data will be stored for future examination. MOV T1 D100Z0 INC Z0 LD> Z0 K99 RST Z0 Something like this. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.