Professional Documents
Culture Documents
Rockwell Autoamtion
Rockwell Autoamtion
Rockwell Autoamtion
About This Publication This quick reference provides instructions for using the Solar Positioning
Algorithm with Connected Components Workbench software in a solar tracking
application. The algorithm is provided as part of the Connected Components
Accelerator Toolkit (CCAT).
Investigate parameters for other geographical locations because they are likely to
change.
2 Solar Position Algorithm Connected Components Accelerator Toolkit
The CCAT Solar Tracking Folder in the Sample Code Modules, contains the
following information:
• This Quick Reference document
• The National Renewable Energy Laboratory (NREL) Technical Report
NREL/TP-560-343-2
• RA_SOLAR_POSITION_ALGRTHM UDFB Connected
Components Workbench (CCW) exchange file in 7z format
• An application example showing the possible uses of the
RA_SOLAR_POSITION_ALGRTHM user-defined function block (in
a zipped CCW project folder)
Overview of Solar Positioning Solar trackers orient photovoltaic panels, reflectors, lenses, or other optical
devices toward the sun. Since the sun’s position in the sky changes with the
seasons and the time of day, trackers align the collection system to maximize
energy production.
Closed-loop systems track the sun with a set of lenses or sensors with a limited
field of view, directed at the sun, and are fully illuminated by sunlight at all times.
As the sun moves, it begins to shade one or more sensors. The system detects this
movement and activates motors or actuators to move the device back into a
position where all sensors are once again equally illuminated.
Solar Position Algorithm The National Renewable Energy Laboratory (NREL) Technical Report
NREL/TP-560-34302, revised January 2008, is included with the Solar
Description Positioning Algorithm and sample program. It provides information and code
examples for a Solar Position Algorithm for Solar Radiation Applications. The
accuracy that can be achieved by using this algorithm is equal to ±0.0003° in the
period from year -2000…6000. This report is a step-by-step procedure for
implementing an algorithm to calculate the solar zenith and azimuth angles.
Rockwell Automation used this report to build a standard logic template that can
be implemented by OEMs to develop tracker equipment.
Zenith
Sun (Straight Up
North
West
East
θ = Zenith Angle
South φ= Azimuth Angle
e= Elevation Angle
The zenith angle is the angle between the direction of the sun (direction of
interest) and the zenith (straight up or directly overhead). The user-defined
function block (UDFB) calculates the zenith angle in degrees and provides the
value by means of the Out_Zenith output. The sun’s elevation, or altitude, is the
angle from the horizontal plane and the sun’s central ray or just the compliment
of the zenith angle (90° - zenith angle).
The azimuth angle is measured clockwise from true north to the point on the
horizon directly below the object. The program calculates the local (from
observer) azimuth angle and displays it according to two notations:
• Out_AzimuthAstro output provides the astronomer’s azimuth angle,
measured westward from south (-180…180°)
• Out_AzimuthNavi output (0…360°) denotes the navigator’s azimuth
angle, measured eastward from north, which is most often used in solar
tracking applications
Solar Position Algorithm UDFB The Solar Positioning Algorithm is a user-defined function block (UDFB),
named RA_SOLAR_POSITION_ALGRTHM, which can be imported and
used in Connected Components Workbench software, version 2.0 or later.
Execution Time
These are the execution times:
• Approximately 125 ms for calculation of sunrise, transit, and sunset times
• Approximately 35 ms for calculation of sun’s position
The StsER output parameter, when set high, indicates that the instruction
encountered an error.
Use the Solar Position Algorithm The RA_SOLAR_POSITION_ALGRTHM user-defined function block
(UDFB) is provided as a Connected Components Workbench export file in the
7z format (RA_SOLAR_POSITION_ALGRTHM.7z). The file is in the Solar
Tracking folder within the Sample Code Modules. This folder also contains an
application example (SPA_M830_24QBB_ExampleApplication) that
demonstrates the use of the UDFBs.
You must have a least one UDFB or program already defined in your project
before importing a UDFB or program. To import the UDFB, right-click Import
and choose Import Exchange File.
TIP The instruction uses several other internal UDFBs. These are imported automatically
and do not require any action.
To eliminate the error, follow these steps to change the settings of the controller.
The instruction requires one scan to execute. Because the position of the sun does
not change quickly, you should execute the instruction only when needed.
For proper initialization, do not condition the EN input when EN/ENO bits are
used. See Figure 2. Disabling EN/ENO bits and conditioning the first input of
the instruction does not prevent proper initialization unless the rung is not be
executed at all (for example, the Jump instruction was used). See Figure 3.
The Cmd_Calc input starts the execution of the instruction and calculation of
sun’s position.
The combination of Cmd_Calc and Cmd_SunRTS inputs implies that only the
times of sunrise, transit, and sunset (RTS) are calculated while the position is not.
Because the time needed to calculate the RTS is approximately 200 ms and is
needed only once per day, execute this calculation before the regular operation of
the solar tracker.
One of the possible sources of date and time data for the instruction can be the
real-time clock (RTC). This functionality in Micro830 and Micro850 controllers
is achieved via a plug-in module (catalog number 2080-MEMBAK-RTC).
Always install the module in the first plug-in slot. Configure the module in the
Controller Properties dialog box.
When the module is properly configured and enabled, you can use the
RTC_READ instruction to read data from the RTC. Because of the format of
particular elements of RTC data, the data type is UINT. Convert it to DINT to
match the RA_SOLAR_POSITION_ALGRTHM input data type.
Validation and Test Results The user-defined function block (UDFB) was implemented based on the Solar
Positioning Algorithm (SPA) published in the National Renewable Energy
Laboratory (NREL) Technical Report NREL/TP-560-34302, revised January
2008. NREL refers to the precision of the algorithm as ±0.0003°.
Parameters Values
Start date and time 1/January/2009 00:00:00
End date and time 31/December/2009 23:30:00
Sampling period 30 minutes
Number of samples 17,521
Time zone -7.0 [hours]
ΔT 67.0 [seconds]
Latitude 39.742476 [degrees]
Longitude -105.1786 [degrees]
Elevation 1830.14 [meters]
Average annual pressure 820.0 [millibars]
Average annual temperature 11.0 [degrees Celsius]
Atmospheric refraction 0.5667 [degrees]
Surface slope 30.0 [degrees]
Surface azimuth rotation -10.0 [degrees]
These results justify the statement that the accuracy of the SPA implementation
for Micro800 controllers is much greater than the mechanical accuracy that
standard mechanical systems could provide.
Notes:
Resource Description
Industrial Automation Wiring and Grounding Guidelines, Provides general guidelines for installing a Rockwell
publication 1770-4.1 Automation™ industrial system.
Micro830 and Micro850 Programmable Controllers User Provides a reference guide for Micro800 controller
Manual, publication 2080-UM002 systems, plug-in modules, and accessories. It also contains
procedures on how to install, wire, and troubleshoot your
controller.
Connected Components Accelerator Toolkit Building Block Provides descriptions of the available Connected
Project Descriptions Quick Reference, publication Component Accelerator Toolkit projects.
CC-QR003
Product Certifications website, Provides declarations of conformity, certificates, and other
http://rockwellautomation.com/rockwellautomation/cert certification details.
ification/
Allen-Bradley, Rockwell Software, Connected Components Workbench, Micro800, Micro830, Micro850, and Rockwell
Automation are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Rockwell Otomasyon Ticaret A.Ş., Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400