I have a SNMP Parameter (PID 21) of type double. The device sends in exception value "-".
This character is of a different interprete type.
I'd like to add it as an exception but am not able to, even after adding the Others tag.
The parameter only reflects "Not Initialized" when testing.
I referred to the information on exceptions found here and here.
I can't change the interprete type of Parameter 21 as it needs to be trended.
Currently, I tested with the below:
<Param id="21" trending="true">
<Name>sensor1Value</Name>
<Description>Sensor 1 Value</Description>
<Information>
<Subtext>
<![CDATA[Value of Sensor]]>
</Subtext>
</Information>
<Type>read</Type>
<Interprete>
<RawType>other</RawType>
<Type>double</Type>
<LengthType>next param</LengthType>
<Exceptions>
<Exception id="1" value="-1">
<Display state="disabled">N/A</Display>
<Value>-1</Value>
</Exception>
</Exceptions>
<Others>
<Other id="5521">
<Display state="disabled">N/A</Display>
<Value>-</Value>
</Other>
</Others>
</Interprete>
<Alarm>
<Monitored>true</Monitored>
</Alarm>
<SNMP>
</SNMP>
<Display>
<RTDisplay>true</RTDisplay>
<Decimals>3</Decimals>
<Positions>
<Position>
<Page>Control</Page>
<Column>0</Column>
<Row>2</Row>
</Position>
</Positions>
</Display>
<Measurement>
<Type>number</Type>
</Measurement>
</Param>
The parameter that the incoming symbol is compared with:
<Param id="5521">
<Name>exceptionParam</Name>
<Description>Exception</Description>
<Type>fixed</Type>
<Interprete>
<RawType>other</RawType>
<Type>string</Type>
<LengthType>fixed</LengthType>
<Length>1</Length>
<Value>-</Value>
</Interprete>
</Param>
It would be highly appreciated if anyone can share how the exception can be implemented for this scenario. Thank you in advance!
Hi Rajesh,
I just tested a couple of parameters with a similar situation.
If you add this XML to your parameter 21 and remove the tag "Other" this should work fine.
<Exceptions>
<Exception id="1" value="-">
<Display state="disabled">N/A</Display>
<Value>-</Value>
</Exception>
</Exceptions>