Skip to end of banner
Go to start of banner

GW Serial Example Setup

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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

USB-PiBridge Plug

Articlenumber: 100101

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

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 the USB-PiBridge Plug with the Serial Gateway

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

  4. Connect the PiBridge Plug via USB to your PC

  5. Open the Scripter and load the script “ScriptExample_64Registers.pbs” see top of the page.

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

Download the script

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

Hardware Setup

  1. Disconnect the USB-PiBridge Plug

  2. Connect the two Modular Gateway components with the (Not-USB) PiBridge Plug

  3. Connect the 24V power supply, the both power leds should light green

  4. Connect the Fieldbus Connection

Test it!

  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”

  • No labels