SDM-SIO4 User Guide
6.3.2 CR10X Program Example
A typical CR10X datalogger program to work with the above formatter is shown below.
The program assumes that the
*Table 1 Program
01: 1.0 Execution Interval (seconds)
;Transmit formatter string 100, which includes the calculated CRC16 to port 1
1:
1: 1 | Reps | |
2: 0 | Address | |
3: | 1 | Send/Receive Port 1 |
4: | 2304 | Command |
5:9100 1st Parameters
6:0 2nd Parameters
7:0 Values per Rep
8:0000 Loc [ _________ ]
9: | 1 | Mult |
10: | 0 | Offset |
*Table 2 Program
02:0.0000 Execution Interval (seconds)
*Table 3 Subroutines
End Program
The program shown above will output to port 1 the string ‘123456789BB3D’.
6.3.3 Alternative CR10X Program
The earlier formatter example assumes the signature/CRC is calculated and completed in one formatter string, which also means it will all be done within one P113 datalogger instruction. This is not the only way to do it. It is possible to calculate a CRC/signature across a number of formatter strings and therefore a number of P113 Datalogger instructions. This could be done by using command line commands and a datalogger program as shown below.
Formatter strings stored by using the command line.