RMA
Member
I've got a funny problem with some of my alarming. I'm monitoring the state of some motor driven switches using multi-instanced FBs. For testing, in the calling FB I'm jumping over most of the code and just checking one switch so that I can observe the called FB knowing that what I'm seeing relates to only that one switch. I then moved the switch by hand, so that neither the Open or Closed feedback contact was made, thus causing an error. Up to a point evrything seems to work as expected, at least in the called FB, ProTool, the Status DB and the VAT.
This is the called FB
As you can see, the Summary Fault Bit (Sammel_Fehler), the Alarm BIt (Merker Bit for ProTool) and the Fault identification Bit (Einzel_Fehler) are all being set OK. The Fault identification Bit should have been a SET not an assign and while I was changing that, I also tried changing the Alarm_Bit (which is meant to be an assign) to a SET as well, but this didn't change anything.
In the called FB, however, for some reason the Summary Fault Bit is showing up as a "0".
Now this could just be another of those peculiarities that occasionally occur in View mode, but I dont know. What I do know is that everywhere else, all the Bits are in their correct state.
What is more puzzling, is that I thought I'd come up with a cunning way to check whether any of the myriad Alarm Bits was set to trigger a jump to the fault screen in ProTool by adding all the Fault Bits in DWORDS and if the sum was > 0 doing the jump. Nice idea if it worked!
Here's the VAT, as you can see, Merker Bit M1506.4 is set (I borrowed Jesper's Fault messaging system, thanks Jesper!).
But in the calling FB for some reason, the sum remains at zero. As a result, although the alarm and everthing else is set OK and show up in ProTool when I go to the fault screen, the jump to the screen is not performed!
Anybody got any thoughts as to what might be wrong?
This is the called FB
As you can see, the Summary Fault Bit (Sammel_Fehler), the Alarm BIt (Merker Bit for ProTool) and the Fault identification Bit (Einzel_Fehler) are all being set OK. The Fault identification Bit should have been a SET not an assign and while I was changing that, I also tried changing the Alarm_Bit (which is meant to be an assign) to a SET as well, but this didn't change anything.
In the called FB, however, for some reason the Summary Fault Bit is showing up as a "0".
Now this could just be another of those peculiarities that occasionally occur in View mode, but I dont know. What I do know is that everywhere else, all the Bits are in their correct state.
What is more puzzling, is that I thought I'd come up with a cunning way to check whether any of the myriad Alarm Bits was set to trigger a jump to the fault screen in ProTool by adding all the Fault Bits in DWORDS and if the sum was > 0 doing the jump. Nice idea if it worked!
Here's the VAT, as you can see, Merker Bit M1506.4 is set (I borrowed Jesper's Fault messaging system, thanks Jesper!).
But in the calling FB for some reason, the sum remains at zero. As a result, although the alarm and everthing else is set OK and show up in ProTool when I go to the fault screen, the jump to the screen is not performed!
Anybody got any thoughts as to what might be wrong?