RayTek FA Thermometer User Manual


 
ProgrammingGuide
MarathonSeriesFA/FR 39
9ProgrammingGuide
Thissectionexplainsthesensor’scommunicationprotocol.Usethemwhenwritingcustomprograms
foryourapplicationsorwhencommunicatingwithyoursensorwithaterminalprogram.
9.1RemoteversusManualConsiderations
Sincethe sensorincludesalocaluserinterface,thepossibilityexistsforapersontomakemanual
changestoparametersettings.Toresolveconflictsbetweeninputstothesensor,itobservesthe
followingrules:
Commandprecedence:themostrecentparameterchangeisvalid,whetheroriginatingfrom
manualorremote.
If
amanualparameterchangeismade,thesensorwilltransmita“notification”stringtothe
host.(Notificationstringsaresuppressedinmultidropmode.)
Amanuallockoutcommandisavailableintheprotocolssetsoth ehostcanrendertheuser
interface“displayonly,”ifdesired.
Allparameterssetviathe
2wayinterfaceareretainedinthesensor’snonvolatilememory.
Whenaunitisplacedinmultidropmodeitsmanualuserinterfaceisautomatically
locked! It can be unlocked with the command XXXJ=U <CR>, where XXX is the
multidropaddress.
9.2CommandStructure
Protocolsarethesetofcommandsthatdefineallpossiblecommunicationswiththesensor.The
commands are described in the following sections along with their associated ASCII command
charactersandrelatedmessageformatinformation.Typesofcommandsincludethefollowing:
1. Arequestforthecurrentvalueofaparameter
2.
Achangeinthesettingofaparameter
3. Definingtheinformationcontents ofastring (eithercontinuouslyoutputor periodically
polledattheoptionoftheuser)
Thesensorwillrespondtoeverycommandwitheitheran“acknowledge”ora“notacknowledge”
string.Acknowledgestringsbeginwiththeexclamation
mark!andareeitherverificationofaset
commandoraparametervalue.
Iftheunitisinmultidropmodethe3digitaddresscanbesentout
beforetheexclamationmark.
Forachangeinthesettingofaparameter,therangeofpossiblesettingvaluesisdefined,and,ifthe
hostinputsavalueoutsidetheallowedrange,anappropriate“error”response
charactershallbe
transmittedbackbythesensor.
Allcommandsmustbeenteredinuppercase(capital)letters.Also notethatleading
andtrailingzerosarenecessary!