We use cookies to optimize site functionality and provide the best possible experience.
View our new Privacy and Protection of Personal Data here.
Accept Settings
INDEX

CKL Series Serial to Ethernet Gateway with 2 x 10/100Base-T(x) Ports, 1 x RS232 and 1 x RS485 Serial Ports and/or BPL (Broadband Power Line Link) User Manual

1. About REDZ CKL Series Serial to Ethernet Gateway

CKL Series Serial to Ethernet Gateways can connect all field serial devices to TCP/IP based network. It is one device with 3 different functions and 6 different working modes.

Serial to Ethernet Transparent Gateway Function: It can work in server mode so that TCP devices can connect to CKL and CKL will act as transparent gateway between TCP devices and field serial devices. It can work in client mode and CKL can automatically connect remote TCP devices and act as transparent gateway between field serial devices and remote TCP devices.

Modbus TCP/RTU Protocol Gateway Function: It can work in server mode so that Modbus TCP master devices can connect to CKL and CKL will act as converter between Modbus TCP master devices and field Modbus RTU serial devices. It can work in client mode so that Modbus RTU master devices can connect to CKL and CKL will act as converter between Modbus RTU master devices and field Modbus TCP devices.

Modbus TCP/RTU Scheduler with MQTT Data Send Function: It can work in server mode so that CKL can read field Modbus RTU devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period. It can work in client mode so that CKL can read field Modbus TCP devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period. Up to 40 Modbus commands can be defined.

Typical applications: Automated Meter reading, Home – Building – Industrial Automation, Remote Control, Remote I/O, Telemetry…

CKL series with Broadband Power Line (BPL) link allows device to communicate with full transparent TCP/IP standard over Low Voltage power lines and allows easy connection between TCP/IP based terminals without use of extra cables.

2. Hardware Features

CKL Series Modbus, Serial to Ethernet Gateways have the versions with and without BPL (Broadband Power Line ) Link.

2.1 Features

  • Supports 2 x 10/100Base-T(X) ports
  • Supports Full/Half-Duplex, auto MDI/MDI-X on each port
  • DHCP Server Capability
  • Supports 1 x RS232 and 1 x RS485 Serial Connection up to 460800 Baud
  • Embedded web interface for ease of use
  • 3 Different Device Functions and 6 Different Working Modes:
    Serial to Ethernet Transparent Gateway Function: Act as transparent gateway between TCP Master and Serial devices or TCP slave and Serial devices
    Modbus TCP/RTU Protocol Gateway: Convert Modbus TCP Master devices data to Modbus RTU Protocol or Modbus RTU Master devices data to Modbus TCP Protocol
    Modbus TCP/RTU Scheduler with MQTT Data Send: Reads field Modbus RTU or TCP devices and send their data to MQTT Server
  • Transparent Operating Mode lets device act as Serial to Ethernet Gateway
  • Up to 10 remote TCP/IP device connection in Modbus TCP/RTU Protocol Gateway Function
  • Up to 40 Modbus Commands can be defined in Modbus TCP/RTU Scheduler with MQTT Data Send Function
  • MQTT Publisher with different data transfer options in Modbus TCP/RTU Scheduler with MQTT Data Send Function
  • Easy to follow Serial and Ethernet data packages on web interface
  • Black List and White List based IP Filter in TCP Server Mode
  • Firmware Upgrade over Web
  • 2 firmware storage capability on same device (1 active only)
  • AC or DC wide range power options
  • Wide operating temperature range from -25 to 70 °C AC and -40 to 85 °C DC power input versions
  • Rugged Metal IP-40 housing design
  • DIN-Rail mounting

2.2 Extra Features for Models with BPL

  • Supports 2 x 10/100Base-T(X) ports + 1 x BPL link
  • Wide range 3 phase AC input
  • Supports up to 30Mbps PHY rate on BPL with Up to 10 hops and 1000 nodes
  • Up to 432 sub-carriers from 2 to 28MHz analog bandwidth
  • Support LDPC-C FEC with 128-bit AES core
  • Plug and play with Master/Slave selection via web interface

 

3. Installation

Each device has a Din-Rail kit on rear panel. The Din-Rail kit helps device to fix on the Din-Rail. Slant the switch and mount the metal spring to Din-Rail.


Then Push the switch toward the Din-Rail until you heard a “click” sound.

4. Front Panel Description

4.1 CKL154 & CKL254

  1. Micro USB or USB Type-C Console port for LOG in 115200 baud
    Console Tx and Rx Blinks when data transmission occurs
  2. Device Status LEDs
    STATUS: Blinks based on device operation
    - When TCP line used blinks during no connection and keeps ON after TCP connection
    - When Serial line used keeps ON
    Device Tx and Rx Blinks when data transmission occurs
    SERVER: Keeps ON after selecting Server from Server-Client Operating Modes. Keeps OFF if Client operating Mode selected
  3. ETHERNET Activity LEDs for port 1, 2 and CKL device itself. Blinks during ethernet activity
  4. 5 pin Terminal Block
    RS232: Tx, Rx and GND pins
    RS485: A, B and GND pins
    Can be activated over web interface and baud rate/data type configurable
  5. 10/100Base-T(X) Ethernet ports

4.2 CKL655

  1. Micro USB or USB Type-C Console port for LOG in 115200 baud
    Console Tx and Rx Blinks when data transmission occurs
  2. Device Status LEDs
    STATUS: Blinks based on device operation
    - When TCP line used blinks during no connection and keeps ON after TCP connection
    - When Serial line used keeps ON
    Device Tx and Rx Blinks when data transmission occurs
    SERVER: Keeps ON after selecting Server from Server-Client Operating Modes. Keeps OFF if Client operating Mode selected
  3. ETHERNET Activity LEDs for port 1, 2 and CKL device itself. Blinks during ethernet activity
  4. 5 pin Terminal Block for Serial Line
    RS232: Tx, Rx and GND pins
    RS485: A, B and GND pins
    Can be activated over web interface and baud rate/data type configurable
  5. BPL Status LEDs
    ACTIVITY: Blinks during BPL Ethernet activity
    LINK: LED Turns ON if the link can be established over BPL
    MASTER INDICATION: LED Turns ON if the device is configured and powered as “BPL Master” device
  6. 10/100Base-T(X) Ethernet ports
 

5. Top Panel Description

5.1 CKL154


  1. Power Input DC: 5-48V DC (max. 60V). Polarity protected so that the power input can be connected in any direction
  2. Power LED: Turns ON when there is power in device
  3. Reset Buttons
    RESET TO SERVER: Resets the device to factory setting as Server from Server-Client Operating Modes
    RESET TO CLIENT: Resets the device to factory setting as Client from Server-Client Operating Modes
    Reset can be done at any time by pushing any of the button for 5 seconds.

