![Flachmann und Heggelbacher Docklight V2.2 Скачать руководство пользователя страница 45](http://html1.mh-extra.com/html/flachmann-und-heggelbacher/docklight-v2-2/docklight-v2-2_user-manual_2301959045.webp)
45
Docklight V2.2 User Manual 07/2016 Copyright 2016 Flachmann und Heggelbacher GbR
Examples and Tutorials
Communication Mode
Send/Receive
Send/Receive on comm. channel
COM1
COM Port Settings
9600 Baud, Even parity, 8 Data Bits, 1 Stop Bit
Getting started
·
Open the project file
ModbusRtuCrc.ptp
(menu
Open Project ...). The file is
located in the
·
Connect the PC's COM port to your MODBUS network. Open the
Project
Settings...
dialog and make sure you have selected the correct COM Port for
Send/
Receive on comm. channel
.
·
Use the
Send
button to read input register no. 1 from a slave.
·
Enter a slave number in the
Send Sequence Parameter
dialog, e.g. "01" for
addressing slave no. 1.
After sending "Read Input Register" commands to slaves 1 - 4, the communication
window could look like this:
5/29/2015 18:45:23.193 [TX] -
01 04 00 00 00 01 31 CA
5/29/2015 18:45:23.342 [RX] -
01 04 02 FF FF B8 80
5/29/2015 18:45:33.145 [TX] -
02 04 00 00 00 01 31 F9
5/29/2015 18:45:33.292 [RX] -
02 04 02 27 10 E7 0C
5/29/2015 18:45:43.237 [TX] -
03 04 00 00 00 01 30 28
5/29/2015 18:45:43.392 [RX] -
03 04 02 00 00 C0 F0
5/29/2015 18:45:58.724 [TX] -
04 04 00 00 00 01 31 9F
5/29/2015 18:45:58.870 [RX] -
04 04 02 04 00 77 F0
The [RX] channel shows the responses from the MODBUS slaves:
slave 1 responded value "-1",
slave 2 responded "10000",
slave 3 responded "0" and
slave 4 responded "1024".
NOTE: If you are using the Docklight MODBUS example on a RS485 bus, you need to
check if your RS485 hardware correctly switches between transmit and receive state.
You might need to use Docklight's
Further Information
·
The CRC calculation is made according to the specifications for MODBUS serial line
transmission (RTU mode). Docklight's checksum function supports a "CRC-MODBUS"
model for this purpose. See
Calculating and Validating Checksums
information on implementing checksum calculations.
·
If you do not have any MODBUS slave devices available, you can use a software
simulator. See
, "Modbus Technical Resources", "MODBUS
Serial RTU Simulator". This simulator was used to produce the sample data shown
above.
Содержание Docklight V2.2
Страница 1: ...Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR...
Страница 5: ...Copyright...
Страница 7: ...Introduction...
Страница 11: ...User Interface...
Страница 14: ...Features and Functions...
Страница 17: ...Working with Docklight...
Страница 28: ...Working with Docklight Advanced...
Страница 41: ...Examples and Tutorials...
Страница 46: ...Reference...
Страница 62: ...Support...
Страница 64: ...Appendix...
Страница 76: ...76 Docklight V2 2 User Manual 07 2016 Copyright 2016 Flachmann und Heggelbacher GbR Appendix...
Страница 77: ...Glossary Terms Used...