Solar tracker library for PLCnext Technology

Hello PLCnext Technology community , I have written a Solartracker program in eclipse. INPUT parameters are: DAY int16

MONTH int16
YEAR int16
UTC_HOUR int16
UTC_MINUTE int16
UTC_SECOND int16 TIME_OFFSET float32 LON float32 (E = positive, W = negative)
LAT float32 (N = positive, S = negative) ENABLE bit (Positive edge starts calculation) OUTPUT parameters are: SUNRISE float32 (Time as float! Hours, minutes and seconds must be calculated!)
SUNSET float32 (Time as float! Hours, minutes and seconds must be calculated!)

EL float32 (Elevation)
AZ float32 (Azimut)
DAYLIGHT_FLAG bit (True if sun is shining)

DONE bit (True for one cycle, if calculation is done) A sample PCWE Project is also included as attachment, to test the library.

I’m looking for a function like this but I got problems to implement it in my project. Can you help me?

Hello, The developer of this library has agreed to answer your questions in the forum … I will send him a reminder. ~ Martin.

Hello, nice to see the interest in my solar-tracker function block. The point is, that this version above is outdated, because it was made for firmware 1.01 and will not be compatible with the 2xxx firmware verisons. But luckily, that function block is used for my home automation to control the blinds and to activate the motion detectors after sunset, and here is the newest version: Solartracker.7z.pdf Download the file and remove the .pdf extention! Take care about the change in input and output parameters! Descriptions of any structure is inside the .chm file. Feel free to use the function block and if you figure out any issues, please let me know. Best regards Michael