17
Programmingforthiscase:
UL0:
02.51.01.01–Type:adjustedto“OR”
02.51.01.10–Input1:adjustedto“23h”
02.51.01.11–Input2:adjustedto“0h”
02.51.01.20–Out:adjustedto“RT000”
UL1:
02.51.02.01–Type:adjustedto“OR”
02.51.02.10–Input1:adjustedto“1h”
02.51.02.11–Input2:adjusted
to“L0111”
02.51.02.20–Out:adjustedto“RT001”
UL2:
02.51.03.01–Type:adjustedto“OR”
02.51.03.10–Input1:adjustedto“RT000”
02.51.03.11–Input2:adjustedto“RT001”
02.51.03.20–Out:adjustedto“RT002”
UL3:
02.51.04.01–Type:adjustedto“NAND”
02.51.04.10–Input1:adjustedto“RT002”
02.51.04.11–Input2:adjustedto
“RT002”
02.51.04.20–Out:adjustedto“Fl05COPdisable”
UL4:
02.51.05.01–Type:adjustedto“NAND”
02.51.05.10–Input1:adjustedto“RT002”
02.51.05.11–Input2:adjustedto“RT002”
02.51.05.20–Out:adjustedto“Fl05LOPdisable”
NOTE: The temporal registers (RTxxx) are used to nest logic units. It
is possible to read or write a
value.Becauseofthis,atemporalregistermaybeanoutput(towriteto)andanInput(toreadit)
Explanation:
UL0isan ORlogic unitandits outputwill be1if is“23h” or“0 h”.This istrue
from23:00:00until
00:59:59everyday.Duringthistime,theoutputRT000 willbe1(thisoutputisaninternalmemory
positionusedlaterbyUL2)
UL1isanORlogicunitand itsoutputwillbe1ifis“1h”orthekeyswitchinstalledon“L0111”ison.
In other words, if the time is between 1:00:00 am and 1:59:59 am or if the key switch is on, the
outputRT001willbe1
UL2readsRT000andRT001and maketheORlogicoperationstoringthe valueatRT002.Withthis,
RT002willbe1everyday
between23:00:00pmand1:59:59am,orifthekeyswitchisatONposition
UL3andUL4readstheRT002value andmakeaNOTfunction.Ifthevalueis1,itwillbechangedto0
and vice‐versa. (A NAND logic unit with both inputs programmed at the
same value is a NOT logic
unit)
Iftheoutputs“Fl05COPdisable”and“Fl05LOPdisable”are1,thentheCOPandLOP pushbuttons
offloor5aredisabled.BecauseofthisweuseUL3andUL4tochangethevalueofRT002(remember
thatRT2is
1duringtheopeninghoursofthemusicbarorifthekeyswitchisON).