I/O Devices
Set up communication between the Xpanel and other devices:
(1) Select [Tools] - [I/O Device Editor] to open the [I/O Device Editor] window.
(2) Press the icon or right-click within the window and select [Add Device] to begin configuring an I/O device.
From this point, the user can select a [Connection Type] and [Device Type] to match their target I/O device. Note that if the specific protocol necessary for a given device isn’t available, Canvas can still communicate with these devices via Modbus. For more information on a specific device type, refer to the Communication Drivers section.
General Communication Configuration
Settings in this tab are available regardless of the selected [Connection Type] and [Device Type].
Device Name: Allows the user to assign a name for the selected I/O device.
Device Protocol: Allows the user to select a
Timeout: 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.
16Bit Data Swap: This option swaps bytes for all word- or double-word-sized data. The following diagram shows an example of byte-swapping:
Almost all data types will be influenced by this option except INT16 / UINT16
32Bit Data Swap: This option swaps words of all double-word-sized data. The following diagram shows an example of word swapping:
Tag values with data types INT32 / UINT32 / BCD32 / UBDC32 / FLOAT will be influenced by this option.
String Data Swap: Swaps the upper and lower bytes of string word data.
Serial Communication Configuration
After selecting [Serial Device] on the [Add New I/O Device] window, the [I/O Device Editor] will display the [Serial] tab.
1. Serial Settings
Serial Port: Select a serial communication port for the Xpanel. The port will vary depending on the Xpanel model. See the below table for more information
XT04 | XT07 | XT10 | XT12 | XT15 | |
---|---|---|---|---|---|
COM1 | RS-232C | RS-232C | RS-422/485 | RS-422/485 | RS-422/485 |
COM2 | RS-422/485 | RS-422/485 | RS-232C | RS-232C | RS-232C |
COM3 | NONE | NONE | RS-232C | RS-232C | RS-232C |
Baud Rate: 300-115200 bps is supported.
Parity: Select the same parity (None, Even, Odd) as the device.
Data Bits: Select the same data bit setting (5 Bits, 6 Bits, 7 Bits, 8 Bits) as the device.
Flow Control: Allows the user to
Stop Bit(s): Select the same stop bit setting (1 Bit or 2 Bit) as the device.
Station Number: Enter the station number of the target device.
2. Station Settings
Move to the [Station] tab of the [I/O Device Editor] window, and configure the proper parameters.
Station Name: Enter the station name for the I/O device.
Station ID: Set the station ID. It must match the target device’s station ID.
Ethernet Communication Configuration
After selecting [Ethernet Device] on the [Add New I/O Device] window, the [I/O Device Editor] will display the [Ethernet] tab.
1. Ethernet Settings
IPv4 Address: Type the IP address of the device.
Ethernet Type: Select UDP or TCP.
Port: Enter the port number of the target I/O device.
※ For information on the pinout configuration for Serial and Ethernet, go to the Communication Port Pinouts manual.