MVP 2023 Flex727 Posted May 26, 2020 MVP 2023 Report Share Posted May 26, 2020 Anyone want to attempt to interpret this warning alarm? "Inserting rows to an 'Indexed Data Table' when the insert index in a small number can increase scan time and cause a CPU Watchdog." Is there a typo in the message? This warning didn't exist in an earlier version of UniLogic and I'm not sure what to do about it. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted May 26, 2020 MVP 2023 Report Share Posted May 26, 2020 As i see in help - WatchDog timer duration = 500 milliseconds. If in project present long DTI with row from 0 to N (i do not know what number N is long???) insert row to 1, 2, 3.... (small number) row make a lot of shift row operation... to N+1 If this operation is to long in time (program "stopped" in point "insert row" ) WatchDog is activated. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 27, 2020 Author MVP 2023 Report Share Posted May 27, 2020 I'm having trouble understanding how this could be a problem. This error message is new (didn't exist in previous versions of UniLogic) and is very annoying. A compile warning should not be generated for every single instance of a standard function block used in a normal way. This type of warning belongs in the Help file, not on compile. @Cara Bereck Levy, can you take a look at this? Feel free to PM me if you want more details. Link to comment Share on other sites More sharing options...
ORSO2001 Posted May 27, 2020 Report Share Posted May 27, 2020 Hi Flex727, usually I also use "insert" and "remove" row in the DTI...and this "warning" is present, I think, from version 1.25.xx...also a warning when you use the "indirect modbus ID or Group ID" function was added...to remember that the FB has not to be the first element in the ladder but a small delay or a "enabling contact" is needed. However ...as I wrote...I usually use "insert" and "remove" command for table about 200-300 rows and I didn't have problem. As Kratmel wrote this can be a problem (watchdog) when the DTI include thousands of rows and you have to insert/remove row 0,1,2... Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 27, 2020 Author MVP 2023 Report Share Posted May 27, 2020 My Data Table has 100 rows and I'm inserting a single row. Every instance of "Insert Row to DTI" triggers a compile warning. This is insane. There should be no compile errors or warnings that cannot be corrected. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted May 27, 2020 MVP 2023 Report Share Posted May 27, 2020 Perhaps this is due to the large length of the row - a large number of columns? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 27, 2020 Author MVP 2023 Report Share Posted May 27, 2020 Three string columns, total 58 characters. Link to comment Share on other sites More sharing options...
MVP 2023 kratmel Posted May 27, 2020 MVP 2023 Report Share Posted May 27, 2020 Is it possible that present this issue from help? ----Be aware that: A Data Table and the Struct it is linked to cannot have identical names. If the names are identical, you will not be able to link the struct members to the parameters of Data Table ladder functions.--- Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted May 27, 2020 Author MVP 2023 Report Share Posted May 27, 2020 2 hours ago, kratmel said: Is it possible that present this issue from help? Nope. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now