ICP DAS Win-GRAF User Manual covering Modbus Master setup for RTU/ASCII and TCP/UDP connections to slave devices.
This manual from ICP DAS explains how to enable the Win-GRAF PAC as a Modbus Master to connect to Modbus RTU/ASCII or Modbus TCP/UDP slave devices. It covers configuration steps, data block settings, and related parameters.
The guide walks through enabling the Modbus Master in the IO Drivers window, creating data blocks for read and write requests, and declaring variables such as Boo_01 to Boo_16, DO_0, Act_0, Word_1 to Word_6, Long_1 and Real_1. It also lists Modbus function codes, error codes, and recommended timeout values for Modbus RTU/ASCII devices.
| Recommended timeout for Modbus RTU/ASCII devices | 200 to 1000 ms |
|---|---|
| Delay time range for serial Modbus RTU | 0 to 10000 ms |
| Modbus function codes supported | 2, 5, 4, 6, 16 |
| Modbus TCP port | 502 |
| Exception timeout for Modbus TCP example | 3000 ms |
Click the "Open Fieldbus Configuration" tool button, then click "Insert Configuration", select "MODBUS Master" and click "OK".
Change the serial Modbus RTU setting to "ASCII: COM2:9600,N,8,1" in the Insert Master/Port window.
The recommended value is 200 to 1000 ms, for example 250 ms.
The Status variable is set to an error code when a read error occurs and is reset to 0 when the read request is successful.