6/6/2019 11:13 AM | |
Joined: 12/18/2014 Last visit: 9/12/2024 Posts: 33749 Rating:
|
I am looking forward to that .... |
6/6/2019 2:31 PM | |
Joined: 12/18/2014 Last visit: 9/12/2024 Posts: 33749 Rating:
|
I made a small example with two UDF and a programm. In attachment you can see a screenvideo. The counter in the counter UDF counts down correct. I think, your problem in your UDF is that you make down counters (LOW-block on Counter Input DIR), but you set no startvalue. So is at default the start value 0. How should the counter down from 0? AttachmentUDF Counter Test.zip (189 Downloads) |
6/6/2019 2:51 PM | |
Posts: 12 Rating:
|
Hi. I have come closer to solve the problem. I see the problem is in your example also. If I put in a counter in a clean program and put the values in the counter directly. The counter works as it should. The output of the counter doesn't turn on until the on threshold is reached. But if you connect a value to the counter from another source, the output goes directly to HIGH without the threshold being reached. I have made a sample program. Check out the output of the counter. It's ON/HIGH all the time when a value is sent to the counter. But the counter behaves correctly when I have the value hardcoded in the block. Problem found, not solution. AttachmentCounter.zip (169 Downloads) |
6/6/2019 2:59 PM | |
Joined: 12/18/2014 Last visit: 9/12/2024 Posts: 33749 Rating:
|
Second test, the same UDFs, but now up counting. And the counter works correct, the output also. AttachmentUDF Counter Test 2.zip (197 Downloads) |
This contribution was helpful to
1 thankful Users |
6/6/2019 3:55 PM | |
Joined: 12/18/2014 Last visit: 9/12/2024 Posts: 33749 Rating:
|
I had make more tests. The counter switched on, if by referencing only ON parameter become a reference. Become the OFF parameter also a reference then work it well. AttachmentCounter test.zip (185 Downloads) |
Follow us on