{"id":131470,"date":"2025-10-14T13:49:18","date_gmt":"2025-10-14T05:49:18","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&#038;p=131470"},"modified":"2025-10-14T13:49:18","modified_gmt":"2025-10-14T05:49:18","slug":"support-lua-script-programming","status":"publish","type":"docs","link":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/","title":{"rendered":"Support Lua Script Programming"},"content":{"rendered":"<p>Examples are valid for:<\/p>\n<p>TMflow Software version: 2.24 or above.<\/p>\n<p>TM Robot Hardware version: HW5.0 or above<\/p>\n<p>Note that older or newer software versions may have different results.<\/p>\n<hr \/>\n<p><strong>Lua<\/strong> is a lightweight, efficient, and simple scripting language. Its ease of learning and use has made it widely adopted in the industry. TMflow 2.24 introduces <strong>HPScript Node<\/strong>, which allows users to write robot arm action scripts directly in Lua.<\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-131471\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png\" alt=\"\" width=\"1946\" height=\"806\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png 1946w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1-300x124.png 300w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1-1024x424.png 1024w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1-768x318.png 768w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1-360x149.png 360w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1-1536x636.png 1536w\" sizes=\"(max-width: 1946px) 100vw, 1946px\" \/><\/a><\/p>\n<p>Beyond Lua&#8217;s native standard libraries (such as string and math), the HPScript Node also integrates dedicated libraries for the robot arm.<\/p>\n<p><a href=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/table.png\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-131477\" src=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/table.png\" alt=\"\" width=\"688\" height=\"712\" srcset=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/table.png 688w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/table-290x300.png 290w, https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/table-360x373.png 360w\" sizes=\"(max-width: 688px) 100vw, 688px\" \/><\/a><\/p>\n<ul>\n<li><strong>Servo:<\/strong> This library provides various functions related to robot arm motion.<\/li>\n<li><strong>Controller:<\/strong> This library provides functions related to the control box, such as I\/O control or getting position.<\/li>\n<li><strong>System:<\/strong> This library offers system-related functions, including time interval synchronization, conditional waiting, or writing messages to the log file.<\/li>\n<li><strong>Memory:<\/strong> HPScript Node cannot directly use project or global variables. Instead, it must interact with the project through a special memory area. For example, an HPScript Node can write data to an address of that memory during its execution. After leaving HPScript Node, the data can then be retrieved using relevant TMscript functions (e.g., HPScript_GetMemByte).<\/li>\n<li><strong>Com:<\/strong> Users can designate COM2 for exclusive use by the HPScript Node in the I\/O Setup. Once this is done, the Com library&#8217;s functions can be used within the node to operate COM2.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>In addition, HPScript runs with <strong>low latency of 1 millisecond<\/strong>, making them ideal for applications that require a fast response between signals and motion for precise robot control.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Examples are valid for: TMflow Software version: 2.24 or above. TM Robot Hardware version: HW5.0 or above Note that older or newer software versions may have different results. Lua is a lightweight, efficient, and simple scripting language. Its ease of learning and use has made it widely adopted in the industry. TMflow 2.24 introduces HPScript [&hellip;]<\/p>\n","protected":false},"author":8760,"featured_media":0,"parent":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"doc_category":[4147,4700],"doc_tag":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Support Lua Script Programming | 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=\"Support Lua Script Programming | Techman Robot\" \/>\n<meta property=\"og:description\" content=\"Examples are valid for: TMflow Software version: 2.24 or above. TM Robot Hardware version: HW5.0 or above Note that older or newer software versions may have different results. Lua is a lightweight, efficient, and simple scripting language. Its ease of learning and use has made it widely adopted in the industry. TMflow 2.24 introduces HPScript [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Techman Robot\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png\" \/>\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\/support-lua-script-programming\/#primaryimage\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png\",\"contentUrl\":\"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#webpage\",\"url\":\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/\",\"name\":\"Support Lua Script Programming | Techman Robot\",\"isPartOf\":{\"@id\":\"https:\/\/www.tm-robot.com.cn\/de\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#primaryimage\"},\"datePublished\":\"2025-10-14T05:49:18+00:00\",\"dateModified\":\"2025-10-14T05:49:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#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\":\"Support Lua Script Programming\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Support Lua Script Programming | Techman Robot","robots":{"index":"noindex","follow":"follow"},"og_locale":"de_DE","og_type":"article","og_title":"Support Lua Script Programming | Techman Robot","og_description":"Examples are valid for: TMflow Software version: 2.24 or above. TM Robot Hardware version: HW5.0 or above Note that older or newer software versions may have different results. Lua is a lightweight, efficient, and simple scripting language. Its ease of learning and use has made it widely adopted in the industry. TMflow 2.24 introduces HPScript [&hellip;]","og_url":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/","og_site_name":"Techman Robot","og_image":[{"url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png"}],"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\/support-lua-script-programming\/#primaryimage","inLanguage":"de-DE","url":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png","contentUrl":"https:\/\/tm-robot.oss-cn-hongkong.aliyuncs.com\/wp-content\/uploads\/2025\/10\/pictab-1.png"},{"@type":"WebPage","@id":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#webpage","url":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/","name":"Support Lua Script Programming | Techman Robot","isPartOf":{"@id":"https:\/\/www.tm-robot.com.cn\/de\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#primaryimage"},"datePublished":"2025-10-14T05:49:18+00:00","dateModified":"2025-10-14T05:49:18+00:00","breadcrumb":{"@id":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www2.tm-robot.com\/de\/docs\/support-lua-script-programming\/#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":"Support Lua Script Programming"}]}]}},"_links":{"self":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs\/131470"}],"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\/8760"}],"replies":[{"embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/comments?post=131470"}],"version-history":[{"count":2,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs\/131470\/revisions"}],"predecessor-version":[{"id":131485,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/docs\/131470\/revisions\/131485"}],"wp:attachment":[{"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/media?parent=131470"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/doc_category?post=131470"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www2.tm-robot.com\/de\/wp-json\/wp\/v2\/doc_tag?post=131470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}