Skip to main content

DM Series Quick Installation Guide

Introduction

About The Telediagram

Telediagram; It is an editor software developed by Mikrodev and used for programming Mikrodev PLC family devices. With Mikrodev PLC programming editor Telediagram, very complex projects can be realized quickly thanks to its visual and easy-to-understand interface.

In addition to basic logic blocks such as "AND, OR, XOR" in the Telediagram library, there are also advanced blocks that will facilitate complex applications such as "PID, astronomical timer".

By connecting to devices via different interfaces (USB/TCP), tools such as program upload/update, online monitoring and firmware update are also offered with Telediagram.

Telediagram Setup

Telediagram software is prepared to run on current Windows versions. The installation file can be downloaded free of charge from the following internet address:

https://www.mikrodev.com/downloads/telediagram/TelediagramSetup_latest.zip

Telediagram setup is completed by following the instructions on the screen.

Telediagram Licensing

Telediagram program is software that works under license. You can create a license request by contacting the Mikrodev sales unit free of charge. In order to create the license, you will be asked for the hardware id of the device on which you installed the telediagram software.

In order to learn the hardware id of the device, the following steps are followed.

Right click on Telediagram shortcut, click open file location.

rtu-quick-inst-01

The bin folder of the Telediagram software opens.

Double-click the license_user.exe application located in the bin folder. The numbers on the pop-up page that appear on the screen form the hardware id of your device. This hardware id must be reported to the sales team for licensing.

rtu-quick-inst-02

Note: If the hardware id of the device is to be learned, it should be noted that the dongle is not attached to the device.

The license file obtained from the sales unit must be copied to the bin folder of the telediagram software.

For this, right click on Telediagram shortcut, click open file location. The tlicense.dat file is copied to the opened bin folder. Thus, the telediagram software is licensed.

rtu-quick-inst-03

Creating A Project

The following steps are followed to create a new project in Telediagram.

Creating A New Project

rtu-quick-inst-04

To create a new project in Telediagram, choose "new file or project" from the "File Menu".

Step 1

rtu-quick-inst-05

Step 2

rtu-quick-inst-06

The newly created project name and project creation location are selected.

When "Use as default project location" is selected, the project creation location is fixed for projects that will be created later.

Step 3

rtu-quick-inst-07

The programming method is selected.

Step 4

rtu-quick-inst-80

The device to be programmed and the expansion unit (if it needs to be added) are selected.

Step 5

rtu-quick-inst-09

Project configuration settings can be changed.

Step 6

rtu-quick-inst-10

A new project has been created.

In the projects section on the left side tab, double-click the Mdv text or click the plus icon next to the Mdv text. In the bottom tab that opens, there is the file "main.mdv". Double-clicking on this file opens the page and the project design can be started on this page.

Connecting To The Device

rtu-quick-inst-11

The projects prepared in the Telediagram must be sent to the device and a connection must be established to the device for online monitoring.

The device can be connected to the device via TCP port in Telediagram or web server.

Setting A TCP Connection

In order to establish a TCP connection between the computer and the device;

At least one of the "ethernet, Wi-Fi or GSM" ports must be present on the device to which a TCP connection will be established.

Establishing A TCP Connection with Ethernet

In order to establish an Ethernet connection;

  • The device must have an ethernet port.

  • Ethernet cable (CAT5, CAT6) connection must be established between the device and the computer.

  • If the device and the computer are in the same local network, the defined IPs should be selected accordingly.

Identifying IP To The Device

"Mikroterminal" program should be used to make device IP settings via USB connection. (See "Using the Mikroterminal" section.)

rtu-quick-inst-16

The Mikroterminal program can be accessed from the Telediagram "Tools" menu.

rtu-quick-inst-17

rtu-quick-inst-18

After the device and computer IP settings are complete, "ping" must be done from the computer to the device for the "ethernet cable connection test" between the device and the computer.

rtu-quick-inst-19

For the "ping" operation, the device IP is typed into the computer "command window" as in the picture and "ENTER" is clicked.

If the result output in the upper picture occurs, it means that the ping operation "failed". IP settings and ethernet cable connections should be checked again.

If the result is output as in the picture below, the pinging process is "successful".

rtu-quick-inst-20

It means that an ethernet TCP connection can be established from the Telediagram to the device.

