MODBUS TCP Protocol
Communication Setup: Xpanel
I/O Device Configuration
| To create a new device, click Tools > I/O Device Editor… > click the + icon > click Ethernet for Connection Type > select Modbus TCP for Device Type. |
I/O Device Settings
| Once the connection type, device name, and device type have been assigned, the I/O Device Editor window populates with the default settings for the selected communication protocol. After selecting the correct Connection Type and Device Type, match the remaining settings to the target I/O device’s communication settings. |
See the Communication Configuration section for more information.
Communication Settings: PLC
Communication Module | If using one of the following PLC modules to communicate with Xpanel, the card settings must be configured in CICON as shown below:
All communication parameters must match the settings chosen during the I/O device configuration in Canvas. Once the correct parameters have been entered, click Write while online with the PLC to update the communication parameters. |
CPU Built-in Communication Port | If using a built-in CPU (PLC) ethernet port to communicate with Xpanel, the channel settings must be configured in CICON as shown below: This connection option is available with the following models:
|
Address and Function Codes
The following table shows the list of valid address ranges and used MODBUS function codes for each address area.
The symbol character has to be placed in the first position of the address string. The address number follows the symbol character.
Area | Symbol | Analog Tag | Digital Tag | Read | Write |
Coil | 0 |
| 000001 - 0299991 | 1 | 5 |
Input | 1 |
| 100001 - 129999 | 2 |
|
Holding Register | 4 | 400001 - 429999 |
| 3 | 6, 162 |
Input Register | 3 | 300001 - 329999 |
| 4 |
|
The symbol character does not behave as a number. For example, 400100 and 40100 designate the same memory area (holding register 100).
Code 16 is issued for writing double words or when the recipe write function is activated. When writing single words, code 6 is used.
The memory areas listed above are provided for general purposes. The actual available memory area and range of each area should be checked with the manual for the connecting device. The ‘Read’/’Write’ columns show the MODBUS function codes used in this communication driver.
The symbol character (0, 1, 3, or 4) must be placed in the first position of the address string. The address number follows the symbol character.
Communication Cable Wiring
This interface is satisfied with standard IEEE802.3 about the 10BaseT/100BaseTX. You can configure the cable and allocation pin number of RJ45 as shown below.
RJ45 Connector | RJ45 Jack |
Direct Cable: Host ↔︎ HUB
Cable | No. | Color | Color | No. | Cable |
| 1 | Orange/White | Orange/White | 1 |
|
2 | Orange | Orange | 2 | ||
3 | Green/White | Green/White | 3 | ||
4 | Blue | Blue | 4 | ||
5 | Blue/White | Blue/White | 5 | ||
6 | Green | Green | 6 | ||
7 | Brown/White | Brown/White | 7 | ||
8 | Brown | Brown | 8 |
Crossover Cable: Host ↔︎ Host
Cable | No. | Color | Color | No. | Cable |
| 1 | Orange/White | Green/White | 1 |
|
2 | Orange | Green | 2 | ||
3 | Green/White | Orange/White | 3 | ||
4 | Blue | Blue | 4 | ||
5 | Blue/White | Blue/White | 5 | ||
6 | Green | Orange | 6 | ||
7 | Brown/White | Brown/White | 7 | ||
8 | Brown | Brown | 8 |