Ask the Community
Ask questions, get advice from experts and peers on Digital Automation & Energy Management.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-06-29 12:32 AM
I have a simple counter that counts up every 1 second using a timer. How do I save the value of the counter when a button is pressed? I have tried this by assigning a new memory word value to be the same as the counter value. But because the counter always counts up every second, the memory word also changes every second. How can I save it only when the button is pressed, and it maintains its value.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-06-29 03:33 AM
Hi,
it is possible you provide a example or code you are working?
Before could you try using a public variable in your program?
Regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-06-29 03:33 AM
Hi,
it is possible you provide a example or code you are working?
Before could you try using a public variable in your program?
Regards
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-07-04 01:55 AM
I'm trying to make a stopwatch program using ladder logic. I haven't figured out how to make the "lap" function found in stopwatches. Attached is my LD program, I use a timer that pulses every 1ms with preset 1000. The timer output is then connected to a the CU of a counter with preset 60 (indicating 1 minute). The preset reached of said counter is then connected to the CU of another counter with preset 60 (indicating 1 hour).
I want to save the values of each counter when the lap button is pressed.
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.