Defining A Listening Port To The Device

In Mikrodev products, the standard listening port is defined as 502.
To change the listening port, which is the standard 502;
TCP socket block should be added to the project prepared in Telediagram.

rtu-quick-inst-21

Socket type "TCP server" is selected.
The listening port is defined.
As the "Media type", one of the Ethernet, GSM or Wi-Fi options is selected.

Note: In the Telediagram project, listening ports can be defined as many as the number of TCP socket blocks added as a server.

Ethernet Connection Test

After making the necessary settings for the Ethernet connection, for the TCP connection;

Click the link rtu-quick-inst-11 tab in the Build mod options.

rtu-quick-inst-22

Click "Settings" in the window that opens.

rtu-quick-inst-23

In the window that opens, the device IP is written in the "Device IP" section and the device listening port is written in the "port" section.

Select "Connect using TCP" and click "OK" to wait for the TCP connection to be established.

rtu-quick-inst-24

When TCP connection is established, "TCP connection established between device and computer" warning is displayed on the screen.

The connection icon rtu-quick-inst-25 is also displayed as "Connected".

Establishing TCP Connection with GSM

In order to establish a GSM and TCP connection to the device in Telediagram;

  • The device must be GSM-enabled.

  • The GSM antenna of the device must be installed.

  • Device signal quality (CSQ) should be between 1-31.

  • A SIM card with data package (internet package) must be inserted into the device. (SIM card must have fixed IP.)

  • APN definition of the inserted SIM card must be made to the device.

  • The computer with the Telediagram must be connected to the "wide area network" (WAN) (internet network).

Identifying IP To The Device

In order to establish a TCP connection from the Telediagram to the GSM-enabled device, the GSM IP is written in the "device IP" section.

rtu-quick-inst-26

Other than GSM IP identification, other operations are the same as Ethernet TCP connection.

Connecting To The Device Via Web Server

The following instructions must be followed to log into the DM50 Web Server Interface.

  • Open any internet browser on your computer.

  • https://< DEVICE IP > must be entered in the URL part.

rtu-quick-inst-77

  • After entering enter, the user login screen appears in figure below. Username and password defined by default must be entered in the Username and Password section.

Defined by default Username: admin Password: admin

rtu-quick-inst-78

After logging in as an administrator, user name and password adjustments can be made from the User Manager Page -> User Table section on the left sidebar.

Loading A Telediagram Project To The Device

There are 2 methods to load the project prepared in Telediagram to the device.

The project can be sent to the device via TCP connection or Web Server.

Upload Project With TCP Connection

After the USB connection rtu-quick-inst-32 is established between the device and the computer, the "send to device" button is clicked. rtu-quick-inst-28 The project file is compiled and the bin file is loaded on the device.

The confirmation screen opens for the project file backup to be uploaded to the device. If "Yes" is clicked, then the project file will be extracted from the device.

rtu-quick-inst-33

The device must be restarted in order for the changes to be applied. A confirmation screen appears for device restart. Click on "Yes".

rtu-quick-inst-34

If the following output occurs in the "incoming messages" section of the Telediagram, it means that the Telediagram project has been successfully loaded to the device.

It should be noted that the file upload process is 100% complete. The device restarts automatically when the project upload process is 100% completed with the TCP connection. (it is reset.)

rtu-quick-inst-35

Upload Project Via Web Server

Click on the "File Upload Tab" on the left sidebar of project uploads to the device from the web server interface. Select "Project Loading Page" from the tabs opened at the bottom. Project uploads to the device are made from this page. From the "Choose File" section, the ".bin" extension file of the telediagram project to be uploaded to the device is selected. Click on "Upload File". Thus, the project file will be successfully loaded onto the device.

Administrator and Technician user can access the Project Upload page.

rtu-quick-inst-79

Drawing A Project File From The Device

The existing project in the device can be downloaded to the computer via the Telediagram program. For this, the following steps should be followed.

When the device is powered and connected to the computer via TCP;

Click on the "dowload project from device" option in the tools section of the Telediagram.

rtu-quick-inst-36

When the download status monitoring is at 99%, the file location where the project is to be saved is selected.

rtu-quick-inst-37

From here, the location where the file should be saved is selected. Thus, the bin file in the device is downloaded to the computer.