Weidm ller UC20 WL2000 IOT u-remote Remote Controller User Guide

June 13, 2024
Weidm ller

Weidm ller logo UR20-FBC-MOD/ u-remote
Quick Start Guide for Modbus- Understanding Coils and
Register

UC20 WL2000 IOT u-remote Remote Controller

Abstract:
The differences between coils and registers repeatedly causes misunderstandings and errors when using Modbus communication. In this Quick Start Guide we want to illustrate the differences and special features using Modbus with u-remote.

Hardware reference

No.| Component name| Article No.| Hardware / Firmware version
---|---|---|---
1| UC20-WL2000-10T| 1334990000| HW 01.23.00 / FW 1.5.0
2| UR2O-FBC-MOD-TCP| 1334930000| HW 01.xx.xx / FW 2.0.7
3| UR20-4D0-P| 1315220000| –
4| UR20-8D0-P| 1315240000|
5| UR20-16D0-P| 1315250000|

Software reference

No. Software name Article No. Software version
1 Node-RED 0.18.7

File reference

No. Name Description Version
1

Warning and Disclaimer

Warning
Controls may fail in unsafe operating conditions, causing uncontrolled operation of the controlled devices. Such hazardous events can result in death and / or serious injury and / or property damage. Therefore, there must be safety equipment provided /  electrical safety design or other redundant safety features that are independent from the automation system.

Disclaimer
This Application Note / Quick Start Guide / Example Program does not relieve you of the obligation to handle it safely during use, installation, operation and maintenance. Each user is responsible for the correct operation of his control system. By using this  Application Note / Quick Start Guide / Example Program prepared by Weidmüller, you accept that Weidmüller cannot be held liable for any damage to property and / or personal injury that may occur because of the use.

Note
The given descriptions and examples do not represent any customer-specific solutions, they are simply intended to help for typical tasks. The user is responsible for the proper operation of the  described products. Application notes / Quick Start Guides /  Example Programs are not binding and do not claim to be complete in terms of configuration as well as any contingencies. By using this Application Note / Quick Start Guide / Example Program, you acknowledge that we cannot be held liable for any damages  beyond the described liability regime. We reserve the right to make changes to this application note / quick start guide / example at any time without notice. In case of discrepancies between the proposals Application Notes / Quick Start Guides / Program Examples and other Weidmüller publications, like manuals, such contents have always more priority to the examples. We assume no liability for the information contained in this document.
Our liability, for whatever legal reason, for damages caused using the examples, instructions, programs, project planning and performance data, etc. described in this Application Note / Quick Start Guide / Example is excluded.

Security notes
In order to protect equipment, systems, machines and networks against cyber threats, it is necessary to implement (and maintain) a complete state-of-the- art industrial security concept.
The customer is responsible for preventing unauthorized access to his equipment, systems, machines and networks. Systems, machines and components should only be connected to the corporate network or the Internet if necessary and appropriate safeguards  (such as firewalls and network segmentation) have been taken.

Connection to Modbus Coupler

In order to read and write no further configuration on Modbus coupler is needed.
The purpose of accessing this interface through web browser is to check the results of writing and reading → Monitoring.
Attention: For understanding it is not necessary to have a test setup, we only use this to take screenshots in order to illustrate commands and results.

Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Default IP
via

Configuring with IOT Controller

  1. Access the IOT web server or configuration interface through any browser.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - IOT
ControllerMaybe you must first login with the following details:
    User Name: admin
    Password: Detmold
    Since software version 1.2.0 web-interface at UC20-WL2000-IOT and UC20-WL2000-AC have the same design.
    Differences are in the functionalities which are enabled depending on the controller type.

  2. Start the Node-RED by clicking on Open application.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller -
clicking In order to do some Modbus communication, it is necessary to install the Modbus/TCP nodes.
    If not done yet, you have to add them first.
    This is not the part of this Quick Start Guide; you may refer Application Note AN0009 for more information.

  3. Access the IOT web server and open the Node-RED application again.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - IOT web
server

