{"id":44739,"date":"2021-06-10T10:45:32","date_gmt":"2021-06-10T02:45:32","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=44739"},"modified":"2022-09-23T14:31:42","modified_gmt":"2022-09-23T06:31:42","slug":"tm-robot-management-api-advance-asp-net-web-form-implementation-demo","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/zh-hans\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/","title":{"rendered":"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo"},"content":{"rendered":"

Brief Introduction<\/strong><\/h2>\n

TM Robot Management API-Advance allows customer to not only get detailed information from multi robot, but also control project changing\/download\/upload and variable value changing.
\nAPI could be running in a separate PC as it and all other robots are in the same local network.<\/p>\n

In this example, we are using the API through HTTPS, then design ASP.NET Webform UI as a demonstration.
\nDemo development environment is as follow: Win10 64bit OS and Visual Studio 2019.
\nWith the implementation of Webform, it is possible to monitor and operate your robot in the office, or even on a mobile phone. For detail explanation, please refer to TM Robot Management API-Advance Manual.<\/p>\n

\"\"<\/a><\/p>\n

Demo Video<\/strong><\/h2>\n
\nhttps:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/06\/robotapidemovideo_0927.mp4<\/a><\/video><\/div>\n

Pre-setting of API<\/strong><\/h2>\n

First of all in service-config.json<\/strong> file, please set “ApiService” as the PC’s IP.<\/p>\n

\"\"<\/a><\/p>\n

Then in modbus-config.json<\/strong>, first you need to make sure ModbusConfiguration-Enable was set as “True” on the top (mark as Green). Then you could setup “enable” as “true” for each data if you want to receive those(mark as Red), and vice versa.<\/p>\n

\"\"<\/a><\/p>\n

In _start.bat<\/strong>, you could setup the Port of each protocal as you wanted, in this demo we Setup HTTPS Port as 9832. Also, don’t forget to set SERVICE_HOST_NAME as PC’s IP<\/p>\n

\"\"<\/a><\/p>\n

After setting complete, double click on _start.bat<\/strong> to execute this API.<\/p>\n

Pre-setting of Robot<\/strong><\/h2>\n