Example 5 Example This example offers an introduction into the handling of function block FB_SPA [ } 17] , which is available with the TwinCAT Solar Position Algorithm library. The objective in this example is to determine the sun position on 4 March 2010 at 14:27:00 at the Cheops pyramid in Egypt. Time zone: UTC + 2 hours Latitude: 29.979, [°] Longitude: 31.134 [°] Height: 70 [m] Annual average temperature: 21.7 [°C] Other locations and times are determined similarly. Overview The following steps are now performed: 1. Installation of the PLC library 2. Program structure 3. Test 1. Installation of the PLC library Create a new TwinCAT PLC project and select your target platform.
Your first POU is a program called MAIN and in the programming language ST (Structured Text). Mark node References and insert the library Tc2_SPA. TF3900 23 Version: 1.1.1