Hello,
With the S7-300/400, alarming in the HMI is done using absolute addressing, overlaying HMI tags of type "Word" over bits used in data blocks and using individual bits of each tag as alarm trigger bits in the HMI.
With the S7-1200 and optimized data blocks, the absolute addresses are not available. As I understand it, optimized means that stored bits in data blocks etc. are automatically packed together to save memory. So if I have an "optimized" data block full of fault bits, what is the best way to get them into the HMI as words to use as alarm trigger bits?
It seems there are 2 possibilities I've come across:
1) use the bit to word conversion FC available on the siemens website, which seems a bit ridiculous for large numbers of alarms.
2) Use non-optimized data blocks for faults.
Anyone have a better solution?
Thanks!
With the S7-300/400, alarming in the HMI is done using absolute addressing, overlaying HMI tags of type "Word" over bits used in data blocks and using individual bits of each tag as alarm trigger bits in the HMI.
With the S7-1200 and optimized data blocks, the absolute addresses are not available. As I understand it, optimized means that stored bits in data blocks etc. are automatically packed together to save memory. So if I have an "optimized" data block full of fault bits, what is the best way to get them into the HMI as words to use as alarm trigger bits?
It seems there are 2 possibilities I've come across:
1) use the bit to word conversion FC available on the siemens website, which seems a bit ridiculous for large numbers of alarms.
2) Use non-optimized data blocks for faults.
Anyone have a better solution?
Thanks!