{"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&#038;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:\/\/www2.tm-robot.com\/de\/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":"<h2><strong>Brief Introduction<\/strong><\/h2>\n<p dir=\"auto\" data-sourcepos=\"17:1-18:94\">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.<br \/>\nAPI could be running in a separate PC as it and all other robots are in the same local network.<\/p>\n<p dir=\"auto\" data-sourcepos=\"20:1-22:80\">In this example, we are using the API through HTTPS, then design ASP.NET Webform UI as a demonstration.<br \/>\nDemo development environment is as follow: Win10 64bit OS and Visual Studio 2019.<br \/>\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<p dir=\"auto\" data-sourcepos=\"20:1-22:80\"><a href=\"https:\/\/www.tm-robot.com\/en\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/dataflow\/\" rel=\"attachment wp-att-48196\"><img loading=\"lazy\" class=\"alignnone wp-image-48196\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg\" alt=\"\" width=\"800\" height=\"422\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg 1024w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1000x528.jpg 1000w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-300x158.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-768x405.jpg 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow.jpg 1196w\" sizes=\"(max-width: 800px) 100vw, 800px\" \/><\/a><\/p>\n<h2><strong>Demo Video<\/strong><\/h2>\n<div style=\"width: 756px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-44739-1\" width=\"756\" height=\"1344\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/06\/robotapidemovideo_0927.mp4?_=1\" \/><a href=\"https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/06\/robotapidemovideo_0927.mp4\">https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/06\/robotapidemovideo_0927.mp4<\/a><\/video><\/div>\n<h2><strong>Pre-setting of API<\/strong><\/h2>\n<p>First of all in <strong>service-config.json<\/strong> file, please set &#8220;ApiService&#8221; as the PC&#8217;s IP.<\/p>\n<p><a href=\"https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/05\/serviceconfig.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-44745\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/serviceconfig-300x180.jpg\" alt=\"\" width=\"300\" height=\"180\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/serviceconfig-300x180.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/serviceconfig.jpg 316w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Then in <strong>modbus-config.json<\/strong>, first you need to make sure ModbusConfiguration-Enable was set as &#8220;True&#8221; on the top (mark as Green). Then you could setup &#8220;enable&#8221; as &#8220;true&#8221; for each data if you want to receive those(mark as Red), and vice versa.<\/p>\n<p><a href=\"https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/06\/image_modbusconfig.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-48183\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/image_modbusconfig-187x300.jpg\" alt=\"\" width=\"187\" height=\"300\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/image_modbusconfig-187x300.jpg 187w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/image_modbusconfig.jpg 336w\" sizes=\"(max-width: 187px) 100vw, 187px\" \/><\/a><\/p>\n<p>In <strong>_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&#8217;t forget to set SERVICE_HOST_NAME as PC&#8217;s IP<\/p>\n<p><a href=\"https:\/\/www.tm-robot.com\/en\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/start-3\/\" rel=\"attachment wp-att-48335\"><img loading=\"lazy\" class=\"alignnone wp-image-48335\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/start-1.jpg\" alt=\"\" width=\"369\" height=\"292\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/start-1.jpg 461w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/start-1-300x238.jpg 300w\" sizes=\"(max-width: 369px) 100vw, 369px\" \/><\/a><\/p>\n<p>After setting complete, double click on <strong>_start.bat<\/strong> to execute this API.<\/p>\n<h2><strong>Pre-setting of Robot<\/strong><\/h2>\n<ul>\n<li>TM Robot Setting<br \/>\nDespite most API functions receive broadcast of Robots, but some functions related to project handling need to setup TMM connection of Robot:<\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.tm-robot.com\/wp-content\/uploads\/2021\/05\/robotset.jpg\"><img loading=\"lazy\" class=\"alignnone size-medium wp-image-44760\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/robotset-300x177.jpg\" alt=\"\" width=\"300\" height=\"177\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/robotset-300x177.jpg 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/05\/robotset.jpg 506w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click on Robot Setting\/TMmanager icon, check on <strong>Enable TMmanager<\/strong> and <strong>Enable auto upload data to server<\/strong>. Set the IP the same as the PC which you want to implement this API. Port will be set as 9835.Please refer to below picture<\/p>\n<p>Make sure your PC&#8217;s IP is fixed instead of floating, and in the same local network with all the robots you want to connect with.<\/p>\n<p>Because a lot of functions get feedback based on Robot Name, please check every robot have distinct name to make sure the process.<\/p>\n<ul>\n<li>How to check the robot is connecting with the PC?<br \/>\nIn cmd, try: <code>telnet 192.168.xxx.xx 502<\/code>(192.168.xxx.xx is the IP address of the robot, and port 502 is fixed for Modbus); if there is an empty window pops out, means the robot you would like to connect is connecting with PC.<\/li>\n<\/ul>\n<h2><strong>Visual Studio C# Code<\/strong><\/h2>\n<p>If you would like to know more about this Demo, you could download <a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/Webform_RMAPI_adv_0.0.2.zip\" rel=\"attachment wp-att-52921\">here<\/a> for the Visual Studio Project file for reference.<\/p>\n<p>Please contact with TM Robot sales representative if you are interested in this API product.<\/p>\n<p>Since this is a Demo project, please use it with care.<\/p>\n<p>Demo Compatibility: Robot API version 1.02.4000<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Brief Introduction 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. API could be running in a separate PC as it and all other robots are in the same local network. In this example, we are using the API through [&hellip;]<\/p>\n","protected":false},"author":3620,"featured_media":0,"parent":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_category":[4592],"doc_tag":[2514],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot<\/title>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot\" \/>\n<meta property=\"og:description\" content=\"Brief Introduction 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. API could be running in a separate PC as it and all other robots are in the same local network. In this example, we are using the API through [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/\" \/>\n<meta property=\"og:site_name\" content=\"Techman Robot\" \/>\n<meta property=\"article:modified_time\" content=\"2022-09-23T06:31:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#organization\",\"name\":\"Techman Robot\",\"url\":\"https:\/\/www.tm-robot.com.cn\/de\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#logo\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png\",\"contentUrl\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png\",\"width\":221,\"height\":196,\"caption\":\"Techman Robot\"},\"image\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#website\",\"url\":\"https:\/\/www.tm-robot.com.cn\/de\/\",\"name\":\"Techman Robot\",\"description\":\"Intelligent Cobots for a World of Applications\",\"publisher\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.tm-robot.com.cn\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#primaryimage\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg\",\"contentUrl\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#webpage\",\"url\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/\",\"name\":\"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot\",\"isPartOf\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#primaryimage\"},\"datePublished\":\"2021-06-10T02:45:32+00:00\",\"dateModified\":\"2022-09-23T06:31:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.tm-robot.com.cn\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docs\",\"item\":\"https:\/\/www2.tm-robot.com\/de\/docs\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot","robots":{"index":"noindex","follow":"follow"},"og_locale":"de_DE","og_type":"article","og_title":"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot","og_description":"Brief Introduction 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. API could be running in a separate PC as it and all other robots are in the same local network. In this example, we are using the API through [&hellip;]","og_url":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/","og_site_name":"Techman Robot","article_modified_time":"2022-09-23T06:31:42+00:00","og_image":[{"url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.tm-robot.com.cn\/de\/#organization","name":"Techman Robot","url":"https:\/\/www.tm-robot.com.cn\/de\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/www.tm-robot.com.cn\/de\/#logo","inLanguage":"de-DE","url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png","contentUrl":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2018\/09\/logo.png","width":221,"height":196,"caption":"Techman Robot"},"image":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#logo"}},{"@type":"WebSite","@id":"https:\/\/www.tm-robot.com.cn\/de\/#website","url":"https:\/\/www.tm-robot.com.cn\/de\/","name":"Techman Robot","description":"Intelligent Cobots for a World of Applications","publisher":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tm-robot.com.cn\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"ImageObject","@id":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#primaryimage","inLanguage":"de-DE","url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg","contentUrl":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2021\/06\/dataflow-1024x540.jpg"},{"@type":"WebPage","@id":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#webpage","url":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/","name":"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo | Techman Robot","isPartOf":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#primaryimage"},"datePublished":"2021-06-10T02:45:32+00:00","dateModified":"2022-09-23T06:31:42+00:00","breadcrumb":{"@id":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www2.tm-robot.com\/de\/docs\/tm-robot-management-api-advance-asp-net-web-form-implementation-demo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tm-robot.com.cn\/de\/"},{"@type":"ListItem","position":2,"name":"Docs","item":"https:\/\/www2.tm-robot.com\/de\/docs\/"},{"@type":"ListItem","position":3,"name":"TM Robot Management API Advance: ASP.NET Web Form Implementation Demo"}]}]}},"_links":{"self":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs\/44739"}],"collection":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/users\/3620"}],"replies":[{"embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/comments?post=44739"}],"version-history":[{"count":0,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs\/44739\/revisions"}],"wp:attachment":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/media?parent=44739"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/doc_category?post=44739"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/doc_tag?post=44739"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}