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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...