Input Location assignments are as follows:
|
| Input | Location |
|
|
| Location | Label | Description |
|
| 1..5 | Temp #1..#5 | Avg temp, greenhouse 1..5 |
|
| 10..14 | Heat #1..#5 | Heater control, greenhouse 1..5 |
|
|
|
| Port 1..5 |
|
| 15..19 | Cool #1..#5 | Cooler control, greenhouse 1..5 |
|
|
|
| Port 6..10 |
|
| 20..24 | Fan #1..#5 | Fan control, greenhouse 1..5 |
|
|
|
| Port 11..15 |
|
|
| ||
1: Beginning of Loop (P87) |
| Master Loop, End | ||
1: | 0 | Delay |
| Loop at Step 30 |
2: | 5 | Loop Count |
|
|
START HEATER CONTROL LOGIC |
| |||
2: If X<=>F (P89) |
|
| If "Heater On" | |
1: | X Loc |
| threshold is | |
2: | 4 | < |
| exceeded |
3: | 23.5 | F |
| Then |
4: | 30 | Then Do |
| |
3: Z=F (P30) |
|
| Put a "1" into Heater | |
1: | 1 | F |
| Control Location |
2: | 0 | Exponent of 10 |
| |
3: | Z Loc : |
|
| |
4: End (P95) |
|
| End Then Do/End | |
5: If X<=>F (P89) |
|
| If Heater | |
1: | X Loc |
| #1 on (Heater Control | |
2: | 2 | <> |
| Location <> 0) |
3: | 0 | F |
| Then |
4: | 30 | Then Do |
| |
6: If X<=>F (P89) |
|
| Temp #1 Check Upper Threshold | |
1: | X Loc |
| ||
2: | 3 | >= |
| to see if heater should |
3: | 25.5 | F |
| be turned off |
4: | 30 | Then Do |
|
|
7: Z=F (P30) |
|
| If heater should be turned | |
1: | 0 | F |
| off, enter a "0" into |
2: | 0 | Exponent of 10 | heater control location | |
3: | Z Loc : |
|
| |
8: End (P95) |
|
| Else Then Do/End | |
|
|
|
|
|
12