PLCnext on LinkedInPLCnext on Instagram  PLCnext on YouTube Github PLCnext CommunityStore PLCnext Community

  1. admin
  2. PLCnext Technology & PLCnext Controls
  3. Friday, 22 December 2017

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.

Attachments (1)
pudderjagar Accepted Answer Pending Moderation
0
Votes
Undo

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

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hello,

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

~ Martin.

Phoenix Contact Electronics Headquarters - PLCnext Runtime Product Management and Support

migulsch Accepted Answer Pending Moderation
0
Votes
Undo

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

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.