PDA

View Full Version : VDM programming help


kikireef
10/12/2011, 11:13 AM
I am really hoping someone can help me out here. I am having a hard time programming my VDM module. I tried copying other peoples who I have seen post here then modifying it to be my own but am soooo confused as to what I am doing. My goals are this:

All light come on 3 hours after sunrise and ramp up for 60 minutes to full intensity. Full intensity being 50 for Blue and Royal Blue and 40 for White. I then would like all lights to ramp down for 60 minutes and be completely dark 3 hours after sunset. I would also like my royal blue leds to be the moon lights using the moon cycle with a maximum intensity of 3 such as the profile I made.

After making 2 profiles for each light to ramp up and down I realized I only need one profile for the blue/royal blue leds and not 2 since they were going to ramp at the same speed and to the same intensity. I think....like I said I am so confused.

If someone would even be willing to copy this post and edit my outlets/profiles to to make it all work I would be so happy.

Outlets

All AI units are all programmed this way
Fallback OFF
Set OFF
If Outlet BlueLED = ON Then ON
If Outlet WhiteLED = ON Then ON
If Outlet RoyalblueLED = ON Then ON

Sunrise
If Sun 180/000 Then ON
If Outlet Daytime = ON Then OFF

Daytime
If Sun 240/000 Then ON

Sunset If Sun 240/180 Then ON
If Outlet Daytime = ON Then OFF

Storming
Set OFF

BlueLED
Fallback OFF
Set OFF
If Outlet Sunrise = ON Then BlueUp
If Outlet Sunset = ON Then BlueDn
If Outlet Storming = ON Then Storm

WhiteLED
Fallback OFF
Set OFF
If Outlet Sunrise = ON Then WhiteUp
If Outlet Sunset = ON Then WhiteDn
If Outlet Storming = ON Then Storm

RoyalblueLED
Fallback OFF
Set OFF
If Moon 000/000 Then MoonLt
If Outlet Sunrise = ON Then BlueUp
If Outlet Sunset = ON Then BlueDn
If Outlet Storming = ON Then Storm

Profiles

BlueDn
ramp
60
50
0

BlueUp
ramp
60
0
50

RoyalDn
ramp
60
50
0

RoyalUp
ramp
60
0
50

WhiteDn
ramp
60
40
0

WhiteUp
ramp
60
0
40

Storm
weather
20
100
1
50
50
75

MoonLt
ramp
30
0
3

Thanks
Keith

fas77
10/12/2011, 02:48 PM
This is my current program for AI's


Outlets

AI_Blue
Fallback OFF
Set OFF
If Time 10:00 to 11:00 Then Blue_Up
If Time 11:00 to 20:30 Then Blue_On
If Time 20:30 to 21:00 Then Blue_Dn
If Outlet Storming = ON Then Storm


AI_White
Fallback OFF
Set OFF
If Time 10:00 to 11:00 Then White_Up
If Time 11:00 to 20:00 Then White_On
If Time 20:00 to 20:30 Then White_Dn
If Outlet Storming = ON Then Storm


AI_Royal
Fallback OFF
Set OFF
If Time 10:00 to 11:00 Then Royal_Up
If Time 11:00 to 20:30 Then Royal_On
If Time 20:30 to 21:00 Then Royal_Dn
If Time 21:00 to 23:30 Then Moon_On
If Time 23:30 to 00:00 Then Moon_Dn
If Outlet Storming = ON Then Storm


Profiles

White_Up
Ramp Time 60
Start Intensity 0
End Intensity 65


White_Dn
Ramp Time 30
Start Intensity 65
End Intensity 0


Blue_Up
Ramp Time 60
Start Intensity 0
End Intensity 55


Blue_Dn
Ramp Time 30
Start Intensity 55
End Intensity 0


Royal_Up
Ramp Time 60
Start Intensity 0
End Intensity 55


Royal_Dn
Ramp Time 30
Start Intensity 55
End Intensity 10


Moon_Dn
Ramp Time 30
Start Intensity 10
End Intensity 0


White_On
Ramp Time 0
Start Intensity 65
End Intensity 65


Blue_On
Ramp Time 0
Start Intensity 55
End Intensity 55


Royal_On
Ramp Time 0
Start Intensity 55
End Intensity 55


Moon_On
Ramp Time 0
Start Intensity 10
End Intensity 10


Storm
Light Maximum Intensity 60
Cloudy Light Intensity 40
Cloud Duration (MMM) 5
Cloudy Time (%) 50
Probability of Lightning (%) 50
Lightning Intensity (%) 100

kikireef
10/12/2011, 03:11 PM
That is similar to what im going for and I may just copy some of that if I can't figure this out. However I would really like to use the season table for moon lights and regular lighting with a 3 hour delay for sunrise and sunset.

kikireef
10/15/2011, 10:30 AM
Well I think I figured it out for the most part. My question now is just what would the programming be for Sunrise / Daytime / Sunset? All ramp times up and down are 60 minutes so what would I program each to accomplish all lights ramping up 3 hours after sunrise and completely dark after sunset?

BlueLED
Fallback OFF
Set OFF
If Outlet Sunrise = ON Then BlueUp
If Outlet Daytime = On Then BlueOn
If Outlet Sunset = ON Then BlueDn
If Outlet Storming = ON Then Storm

WhiteLED
Fallback OFF
Set OFF
If Outlet Sunrise = ON Then WhiteUp
If Outlet Daytime = On Then WhiteOn
If Outlet Sunset = ON Then WhiteDn
If Outlet Storming = ON Then Storm

RoyalblueLED
Fallback OFF
Set OFF
If Moon 000/000 Then MoonLt
If Outlet Sunrise = ON Then BlueUp
If Outlet Daytime = On Then BlueOn
If Outlet Sunset = ON Then BlueDn
If Outlet Storming = ON Then Storm

Profiles

BlueDn
ramp
60
50
0

BlueUp
ramp
60
0
50

BlueOn
0
50
50

WhiteDn
ramp
60
40
0

WhiteUp
ramp
60
0
40

WhiteOn
0
40
40

Storm
weather
20
100
1
50
50
75

MoonLt
ramp
30
0
3

kikireef
10/15/2011, 11:08 PM
Still confused. I think it's working but I would REALLY appreciate someone's input. Still all of my last posts profiles and outlets are the same. These are my outlets for Sunrise/Daytime/Sunset. Does this look right or are my outlets conflicting with one another?

Sunrise
If Sun 120/180 Then ON
If Outlet Daytime = ON Then OFF
If Outlet Sunset = ON Then OFF

Daytime
If Sun 180/180 Then ON
If Outlet Sunset = ON Then OFF

Sunset
If Sun 000/180 Then ON