
(* any combination of xbots and flyways - SetDateAndTime *)
FUNCTION_BLOCK Example36_SetDateAndTime
	IF Execute AND NOT(PMC_SetDateAndTime1.Execute) THEN
		TimeError := RTC_gettime(ADR(LocalTime));
	END_IF;
	
	PMC_SetDateAndTime1(Execute := Execute,Year := LocalTime.year,Month := LocalTime.month,Day := LocalTime.day,Hour := LocalTime.hour,Minute := LocalTime.minute,Second := LocalTime.second,PM_Controller := PM_Controller);
	Done := PMC_SetDateAndTime1.Done;
END_FUNCTION_BLOCK
