First of all, the title of your thread is wrong. The Siemens LOGO! isn't a PLC but a smart relay. And I think the LOGO! is way to limited to do this the way you describe.
If I would have to do this with a LOGO!, I would use light sensors and comparators to give the LOGO! information about where to search for the sun.
Kind regards,