Section 8. Operation
441
8.10.3.2.6 Timing
The timeout is a critical parameter of Modbus communication. The response time
of devices is usually not specified by the manufacturer and can range from 100 ms
to more than 5 seconds. When the CR800 is acting as a slave device, it typically
responds very quickly. The default timeout in a master device polling the CR800
will typically not need adjustment from the default. When the CR800 is acting as
a master, the response time of a slave needs particular attention. The best practice
is to monitor the communication between the CR800 and the slave device with the
comms sniffer (
terminal mode
(p. 483)
W
command). The comms sniffer allows you
to see the actual response time of the slave device. The
TimeOut
parameter of
ModbusMaster()
can then be adjusted accordingly.
8.10.3.3 Troubleshooting (Modbus)
Test Modbus functions on the CR800 with third party Modbus software. Further
information is available at the following links:
•
www.simplyModbus.ca/FAQ.htm
•
www.Modbus.org/tech.php
•
www.lammertbies.nl/comm/info/modbus.html
8.10.3.4 Modbus over IP
When the CR800 acts as the Modbus master, a
TCPOpen()
instruction must
precede the
ModbusMaster()
instruction. The connection handle returned by
TCPOpen()
is used for the
ComPort
parameter.
In the case of
ModbusSlave()
, no
TCPOpen()
instruction is needed. Simply use
502
for the
ComPort
parameter.
8.10.3.5 Modbus Security
Q: What security options does the CR800 offer for Modbus?
A: The Modbus protocol itself does not include security features, so the CR800
does not offer security on
ModbusMaster()
or
ModbusSlave()
. Following are
security issues that come up:
•
MAC and IP filtering
•
Function code filtering
•
Privilege mapping rules by client (by port, IP, etc)
•
VPN tunneling
There are some third party Modbus security devices available that can be placed
between the CR800 and the rest of the Modbus network. For example, see
tofinosecurity.com/products.
Summary of Contents for CR800 Series
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 34: ......
Page 54: ......
Page 92: ......
Page 310: ......
Page 446: ...Section 8 Operation 446 8 11 2 Data Display FIGURE 100 CR1000KD Displaying Data ...
Page 448: ...Section 8 Operation 448 FIGURE 102 CR1000KD Real Time Custom ...
Page 449: ...Section 8 Operation 449 8 11 2 3 Final Storage Data FIGURE 103 CR1000KD Final Storage Data ...
Page 450: ...Section 8 Operation 450 8 11 3 Run Stop Program FIGURE 104 CR1000KD Run Stop Program ...
Page 452: ...Section 8 Operation 452 FIGURE 106 CR1000KD File Edit ...
Page 456: ......
Page 462: ......
Page 523: ...Section 11 Glossary 523 FIGURE 116 Relationships of Accuracy Precision and Resolution ...
Page 524: ......
Page 526: ......
Page 556: ......
Page 558: ......
Page 560: ......
Page 597: ......