Jump to content

Something to take into account while developing a project and using alarms on Visilogic.


Recommended Posts

Today I found out a funny thing... those silly ones that make you want to bang your head against the wall.
Let's name the development project A and the production project B

So, I was adding a new feature to project A (which in general has some experimental things). when I was happy with the result, I exported a subroutine packing all related to this new feature in it, to project B.
However, this case project B had one of the MIs used in that subroutine, previously assigned to an alarms group.

image.png.f571976ef75143df1c0a3b87c8b44e0c.png

image.png.2df517a48c8260cf94de6c83e13f8263.png

 

This was not a big deal since that alarm group was declared at some point in time, but since I never added anything at all, I decided to delete Group 5 from the alarms.
Did a quick search of MI166 to make sure that is not being used in any other place and proceeded with the changes, as usual, compile, download and test.

image.png.2091d69003305836e378616ce418254a.png

So, after deleting and testing happened that I wasn't able to use MI166, it was always overriding whatever value I stored on it to a 0 value.
I felt dumb after investing a lot of time in searching all vector-related functions (I believed that I may have been storing that 0 value by accident while using some vector).
And then I remember the alarm group... It couldn't be right. why that should be interfering with the rest of the code if I already had it deleted?

So, I decided to create it again, and it auto-populated with the same MIs and MBs, I re-assigned new MIs and MBs to it:

 

image.png.ebc11d8b1733027ece2af9b358605f02.png

And only then I was able to properly use MI166.

I know that it would have been faster just to choose another MI instead of MI166, but I needed to get to the bottom of this Mystery.

So, if someone gets one of these rebel registers that refuses to cooperate, it may be worth it to take a look at the alarms.

 

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...