7/27/2016 4:40 PM | |
Joined: 6/3/2014 Last visit: 1/17/2023 Posts: 660 Rating:
|
Hello JAC2016, there is two part of this: 1) Generate a word as alarm trigger tag in the plc from a bunch of booelan tags. 2) Add alarms to the trigger tag in HMI. So... about 1): You need to set/reset a bit in the word tag if a correlating bool is set/reset. How this Looks depends on your programming language. One very basic option would be to add something like:
You can do this for each bool. Alternatively you use a loop of some kind, for example: You Need an array of bool 'boolarray(0..lastBool)'
The function "DECO" sets the bit on the position of #index to 1. Don't forget to reset your triggerTag word to 0 if the Alarm is going/acknowledged. About 2:
|
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ★ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ |
|
7/27/2016 6:37 PM | |
Posts: 50 Rating:
|
Got it, I configured the alarm... I will try it as soon as the HMI comes Thanks... |
7/28/2016 1:24 PM | |
Joined: 1/30/2006 Last visit: 11/28/2023 Posts: 310 Rating:
|
Hello JAC2016 There is, as you can see, lot's of ways solving this issue. Thy to see this FAQ, basicly solving the same problem, but using the AT overlay. https://support.industry.siemens.com/cs/ww/en/view/57132240 |
BR. Sven |
|
Follow us on