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
GATEWAY Module for Modbus TCP
Articlenumber: 100088
Instructions
Download and install the following software
KUNBUS Scripter: https://www.kunbus.de/downloads.html
PuTTY: https://www.putty.org/
QModMaster: https://sourceforge.net/projects/qmodmaster/
Connect the USB-PiBridge Plug with the Serial Gateway
Connect the 24V power supply. The power led should light green
Connect the PiBridge Plug via USB to your PC
Open the Scripter and load the script “ScriptExample_64Registers.pbs” see top of the page.
Go to File → Settings and enter the serial connection details
Download the script
Klick on the green button to download the script to the device
Hardware Setup
Disconnect the USB-PiBridge Plug
Connect the two Modular Gateway components with the (Not-USB) PiBridge Plug
Connect the 24V power supply, the both power leds should light green
Connect the Fieldbus Connection
Test it!
Open PuTTy
Enter the serial connection details
Go To “Session”
Open The Connection
Open QModmaster
Configure the TCP Connection
Configure cyclic data exchange
You should see status “000A” on the first register which equals 10 decimal
Data Transfer
Open PuTTy
Enter [Alt] + [Num Pad 2] into the PuTTy Terminal window (not the “2” key next to the “w” key!)
You do not see an output but this means we want to transfer 2 registers, i.e. 4 bytes
Now enter “1234”
You should see the output “1234” after you have typed the last character
Open QModMaster
You should see the same output:
“000A” → Status 10 decimal - no error
“0002” → Two registers have been transferred which means 4 bytes
“3132“ → ASCII “12”
“3334” → ASCII “34”