6/9/2009 9:57 PM | |
Joined: 3/18/2009 Last visit: 5/6/2024 Posts: 306 Rating: (94) |
Well, I don't know of any such block in the standard Siemens libraries. However there is such a block in the Open source community (OSCAT) library called SUN_TIME. You can download the library from OSCAT websitewww.oscat.de(I was not able to reach oscat website currently, may be the site is down for maintenance) I have attached the SCL source code for the required blocks. Read the comments to understand the working. Take care of the compilation order and symbol names definition.
AttachmentOscat.zip (465 Downloads) |
This contribution was helpful to2 thankful Users |
6/10/2009 8:41 PM | |
Posts: 3 Rating: (0) |
Hello, I can't reach that website either. I've found in the faq's a topic that perfectly fits my needs... but is a STEP 7 Micro/WIN library. Is this convertable?
https://support.automation.siemens.com/WW/llisapi.dll/35146699?func=ll&objId=35146700&objAction=csView&lang=en&siteid=cseus&aktprim=0&extranet=standard&viewreg=WW&load=treecontent Thanks |
6/11/2009 10:13 AM | |
Joined: 1/4/2008 Last visit: 6/19/2024 Posts: 703 Rating: (96) |
Hello, don't think it would be easily converted You can use the source attached by daga or you can calculate it yourself, look here. Regards Sydney |
This contribution was helpful to2 thankful Users |
3/5/2016 5:25 PM | |
Joined: 6/5/2014 Last visit: 4/25/2021 Posts: 109 Rating: (1) |
Dear adad, I think this can help you ,i already convert this function and the attach contains the program, First of all you must insure that the PLC Clock is correct and there is no call for SFC0 in your program. Best Regards, AttachmentAstronomical_Clock.zip (456 Downloads) |
3/7/2016 7:19 AM | |
Joined: 1/21/2013 Last visit: 6/6/2024 Posts: 4620 Rating: (705) |
Dear Mahmoud, OK, but did you see the date of this thread? 6/9/2009 9:10 PM |
8/9/2016 8:26 PM | |
Joined: 11/4/2013 Last visit: 8/4/2023 Posts: 5 Rating: (0) |
@Mahmoud.Hazemthanks you for this good job. did you have a document to explain each step of your calcul.... thanks |
6/21/2019 4:21 PM | |
Joined: 8/21/2008 Last visit: 6/9/2024 Posts: 3 Rating: (0) |
Hello! Building my greenhouse came also to this problem (Watering and ventilation should be according to sun). Used "Oscat" attachment as source sucessfully got right sunrise and sunset. Added time zone for correct times. Attached project should be plug and play with small reconfigurations for all S7-300 and S7-400 PLCs. S7-1200 and S7-1500 better use LGF_ASTRO (Library from Siemens) for these purposes. AttachmentAstro.zip (392 Downloads) |
This contribution was helpful to2 thankful Users |
Follow us on