5.2 CKL254


  1. Power Input AC: 100 - 240V AC (120 – 370V DC), 50Hz to 60Hz AC input
  2. Power LED: Turns ON when there is power in device
  3. Reset Buttons
    RESET TO SERVER: Resets the device to factory setting as Server from Server-Client Operating Modes
    RESET TO CLIENT: Resets the device to factory setting as Client from Server-Client Operating Modes
    Reset can be done at any time by pushing any of the button for 5 seconds.

5.3 CKL655 (older version)


  1. Power Input AC: 3 phase input, 110V–240V/50-60Hz. It is also ok to connect only single phase to the device such as L1-N connection only.
    AC Power supply use L1-N only. Phase 2-3 connections are used to BPL signal transmission.
  2. Power LED: Turns ON when there is power in device
  3. Reset Buttons
    RESET TO SERVER: Resets the device to factory setting as Server from Server-Client Operating Modes
    RESET TO CLIENT: Resets the device to factory setting as Client from Server-Client Operating Modes
    Reset can be done at any time by pushing any of the button for 5 seconds.

 

5.4 CKL655 (newer version)


  1. Power Input AC: 3 phase input, 110V–240V/50-60Hz. It is also ok to connect only single phase to the device such as L1-N connection only.
    AC Power supply use L1-N only. Phase 2-3 connections are used to BPL signal transmission.
  2. Power LED: Turns ON when there is power in device
  3. Reset Buttons
    RESET TO SERVER: Resets the device to factory setting as Server from Server-Client Operating Modes
    RESET TO CLIENT: Resets the device to factory setting as Client from Server-Client Operating Modes
    Reset can be done at any time by pushing any of the button for 5 seconds.

 

NOTE1 :  BPL Model can be purchased in 2 versions:

1. P-N Model: Phase to neutral model (Standart Model). That version gets power from terminal pins 1 and 2 from phase and neutral. It can also transmit data from that pins and other pins usage is optionAl (Ex: Master can be connected to all phases and slaves can be connected to relevant phases)

2. P-P Model: Phase to phase model. That version also gets power from terminal pins 1 and 2 from phase and neutral. Data transmission only done through terminal pins 3 and 4. Phase to phase connection can be done to data transmission pins for better performance.
If not used then phase and neutral can still be connected for data transmission for terminal pins 3 and 4.

 

NOTE2:  BPL Model can be purchased in DC model as well:

This model will be same as "P-P Model"( Phase to phase model) on data connection and gets 9-36V DC power from terminal pins 1 and 2. Data transmission only done through terminal pins 3 and 4.

 

6. Ethernet Cables

CKL Series Modbus, Serial to Ethernet Gateways have standard Ethernet ports. According to the link type, the switches use CAT 3, 4, 5, 5e UTP cables to connect to any other network device (PCs, servers, switches, routers, or hubs).

6.1 Cable Type and Specifications

Cable Type Max. Length Connector
10BASE-T Cat. 3, 4, 5 100-ohm UTP 100 m (328 ft)  RJ-45
100BASE-TX Cat. 5 100-ohm UTP UTP 100 m (328 ft)  RJ-45

6.2 ETH Cable Pin Assignments

With 100BASE-TX/10BASE-T cable, pins 1 - 2 are used for transmitting data and pins 3 - 6 are used for receiving data.

Pin Number Description
1 TD+
2 TD-
3 RD+
4 Not Used
5 Not Used
6 RD-
7 Not Used
8 Not Used

 

7. System Comparison Between CAT5 and BPL Links

  CAT5 Based System BPL Link Based System
Media CAT5 Power Line
Bandwidth 100Mbps Up to 30Mbps
Re-Wire Yes No, Using existing Power Line
Span <100m <600m
Multiple Nodes N/A Up to 10 hops/1000 nodes
Encryption Yes, but difficult to configure Yes, Plug & Play
Installment Difficult Easy, simply user power line
Installment Cost High Low
Total Cost High Low

 

NOTE1 :  BPL Model can be purchased in 2 versions:

1. P-N Model: Phase to neutral model (Standart Model). That version gets power from terminal pins 1 and 2 from phase and neutral. It can also transmit data from that pins and other pins usage is optionAl (Ex: Master can be connected to all phases and slaves can be connected to relevant phases)

2. P-P Model: Phase to phase model. That version also gets power from terminal pins 1 and 2 from phase and neutral. Data transmission only done through terminal pins 3 and 4. Phase to phase connection can be done to data transmission pins for better performance.
If not used then phase and neutral can still be connected for data transmission for terminal pins 3 and 4.

 

NOTE2:  BPL Model can be purchased in DC model as well:

This model will be same as "P-P Model"( Phase to phase model) on data connection and gets 9-36V DC power from terminal pins 1 and 2. Data transmission only done through terminal pins 3 and 4.

 

8. Serial Cables

CKL Series Modbus, Serial to Ethernet Gateways have 1 x RS232 and 1 xRS485 port. Serial line can be connected other serial devices such as RTUs, PLCs, energy meters or any other field device.

8.1 RS232 Cable Pin Assignments

 

  1. Terminal connector for 3 wire Tx-Rx-GND RS232 data transmission
Pin Number Description
1 GND
2 Rx
3 Tx

8.2 RS485 Cable Pin Assignments

  1. Terminal Connector for 2 wire RS485 connection and GND ( if needed)
Pin Number Description
1 A
2 B
3 GND (Suggested to use)

 

9. Usage Scenarios and Connection Diagrams

Some of the usage scenarios of CKL Series Serial to Ethernet Gateways are described below. Usages are not limited to that examples and user may create their own usage scenario.

9.1 Serial to Ethernet Transparent Gateway Function: Communicate Remote Serial Devices Transparently over TCP IP Network

CKL Series Serial to Ethernet Gateways can connect field serial device to TCP/IP Network to control that devices remotely with a software on a server or with a TCP/IP device. For example, with CKL Series Serial to Ethernet Gateways, users can connect field serial devices such as Electricity Energy Meters and create a system to read that devices remotely.

CKL Gateway devices in field configured for Transparent Communication and act as TCP Server to Serial Device Gateway. Field devices are connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed. 

In need of remote reading of Electricity Energy Meters over optical probe, CKL can still be configured for Transparent Communication and act as TCP Server to Serial Device Gateway and a REDZ MBC144 can be connected for Auto Baud Rate Change together with REDZ KMK114 RS485 optical probe.

9.2 Serial to Ethernet Transparent Gateway Function: Transparent TCP/IP Link for Field Serial Devices

CKL Series Serial to Ethernet Gateways can connect field serial devices over TCP/IP Network just like they are connected over serial line. For example, with CKL Series Serial to Ethernet Gateways, users can connect 2 different field serial devices such as a Controller and a Sensor and create a system to communicate transparently over TCP/IP Network.

CKL Gateway device in Controller side configured for Transparent Communication and act as TCP Client to Serial Device Gateway. Field device is connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed. CKL can connect to Other CKL device on sensor side by manual entering the IP and port of TCP Server side.

