10/19/2017 6:08 PM | |
Joined: 4/29/2016 Last visit: 6/17/2020 Posts: 17 Rating: (0) |
Hello, all. Using a portion of a program I found here, I'm having an up/down counter increase value every 60 seconds, to make a minute counter, and that counter triggers another one to count hours. What I would like to do now is to hold a constant somewhere in the program (say, 2 or 4 or 5 or...) and have the value of a particular counter (the hour counter, for instance) compared to the constant. When the hour counter's accumulated value >= the constant, then I want to set (latching relay) a flag or an output. So far, I'm not seeing a way to store a constant, or to compare two values. Thank you for your help. AttachmentTime_comparison_R1.pdf (490 Downloads) |
10/19/2017 6:44 PM | |
Joined: 12/18/2014 Last visit: 11/11/2024 Posts: 34181 Rating: (4258)
|
You must zip the LSC file and then upload the zip. |
10/19/2017 8:29 PM | |
Joined: 4/29/2016 Last visit: 6/17/2020 Posts: 17 Rating: (0) |
Thank you! AttachmentTime_comparison_R1.zip (435 Downloads) |
10/19/2017 8:53 PM | |
Joined: 12/18/2014 Last visit: 11/11/2024 Posts: 34181 Rating: (4258)
|
In attachment is a possible solution based on your program. AttachmentTime_comparison_R1_V2.zip (600 Downloads) |
This contribution was helpful to1 thankful Users |
10/20/2017 12:53 PM | |
Joined: 4/29/2016 Last visit: 6/17/2020 Posts: 17 Rating: (0) |
I believe that's what I'm after. Thank you so much for your help! |
This contribution was helpful to1 thankful Users |
10/23/2017 10:49 AM | |
Joined: 2/12/2016 Last visit: 1/8/2024 Posts: 69 Rating: (9) |
Hi, counter using byte maped in memory byte.Double word counter divide to two word and compare it. FRANTA AttachmentTime_comparison_R3.zip (571 Downloads) |
This contribution was helpful to1 thankful Users |
Follow us on