# How to check whether a Sensor IPMC threshold is set?

**URL:** <https://cern-ipmc-forum.web.cern.ch/t/how-to-check-whether-a-sensor-ipmc-threshold-is-set/41>\
**Category:** Sensors\
**Created:** [November 22, 2019, 2:38pm UTC](https://cern-ipmc-forum.web.cern.ch/t/how-to-check-whether-a-sensor-ipmc-threshold-is-set/41 "2019-11-22T14:38:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![thompson](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/t/d6d6ee/32.png) [@thompson](https://cern-ipmc-forum.web.cern.ch/u/thompson)\
**Post date:** [November 22, 2019, 2:38pm UTC](https://cern-ipmc-forum.web.cern.ch/t/how-to-check-whether-a-sensor-ipmc-threshold-is-set/41/1 "2019-11-22T14:38:54Z")

</div>

Hi CERN IPMC,

When programming sensors there are a choice of 6 thresholds to set:  
lnr,lc,lnc,unc,uc,unr  
It is usual for experts to program only some of these thresholds and depends on the sensor type. For example:  
-,10,-,-,40,60  
On the WinCC side it is useful to be able to iterate over and read back the thresholds on the devices and set alerts at the corresponding values. The problem is that for the thresholds that have not been set the value returned is zero. Then it is difficult to work out if it is not set or set to 0. Is there a flag that says whether the threshold is set or not? Otherwise we will have to do some educated guessing as to what was intended for the different permutations.  
Failing that should we impose that all developers implement all 6 threshold levels in numerical order e.g. -999,10,11,39,40,60 in the above example?  
Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![jumendez](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jumendez](https://cern-ipmc-forum.web.cern.ch/u/jumendez)\
**Post date:** [December 12, 2019, 10:02am UTC](https://cern-ipmc-forum.web.cern.ch/t/how-to-check-whether-a-sensor-ipmc-threshold-is-set/41/2 "2019-12-12T10:02:55Z")

</div>

This question has been solved via e-mail, the ticket is available on the cern-ipmc webapplication: [https://cern-ipmc.web.cern.ch/admin/support/20191128100455](https://cern-ipmc.web.cern.ch/admin/support/20191128100455)

Best,  
Julian

---

<div class="post-metadata">

**Author:** ![jumendez](https://cern-ipmc-forum.web.cern.ch/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@jumendez](https://cern-ipmc-forum.web.cern.ch/u/jumendez)\
**Post date:** [December 12, 2019, 10:03am UTC](https://cern-ipmc-forum.web.cern.ch/t/how-to-check-whether-a-sensor-ipmc-threshold-is-set/41/3 "2019-12-12T10:03:10Z")

</div>

Closed on December 12, 2019, 10:03am UTC


