New File in Downloads - M91 Event Scan

Join Date
Apr 2002
Location
Just a bit northeast of nowhere
Posts
1,117
For users of Unitronics, if you've tried Visilogic, you know one of the best features is the Event Scan functions. These functions let you:

1. Select a vector of Memory Bits to continuously scan.
2. Flag a bit one one of these MB's goes high.
3. Return the position of the bit within the vector
4. Reset the bit within the vector using a Reset function.

There are other features, like scrolling through the bits, but I've never used any except these 4.

Typically, I use this functionality to detect faults and generate messages for the operator. The Flag bit triggers the fault handling routines in my code, and the position is tied to a List of Text variable that reports what happened.

When you use an M91, the lower-level PLC from Unitronics, you really start to miss that function...

So as another great american once said (Hi Terry), "Roll yer own!"

The file I uploaded today has at it's base some code Peter Nachteway shared with us all a few years ago. It takes a 16-bit vector of MB's, converts to an integer, generates an Inverse value and AND's these together. This creates a register with a single bit set - the first fault in the fault vector. Peter also formed the base of the reset logic, XOR of the priotized fault with the original vector.

What I added was an interrupt routine that compares the prioritzed fault integer with a binary sequence of integers (0,1,2,4,8,etc) stored in the M91's built-in database. This allows a fast, efficient return of the exact position of the fault within the vector. You can use this value to generate a fault message.

The reset works by XOR as described, then immediately overwriting the MB vector, thus resetting the fault.

It's fully tested, fully functional, with an example - pressing the keys 1-4 on the M91 keypad generates a message. Pressing the enter key clears it. You can press multiple keys to create multiple faults, then press enter until all are reset - only one is shown at a time.

I suggest getting the latest U90 software from www.unitronics.com , updating the OS in your controller to the latest as well. I've not tried it with an M90, but if anyone does, let us know how it turns out!

Thanks!

TM
 
Last edited:
Peter does it again

Our own Mr Nachtwey has posted a thread providing the second half of his famous fault-prioritization logic below:

http://www.plctalk.net/qanda/showthread.php?t=20432

This solution is far superior to mine, and works like a charm. I've implemented it onto the demo program I posted in the downloads section, but if anyone wants to shout kudos, don't give me any - all I did was type it in. This is Peter's bit of genius here!

Thanks!

TM
 

Similar Topics

Hey y'all!! I'm looking for an old EDS file, GSE 560. I can't find them anywhere. It is for a GSE560 display on a DeviceNet network, with...
Replies
0
Views
21
I have no experience with Eaton HMIs. I downloaded the Galileo software and I am trying to get the file on a HMI (XV-102-H3-70twrl-10) to modify a...
Replies
4
Views
70
I just converted an existing application from RSView32 to FactoryTalkView SE. In RSView32, the Datalog was made in a *.DBF file. There was...
Replies
2
Views
56
Good day all! Can someone help me with the procedure to update Beijers E700 firmware? The Panel I am working on is firmware 2.04v and I would...
Replies
1
Views
54
I have a file which I'm hoping is for a Mitsubishi A172SHCPUN processor but I can't see how to open it in GX Developer V8.102G The file is a zip...
Replies
8
Views
323
Back
Top Bottom