Hier een PAL script waarin alles zit wat je nodig hebt.
Decks en Encoders starten en stoppen op de tijd die je hebt aangegeven.
LET WEL OP !! Je clockwheel leeghalen en het PAL script automtisch laten starten als SAM eventueel herstart moet worden.
Code: Selecteer alles
PAL.Loop:=True;
PAL.LockExecution;
while ((Now >= T['10:59:00'])) and (Now <= T['20:59:00']) and (Queue.Count < 3) do
begin
PAL.UnLockExecution;
Cat['HITs'].QueueBottom(smLRP, EnforceRules);
Cat['2000s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['90s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['90s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['HITs'].QueueBottom(smLRP, EnforceRules);
Cat['70s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['90s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['2000s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['80s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['HITs'].QueueBottom(smLRP, EnforceRules);
Cat['2000s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['70s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['HITs'].QueueBottom(smLRP, EnforceRules);
Cat['90s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['80s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['80s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['2000s'].QueueBottom(smLemmingLogic, EnforceRules);
Cat['2000s'].QueueBottom(smLemmingLogic, EnforceRules);
PAL.LockExecution;
end;
while ((Now >= T['10:59:40'])) and (Now <= T['10:59:45']) do
begin
PAL.UnLockExecution;
Encoders.StartAll;
PAL.WaitForTime(T['+00:00:10']);
DeckA.Next;
DeckA.Play;
PAL.WaitForTime(T['+00:00:10']);
PAL.LockExecution;
end;
while ((Now >= T['21:00:00'])) and (Now <= T['21:00:10']) do
begin
PAL.UnLockExecution;
Encoders.StopAll;
PAL.WaitForTime(T['+00:00:10']);
DeckA.Stop;
DeckA.Eject;
DeckB.Stop;
DeckB.Eject;
Queue.Clear;
PAL.WaitForTime(T['+00:00:10']);
PAL.LockExecution;
end;
PAL.UnLockExecution;