Thread Content
I had nothing to do today, so I created a countdown timer. I’m curious to know how many different ways people have of implementing this; I used two methods myself. Let’s exchange ideas together! It’s quite interesting
Just started learning *CS3000, keeping an eye on it!
It seems like just using a timer will do; I hadn’t noticed that. .
Can LZ share your achievements with everyone?
There are a few simple ways: 1. Create a timer directly, and then you can read the countdown number; 2. Use it as a timer, then subtract the timer’s display value from a number, and connect a PVI block ; 3. Create a CALCU+ timer. It should still be used
Reply to 4# jacob451: I used the simplest approach – I created a few separate numbers, and their colors changed as another timer progressed. Of course, this is a rather crude method; if counting down from ten, I would choose this approach. The effect I want to achieve is to go from no numbers to 10 appearing, and finally have the 0 disappear. The second method is the one people talk about, which involves using a timer-driven DV; however, it has a drawback: 10 appears at the beginning and 0 appears at the end. Combining it with other color-changing methods should allow achieving the same effect as the first method. (If it’s a countdown from 1000, of course this method would be used, hehe.) For the second method, I thought of specifying that the element should become transparent when TM.BSTS="STOP" OR TM.BSTS="CTUP"; I’m not sure if this will achieve the same effect as the first method, as I haven’t tried it yet. Thank you all for participating; the CS3000 is quite interesting.
Reply to 5# WXJ198354: Thank you, smart
I tried to call DV? It doesn’t seem to work. After setting TM.OP to START, BSTS becomes NR, but no timing occurs. My unit of measurement for time is minutes, and neither PV nor DV changes. I’ve waited for several minutes with no change
If the countdown is a fixed-value timing, that is, the initial value remains constant such as 700, then by using a calculation block to set CPV=700-TM.PV, a countdown can be implemented. When CPV becomes 0, the timer stops automatically and the output is set to 0. It hasn’t been implemented yet; I need to give it a try myself when I have time!
Sequential control tables are easier to implement! ! ! ! !