Specifications

EssentialsofCrestronProgramming
69
TheInterlocksymbolwilllatchanoutputhighontherisingedgeofitscorresponding
input.Inaddition,anyotheroutputsignalthatwaspreviouslyhighwillbelatchedoff.
Thusthissymbolwillhaveatmostoneoutputhighatanygiventime.Thispropertyis
calledbreakbeforemake.Inesse
nce,thissymbolwillrememberwhichinputwaslast
drivenhigh,makingitveryhandywhentheuserhastoselectfromanumberofchoices.
IntheVirtualPresentationRoomprogramthissignifiesthatwhentheuserpressesthe
ScreenUpbutton,thiswilltriggertheScreenUpinputoftheinterlocksymbol,latching
theScreen_Up_FBoutputhigh.Sincethisoutputisthedrivingsourceofthe<fb21>
inputofthetouchpanel,thebuttonwillshowactivefeedbackforaslongastheScreen
Upinterlockislatchedhi
gh.
Similarly,whentheuserpressestheScreenDownbutton,thi
swilltriggertheScreen
DowninputoftheInterlocksymbol,latchingthecorrespondingoutputhigh,and
activatingthecorrespondingbuttonfeedback.
NotethatinthisexampletheoutputsignalsoftheInterlocksymbolarebeingusedfor
feedbackonly,andarenotbeingroutedtotheC2Icardtoopenandclosetherelays.
ThisisbecausetheoutputsoftheInterlockarelatched,anditisgenerallyconsidered
poorprogrammingtodrivemomentaryfunctions(suchasarelaycommand)witha
latchingsignal,eventhoughinsomecasesitmaywork corr
ectly.Sincewehave
momentarysignalsalreadyontheinputsideofthesymbol,itis“cleaner”tousetheseto
drivetherelays.
WehaveseenhowtheIn
terlockandTogglesymbolsareeventdriven; thatis,whenan
event(arisingedgetransition,forexample)occursthesymboldrivesitsoutputsignals
totheappropriatelevels.Sometimesthisisnotsufficient,however,andyouneedto
controlwhenthingswillhappen.Inthecaseofrelaycontrols,thecontrolledscreenne
eds
tobeassertedforaperiodoftime,asspecifiedbythemanufacturer.TheOneShot
symbolallowsthistypeoftimebasedcontrol.