Campbell Scientific CR510 CR510 Basic Datalogger - Page 193

Appendix F., Modbus On The Cr10x And Cr510

Page 193 highlights

APPENDIX F. MODBUS ON THE CR10(X) AND CR510 Modbus communication capability is available as a Library Special on the CR10(X) and CR510 dataloggers. The implementation of MODBUS on the CR10(X) and CR510 allows input locations, ports, and flags to be read or to be set. Not supported are historical data retrieval, program downloads, setting the clock, and other functions of PC208. Modbus on the CR10(X) and CR510 does not preclude interfacing with PC208 as long as the communications system (radios, modems, etc.) is compatible with PC208. Applications Engineers at Campbell Scientific are not proficient in, and do not provide technical support for any of the commercially available software packages or PLCs that support Modbus. CR10(X) users have successfully communicated using the following software packages: Wonderware Intouch, Labview, Iconics Genesis for DOS, and Citect for Windows. LabTech's modbus driver does not support floating point, and thus is not compatible with CR10(X)s or CR510s. F.1 TERMINOLOGY The CR510s communicate in RTU mode (not ASCII) to other Modbus devices. The SCADA and MMI software packages and Modbus use different terminology than does Campbell Scientific. For example in SCADA software using Modbus, to reference the CR510's input location number 3, specify "register 40005 F". The CR510's input locations are analogous to registers in Modbus. Because of floating point considerations, two registers of memory are required for each input location. Modbus registers are offset by 40000, therefore, the register equivalent of any input location X is: 40000+2X-1. The register is followed by a " F" in the Intouch software. Ports and flags are more straight forward. Modbus does not differentiate between ports and flags. They have "coils" originally meaning coil relays that are either on or off. Ports 1 on the CR510 correspond to coils 1, and flags 1..8 correspond to coils 9..16. Campbell Scientific Modbus input location 1,2,3...X port 1 flag 1..8 register 40001,40003, 40005...(40000+2X-1) coil 1 coil 9..16 F.2 COMMUNICATIONS AND COMPATIBILITY Direct RS232 connect and telephone are supported by PC208 and most SCADA software packages. Modbus communications are on the serial port of the CR510s. For a direct connect to a computer an SC32A is used just as it is for PC208 communications. Other devices such as spread spectrum radios may require an SC932. COM200 and VS1 telephone modems and some radio modems are compatible with modbus communications. In the PC based software's Modbus driver or with a PLC the communications port, baud rate, data bits, stop bits, and parity are set. The CR10(X)s communicate at 9600, 1200, or 300 baud (they automatically sync to the baud rate of the computer), N,8,1. The Modbus address can be set in *D mode allowing multiple dataloggers on the same serial port for direct communications. The address is set in *D window 8. Valid addresses are 1 to 254 with the exception of 13. NOTE: In earlier beta versions of the CR510 operating system the Modbus address is fixed at address 1. This can be done from the CR10KD or a computer terminal with a terminal emulator. See section OV3 and section 5 of the CR510 manual for details. F-1

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257
  • 258
  • 259
  • 260
  • 261
  • 262
  • 263
  • 264

F-1
APPENDIX F.
MODBUS ON THE CR10(X) AND CR510
Modbus communication capability is available as a Library Special on the CR10(X) and CR510
dataloggers.
The implementation of MODBUS on the CR10(X) and CR510 allows input locations, ports, and flags to
be read or to be set.
Not supported are historical data retrieval, program downloads, setting the clock,
and other functions of PC208.
Modbus on the CR10(X) and CR510 does not preclude interfacing with PC208 as long as the
communications system (radios, modems, etc.) is compatible with PC208.
Applications Engineers at Campbell Scientific are not proficient in, and do not provide technical support
for any of the commercially available software packages or PLCs that support Modbus.
CR10(X) users
have successfully communicated using the following software packages:
Wonderware Intouch,
Labview, Iconics Genesis for DOS, and Citect for Windows.
LabTech’s modbus driver does not support
floating point, and thus is not compatible with CR10(X)s or CR510s.
F.1
TERMINOLOGY
The CR510s communicate in RTU mode (not
ASCII) to other Modbus devices.
The SCADA and MMI software packages and
Modbus use different terminology than does
Campbell Scientific.
For example in SCADA
software using Modbus, to reference the
CR510’s input location number 3, specify
“register 40005 F”.
The CR510’s input locations
are analogous to registers in Modbus.
Because
of floating point considerations, two registers of
memory are required for each input location.
Modbus registers are offset by 40000,
therefore, the register equivalent of any input
location X is:
40000+2X-1.
The register is
followed by a “ F” in the Intouch software.
Ports
and flags are more straight forward.
Modbus
does not differentiate between ports and flags.
They have “coils” originally meaning coil relays
that are either on or off.
Ports 1 on the CR510
correspond to coils 1, and flags 1..8 correspond
to coils 9..16.
Campbell
Scientific
Modbus
input location 1,2,3...X
register 40001,40003,
40005...(40000+2X-1)
port 1
coil 1
flag 1..8
coil 9..16
F.2
COMMUNICATIONS AND
COMPATIBILITY
Direct RS232 connect and telephone are
supported by PC208 and most SCADA software
packages.
Modbus communications are on the
serial port of the CR510s.
For a direct connect
to a computer an SC32A is used just as it is for
PC208 communications.
Other devices such as
spread spectrum radios may require an SC932.
COM200 and VS1 telephone modems and
some radio modems are compatible with
modbus communications.
In the PC based software’s Modbus driver or
with a PLC the communications port, baud rate,
data bits, stop bits, and parity are set.
The
CR10(X)s communicate at 9600, 1200, or 300
baud (they automatically sync to the baud rate
of the computer), N,8,1.
The Modbus address can be set in *D mode
allowing multiple dataloggers on the same serial
port for direct communications.
The address is
set in *D window 8.
Valid addresses are 1 to
254 with the exception of 13.
NOTE:
In earlier beta versions of the
CR510 operating system the Modbus
address is fixed at address 1.
This can be done from the CR10KD or a
computer terminal with a terminal emulator.
See section OV3 and section 5 of the CR510
manual for details.