3.1 Modbus TCP Write
The node used for writing data to the Modbus Coupler is output -> modbustcp.

  1. The modbustcp node must be configured (double-click) as shown on the Image:
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller -
Image

  2. Once you click the edit button you can fill the server settings:

3.2 Write Single Coil

  1. Drag connections between the nodes and your example should look like this.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Write Single
Coil

  2. Deploy your changes to the controller.
    Once the changes are deployed the node shows a green little square indicating the connection to the Modbus server.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - e Modbus
serverAt this point it is possible to write a Single Coil.

  3. Check web interface of Modbus/TCP Coupler via USB or LAN.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller -
LAN

  4. Let us have a look at the Process data in the web interface.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - web
interfaceAs you can see, the 4DO module also have 8 bits reserved because 1 Byte is the minimum which is allocated for this module.
    For use with function codes 1, 2, 5, 15 (bit addressing) we are talking about packed process data.
    Packed process data for outputs,
    – begins at 0x8000h (32768dez).
    – data width is module dependent.
    – byte granularly.
    There is no “unpacked” process data for bit addressing!
    Keep this in mind!
    With different module arrangement, e.g. the 4DO also reserves 16 bits.
    See explanation at multiple register chapter for further information.Weidm
ller UC20 WL2000 IOT u-remote Remote Controller - Coils and
RegisterIf it looks like this, then everything is fine.

3.3 Write Multiple Coils
This type of writing is similar to single coil but writes several coils at once.

  1. We start at the same address.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Multiple
Coil

  2. The inject node should be an array of binary values.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - binary
valuesThe array function only sends an array payload.
    Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Coils
RegisterWeidm ller
UC20 WL2000 IOT u-remote Remote Controller - Coils Register
2

3.4 Write Single Holding Register
For this data type the inject must be a number.

Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Holding
Register

The type set to the modbus node is Writing Single Holding Register.

Weidm ller UC20 WL2000 IOT u-remote Remote Controller -
modbus

Register addresses are different to bit addresses.
Packed process data for outputs,

  • begins at 0x0800h (2048dez).
  • data width is module dependent.
  • byte granularly.

Unpacked process data for outputs,

  • begins at 0x9000h (36864dez).
  • data width is module dependent.
  • per module are 32 registers reserved / 0x20h offset per module.

One register has 16 bits. If a write action is performed, 16 bits are written.
After writing a 5, channels 0 and 2 are turned on which makes a binary 5, 1010.

Weidm ller UC20 WL2000 IOT u-remote Remote Controller - After
writing

3.5 Write Multiple Holding Registers
This case also writes holding registers passed through an array:

Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Write Multiple
Holding Registers

Keep in mind that we are talking about registers.
The first array value is set to the first register, the next values of the array to the adjacent registers of the same type.
But we are using the register addresses for packed process data, so it depends on the module arrangement also.
How would the result look like if we change the arrangement of our DO-modules?

Weidm ller UC20 WL2000 IOT u-remote Remote Controller -
arrangement

So, in one case with 8DO behind 4DO module both need 1 Byte and allocate ½ register each.
For that writing 1 register would control both modules (4DO and 8DO).
If we change 8DO and 16DO, our first 4DO will also need 1 Byte but allocate 1 register.
For that writing 1 register would only control the first 4DO module.
For beginners this is very difficult to understand, but very important to understand Modbus communication with u-remote.
Hint:
If you want to avoid this, use the register addresses for (unpacked) process data.
There you have a fixed offset for each module to address it directly.

Weidm ller UC20 WL2000 IOT u-remote Remote Controller - Understanding
Coils

Weidm ller logo QSG0007v3_2021/11

Documents / Resources

| Weidm ller UC20 WL2000 IOT u-remote Remote Controller [pdf] User Guide
UC20 WL2000 IOT u-remote Remote Controller, UC20 WL2000 IOT, u-remote Remote Controller, Remote Controller, Controller
---|---

References

Read User Manual Online (PDF format)

Loading......

Download This Manual (PDF format)

Download this manual  >>

Related Manuals