RD55UP12-V - QuickStart of IoT Gatway

RD55UP12-V - QuickStart of IoT Gatway

Notes
Summary: This manual describes the necessary steps to put the module RD55UP12-V into operation and to parameterise the corresponding functions. It also shows how to properly control the registers/bits of the controller using the MQTT protocol.

Software used:

Product

Description

DDWIN

(Download link: http://download.si-linux.co.jp/dd_for_windows/DDWin_Ver0998.zip)

Program for writing the
IBHsoftec image file to
an SD card

MQTT EXPLORER

(Download link: https://mqtt-explorer.com/)

A tool for browsing and debugging MQTT communication in real time

MELSOFT GX WORKS3

Programming tool for
programming the iQ-R
CPU

IBH OPCUA EDIT

(Download link: https://download.ibhsoftec.com/neutral/IBHOPCUAEditor749Setup.exe)

Offline Configuration
tool for IoT Gateway

Prepare SD Card

To write the image file with the Linux OS to an SD card, you need the programme "DDWIN" on a Windows computer. After downloading, the ZIP file must be unpacked, an SD card inserted into the PC and the file "DDWIN.EXE" executed as administrator.


1. Select the SD card in the PC under "Choose disk".
2. Select the Linux image file from IBHsoftec under "Choose file".
3. Select "<>"


When writing to the SD card is finished, the "DDWIN" program can be closed and the SD card removed from the PC and inserted into the RD55UP12-V module.

R04 CPU

Set IP address for RD55UP12-V


Configure SLMP Connection

In order for the Mitsubishi controller to be accessible via OPC UA, the SLMP Connection Module must be inserted using the GX Works configuration software.

Export global variables

Create global variables that will be read by the RD55UP12-V module. These variables will be accessible via the MQTT protocol (read and write). Make sure to enable the "Access from External Device" option.



IoT Gateway OPC UA Server Setup

Launching Web Interface

Depending on the level via which the PC is connected to the IoT Gateway, the parameterisation interface can be called up by entering the corresponding IP address in a web browser. In the following example, the PC is connected via the process level, only "192.168.3.3" is entered in the browser.
The login screen is displayed. For a new system, the default user name and password are both "admin".
 

After pressing "Log in", you are in the configuration interface.


Licence

At the first startup of this system, remember to upload the license. To do this, select the "System" menu in the configuration interface.

On this page, click on "Browse" at "Select licence file" to search for the corresponding file and then click on "Upload licence file" to copy it to the SD card. After a restart of the system, the IoT Gateway can be used without restrictions.

Security

The IoT Gateway has a certificate management for secure communication. A corresponding software interface is supplied for this purpose, which can be displayed in any web browser. The configuration of the security levels and the administration of the certificates are carried out in this interface. This is based on the mechanisms defined by the OPC Foundation. OPC UA Security includes authentication and authorisation, encryption and data integrity through signing. In this way, the control system can be protected against uncontrolled access via a higher-level system.

There are different levels of encryption (Encrypt): None, Basic128Rsa15 and Basic256.
None      No encryption
Basic128Rsa15      128 bit encryption
Basic256      256 bit encryption

The IBH Link UA function supports the Level Sign and SignAndEncrypt
None      No security level, fastest data transmission
Sign      The messages contain signed certificates
Sign and Encrypt      The messages contain signed certificates and are encrypted
Sign + Sign and Encrypt      The messages may contain only signed certificates, or can be signed and are encrypted as well
 
For testing purposes, the server security features have been disabled.

IQ-R Station

To add a Mitsubishi station, go to the Mitsubishi tab then Insert station .


After this Insert your CPU and load the project.



Then you should be able to see you global labels.

MQTT Setting

More information about MQTT and how to install and configure the Mosquitto Broker can be found in the article below:

The IoT gateway supports the MQTT protocol to send data to the cloud or to receive it from the cloud. In order to create an MQTT connection, access to an MQTT broker is required. The corresponding configuration takes place in the IBH OPCUAEdit tool.

Creating New Server Connection



Open an existing OPCUA server configuration, add external data and next select “New MQTT broker”


 
In the next window enter the broker IP address and the necessary login data and press “OK”.
In addition, the MQTT message format can be selected under "Message template". With "Default" the simple JSON format is used.

Publish of values (Send data to Broker)

Two steps are required to “publish” values:
1. Create a new topic
2. Link the topic with data

Open the newly created “mosquitto” by pressing, then right-click on “Publish” to open the menu and select “New topic




Select variable - data to be sent

Open “Publish” and click the newly created topic, then right-click on the topic in the “Select variables…” menu

Select the required data in the next window and press “OK”  


The selected data are then displayed in the active topic in the editor.

Send the new setting to the IoT gateway and after the transfer has taken place, check whether the IoT gateway is connected to the broker.
 

Subscription to values (receive data from broker)

 In the following example, the program “MQTT Explorer” “publishes” data to a broker. The IoT gateway should "subscribe" this data and write it into the corresponding PLC register.

Open your Sample Broker ”by pressing, then right-click on“ Subscribe ”and select“ New topic ”. 

Enter a name for the new topic and confirm with “OK”.

Now create variables; select the new topic, right-click to open the menu and press “Select variables…”



Send the new setting to the IoT gateway.

In the "Server" tab, you can view the current values of the shared variables. 


MQTT Explorer - client


Each time any of the global variables is changed, it will be reflected in MQTT Explorer.



We can also modify the controller registers directly from MQTT Explorer.







If all the steps described in the documentation have been followed and the connection still doesn't work and variables are not being transmitted, make sure that the port (1883) are unblocked and the broker service is active.