TM Robot Management API Advance: ASP.NET Web Form Implementation Demo

Updated on 2026 / 08 / 27

Examples are valid for :
TMflow Software version : All versions
TM Robot Hardware version : All versions
Other specific requirements : None
Note that older or newer software versions may have different results.


 

Brief Introduction

 

TM Robot Management API-Advance allows customers to not only get detailed information from multiple robots but also control project changing/download/upload and variable value changing.

The API runs on a separate PC, provided that the PC and all robots are in the same local network.

 

In this example, we use the API through HTTPS and design an ASP.NET Webform UI as a demonstration.

  • Demo development environment: Win10 64bit OS and Visual Studio 2019.

With the implementation of Webform, it is possible to monitor and operate your robot in the office, or even on a mobile phone. For a detailed explanation, please refer to the TM Robot Management API-Advance Manual.

 

 

Demo Video

(please refer to the file attached)

 

Pre-setting of API

 

First, in the service-config.json file, please set "ApiService" as the PC's IP address.

 

 

Next, in modbus-config.json:

 

  1. Ensure ModbusConfiguration-Enable is set to "True" at the top (marked in Green).
  2. Set "enable" to "true" for each data point you want to receive (marked in Red), and vice versa.

 

 

In _start.bat, you can set up the Port for each protocol as desired. In this demo, we setup the HTTPS Port as 9832. Also, remember to set SERVICE_HOST_NAME as the PC's IP.

 

 

After settings are complete, double click on _start.bat to execute this API.

 

Pre-setting of Robot

 

  • TM Robot Setting

Although most API functions receive a broadcast of Robots, functions related to project handling require setting up the TMM connection of the Robot:

 

 

Click on the Robot Setting/TMmanager icon, check Enable TMmanager and Enable auto upload data to server. Set the IP the same as the PC on which you want to implement this API. Port will be set as 9835 (please refer to the picture above).

Important Notes:

  • Make sure your PC's IP is fixed (static) instead of floating, and is in the same local network as all the robots you want to connect with.

 

Because a lot of functions get feedback based on Robot Name, please check every robot have distinct name to make sure the process. 

 

  • How to check the robot is connecting with the PC ? 

    In the command prompt (cmd), try:  telnet 192.168.xxx.xx 502 (192.168.xxx.xx is the IP address of the robot, and port 502 is fixed for Modbus); If an empty window pops up, it means the robot you are targeting is successfully connecting with the PC.

 

Visual Studio C# Code

 

If you would like to know more about this Demo, you can download the Visual Studio Project file for reference here 

 

Please contact with TM Robot sales representative if you are interested in this API product.

 

Since this is a Demo project, please use it with care. 


Demo Compatibility: Robot API version 1.02.4000