{"id":97570,"date":"2023-01-16T15:43:04","date_gmt":"2023-01-16T07:43:04","guid":{"rendered":"https:\/\/www.tm-robot.com\/docs\/%e6%a2%9d%e7%a2%bc%e6%8e%83%e8%ae%80%e6%a9%9f%e6%87%89%e7%94%a8\/"},"modified":"2024-03-14T15:20:37","modified_gmt":"2024-03-14T07:20:37","slug":"how-to-use-a-barcode-scanner","status":"publish","type":"docs","link":"https:\/\/www.tm-robot.com.cn\/de\/docs\/how-to-use-a-barcode-scanner\/","title":{"rendered":"How to Use a Barcode Scanner"},"content":{"rendered":"

Examples are valid for:<\/p>\n

TMflow Software version: All versions.<\/p>\n

TM Robot Hardware version: All versions.<\/p>\n

Other specific requirements: None<\/p>\n

Note that older or newer software versions may have different results.<\/p>\n


\n

Hardware Configuration<\/h2>\n

A typical scanner can be connected to a TM Robot via the robot\u2019s RS-232 interface, as shown in the figure below.<\/p>\n

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

 <\/p>\n

Hardware Connection<\/h2>\n

Click the icon Serial Port, and you can connect a device to the serial port or manage such a device.<\/p>\n

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

Add a variable as the result of barcode scanning.<\/p>\n

For scanning syntaxes, please consult the manual\u00a0 Expression-Editor-and-Listen-Node.<\/em><\/p>\n

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

 <\/p>\n

Set up the SET node and use the Display node to read variables.<\/p>\n

 <\/p>\n

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

Execute the project and display the scanning result. <\/b><\/p>\n

 <\/p>\n

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

 <\/p>\n

Using the Built-in Vision Module<\/b><\/h2>\n

 <\/p>\n

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

 <\/p>\n

A TM Robot\u2019s vision module can identify one-dimension barcodes, QR codes and two-dimensional data matrices.<\/p>\n