Jump to content

Recommended Posts

Posted
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.
Posted
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.
Posted
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.
Posted
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.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...