Jump to content

Event Scan Equivalent


Recommended Posts

Hi All,

 

Just picking brains. In the old Visologic software there was the Event Scan function which I found to be very useful and helpful in a lot of instances. I noticed that the Unistream doesn't have the same function (unless I just over looked it) any thoughts on how to get a similiar effect without 100 lines of code listing every bit?

 

I've tried putting all the bits into an array, then converting bits to numeric and using math to watch the numeric to see how many bits are on... just seemed kinda clunky, funky and painful. :)

Link to comment
Share on other sites

Hi :-)
In UniLogic, the Events function is performed by a UDFB, rather than a Ladder function.

 

If you have downloaded the UniLogic sample applications, there is one called UniStream_070_Events_UDFB.ulpr

You can open this application, tailor the function to your needs,  export the Events function into your library, and use it anywhere.

There is more information on the Library in the Help topic: Reusing Your Work: UDFBs & Screens, but following image shows the basics.

 

Sample App Events

 

 

If you aren't familiar with UDFBs, there is information in the Help topic>User-Defined Function Blocks --and also the tutorial I've linked to below.

 

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