Related Products
Bosch encoders
Step-by-step guide
Place this in the alarm task editor and save it. Please read the comments for more details. They are noted below by //.
|
//Define weekly timer from Monday to Sunday from 7am to 9pmTimer weekly := {TimeBegin(07:00) TimeEnd(21:00) DayBegin(Mo) DayEnd(Su) };//define what is to be recordedRecording recording:= { Camera(All) };// Define Operation Mode to periodic, 1 sec low 30 min highOperationMode periodic := { Low(10) High(18000) };TempState(1):=periodic;//define recording timerOperationMode monostable := {High(50)};TempState(2):=monostable;//Turn on recording timerif (IsActivated(weekly)) then TempState(1) := true;if (TempState(1)) then TempState(2) := true;if (TempState(2)) then recording else Stop(recording); |
|---|