CKL Gateway device in sensor side configured for Transparent Communication and act as TCP Server to Serial Device Gateway. Field device is connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed. 

 

NOTE:  TCP/IP link can also be created over Broadband Powerline - BPL. This way, 2 serial device can communicate over power lines without need of extra cable.

Example: This solution can be used to communicate between Solar Inverters and local energy meters.

 

9.3 Modbus TCP/RTU Protocol Gateway Function: Modbus TCP Master to Modbus RTU Protocol Conversion 

CKL Series Serial to Ethernet Gateways can connect field Modbus RTU serial device to TCP/IP Network to control that devices remotely with a software on a server or with a TCP/IP device that communicates in Modbus TCP protocol. For example, with CKL Series Serial to Ethernet Gateways, users can connect field Modbus RTU serial devices such as remote sensors and remote Input/output modules to TCP/IP network and create an automation system.



CKL Gateway devices in field configured for Modbus TCP to RTU Conversion and act as TCP Server to Serial Device Gateway. Field devices are connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed.

9.4 Modbus TCP/RTU Protocol Gateway Function: Modbus RTU Master to Modbus TCP Protocol Conversion 

CKL Series Serial to Ethernet Gateways can connect field Modbus RTU serial device to TCP/IP Network to control that devices remotely. If master side is Modbus RTU, CKL Series Serial to Ethernet Gateways can connect that part to TCP/IP network as well to make Modbus RTU to TCP conversion. For example, with CKL Series Serial to Ethernet Gateways, users can connect field Modbus RTU serial devices such as remote sensors and remote Input/output modules to Modbus RTU master device over TCP/IP network and create an automation system.



CKL Gateway device on Modbus RTU Master side configured for Modbus RTU to TCP Conversion and act as TCP Client to Serial Device Gateway. Field devices are defined as a list in configuration to enable mapping with field devices Modbus Addresses and related CKL remote fixed TCP IPs and ports.

CKL Gateway devices in field configured for Modbus TCP to RTU Conversion and act as TCP Server to Serial Device Gateway. Field devices are connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed. 

9.5 Modbus TCP/RTU Scheduler with MQTT Data Send Function: Read Field Modbus RTU devices and Send Their Data to MQTT Server

CKL Series Serial to Ethernet Gateways can read field Modbus RTU devices such as sensors, Input/output modules, Energy Analyzers, LKM Series IEC Meter to Modbus RTU protocol gateways etc.. and send their data to Modbus MQTT Server.



Field devices can be connected to RS232 and RS485 ports of CKL and up to 40 commands can be entered to read Modbus devices. CKL will check commands individually and read field device based on predefined Modbus command and as well as serial communication settings.

9.6 Modbus TCP/RTU Scheduler with MQTT Data Send Function: Read Field Modbus TCP devices and Send Their Data to MQTT Server

CKL Series Serial to Ethernet Gateways can read field Modbus TCP devices such as Energy Analyzers, Controllers, Modbus TCP meters etc.. and send their data to Modbus MQTT Server.



Field devices can be connected to TCP/IP ports of CKL or directly to LAN and up to 40 commands can be entered to read Modbus devices. CKL will check commands individually and read field device based on predefined Modbus command and as well as TCP/IP communication settings.

 

10. Configuration via WEB Interface

CKL Series Serial to Ethernet Gateways can be configured over web interface.
Device will get IP from DHCP client when connected to a network. User can use discovery tool to see IP of the device.

Once the IP of the device is set, user may login the device by simply typing the Ip address of device.

NOTE 1: CKL default firmware runs with DHCP off and expects an IP lease. If user need static IP or prefers DHCP on during start up, additional firmware is available.

 

NOTE 2:  If there is no DHCP server in LAN, REDZ device will get default 192.168.1.1 IP if it is set as Server Mode. It will get default 192.168.1.100 IP if it is set as Client mode.

10.1 Connecting Web Interface

Simply write IP of the device to the http client. Google Chrome is suggested to use. Login screen will pop up.
Default user name: admin
Default password: admin

Main screen of device will appear with following information.

Firmware Info, MAC details and Device Name on top

Menu Items on left

Menu Item details in center

10.2 MENU: Operating Mode

From this menu user may select the operating mode of the device and set the Device Function.

CKL Series Serial to Ethernet Gateways can connect all field serial devices to TCP/IP based network. It is one device with 3 different functions and 6 different working modes.

  • Serial to Ethernet Transparent Gateway Function:
    It can work in server mode so that TCP devices can connect to CKL and CKL will act as transparent gateway between TCP devices and field serial devices.
    It can work in client mode and CKL can automatically connect remote TCP devices and act as transparent gateway between field serial devices and remote TCP devices.
  • Modbus TCP/RTU Protocol Gateway Function:
    It can work in server mode so that Modbus TCP master devices can connect to CKL and CKL will act as converter between Modbus TCP master devices and field Modbus RTU serial devices.
    It can work in client mode so that Modbus RTU master devices can connect to CKL and CKL will act as converter between Modbus RTU master devices and field Modbus TCP devices.
  • Modbus TCP/RTU Scheduler with MQTT Data Send Function:
    It can work in server mode so that CKL can read field Modbus RTU devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period.
    It can work in client mode so that CKL can read field Modbus TCP devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period. Up to 40 Modbus commands can be defined.

“Device Name” field is used to identify device.

Device Function” field is used to select device behaviour as per options described above.


If Device Operating Mode is Server and "Device Function" is set as "Modbus RTU Scheduler with MQTT Gateway", following settings will be shown.

Users may enter Modbus RTU Scheduler details including Serial interface settings and Modbus RTU command settings and query intervals.

NOTE:  Up to 40 commands can be defined. User can read many registers with 1 command. 

If Device Operating Mode is Client and "Device Function" is set as "Modbus TCP Scheduler with MQTT Gateway", following settings will be shown.

Users may enter Modbus TCP Scheduler details including TCP/IP parameters and Modbus TCP command settings and query intervals.

 

NOTE:  Up to 40 commands can be defineds. User can read many registers with 1 command. 

CKL has smart mechanism to manage TCP sockets and CKL will use up to 10 sockets to connect remote/local Modbus TCP devices. If all commands send to 1 TCP IP and port then 1 socket will be used, if there are more than 10 TCP IP address in list, then CKL will use next free socket to connect the next device.

 

If Device Operating Mode is Client and "Device Function" is set as "Modbus RTU to TCP Gateway", following settings will be shown.

CKL will expect a connection from a Modbus RTU Master device and get Modbus RTU commands over the Serial line (RS232 or RS485). Based on Modbus Addresses of received commands, CKL routes the data to target Modbus TCP device. CKL also converts received Modbus TCP response and with the same idea sends it to Serial line.

"Modbus Slave Address": Remote Modbus TCP Device Address

"Modbus Slave TCP IP": Remote Modbus TCP Device static TCP IP

