184
B.1 Modbus and the XNX transmitter
TheXNX
®
gassensormaybettedwiththeoptionalModbus
®
interfacecard(P/NXNX-MB)�Authoritativeinformationon
theModbusprotocolcanbefoundatwww�modbus�org�
TheXNXsupportsModbus/RTUoveranRS-485physical
layer�Theinterfaceisisolatedandincludesaswitchable120
Ohmterminationresistor�Baudratesfrom1200to38,400are
supportedwith19,200asthedefault(8databits,evenparity,1
stopbit)�
MostoftheoperationsthatarepossiblewiththeHART
®
and
localuserinterfacescanalsobeperformedusingtheModbus
interface�Thisincludestest,calibrationandconguration
operations�ThisappendixdescribesonlyhowtomonitorXNX
statususingModbus�
Thezerocalibrationprocedureshouldbeperformedpriorto
thespancalibration�ThecalibrationprocedureisinSection
3�2�1�
SomeoftherelevantModbusholdingregistersarelistedinthe
followingtable�Inmostinstallations,theXNXtransmitterreads
onlytherstveregisters(fourdata)�Theassignmentoftherst
eightregisters(orsixdata)isidenticaltotheHoneywellAnalytics
XCDgassensor�
BuildinganeffectiveModbusautomaticgasdetectionsystem
requirescheckingforfaults(usingiFaultWarnNumberor
iAlmFltLev)andcheckingiMonitoringStatetoconrmthatthe
XNXisnotinhibitedorincalibration�Thepseudocodeexample
inFigure247suggestscomputationthatshouldbemadein
externalautomationequipment�
SeeSection2�3�4forinformationoninstallingtheoptional
Modbushardware�SeeSection2�5�1forinformationon
settingtheModbusbaudrateandaddressusingthelocal
userinterface�SeeSectionA�1�1forinformationonsettingthe
ModbusparametersusingtheHARTinterface�
if(
((fCurrentConc < TLV) or (iAlmFltLev & 3 == 0))
// low concentration
and
((iFaultWarnNumber < 1000) or (iAlmFltLev & 64 == 0))
// no fault
and
((iMonitoringState == 1) or (iMonitoringState == 7))
// not inhibited
and
(
(Transport layer SW indicates good Comm.)
or
(iHeartBeat changes every 5 seconds)
) // Modbus link healthy
) Then the area is safe.
Figure 247. Modbus Pseudo Code Example
Modbus connections are shown in the ollowing gure.