message display for a pv +

rjmarinaro

Member
Join Date
Feb 2008
Location
Milwaukee
Posts
30
Hello,
I have a message display that i would like to display messages in on a panelview +. I have many messages that i would like to display in this message display. It is also true that some of the messages that i would like to display would be true at the same time. so therefore i would like to display one message for a set amount of time then go right to the next true message. I am having a hard time in figuring out how to do this. Can anyone help me with this.
 
There are may ways to do this. Myself I would set up a timer. Like a 2 second free running. The done bit of the timer would make true a [FSC] File search and compare instruction. I would compare 2 files. One would be the alarm bits and the other would be a file the same size with all zeros. When a alarm occurs the [FSC] instruction would set the [FD] found bit and report the .POS position of the mismatch. No mater how many alarms you have they would be sequentialy reported every 2 seconds.

Now if your using a contrologix PLC there are complete alarm supervisor logic that would be much better. so hopefully that will give you an idea where to start.
 
ok i will look into doing that. With this will i be able to display one message at a time and then after set amount of time be able to display the next one that is true until they are all done. then reset and scan them again?
I am not familiar with this instruction. I have never used it before. do you have any examples of this instruction. Also i have to load a trigger value in so the proper value will display the proper message. If you have an example of this instruction that would be great.
 
Here's a piece of code that I used some time ago to perform a similar function. Hope it helps at least nudge you in the right direction.

It's written in RSLogix 5000 by the way.
 
bobwithdana said:
There are may ways to do this. Myself I would set up a timer. Like a 2 second free running. The done bit of the timer would make true a [FSC] File search and compare instruction. I would compare 2 files. One would be the alarm bits and the other would be a file the same size with all zeros. When a alarm occurs the [FSC] instruction would set the [FD] found bit and report the .POS position of the mismatch. No mater how many alarms you have they would be sequentialy reported every 2 seconds.
The instruction to use is FBC (File Bit Compare) - see MartB's reply.
The FBC instruction is available on the SLC and would save a lot of typing compared to Okie's "brute force" method.
 
Gerry is right. The code I posted was excised from an existing machine (I did not write it, but have added a couple of alarms). If I were to start from scratch, I would use the FBC too.

Paul
 
Well, I found some errors in the alarm logic for my machine which required quite a bit of work, so in the process, I rewrote the logic using the FBC instruction.

I had to add a whole file for the compare (B20, 30 words), and add some control registers (R6:2 and R6:3), but the logic is much shorter and sweeter.

I also had to fix all the values in the message display to match my bit addresses, since the original code had many skipped ones, and about two dozen that were "out of whack" which was what got me started in the first place.

The FBC finds the mismatch, and stores the result in N15:10. I add "1" to the value before sending it on to the Panelview, since the message display uses a value of zero for a blank message (no alarms).

FBC_Message_CTRL_001.JPG


On a side note, this little SLC did not like having 200-some odd rungs deleted and testing...it caused a watchdog timeout, making my average scan time jump to around 890ms! I never had that problem with a PLC5 ?!?!?. Good thing we are not running production today.
 
Last edited:

Similar Topics

Is there a way to add a local message display to Studio 5000 View Designer? If its there, I’m not finding it. I have used them in older versions...
Replies
11
Views
408
I'm working on a fairly simple project where I need the ability to display some basic fault messages. The scope of this project does not justify...
Replies
21
Views
2,665
Hello, I have been lurking here for awhile and can usually find the answers to my problems. I'm doing my first PanelView application using...
Replies
2
Views
1,260
Hi, Looking for an alternative to the InView units. Have seen the red lion, EZ marquee etc & am also considering a small HMI but my instinct for...
Replies
2
Views
1,509
I use PanelView Plus 7 Graphic Terminals Model: 2711P-T10C22D8S-B PLC: Compact Logic 1769-L36ERM Tag ER[4].8 -> ON, the message is "1046 Abnormal...
Replies
1
Views
1,758
Back
Top Bottom