{"id":96324,"date":"2023-07-20T10:37:59","date_gmt":"2023-07-20T02:37:59","guid":{"rendered":"https:\/\/www.tm-robot.com\/?post_type=docs&p=96324"},"modified":"2023-09-20T13:57:29","modified_gmt":"2023-09-20T05:57:29","slug":"how-to-develop-a-tmcraft-node","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/ja\/docs\/how-to-develop-a-tmcraft-node\/","title":{"rendered":"How to Develop a TMcraft Node"},"content":{"rendered":"
Examples are valid for:<\/p>\n
TMflow Software version: 2.14 or above.<\/p>\n
TM Robot Hardware version: Only support HW3.2 or above<\/p>\n
Other specific requirements: None<\/p>\n
Note that older or newer software versions may have different results.<\/p>\n
<\/p>\n
TMcraft node is customized Node UI Program, a C# + WPF-based execution file (exe) developed by 3rd<\/sup> party. The Program can interacts with TMflow through TMcraft API to do actions, such as creating or modifying project variables, creating or modifying points, setting I\/O, jogging the robot, etc. Before the Node UI is closed, the program can transform the settings into TMscript and write it into the Flow Project.<\/p>\n For security issues, developers cannot just put an exe file onto TMflow; instead, they have to develop and build the Node UI into a User Control Library ( DLL file ) first. Through the TMcraft-Build on TMstudio Pro, this User Control Library is then built as an execution file and zipped with other resources (such as libraries, media, etc.). Finally, import this zipped file to TMflow, this TMcraft Node can be used on Flow project after enabling.<\/p>\n TMcraft API is an interface layer that connects TMcraft Node with TMflow to get all sorts of robot\/project information and request TMflow to take different actions or generate scripts for the project run. In addition, this API is an actual Dynamic Link Library file (DLL) for users to add as one of the program dependencies and to use the functions within to interact with TMflow.<\/p>\n <\/p>\n TMcraft.dll has four parts: ITMcraftNodeEntry, Providers, Info and ENUMs.<\/p>\n <\/p>\n Also, TMcraft API includes a few member functions: Close()<\/span>, GetErrMsg()<\/span>, and Version<\/span>. Refer to the TMcraft Node API function manual<\/em> for details.<\/p>\n <\/p>\n Here is the simplest sample code of a TMcraft Node.<\/p>\n<\/a><\/p>\n
What is TMcraft API<\/strong><\/h2>\n
\n