Function blocks The following type conversion can be used for converting the variable fSunrise (same procedure for fSuntransit and fSunset ) to TIME format: tSunrise := LREAL_TO_TIME(fbSPA.fSunrise*60*60*1000); Requirements TS3900 16 Version: 1.1 Development environment Target platform PLC libraries to be linked TwinCAT v2.10 build >= 1320 PC or CX (x86, ARM) TcSPA.Lib