CDCtrl(1) will be sent to port 1, the value held in CDCtrl(2) will be sent to port 2, etc. The value held in CDCtrl(32) would be sent to port 16 on the second
Reps: The Reps parameter is the number of
SDMAddress: The SDMAddress parameter is used to define the address of the CD16AC that will be controlled with this instruction. Valid SDM addresses are 0 through 14. Address 15 is reserved for the SDMTrigger instruction. If the Reps parameter is greater than 1, the datalogger will increment the SDM address for each subsequent device that it communicates with.
NOTE CRBasic dataloggers use base 10 when addressing SDM devices. Edlog programmed dataloggers (e.g., CR10X, CR23X) used base 4 for addressing (see Table 2).
TABLE 2. Base 10 to Base 4 Reference Chart
Base 10 | Base 4 | Base 10 | Base 4 |
0 | 0 | 8 | 20 |
|
|
|
|
1 | 1 | 9 | 21 |
2 | 2 | 10 | 22 |
|
|
|
|
3 | 3 | 11 | 23 |
4 | 10 | 12 | 30 |
|
|
|
|
5 | 11 | 13 | 31 |
|
|
|
|
6 | 12 | 14 | 32 |
|
|
|
|
7 | 13 | 15 | 33 (reserved) |
|
|
|
|
6.2 Edlog Programming
Instruction
Param. Type Description
12 Reps (# of modules sequentially addressed)
22 Starting Address (base 4: 00..33)
34 Starting Input Location
Execution Time = 2 ms per Rep for the CR10X, 3.5 ms per Rep for the 21X
Instruction 29 -
Param Type Description
12 Reps (# of modules sequentially addressed)
22 Device (2 =
32 Starting Address (base 4: 00..33)
42 Card (Excitation card #)
54 Starting Input Location
Execution Time = 150 to 190 ms per Rep
9