---
title: "14.1.3 Serial Communication Configuration"
canonical: "https://manual.cimon.com/space/CCANVAS/4310827074/14.1.3%20Serial%20Communication%20Configuration"
format: markdown
---
Please note that Canvas can still communicate with these devices via Modbus if the specific protocol necessary for a given device is unavailable. For more information on a specific device type, refer to the [Supported Communication Drivers](https://cimon.atlassian.net/wiki/spaces/CCANVAS/pages/4399923217) section.

Once a new Serial I/O device has been added successfully, the three sections for configuration will appear as follow: 

The General configuration page will appear once a new Serial I/O device has been added successfully. An additional configuration is below the General configuration section and will differ based on the device protocol selected.

> Macro (toc)

Please refer to the following for additional information:

> Macro (children)

# <span style="color: #0747a6">**General Configuration**</span>

Please know that general configuration will appear regardless of the selected Connection Type and Device Type.

![image](media://9b7c25bb-d618-483f-ba8f-5d69e37b55fb)


| **Item** | **Description** |
| --- | --- |
| Device Name | Allows the user to assign a name for the selected I/O device. |
| Device Protocol | Allows the user to select a protocol for a device. |
| Timeout (ms) | The maximum time to wait with no response before assuming a communication failure. |
| Retry Count | Set the number of retries for sending a frame when communication fails. |
| Swap String | Swaps the upper and lower bytes of string word data. |
| String Encoding | Specifies the encoding method for reading and writing string values stored on the device. This option can be overridden for individual tags in the Edit Tag menu. |
| String Encoding Method | When an invalid character is encountered, the gateway will do one of the following:<br>- Replace the character with "?".
- Skip the character and continue with the next one.
- Stop the string and truncate any remaining characters. This option can be overridden for individual tags in the Edit Tag menu. |
| Serial Port | Select a serial communication port for the Xpanel.<br>**COM1:** RS422/485  
**COM2:** RS232-C  
**COM3:** RS232-C (10”/12”/15” Only) |
| Baudrate | 300-230400 bps is supported. The range may vary according to the I/O device. |
| Parity | Select the same parity (None, Even, Odd) as the device. |
| Data Bits | Select the same data bit setting (7 Bits, 8 Bits) as the device. |
| Flow Control | The amount of data being transmitted to itself using the serial communication method can be turn On, Off, or Control. |
| Stop Bits | Select the same stop bit setting (1-Bit or 2-Bit) as the device. |

# <span style="color: #0747a6">**Additional Configuration - Device Specific**</span>

## Modbus RTU

![image](media://2a321a4c-c5fc-4b83-86b5-fdbdc82a760b)


| **Item** | **Description** |
| --- | --- |
| Swap 16 | Denotes whether to swap the order of the BYTEs within each WORD when reading/writing INTEGER types with this device.  
If enabled, Gateway will read/write `0xABCD` as `0xDCAB` for tags with an integer type. |
| Swap 32 | Denotes whether to swap the order of the WORDs within each DWORD when reading/writing INTEGER types with this device.  
If enabled, Gateway will read/write `0xAABBCCDD` as `0xCCDDAABB` for tags with an integer type. |
| Swap 64 | Denotes whether to swap the order of the DWORDs within each QWORD when reading/writing INTEGER types with this device.  
If enabled, Gateway will read/write `0xAAAABBBBCCCCDDDD` as `0xCCCCDDDDAAAABBBB` for tags with an integer type. |
| Swap String | Denotes whether to swap the order of the BYTEs within each WORD when reading/writing STRING types with this device.  
If enabled, Gateway will read/write `0xABCD` as `0xDCAB` for tags with the string type. |
| Swap Float 16 | Denotes whether to swap the order of the BYTEs within each WORD when reading/writing float (FLOAT32) types with this device.  
If enabled, Gateway will read/write `0xABCD` as `0xDCAB` for tags with the float type. |
| Swap Float 32 | Denotes whether to swap the order of the WORDs within each DWORD when reading/writing float (FLOAT32) types with this device.  
If enabled, Gateway will read/write `0xAABBCCDD` as `0xCCDDAABB` for tags with the float type. |
| Swap Double 16 | Denotes whether to swap the order of the BYTEs within each WORD when reading/writing double (FLOAT64) types with this device.  
If enabled, Gateway will read/write `0xABCD` as `0xDCAB` for tags with the double type. |
| Swap Double 32 | Denotes whether to swap the order of the WORDs within each DWORD when reading/writing double (FLOAT64) types with this device.  
If enabled, Gateway will read/write `0xAABBCCDD` as `0xCCDDAABB` for tags with the double type. |
| Swap Double 64 | Denotes whether to swap the order of the DWORDs within each QWORD when reading/writing double (FLOAT64) types with this device.  
If enabled, Gateway will read/write `0xAAAABBBBCCCCDDDD` as `0xCCCCDDDDAAAABBBB` for tags with the double type. |

## Mitsubishi MELSEC Serial

![image](media://1ffa6938-cd9d-49f1-8a19-c344b865d7da)


| **Item** | **Description** |
| --- | --- |
| Frame Type | Frame Type is used to verify that data in a packet was transmitted/received correctly. Only `3C` is supported. |

# <span style="color: #0747a6">**Station Configuration**</span>

This configuration page can be accessed by clicking **Tools **> **I/O Device Editor…** > select serial device, then click **Station**.

![image](media://e8607fda-204b-4e40-b434-92205bda04c2)

|  |  |
| --- | --- |
| **Item** | **Description** |
| Station Name | Enter the station name for the I/O device. |
| Station Number | Set the station ID. It must match the target device’s station ID. |