l
ModbusMaster()
l
ModbusSlave()
l
MoveBytes()
For additional information on Modbus, see:
l
l
Why Modbus Matters: An Introduction
l
How to Access Live Measurement Data Using Modbus
l
Using Campbell Scientific Dataloggers as Modbus Slave Devices in a SCADA Network
Because Modbus has a set command structure, programming the datalogger to get data from
field instruments can be much simpler than from some other serial sensors. Because Modbus uses
a common bus and addresses each node, field instruments are effectively multiplexed to a
datalogger without additional hardware.
When doing Modbus communications over RS-232, the datalogger, through Device
Configuration Utility or the Settings editor, can be set to keep communication ports open and
awake, but at higher power usage. Set RS-232Power to Always on. Otherwise, the datalogger
goes into sleep mode after 40 seconds of communications inactivity. Once asleep, two packets
are required before it will respond. The first packet awakens the datalogger; the second packet is
received as data. This would make a Modbus master fail to poll the datalogger, if not using
retries.
More information on Modbus can be found at:
l
l
l
www.lammertbies.nl/comm/info/modbus.html
7.2.1 About Modbus
Modbus is a communications protocol that enables communications among many devices
connected to the same network. Modbus is often used in supervisory control and data
acquisition (SCADA) systems to connect remote terminal units (RTUs) with a supervisory
computer - allowing them to relay measurement data, device status, control commands, and
configuration information.
The popularity of Modbus has grown because it is freely available and because its messaging
structure is independent of the type of physical interface or connection that is used. Modbus can
coexist with other types of connections on the same physical interface at the same time. You can
operate the protocol over several data links and physical layers.
7. Communications Protocols
83
Summary of Contents for CR1000X
Page 1: ...Revision 02 21 2019 Copyright 2000 2019 Campbell Scientific ...
Page 2: ......
Page 4: ......
Page 6: ......
Page 8: ......
Page 16: ...Appendix A Glossary 176 Appendix B Index 214 Table of Contents viii ...
Page 192: ......