Hi,
Here is my problem. My customer has a machine with about 400 possible alarms. Each one is normally linked to a binary address in the PLC memory. Then I created about 400 DA tags linked to those address.
But, there are also some alarms (64 exactly) which may be fire up only if the associated bit is TRUE and if an analog register has a certain value. Let me explain more clearly with an exemple.
Let's say one alarm is called "OVERLOAD ALARM" but it can occurs on motor 1, 2 or 3. Then, "OVERLOAD ALARM" is linked to the address %MW15.7 and I have to look at the value of %MW651 to know which motor is in fault. If %MW651 = 501 then it's motor 1, 502 its motor 2, etc.
At the end, I want to have 3 DA tags called "OVERLOAD ALARM MOTOR 1", "OVERLOAD ALARM MOTOR 2" and "OVERLOAD ALARM MOTOR 3" which are fire up only if the %MW15.7 bit is TRUE and %MW651 = 501, 502 or 503.
I have to do that with the PDB only and I can't find a solution for the moment... Do someone has an idea about this case?
Here is my problem. My customer has a machine with about 400 possible alarms. Each one is normally linked to a binary address in the PLC memory. Then I created about 400 DA tags linked to those address.
But, there are also some alarms (64 exactly) which may be fire up only if the associated bit is TRUE and if an analog register has a certain value. Let me explain more clearly with an exemple.
Let's say one alarm is called "OVERLOAD ALARM" but it can occurs on motor 1, 2 or 3. Then, "OVERLOAD ALARM" is linked to the address %MW15.7 and I have to look at the value of %MW651 to know which motor is in fault. If %MW651 = 501 then it's motor 1, 502 its motor 2, etc.
At the end, I want to have 3 DA tags called "OVERLOAD ALARM MOTOR 1", "OVERLOAD ALARM MOTOR 2" and "OVERLOAD ALARM MOTOR 3" which are fire up only if the %MW15.7 bit is TRUE and %MW651 = 501, 502 or 503.
I have to do that with the PDB only and I can't find a solution for the moment... Do someone has an idea about this case?