PLC program to "look up" sunrise/set time.
PLC program to "look up" sunrise/set time.
(OP)
Hello,
I am new to PLC ladder logic and need to produce a directSoft program for a DL05. This program should disable a lighting system for 12 different time periods (corresponding to day light) during the year. I am thinking a look up table. As I am still somewhat inexperienced with ladder logic, so an example would be helpful.
Thanks for the help.
Dave
I am new to PLC ladder logic and need to produce a directSoft program for a DL05. This program should disable a lighting system for 12 different time periods (corresponding to day light) during the year. I am thinking a look up table. As I am still somewhat inexperienced with ladder logic, so an example would be helpful.
Thanks for the help.
Dave





RE: PLC program to "look up" sunrise/set time.
Steve
RE: PLC program to "look up" sunrise/set time.
Thanks for the help
Dave
RE: PLC program to "look up" sunrise/set time.
If your PLC stores Date, find out where in memory it stores the Month and the Time. Pick a memory area in you PLC for the table and input it in order of the months in sequential memory locations...ex January set time, february set time and so on through December, Then january rise time, february rise time etc.... Look up the current time in your program to determine if it is AM or PM. If it is AM you will be turning lights off, PM on. Look up the current month. Then look up the rise or set time in your PLC table based on the (First sequential memory location-1) + the month #. If current time = looked up time toggle the lights.
My other suggestion - use the light sensor and just tell people you are using a look up table - they won't know the difference
RE: PLC program to "look up" sunrise/set time.
xnuke
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: PLC program to "look up" sunrise/set time.
<nbucska@pcperipherals.com>
RE: PLC program to "look up" sunrise/set time.
RE: PLC program to "look up" sunrise/set time.
-Dave-
RE: PLC program to "look up" sunrise/set time.