Jump to content

Warnings that are really suggestions - a Rant


Joe Tauser

Recommended Posts

  • MVP 2023

I just installed a copy of UniLogic 1.33.373 as I want my program to be compatible with the chipsets in the IO modules that are now shipping.  

I'm currently entering IO tags and descriptions.  As is my habit, I compile and save from time to time to make sure I'm not screwing something up.  I entered some tags and compiled with no code and got this "Warning":

image.png.b67546d26ec3b74c3e5b61a93229a23b.png

 

Most programmers I know do their best to write their code so Warnings don't occur.  This particular Warning is not something I can make go away.  So like a good little boy I took the software's advice and implemented the System Error struct to log errors into a data table.  Surely this would make the UniLogic AI bot happy - 

image.png.ba843d62efbed97afa81904006c36800.png

 

But Nooooo!  

image.png.ca26fc1a76edc86eb25bc27d7d073173.png

Hey, UniLogic AI bot!  Take a look at the "D" parameter!  A value of 1 means Async IS set to 'true'!

So I'm not even out of the chute yet and my program has Warnings.  Gah.

@Cara Bereck Levy - I see there's a "Messages" tab on the Error List window.  Could these suggestions possibly be directed there?  The Warnings tab is kind of hallowed ground.

 

Joe T.

 

Link to comment
Share on other sites

@Joe Tauser

The warning will appear when ever you use insert row, and it will increase the scan time even if it's async. The task still runs on the CPU.

We have recently had a customer that was not understanding why the scan time is so high, and he said that all he does is writing a DT Row. I said that he might be using insert row instead of write row, and he said "no". Then we saw that he uses insert row async.

When you insert a row, the CPU has to copy all the rows below to a new address. The more rows (data) it has the copy, the more the CPU will work .

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.