{"id":46437,"date":"2021-05-26T15:21:58","date_gmt":"2021-05-26T07:21:58","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=46437"},"modified":"2022-08-05T10:50:35","modified_gmt":"2022-08-05T02:50:35","slug":"creating-your-own-component","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/zh-hant\/docs\/creating-your-own-component\/","title":{"rendered":"Creating Your Own Component"},"content":{"rendered":"

TM Component Editor provides developers the capability to compile nodes into components, which can be easily reused by other projects. It greatly simplifies the flow structure of repeating or similar applications. In addition, based on the diversity of product features, developers can plan the possible moving path of the robot in advance with TM Component Editor or design with the positioning of TM Landmark to create a variety of components applicable to screw driving, welding, polishing, and grinding.<\/p>\n

IMPORTANT: <\/strong>TM Component is not designed for confidential encapsulation. Do not use TM Component in confidential usage.<\/p><\/blockquote>\n

Start creating your first component<\/h1>\n

A component can consist of a variety of features to make the flow structure simple as well as reusable in other projects. TM Component Editor provides developers with a complete mechanism to create components. Among the nodes, the Start node<\/strong> can configure the component\u2019s basic parameters such as display icon, usage, global variables, and its instruments. Moreover, developers are able to provide users to modify the parameters on demand. To help users to understand the usage scenarios of the developer\u2019s component quickly, TM Component Editor manages a naming rule.<\/p>\n

TM Component Editor settings<\/h2>\n

Start node<\/h3>\n

Developers can click on the Start node for basic settings. In the basic settings, Provider is the name of the developer, Name, and Type stand for the name and the type of the node respectively, and Icon is the image to represent the component. In addition, TM Component Editor can pack available Global Variables and instruments together into the component, and show the results in the branches of the Gateway<\/strong> node.<\/p>\n

Step #1: Create a new project and tick ‘Component Editor’, project name naming rule is introduced below.<\/p>\n

Component Naming:\u00a0<\/strong>The naming rule of TM Component Editor goes by\u00a0Application_Provider_Model_Version_Function<\/strong><\/em>.
\nName\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Description & Examples
\nApplication <—>\u00a0 \u00a0GRIPPER
\nProvider\u00a0 \u00a0 \u00a0 <—>\u00a0 \u00a0TechmanRobot
\nModel\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 <—>\u00a0 \u00a0Adaptive
\nVersion\u00a0 \u00a0 \u00a0 \u00a0<—>\u00a0 \u00a0V001
\nFunction\u00a0 \u00a0 \u00a0<—>\u00a0 \u00a0GRIP<\/p>\n

IMPORTANT: <\/strong>Do not use reserved words such as var in naming.<\/p><\/blockquote>\n

\"\"<\/p>\n

Step #2: The component is created successfully, fill the settings on the right Component Edit panel. Details are listed below.<\/p>\n

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