Dubs52 (Customer) asked a question.

Trying to figure out the best way to capture cycle time of a machine (i.e. time from when an input turns off until the next time the same input turns off again)

Would like to take a signal from an older injection molding machine and capture each full cycle time(from output off to output off) and record the times over 'x' number of cycles to monitor changes in cycle over time. Currently have a click plc and c-more headless hmi. Is this possible?


Dubs52 likes this.
    • Dubs52 (Customer)

      Awesome, thank you! What would I change to only store the most recent cycle time instead of having it continue to add up each cycle? Also, how accurate is the SC5 timer because when I was testing it I noticed it occasionally got faster and skipped up (could be a delay in the connection to the software though)? Thanks

      • Garry (Customer)

        Hi Dubs52,

        Just look at DS2 only. This would be the last complete cycle time.

        If you are monitoring DS1 then you could be reading some delay in the software communication that you mentioned. You could add some more copy commands and create a list of the last x amount of cycle times.

        Good question on the accuracy of the 100ms clock. I know that the real time clock is +/- 60 seconds per month = 1 minute per month

        Worse case: 1 / 28 days X 24 hours/day x 60 minutes per hour = 1 / 40320 = 0.0000248015 error

        Worse case 100ms x 0.0000248015 = 0.00248 ms out.

        100ms +/- 0.0048ms

        Someone could correct me if I am wrong.

        Regards,

        Garry

         

        https://accautomation.ca/

        Expand Post
      • Dubs52 (Customer)

        Thanks for info. Maybe I am missing something but both DS1 and DS2 continue to add on to the last cycle time. I made both non retentive but still not resetting to 0 after each cycle...

      • Garry (Customer)

        Hi Dubs52,

        Thanks for the video.

        I forgot to include the reset for the cycle.

        click cycle time resetCopy a 0 into DS1 so the cycle time calculation will reset each time.

        You can then look at DS2 for the last cycle time.

        Regards,

        Garry

         

        Expand Post
      • Dubs52 (Customer)

        Hey Garry, could you explain what the best way would be to 'add some more copy commands and create a list of the last x amount of cycle times'?

      • Garry (Customer)

        Hi Dubs52

        You would change the first move to a block move. In the following example, DS1 to DS10 will move to DS2 to DS11. This will then save the last 10 cycle times.

        Click Cycle Time 1Let me know how you make out.

        Regards,

        Garry

         

        https://accautomation.ca/series/click-plc/

        Expand Post
      • Garry (Customer)

        Your welcome.

        Garry

         

         

10 of 11