"Modbus Slave TCP Port": Remote Modbus TCP Device TCP/IP port

"Enable": Enable remote device connection to let CKL connect the remote Modbus TCP device automatically. At least 1 remote device must be enabled. Maxmimum 10 remote devices can be connected.

 

Once the setting has been changed, “Save Configuration” button will be enabled.


After clicking button system will tell if the settings applied successfully or not.


NOTE 1: CKL Series Serial to Ethernet Gateways can keep configuration of 2 different modes in its memory and once the configuration enabled, its already saved settings will be applied. Device can act as Server or Client at a time.

 

NOTE 2: Settings will be applied once the device is rebooted from web interface or repowered manually.

10.3 MENU: Network Settings - Server

From this menu user may change the network settings of the device based on selected "Device Function".

In all selected "Device Function" modes, user can edit following options:

  • User can activate DHCP server.
  • User can force device to a static IP.

Also "Device Function" specific options are given below.

Serial to Ethernet Transparent Gateway Function:

  • User can change TCP Listening port for field devices.
  • User can select maximum number of clients allowed to connect device.

Modbus TCP/RTU Protocol Gateway Function:

  • User can change TCP Listening port for field devices.
  • User can select maximum number of clients allowed to connect device.

Modbus RTU Scheduler with MQTT Data Send Function:

  • User can change NTP Server address that used in MQTT data transmission.
  • User can activate MQTT Publisher mode and change settings for MQTT data tranmission.

  

"Server Listening Port": TCP Port that CKL uses for incoming connections. Remote devices can use CKL IP and this port to connect to CKL for TCP/IP communication.

"Maximum Number of Clients": Maximum numbers of incoming connections accepted. CKL can accept up to 10 simultaneous connection and all devices can send CKL data to TCP/IP network. 

"Use Static Address for Device": Set a static TCP IP for CKL from this part. Enable and enter network settings and CKL will be available to connect from this static IP locally or remotely (gateway must be set properly for remote WAN connection).


Following parameters are available for "Device Function: Modbus RTU Scheduler with MQTT Data Send Function" :

"NTP Server": NTP Server address that used in MQTT data transmission.

"MQTT Broker IP": TCP IP of the MQTT Server. User must enter IP value
Ex: 75.2.83.130 is for "https://tago.io/" web address

"MQTT Broker Port": TCP Port of the MQTT Server.
Ex: 1883 is for "https://tago.io/" web address

"Client ID": MQTT Publisher client ID. Default is MQTT_CKL_Client.
Maximum length for this field is 32.

"User Name": MQTT Publisher user name. This must be entered based on MQTT server settings.
Maximum length for this field is 64.

"Password": MQTT Publisher password. This must be entered based on MQTT server settings.
Maximum length for this field is 48.

"Publish Topic": MQTT Publisher topic value. Default is MQTT_CKL_Publish_topic.
Maximum length for this field is 32.

"Subscribe Topic": MQTT Publisher subscribe topic value. Default is MQTT_CKL_Subscribe_topic.
Maximum length for this field is 32.

"Minimum Send Interval for a Parsed Data (in seconds)": Minimum value to send meter data to MQTT Server. This time may be longer due to meter quantity in reading queue.

"Data Format": Options for how data is shared by CKL with MQTT server. There are 2 options:

     DATA AS MODBUS FRAME

When selected as "DATA AS MODBUS FRAME", CKL will share data as follows

Device Name, NTP Time, Modbus Command/Device Number Configured in CKL Scheduler List and Data itself in hexadecimal format just like a Modbus query response.

First byte will show Modbus Device Address
Second byte is Modbsu Function Code
Third byte shows data bytes count and rest is the data itself

Here is an example:

11:18:02:
[MQTT] Device publish
{ "topic": "MQTT_STG_Publish_topic", "payload": "{\"CKLNme\":\"REDZ CKL\",\"Time\":\"1726733880\",\"DevNmr\":\"1\",\"Data\":{\"ModFr\":\"05030E6DF100000000000001EB00000000\"}}", "qos": 0, "device": "66e977c979b49d0009a8bc3c", "messageId": null, "isHex": false }
{ "topic": "MQTT_STG_Publish_topic", "payload": "{\"CKLNme\":\"REDZ CKL\",\"Time\":\"1726733880\",\"DevNmr\":\"1\",\"Data\":{\"ModFr\":\"05030E6DF100000000000001EB00000000\"}}", "qos": 0, "device": "66e977c979b49d0009a8bc3c", "messageId": null, "isHex": false }

1st Byte: 05 is the Modbus Device Address
2nd Byte: 03 is the Function Code, Read Holding Registers
3th Byte: 0E is 14 in decimal. That means there are 7 registers and each has 2 bytes

1st register: 6DF1 which is 28145 decimal

Next registervalues can be found seen in same manner.

 

Following parameters and static IP settings available for “Server Network Settings” part.

"Listening Port": TCP Port that CKL uses for incoming connections. Remote devices can use CKL IP and this port to connect to CKL for Modbus TCP query.

"Maximum Number of Clients": Maximum numbers of incoming connections accepted. CKL can accept up to 10 simultaneous connection and all devices can query Modbus TCP. 

"Use Static Address for Device": Set a static TCP IP for CKL from this part. Enable and enter network settings and CKL will be available to connect from this static IP locally or remotely (gateway must be set properly for remote WAN connection).

Following parameters available if “DHCP Server” setting is enabled. This is used if DHCP server is needed in network. CKL can distribute IP to field devices connected to it in this way.


Also if the device has Broadband Power Line (BPL) option:

User can select operating mode of BPL either MASTER or NODE.

NOTE: Standard firmware of REDZ BPL supports up to 10 hops and 1000 nodes. Only 1 device can be MASTER in same network.

 

Once the setting has been changed, “Save Configuration” button will be enabled.

After clicking button system will tell if the settings applied successfully or not.

NOTE 1: CKL Series Serial to Ethernet Gateways can keep configuration of 2 different modes in its memory and once the configuration enabled, its already saved settings will be applied. Device can act as Server or Client at a time.

 

NOTE 2: Settings will be applied once the device is rebooted from web interface or repowered manually.

10.4 MENU: Network Settings - Client

From this menu user may change the network settings of the device based on selected "Device Function".

"Device Function" specific options are given below.

Serial to Ethernet Transparent Gateway Function:

  • User can force device to a static IP.
  • User can enter IP of the Target Server.
  • User can change target TCP Server Listening port.

Modbus RTU/TCP Protocol Gateway Function:

  • User can force device to a static IP.

Modbus TCP Scheduler with MQTT Data Send Function:

  • User can change NTP Server address that used in MQTT data transmission.
  • User can activate MQTT Publisher mode and change settings for MQTT data tranmission
  • User can force device to a static IP.

Following parameters are available for "Device Function: Serial to Ethernet Transparent Gateway Function" :

 

"Server Static Ip Address": Remote TCP IP adress that CKL will try to connect automatically. 

"Listening Port": Remote TCP Port that CKLwill try to connect automatically. 

"Use Static Address": Set a static TCP IP for CKL from this part. Enable and enter network settings and CKL will be available to connect from this static IP locally or remotely (gateway must be set properly for remote WAN connection).

Following parameters and static IP settings available for “Use Static IP Address” setting.

Following parameters are available for "Device Function: Modbus RTU/TCP Protocol Gateway Function" :

"Use Static Address": Set a static TCP IP for CKL from this part. Enable and enter network settings and CKL will be available to connect from this static IP locally or remotely (gateway must be set properly for remote WAN connection).

Following parameters are available for "Device Function: Modbus TCP Scheduler with MQTT Data Send Function" :

"NTP Server": NTP Server address that used in MQTT data transmission.

"MQTT Broker IP": TCP IP of the MQTT Server. User must enter IP value
Ex: 75.2.83.130 is for "https://tago.io/" web address

"MQTT Broker Port": TCP Port of the MQTT Server.
Ex: 1883 is for "https://tago.io/" web address

"Client ID": MQTT Publisher client ID. Default is MQTT_CKL_Client.
Maximum length for this field is 32.

"User Name": MQTT Publisher user name. This must be entered based on MQTT server settings.
Maximum length for this field is 64.

"Password": MQTT Publisher password. This must be entered based on MQTT server settings.
Maximum length for this field is 48.

"Publish Topic": MQTT Publisher topic value. Default is MQTT_CKL_Publish_topic.
Maximum length for this field is 32.

"Subscribe Topic": MQTT Publisher subscribe topic value. Default is MQTT_CKL_Subscribe_topic.
Maximum length for this field is 32.

"Minimum Send Interval for a Parsed Data (in seconds)": Minimum value to send meter data to MQTT Server. This time may be longer due to meter quantity in reading queue.

"Data Format": Options for how data is shared by CKL with MQTT server. There are 2 options:

     DATA AS MODBUS FRAME

When selected as "DATA AS MODBUS FRAME", CKL will share data as follows

Device Name, NTP Time, Modbus Command/Device Number Configured in CKL Scheduler List and Data itself in hexadecimal format just like a Modbus query response.

First byte will show Modbus Device Address
Second byte is Modbsu Function Code
Third byte shows data bytes count and rest is the data itself

Here is an example:

11:18:02:
[MQTT] Device publish
{ "topic": "MQTT_STG_Publish_topic", "payload": "{\"CKLNme\":\"REDZ CKL\",\"Time\":\"1726733880\",\"DevNmr\":\"1\",\"Data\":{\"ModFr\":\"05030E6DF100000000000001EB00000000\"}}", "qos": 0, "device": "66e977c979b49d0009a8bc3c", "messageId": null, "isHex": false }
{ "topic": "MQTT_STG_Publish_topic", "payload": "{\"CKLNme\":\"REDZ CKL\",\"Time\":\"1726733880\",\"DevNmr\":\"1\",\"Data\":{\"ModFr\":\"05030E6DF100000000000001EB00000000\"}}", "qos": 0, "device": "66e977c979b49d0009a8bc3c", "messageId": null, "isHex": false }

1st Byte: 05 is the Modbus Device Address
2nd Byte: 03 is the Function Code, Read Holding Registers
3th Byte: 0E is 14 in decimal. That means there are 7 registers and each has 2 bytes

1st register: 6DF1 which is 28145 decimal

Next registervalues can be found seen in same manner.

"Use Static Address": Set a static TCP IP for CKL from this part. Enable and enter network settings and CKL will be available to connect from this static IP locally or remotely (gateway must be set properly for remote WAN connection).

Also if the device has Broadband Power Line (BPL) option:

User can select operating mode of BPL either MASTER or NODE.

NOTE: Standard firmware of REDZ BPL supports up to 10 hops and 1000 nodes. Only 1 device can be MASTER in same network. If the device is in client mode, it is suggested to use “NODE” as setting.


Once the setting has been changed, “Save Configuration” button will be enabled.

After clicking button system will tell if the settings applied successfully or not.

NOTE 1: CKL Series Serial to Ethernet Gateways can keep configuration of 2 different modes in its memory and once the configuration enabled, its already saved settings will be applied. Device can act as Server or Client at a time.

 

NOTE 2: Settings will be applied once the device is rebooted from web interface or repowered manually.

10.5 MENU: Serial Settings

This menu will only be available on following "Device Function"s.

Serial to Ethernet Transparent Gateway Function

Modbus RTU/TCP Protocol Gateway Function

and will not be available for "Modbus RTU/TCP Scheduler with MQTT Data Send Function"

From this menu user may change settings related with RS232 or RS485 connection. Only one of the communication will be available at a time (RS232 or RS485).

  • User can select to activate RS232 line and can set baud rate and data type for serial line.
  • User can select to activate RS485 line and can set baud rate and data type for serial line.

"Baud rate": Serial communication baud rate selection.

"Line Control": Serial communication data type selection in form of Data bits-Parity-Stop bits. Available options are:
7_EVEN_1 (Not used in Modbus)
8_NONE_1
9_NONE_1
8_EVEN_1
8_EVEN_2
8_ODD_1
8_ODD_2
8_NONE_2
9_NONE_2

Once the setting has been changed, “Save Configuration” button will be enabled.


After clicking button system will tell if the settings applied successfully or not.

NOTE 1: CKL Series Serial to Ethernet Gateways can keep configuration of 2 different modes in its memory and once the configuration enabled, its already saved settings will be applied. Device can act as Server or Client at a time. Let’s say TCP Server enabled in Server operating mode and RS232 serial line enabled in Client operating mode on same device, the device can switch between to settings simply by changing the mode.

 

NOTE 2: Settings will be applied once the device is rebooted from web interface or repowered manually.

 

NOTE 3: This page has same settings both for Server and Client operating modes.

10.6 MENU: Device Status - Server

From this menu user may monitor device status and statistics based on operating mode of device. The page also helps users to check device health.

Shown parameters changes bsed on selected "Device Function" and following parameters are available for "Device Function":

Serial to Ethernet Transparent Gateway Function:

Modbus TCP/RTU Protocol Gateway Function:

  

"IP Address": TCP/IP address of CKL itself.

"App Status": It shows current status of CKL application. "SERVING CONNECTIONS" means device is ready for normal operation.

"Log Counter": It is only available when "Log" is enabled from "Management" menu and shows how many log lines has been transfered till now.

"Log Status": It is only available when "Log" is enabled from "Management" menu and shows current status of CKL logging. "LOG_STATE_TRYWRITELOG" means normal operation.

"N. of Serial UART Errors": Number of module uart errors. Device will enter "Reboot State" if this number is above 20.

"N. of Serial UART Input Overflow Errors": Number of module input overflow errors.

"N. of Incorrect Serial Characters Received": Number of incorrect packages length received from Serial Line that does not fit Protocol Data Unit that device uses. It should be 0 in Transparent Operating Mode.

"N. of TCP Output Full Errors": Number of TCP output full errors expected to be 0 in normal operation.

"N. of Incorrect TCP Characters Received":  Number of incorrect packages length received from TCP/IP Side that does not fit Protocol Data Unit that device uses. It sholud be 0 in Transparent Operating Mode.

"N. of TCP Disconnections": Number of TCP disconnections from CKL.

"N. of TCP Messages Received Correctly": Number of packages received from TCP/IP Side.

"N. of TCP Messages Sent Correctly": Number of packages sent to TCP/IP Side.
 
"N. of Serial Messages Received Correctly": Number of packages received over serial line RS232 or RS485.

"N. of Serial Messages Sent Correctly": Number of packages sent to serial line RS232 or RS485.

In "Connections" part:

Device can show up to 10 lines in this part based on "Maximum Number of Clients" setting under "Network Settings" Menu.

"Ip Address": Is the TCP IP address of client connected to CKL.

"Incoming Port": Is the TCP Port of socket used by client connected to CKL.

 

Following parameters are available for "Device Function":

Modbus RTU Scheduler with MQTT Data Send Function:

"IP Address": TCP/IP address of CKL itself.

"App Status": It shows current status of CKL application. "SERVING CONNECTIONS" means device is ready for normal operation.

"Log Counter": It is only available when "Log" is enabled from "Management" menu and shows how many log lines has been transfered till now.

"Log Status": It is only available when "Log" is enabled from "Management" menu and shows current status of CKL logging. "LOG_STATE_TRYWRITELOG" means normal operation.

"MQTT Sent Messages": It shows how many MQTT messages has been transfered till now.

"MQTT Status": It shows current status of CKL MQTT Publisher. "APP_MQTT_STATE_SUBSCRIBED" means MQTT publisher is ready for normal operation.

"N. of Serial UART Errors": Number of module uart errors. Device will enter "Reboot State" if this number is above 20.

"N. of Serial UART Input Overflow Errors": Number of module input overflow errors.

"N. of Incorrect Serial Characters Received": Number of incorrect packages length received from Serial Line that does not fit Protocol Data Unit that device uses.

"N. of CRC Errors on Modbus Input Messages": Number of CRC errors during getting Modbus packages.

"N. of Serial Messages Received Correctly": Number of packages received over serial line RS232 or RS485.

"N. of Serial Messages Sent Correctly": Number of packages sent to serial line RS232 or RS485.

In "Modbus RTU Master Status" part:

Device will show 10 lines in this part for connecting up to 40 devices described in command list.

"Modbus Slave Address": Is the Modbus Slave address for defined command that is executed.

"Modbus Slave Serial Port": Is the port defined for command that is executed.

"Modbus Slave Data Type": Is the serial data baud rate and data type defined for command that is executed.

"Last Query Date": Is the last time the command executed.

"Last Modbus Package": Is the last modbus frame received for the command executed.

"Status": Is the status for command execution.


After clicking “Refresh Status” button, system will reload data only and will not reload page. Button will be disabled during reload for an instance. If timeout occurs during the reload, the button will be enabled again with warning of timeout. In normal operation reload of status data will be done immediately.

10.7 MENU: Device Status - Client

From this menu user may monitor device status and statistics based on operating mode of device. The page also helps users to check device health.

Shown parameters changes bsed on selected "Device Function" and following parameters are available for "Device Function":

Serial to Ethernet Transparent Gateway Function:

Modbus RTU/TCP Protocol Gateway Function:

  

"IP Address": TCP/IP address of CKL itself.

"App Status": It shows current status of CKL application. "SERVING CONNECTIONS" means device is ready for normal operation.

"Log Counter": It is only available when "Log" is enabled from "Management" menu and shows how many log lines has been transfered till now.

"Log Status": It is only available when "Log" is enabled from "Management" menu and shows current status of CKL logging. "LOG_STATE_TRYWRITELOG" means normal operation.

"Server IP Address": CKL will connect remote TCP IP and port of device, status menu have this extra item to show remote IP of the target TCP device.

"N. of Serial UART Input Overflow Errors": Number of module input overflow errors.

"N. of Serial UART Errors": Number of module uart errors. Device will enter "Reboot State" if this number is above 20.

"N. of Serial Messages Received Correctly": Number of packages received over serial line RS232 or RS485.

"N. of Serial Messages Sent Correctly": Number of packages sent to serial line RS232 or RS485.

"N. of Incorrect Serial Characters Received": Number of incorrect packages length received from Serial Line that does not fit Protocol Data Unit that device uses. It should be 0 in Transparent Operating Mode.

"N. of Incorrect TCP Characters Received":  Number of incorrect packages length received from TCP/IP Side that does not fit Protocol Data Unit that device uses. It sholud be 0 in Transparent Operating Mode.

"N. of TCP Output Full Errors": Number of TCP output full errors expected to be 0 in normal operation.

"N. of TCP Disconnections": Number of TCP disconnections from CKL.

"N. of Messages Retries Sent": Number of TCP messages failed so that retried to send.

"N. of TCP Messages Received Correctly": Number of packages received from TCP/IP Side.

"N. of TCP Messages Sent Correctly": Number of packages sent to TCP/IP Side.
 
 

Following additional parameters are available for "Device Function":

Modbus RTU/TCP Protocol Gateway Function:

"ModBus Slave Address": Shows the configured Modbus Address for the remote Modbus device

"ModBus Slave TCP IP": Shows the configured static TCP IP for the remote Modbus device

"ModBus Slave TCP Port": Shows the configured TCP port for the remote Modbus device

"Status": Shows status of remote client. If not enabled it will Show "DISABLED". If enabled it will Show status either "CONNECTED" or "WAIT FOR CONNECTION" based on connection status.

 

Following parameters are available for "Device Function":

Modbus TCP Scheduler with MQTT Data Send Function:

"IP Address": TCP/IP address of CKL itself.

"App Status": It shows current status of CKL application. "SERVING CONNECTIONS" means device is ready for normal operation.

"Log Counter": It is only available when "Log" is enabled from "Management" menu and shows how many log lines has been transfered till now.

"Log Status": It is only available when "Log" is enabled from "Management" menu and shows current status of CKL logging. "LOG_STATE_TRYWRITELOG" means normal operation.

"MQTT Sent Messages": It shows how many MQTT messages has been transfered till now.

"MQTT Status": It shows current status of CKL MQTT Publisher. "APP_MQTT_STATE_SUBSCRIBED" means MQTT publisher is ready for normal operation.

"N. of Incorrect TCP Characters Received":  Number of incorrect packages length received from TCP/IP Side that does not fit Protocol Data Unit that device uses. It sholud be 0 in Transparent Operating Mode.

"N. of TCP Output Full Errors": Number of TCP output full errors expected to be 0 in normal operation.

"N. of TCP Disconnections": Number of TCP disconnections from CKL.

"N. of Messages Retries Sent": Number of TCP messages failed so that retried to send.

"N. of TCP Messages Received Correctly": Number of packages received from TCP/IP Side.

"N. of TCP Messages Sent Correctly": Number of packages sent to TCP/IP Side.

In "Modbus TCP Master Status" part:

Device will show 10 lines in this part for connecting up to 40 devices described in command list.

"Modbus Slave Address": Is the Modbus Slave address for defined command that is executed.

"Modbus Slave TCP IP": Shows the configured static TCP IP of the remote Modbus device for command that is executed.

"Modbus Slave TCP Port": Shows the configured TCP Port of the remote Modbus device for command that is executed.

"Last Query Date": Is the last time the command executed.

"Last Modbus Package": Is the last modbus frame received for the command executed.

"Status": Is the status for command execution.

 

After clicking “Refresh Status” button, system will reload data only and will not reload page. Button will be disabled during reload for an instance. If timeout occurs during the reload, the button will be enabled again with warning of timeout. In normal operation reload of status data will be done immediately.

 

10.8 MENU: Gateway Status

From this menu user may monitor received and sent package details. The latest messages received from TCP/IP and RS232/RS485 serial sides shown here both in HEX and ASCII (if representable) formats with time stamps.  

 

Latest Message Received - TCP Side

"Message Time": Time when last package received from TCP/IP side.

"Length": Package length of last message received from TCP/IP side.

"Payload in Hex": Data received visualization in HEXADECIMAL format of last package received from TCP/IP side.

"Payload in ASCII": Data received visualization in ASCII (if possible) format of last package received from TCP/IP side.

Latest Message Received - Serial Side

"Message Time": Time when last package received from Serial (RS232 or RS485) side.

"Length": Package length of last message received from Serial (RS232 or RS485) side.

"Payload in Hex": Data received visualization in HEXADECIMAL format of last package received from Serial (RS232 or RS485) side.

"Payload in ASCII": Data received visualization in ASCII (if possible) format of last package received fromSerial (RS232 or RS485) side.

After clicking “Refresh Gateway Status” button, system will reload data only and will not reload page. Button will be disabled during reload for an instance. If timeout occurs during the reload, the button will be enabled again with warning of timeout. In normal operation reload of status data will be done immediately.

NOTE: This page has same options both for Server and Client operating modes.

 

10.9 MENU: Security Settings - Server Only

This menu is available only in TCP Server Operating mode since it filters TCP/IP connections based on IP of the devices.

This menu is available only in following "Device Function"s:

Serial to Ethernet Transparent Gateway Function:

Modbus TCP/RTU Protocol Gateway Function:

From this menu user may activate TCP IP filter based on White list (accepted packages from IP Address) or Black list ( rejected packages from IP Address). 

  • User can select to activate White List and CKL device will accept data packages only from the devices with addresses stated in the list.
  • User can select to activate Black List and CKL device will accept all data packages except from the devices with addresses stated in the list

Up to 20 IPs to be filtered are available for any of the list.

Following settings are available for any of the list:

In this page user can enter 0.0.0.0 or the exact IP value of the device. The options with 0.0.0.0 will be discarded (not filtered).

Once the setting has been changed, “Save Configuration” button will be enabled.


After clicking button system will tell if the settings applied successfully or not.

NOTE 1 : Settings will be applied once the device is rebooted from web interface or repowered manually.

 

NOTE 2: This page is only available for Server Operating mode.

 

10.10 MENU: Management

From this menu user may change parameters or send command to device.

  • User can not change system time. There is no battery inside the device so clock will be lost after a power down and will set to default.

The device restarts itself every 86400 seconds (which means every 24 hours). There are also timeout restart routines in Server mode during listening clients and in Client Mode trying to connect to the server. ( both preset to 10 minutes which means device will restart system if fails to connect a server in Client mode or a client do not connect in preset time in Server mode.)

  • User can change firmware of device. REDZ CKL Series Serial to Ethernet Gateways have easy to use firmware capability and system can store 2 firmware at memory. After a firmware change, user can restore back old firmware anytime needed.

After a firmware change old configuration will be used for minor changes. If a major change occurs system will restore to factory default configuration.

  • User can change the login information

  • User can change the debug level of the device. REDZ CKL Series Serial to Ethernet Gateways series have micro USB and gives log in 115200 - 8N1 format.
    Any terminal program can be used to listen the LOG over USB type-C or micro USB port of the device which is recognized as Virtual COM port in PC.
    LOG to remote UDP server is also available. If set to UDP server, then CKL will send LOG data to remote UDP server device.

  • User can restore to factory settings and force device to reboot. Factory settings restored for Client if the device in Client mode and factory settings are restored for Server if the device in Server mode.

In "Live Firmware Update" part:

Firmware upgrade is possible only with files that REDZ supplied. Once the file selected, CKL shows selected file:

Then “Upload Firmware” button must be clicked. CKL will start to upload file and show status on pop up screen.

Click "Close" when finished. If somehow CKL fails to upload, refresh webpage and try again please.

After successful upload, CKL will show "Alternative Firmware Date" and "Alternative Firmware Version" data.

 

Click "Reboot Alternative Firmware" and CKL will reboot with new firmware and show status on screen.

This will take 5 seconds only. Please wait.

Check firmware details from upper part of main screen please if the update firmware procedure finalized properly.

NOTE 1:  User must refresh cache of their browser by clicking CTRL+F5 after a succesfull firmware change so that it will force browser to reload web interface (with latest updates/changes).

 

NOTE 2:  In major updates user must also reset device to factory settings.

 

In "Download / Upload Configuration" part:

User download current configuration of the device to a file or restore a previously defined configuration to device from file.

"Download Current Configuration": Downloads the configuration to a file. It uses "Device Name" for file name and the extensions will be "*.zcfg".
"Download Configuration File": Uploads the configuration from "*.zcfg" file.

 

In "Log" part:

User may activate Logging and see details of operation. There are different levels of Log with different amount of data. 

"None": Logging is closed
"Error": Only errors in systems will be logged
"Info": General info and errors will be logged
"Debug": All details regarding device operation will be logged

If "Console" is selected as output of Log, then micro USB or USB Type-C port of device will be used for logging. Proper cable must be connected and a teminal should be used to receive Log data. As an example "RealTerm" tool can be used.

Simply select COM port and set baud rate 115200 and data type 8N1 and then click open. Device will send log data.

If "UDP Server" is selected as output of Log, then proper tool must be used to get log data. User must set "UDP Server IP" and "UDP Server Port". Device will send Log to that address. As an example "Package Sender" tool can be used.

Click "File" and then "Settings". Enable "UDP Server" and set the port. Device will send Log data to UDP server.

 

Here is a video example to enable UDP log and receive data via UDP Server software:

 

NOTE: This page has same settings both for Server and Client operating modes.

 

11. Modbus Communication - Configuration Example

CKL Series Serial to Ethernet Gateways can connect all field serial devices to TCP/IP based network. It is one device with 3 different functions and 6 different working modes.

Serial to Ethernet Transparent Gateway Function: It can work in server mode so that TCP devices can connect to CKL and CKL will act as transparent gateway between TCP devices and field serial devices. It can work in client mode and CKL can automatically connect remote TCP devices and act as transparent gateway between field serial devices and remote TCP devices.

Modbus TCP/RTU Protocol Gateway Function: It can work in server mode so that Modbus TCP master devices can connect to CKL and CKL will act as converter between Modbus TCP master devices and field Modbus RTU serial devices. It can work in client mode so that Modbus RTU master devices can connect to CKL and CKL will act as converter between Modbus RTU master devices and field Modbus TCP devices.

Modbus TCP/RTU Scheduler with MQTT Data Send Function: It can work in server mode so that CKL can read field Modbus RTU devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period. It can work in client mode so that CKL can read field Modbus TCP devices based on predefined Modbus list and send Modbus data to MQTT server based on predefined period. Up to 40 Modbus commands can be defined.

In this application we will show Modbus TCP to RTU Conversion. The devices will be:

  • Modbus TCP - Master Device
  • Modbus RTU - Slave Device

We will use Modbus simulator as Modbus RTU device and "Modbus Poll" software as Modbus TCP master device in this application

 

11.1 CKL Settings for Modbus TCP Master and Modbus RTU Slave Devices

CKL will listen TCP IP connections from the TCP Port set in "Network Settings" Menu. So we will set CKL in "Server Configuration" and we will set "Device Function" as "Modbus TCP to RTU Gateway" since we need to change Modbus TCP protocol and we want it to be transfered over serial line as Modbus RTU frame.

The listening TCP port will be "502" as per settings in "Network Settings" Menu.



User may increase "Maximum Number of Clients" if there is more than 1 master in the application.

Serial port will be RS485 and we will use 9600 baud with 8N1 data type in this application to communication with Modbus RTU slave device.

Those settings will be enough for CKL Modbus TCP to RTU conversion.

 

11.2 Modbus TCP Master - Modbus RTU Slave Communication

CKL Series Modbus, Serial to Ethernet Gateway is now ready for communication between

  • Modbus TCP - Master Device
  • Modbus RTU - Slave Device

Modbus RTU slave device address is 5 and we will read 5 register starting from register address 7.

Enter IP and port of Master CKL to Modbus TCP software and set "response timeout" and "delay between polls" according to TCP/IP network needs. Default values are usually ok for normal TCP/IP networks.


Click "OK" once finished. Software may try to connect, meanwhile please update settings as per your Modbus RTU slave device. In our example Modbus RTU slave device address is 5 and we will read 5 register starting from register address 10.

Now the software will read Modbus values. In "Device Status" page, number of received and sent packages from TCP/IP and serial interfaces, connected device details and other values can be monitored.

In "Gateway Status" page, details regarding Modbus TCP packages from TCP/IP interface and Modbus RTU packages from serial interface can be monitored.

12. Modbus Communication - Video Example

12.1  Application Video Example for Modbus TCP to RTU Conversion 

CKL Series Modbus, Serial to Ethernet Gateways can connect field Modbus RTU serial device to TCP/IP Network to control that devices remotely with a software on a server or with a TCP/IP device that communicates in Modbus TCP protocol. For example, with CKL Series Modbus, Serial to Ethernet Gateways, users can connect field Modbus RTU serial devices such as remote sensors and remote Input/output modules to TCP/IP network and create an automation system.


CKL Gateway devices in field configured for Modbus TCP to RTU Conversion and act as TCP Server to Serial Device Gateway. Field devices are connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed.

Here is an example video for BPL version of CKL series that is connected to LKM Series Modbus to IEC62056-21 Standard Protocol Gateway.

Here is the physicall application of same example.

13. Transparent Communication - IEC Meter Reading Video Example

13.1  Application Video Example for Transparent Communication

CKL Series Modbus, Serial to Ethernet Gateways can connect field serial device to TCP/IP Network transparently to control that devices remotely with a software on a server or with a TCP/IP device. For example, with CKL Series Modbus, Serial to Ethernet Gateways, users can connect field serial devices such as Electricity Energy Meters and create a system to read that devices remotely.

CKL Gateway devices in field configured for Transparent Communication and act as TCP Server to Serial Device Gateway. Field devices are connected over serial line either over RS232 or RS485 and communication data type and baud rate fixed. 
In need of remote reading of Electricity Energy Meters over optical probe, CKL can still be configured for Transparent Communication and act as TCP Server to Serial Device Gateway and a REDZ MBC144 can be connected for Auto Baud Rate Change together with REDZ KMK114 RS485 optical probe.

Here is an example video for CKL series that is connected to IEC62056-21 Standard Protocol Energy Meters over RS485.

Here is the physicall application of same example.

14. Ordering Information

CKL154: Serial to Ethernet Gateway, 2x 10/100 T(x) ETH ports, 1 x RS232 & 1 x RS485, 5-48V (max. 60V) DC Power Input

CKL254: Serial to Ethernet Gateway, 2x 10/100 T(x) ETH ports, 1 x RS232 & 1 x RS485, 100 - 240V AC (120 – 370V DC), 50Hz to 60Hz AC Power Input

CKL655: Serial to Ethernet Gateway, 2x 10/100 T(x) ETH ports + 1 x BPL (Broadband Power Line) Link, 1 x RS232 & 1 x RS485, 3 Phase AC Power Input, 110V–240V/50-60Hz

15. Product Selection

Model 5-48V (max. 60V) DC Power Input 100 - 240V AC (120 – 370V DC), 50Hz to 60Hz AC Power Input 3 Phase AC Power input, 110V–240V/50-60Hz AC Power Input Transparent Gateway Function Between Serial and Ethernet Modbus TCP (Master) to RTU and Modbus RTU (Master) to TCP Gateway Function Read Modbus RTU or TCP Devices and send to MQTT Server BPL (Broadband Power Line) Link
CKL154 X     X X X  
CKL254   X   X X X  
CKL655     X X X X X

 

LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
TLM Series LoRa Modems and LoRaWAN EndNode Modems
TLM Series LoRa Modems and LoRaWAN EndNode Modems
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
KMK Series Optical Probes for Energy Meters
HUR Series Modbus TCP and RTU Remote I/O Devices with MQTT (and LoRaWAN)
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
BKV Series USB Tools, RS232/485 Converters, Ethernet Switches, USB 2.0 Hubs, 868MHZ WMBus Converters, P1 Meter Converters
MBC Series IEC62056-21 Protocol Auto Baud Changer
KMK Series Optical Probes for Energy Meters
REDZ Software Solutions