Specifications
EssentialsofCrestronProgramming
90
User Modules
CrestronprocessorscontrolserialdevicesusingphysicalstandardssuchasRS‐232,RS‐
422,andRS‐485.UnlikeIR,RS‐232controldoesnotuseready‐to‐godriverfiles.Instead,
theprotocolthatthedeviceisexpectingwillbeprovidedbythemanufacturerinthe
unitʹsdocumentation.Thisprotocolincl
udesthedatathatthedeviceexpectstoreceive
andtransmit,theformatoftheserialcommands,thespeedatwhichitcommunicates
(baudrate),theerrorchecking(parity),andotherelementswhichallhavetobeadjusted
inamoduletomatchthemanufacturerʹsspecification.
Becauseoftheabsenceofadriverfile,RS‐232controlisgenerallyconsideredmore
difficulttopr
ogramthanIR.ThisisbecauseeachtimeanRS‐232deviceistobe
programmed,theprogrammermustlookuptheprotocolinthemanual,andthenwrite
thenecessarylogicintotheprogramtosendth
isdata.(Tocounterthis,manydevices
havededicatedCrestronmoduleswrittenforthem.Thesemodulescanbepluggedinto
aprogramandusedtogenerateallthepropercontrolcodesautomatically.)
TheVirtualPresentationRoomincorporatesasimplemodulethatsendsserialcommand
stringstotheprojectortoturntheprojectoronandoffandtoselectsources.Theserial
outputstrin
gofthemoduleistransmittedtotheCOMportviathe<tx$>inputofthe
builtinserialdriver,andontotheprojectorviatheserialcable.
Elementsofausermodule
AmoduleconsistsofanArgumentDefinition,whichrepresentshowthesymbolwill
lookinSIMPLWindows,andlogicsymbols.
Theinputs,outputsandparametersoftheArgumentDefinitionareassociatedwith
signalsandparametersdefinedinthemodule.