Skip to content

This application examples shows how to connect a QR Code Scanner via USB to the Industrial Edge Device. The scanned QR Code will be sent to a PLC and displayed in an HMI Panel.

License

Notifications You must be signed in to change notification settings

industrial-edge/qr-code-scanner

Repository files navigation

Connecting USB QR Code Scanner

Connecting an USB based QR code scanner to an Industrial Edge Device.

Description

Overview

This application examples shows how to connect a QR code scanner via USB to the Industrial Edge Device. The scanned QR code will be sent to a PLC and displayed in an HMI Panel.

General Task

The application reads the QR code provided by the scanner and publishes it on the Databus to the topic corresponding to the OPC UA Connector, which sends the data to the PLC. This topic needs to be created in the Databus in advance. The scanner type, PLC tag, Databus topic as well as Databus credentials can be configured via an external configuration file.

deploy VFC

Requirements

Used Components

  • Industrial Edge App Publisher V1.13.5
  • Docker Engine 24.0.6
  • Docker Compose V2.21.0
  • Common Configurator V1.9.0
  • Databus V2.2.0-3
  • Databus Configurator V2.3.1-4
  • Industrial Edge Device V1.16.1-1-a
  • IE App Configuration Service V1.3.2
  • OPC UA Connector V2.0.1.0
  • QR Code Scanner: SIMATIC MV320
  • TIA Portal V18 (V16 minimum)
  • PLC: CPU 1518 FW 2.8.3

TIA Project

The used TIA Portal project can be found in the miscellaneous repository in the tank application folder and is also used for several further application examples:

Configuring PLC Connection

Further information about how to configure the OPC UA Connector to write data to the PLC can be found in the docs section.

Installation

You can find further information about the following steps in the docs

Usage

Plug your SIMATIC MV320 QR code scanner (or any other USB Scanner) to one of the USB ports of your Industrial Edge Device.

Go to the TIA Portal Project, start the HMI Runtime and scan any available QR code (e.g., the following QR code). A pop up will appear with the content of the scanned code.

You can also open the GBD data block in the TIA Portal and check the content of the APP_QRCode variable in the appSignals structure.

QR_Code_Industrial_Edge

Implementation

The access to the USB based QR code scanner inside the application as well as further details about the source code can be found in the implementation section.

Documentation

Contribution

Thank you for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section. Additionally everybody is free to propose any changes to this repository using Pull Requests.

If you haven't previously signed the Siemens Contributor License Agreement (CLA), the system will automatically prompt you to do so when you submit your Pull Request. This can be conveniently done through the CLA Assistant's online platform. Once the CLA is signed, your Pull Request will automatically be cleared and made ready for merging if all other test stages succeed.

License and Legal Information

Please read the Legal information.

Disclaimer

IMPORTANT - PLEASE READ CAREFULLY:

This documentation describes how you can download and set up containers which consist of or contain third-party software. By following this documentation you agree that using such third-party software is done at your own discretion and risk. No advice or information, whether oral or written, obtained by you from us or from this documentation shall create any warranty for the third-party software. Additionally, by following these descriptions or using the contents of this documentation, you agree that you are responsible for complying with all third party licenses applicable to such third-party software. All product names, logos, and brands are property of their respective owners. All third-party company, product and service names used in this documentation are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.

About

This application examples shows how to connect a QR Code Scanner via USB to the Industrial Edge Device. The scanned QR Code will be sent to a PLC and displayed in an HMI Panel.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages