Versions Compared

Key

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

The GATEWAY Module for serial network uses a script for data exchange to a partner Gateway. This article shows how to put this device into operation with an example setup.

GATEWAY Module for serial network
Articlenumber: 100068

https://www.kunbus.com/serial-rx-gateway-module.html

GATEWAY Module for Modbus TCP
Articlenumber: 100088

https://www.kunbus.com/serial-rx-gateway-module.html

Image RemovedImage Added

USB-PiBridge Plug

Articlenumber: 100101

https://revolution.kunbus.de/shop/en/usb-plug-pibridge

View file
nameScriptExample_64Registers.pbs

Instructions

  1. Download and install the following software

    1. KUNBUS Scripter: https://www.kunbus.de/downloads.html

    2. PuTTY: https://www.putty.org/

    3. QModMaster: https://sourceforge.net/projects/qmodmaster/

  2. Connect PiBridge Plug with the

Gateway Modules using the PiBridge PlugPower the two modules with 24V, the both power leds
  1. Serial Gateway like on the picture on the right.

  2. Connect the 24V power supply. The power led should light green

  3. Connect the PiBridge Plug via USB to your PC

  4. Open the Scripter and load the script “ScriptExample_64Registers.pbs”

  5. Go to File → Settings and enter the serial connection details

Image Removed
  1. Image Added

Image Added
Image Added

Download the script

  1. Klick on the green button to download the script to the device

Image Removed

  1. Open PuTTy

    1. Enter the serial connection details

    2. Go To “Session”

    3. Open The Connection

  2. Open QModmaster

    1. Configure the TCP Connection

    2. Configure cyclic data exchange

    3. You should see status “000A” on the first register which equals 10 decimal

Data Transfer

Open PuTTy

  1. Enter [Alt] + [Num Pad 2] into the PuTTy Terminal window (not the “2” key next to the “w” key!)

  2. You do not see an output but this means we want to transfer 2 registers, i.e. 4 bytes

  3. Now enter “1234”

  4. You should see the output “1234” after you have typed the last character

Open QModMaster

You should see the same output:

  1. “000A” → Status 10 decimal - no error

  2. “0002” → Two registers have been transferred which means 4 bytes

  3. “3132“ → ASCII “12”

  4. “3334” → ASCII “34”

Page Properties
hiddentrue

Verwandte Vorgänge