Port - Campbell SDM-IO16 User Manual

16 channel input/output expansion module
Table of Contents

Advertisement

SDM-IO16 16 Channel Input/Output Expansion Module
;{CR10X}
;
*Table 1 Program
01: 5
;First configure the IO16 if not already done
;If flag 1 is not set, i.e. the program has just
;been compiled or datalogger powered up.
;Omit the following four instructions if using
;an older datalogger with P104 instead of P188
1: If Flag/Port (P91)
1: 21
2: 30
;Call instruction 188 to set the ports as outputs
;with the outputs set low.
2: SDM-IO16 (P188)
1: 00
2: 90
3: 0000
4: 0000
5: 0000
6: 0000
7: 27
8: 10
9: 1.0
10: 0.0
A-2
Cooling unit:
Activate when temperature >27.5°C.
Deactivate when temperature <24.5°C.
Mixing fan:
Activate whenever the heating or cooling units are activated.
Activate for 5 minutes out of every 15 minutes.
The program assumes that the temperature measurements have been made, and
that the average temperature for each greenhouse is computed and stored in input
locations 1 to 5. For further information on loops and input location indexing,
please refer to your datalogger manual.
Input location assignments are as follows:
Input
Input
Location
Location Label
1..5
Temp #1..#5
10..14
Heat #1..#5
15..19
Cool #1..#5
20..24
Fan #1..#5
Execution Interval (seconds)
Do if Flag 1 is Low
Then Do
SDM Address
Command Code Option
Ports 16-13
Ports 12-9
Ports 8-5
Ports 4-1
Return Code Loc [ ErrCount ]
First Loc [ Heat_1 ]
Mult
Offset
Description
Avg. temp. greenhouse 1..5
Heater control, greenhouse 1..5
SDM-IO16 Port 1..5
Cooler control, greenhouse 1..5
SDM-IO16 Port 6..10
Fan control, greenhouse 1..5
SDM-IO16 Port 11..15
;configure the ports
;Set all ports as output and low
;for return code
;for control values

Advertisement

Table of Contents
loading

Table of Contents