
PM1122-INT DIGITAL INTERFACE REMOTE
WWW.APART-AUDIO.COM / INFO@APART-AUDIO.COM
Onepossibilitytohandlethis,isthefollowing:
Aglobalstring“rest_string”mustbedefined.Atstartup,it’sanemptystring.Further,following
proceduresareused:
• instr(1
st
_string,2
nd
_string):thisprocedurereturnsthepositionatwhichthesecondstring
occursinthefirststringor0incasethere’snomatch.
• Left(string,integer):thisprocedurereturnsthebytheintegerspecifiednumbersof
charactersfromthespecifiedstring,startingfromtheleft.
• Right(string,integer):this proceduredoesthesamebutstartingfromtherightside.
• Interpret(string):thisprocedureinterpretsastringwhichincludesaname,azoneand a
valueassendbythePM1122‐INT.
Receive_Handler(stringreceived_string):
{
rest_string=rest_string&received_string
while(instr(rest_string,”\r\n”)<>0)
{
Dimfirst_stringasstring
first_string=left(rest_string,instr(rest_string,”\r\n”)–1)
rest_string=right(rest_string,len(rest_string–instr(rest_string,”\r\n”)–1)
CallInterpret(first_string)
}
}
WhenyouwouldliketocontrolthePM1122withmorethanRS‐232only(e.g.alsowiththewireless
wallcontrolsofthepresetrecallbycontacts),it’swisetokeepTXandRXstrictlyseparated.Asinthe
picturebelow,makeyourapplicationcontroltheP M1122bytheTXportandupdateyourdisplay
onlywiththeinformationcomingfromyourapplicationsRX.Thisway,thedisplaywillalwaysbein
syncwiththePM1122,evenifastatushaschangedbecauseofwirelesscontrolorrecalledpresets
Remark:with“VALFB”seton,thePM1122‐INTonlysendsastringwhenavariableischanged.Ifyou
wanttoknowthecurrent settingswithoutchangingthem,usethe“GETINFO”command.
25
Comentarios a estos manuales