Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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 section.

Once a Serial Device is added, the communication configuration page will appear:

...

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.

Table of Contents

Please refer to the following for additional information:

Child pages (Children Display)

General Configuration

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

...

Item

Description

Device Name

Allows the user to assign a name for the selected I/O

Device

device.

Device Protocol

Select the type of target device. This also selects the driver used to communicate with the device.

Time Out

The timeout feature periodically checks whether the connection is still valid. If a requested frame is not received in the assigned time, it will be processed as a communication failure. This option is not applied if the protocol is TCP/IP. Values represent multiples of 100ms. For example, a value of 10 represents 1000ms or 1 second.

Retry Count

Assign the number of communication retry attempts after a communication failure.

Serial Port

Select the COM port to be used by the local device (Xpanel). Each COM port may support different communication methods depending on the Xpanel model. You can choose a COM port number up to COM4, or a TTYMCX port up to TTYMCX4 . Refer to the table below for more information.

Baudrate

Assign the baud rate. You can select a rate from 300 to 115,200 bps. The rate must be identical to the target device’s configuration.

Parity

Select an option for parity bit usage. Users may select none, even or odd.

Data Bits

Assign the number of data bits per packet. This option must be equal to the target device’s configuration. Choosing 5~7 bits provides faster communication speed but can cause errors if the data contains Korean characters.

If Korean characters are included in the frames, select the 8-bit option.

Flow Control

Allows the user to enable or disable flow control.

Stop Bits

Select the number of bits used to signal the end of the frame. You can select 1 or 2 bits. This option must be identical to the setting on the target device.

Comm Type

Select the communication type used by the target device. You can select RS232, RS422, or RS485.

Station Number

Enter the station number of the target device.

※ Please refer to the corresponding driver manual for further configuration.

The following table lists the communication types supported by each COM port of different Xpanel models.

...

 

...

XT04

...

XT07

...

XT08

...

XT10

...

XT12

...

XT15

...

COM1

...

RS-232C

...

RS-232C

...

RS-232C

...

RS-422/485

...

RS-422/485

...

RS-422/485

...

COM2

...

RS-422/485

...

RS-422/485

...

RS-422/485

...

RS-232C

...

RS-232C

...

RS-232C

...

COM3

...

-

...

-

...

-

...

RS-232C

...

RS-232C

...

RS-232C

Device-Specific Properties

Depending on the selected Device Protocol, the available properties in the PLC Type tab change and a new tab unique to the device type may appear depending on the selection.

...

Item

...

Description

...

PLC Type

...

Allows the user to assign a specific model of PLC for the selected Device Protocol. This option is only enabled for the CIMON CI-bus, LSIS Cnet, and Mitsubishi MELSEC drivers.

...

ModbusRTU

...

When the ModbusRTU option is selected for the Device Protocol, the following properties are revealed.

...

Swap 16

...

Enable/Disable 16-bit data swaps.

...

Swap 32

...

Enable/Disable 32-bit data swaps.

...

Swap String

...

Enable/Disable string swaps.

...

Melsec: Sum Check

...

Allows the user to enable or disable Sum Checks.

Station

Lastly, users can define the Station Name and Station Number of the selected Serial Device in the Station tab.

...

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:

  • 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.

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.

Additional Configuration - Device Specific

Modbus RTU

...

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

...

Item

Description

Frame Type

Frame Type is used to verify that data in a packet was transmitted/received correctly. Only 3C is supported.

Station Configuration

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

...

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.