9/16/2015 2:06 PM | |
Posts: 47 Rating: (0) |
I like the first two methods. Few questions before I choose one and get going! For method 1. IEC-TIMER How can I capture the time value when the count reaches 100? I know as soon as the belt start I will start the timer, and reset the timer on the condition where the counts are 100. But I am not sure how can I capture it? And I think resolution in ms is good. But the more resolution is always better! For method 2. Interrupt for HSC:CV == HSC:RV Will we use "triggerRV" parameter for the CV? And instead of doing "valueRV" := "valueRV" + 100 what if I just reset the HSC right there, then I don't need to worry about triggerRV, valueRV right? So then It will never give negative numbers for the counts? Also using this discussion for help, but please see attached folder that I found on another discussion. Is there I would put 100 right? But lets say as you said don't reset, then how would the interrupt will happen every 100 counts? https://support.industry.siemens.com/tf/ww/en/posts/hsc-interrupt/45457/?page=0&pageSize=10 Thanks as always!
AttachmentExample.zip (531 Downloads) |
Last edited by: chiragshah at: 9/16/2015 2:36:32 PMadded attachment Last edited by: chiragshah at: 9/16/2015 3:48:34 PMLast edited by: chiragshah at: 9/16/2015 4:05:32 PMLast edited by: chiragshah at: 9/16/2015 4:06:22 PMformat |
|
9/16/2015 4:52 PM | |
Posts: 5225 Rating: (1195) |
You do know I am not paid enough for helping you..
Look at the attached ZIP.. you should get a good idea from that and hopefully learn a few tricks - - - seeing that you set this pace. AttachmentDesign idea_Measure cycle time 0 to 100 pulses.zip (475 Downloads) |
9/16/2015 5:08 PM | |
Posts: 5225 Rating: (1195) |
The pictures you give in the ZIP file is something that is worth trying. Try it and see if it works. Frankly - I am not a fan of resetting the counter to zero / [any other number]. Granted the processes I have is much quicker, but the zeroing of the HSC count do take time and you may miss counts. The count value going negative is not a problem. So also the instruction that adds 100 will automatically work itself out. The method (#3) I proposed does not change CV at all. Answered? |
This contribution was helpful to1 thankful Users |
9/21/2015 3:59 PM | |
Posts: 47 Rating: (0) |
Since resetting at every 100 counts, the timing is not precise if the speed is over 20ft/min. So I decided to use your idea where I just keep increment the varaueRV but I have the same problem. I still get some timing error. Do you know why it would do that? Because now I am not even resetting back to 0 how what possibly can be talking time? AttachmentMain Ob.pdf (447 Downloads) |
Follow us on