3/14/2023 3:19 PM | |
Joined: 5/27/2022 Last visit: 11/18/2024 Posts: 21 Rating: (0) |
Hi, here's my progress, it's still a long way from the final version, but I'm glad I managed to solve circuit switching using logic blocks. Those digital inputs will then be replaced by programmable buttons and there will be three on one screen because a maximum of eight of them can be placed on one screen. Now I have it like this so that I can more easily switch and try it in the simulations. The first part of the program could be put into the UDF, but the second part cannot because the UDF can only have a maximum of eight inputs, so I would have to divide it further, so I will show it later when I code the third part of the ptogram with which I am just starting. Attachment3CS_V15 share.zip (725 Downloads) |
3/14/2023 3:20 PM | |
Joined: 5/27/2022 Last visit: 11/18/2024 Posts: 21 Rating: (0) |
Attachment3CS_V15 share UDF.zip (654 Downloads) |
3/15/2023 4:54 AM | |
Joined: 3/30/2020 Last visit: 11/18/2024 Posts: 4967 Rating: (1012) |
You are putting too much code into one UDF. PIC1 has 3 red blocks. The code structure in each of the blocks are the same. It is possible to place the code of a red block in a UDF. That would mean that you have to place down the UDF x3 in the main circuit where currently you have x1 big one. PIC2 also has 3 red blocks. Again the code within each of the red blocks are the same. Again the code can be placed in one UDF but then place the UDF down x3. The idea is to break the process down into small portions that is easily debugged. Then those small portions are repeated as needed. If a change is made, only a small code footprint is adapted. Of course this is your project and you do as you want. It is only my "opinion" that you will cope better if you only had to concentrate on a smaller code piece at a time. Attachmentidentify-udf.zip (721 Downloads) |
Activities of this user is voluntary. There is no obligation or liability placed on this user. Though optional, your 'please' and 'thank you' is highly valued. |
|
Follow us on