Specifisaurus Posted July 7, 2015 Report Posted July 7, 2015 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.
Cara Bereck Levy Posted July 8, 2015 Report Posted July 8, 2015 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. 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.
Specifisaurus Posted July 8, 2015 Author Report Posted July 8, 2015 Thank you Cara I will give it a look.
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