Barcode

Barcode

The Barcode object allows you to convert direct dynamic data (serial numbers, product codes, work orders, etc.) into a scannable barcode image directly on your SCADA project’s Runtime screen, without the need for an external physical barcode printer.
This is a powerful tool for enabling operators to perform production tracking or logistics operations by quickly scanning the data on the screen with a handheld scanner.

Common Use Cases
  • Production Tracking: Displaying the active work order number or batch/lot number as a barcode on the screen.
  • Reporting: Printing the serial number or ID of a relevant report as a barcode on report screens.
  • Logistics: Displaying a product or pallet ID on the screen to allow scanning by mobile terminals.
  • Device Information: Displaying the serial number or model code of a selected device as a barcode.
Basic Configuration and Operation

The Barcode configuration is managed through two panels, similar to the WebView2 control:

1. Configuring Static Settings (Advanced Panel) The default state of the object when the screen opens—such as the format (CODE_128, QR_CODE, etc.), bar color, background color, and default text—is determined via the Advanced panel.

2. Binding Dynamic Data (Properties Panel) To change the actual data encoded by the barcode based on a tag, bind a String tag to the Value -> Tag property in the Properties panel.

3. Setting Behavior (Advanced Panel) Features such as whether to display the encoded data or the header text on the barcode (ShowText, ShowValue) are configured in the Advanced panel.

Properties Panel – Key Properties

This panel allows you to make the barcode dynamic by linking its properties to SCADA tags.

Value

  • Tag:
    • Function: This is a one-way link (Tag -> Object) connecting the actual text data (Value) to be encoded by the barcode to a String tag.
    • Read: If the connected tag (e.g., Product_SerialNo_Tag) is changed to “SN-12345” by a script, the barcode instantly updates to encode this data. (It is not possible for the operator to change this value by clicking on the barcode).

Advanced Panel – Key Properties

The core configuration settings for the Barcode object are grouped under categories in the Advanced panel:

  • FillColor
    • Determines the background color of the barcode (Default: White).
  • Format
    • Determines the industrial standard the barcode will use.
    • Examples: CODE_128 (Common), EAN_13 (Retail), QR_CODE (2D Matrix), etc.
  • ShowText
    • If True, displays the header text written in the Text property above/below the barcode.
  • ShowValue
    • If True, displays the encoded data written in the Value property above/below the barcode.
  • Text
    • The static header text to be displayed with the barcode (e.g., “Wise SCADA”).
    • Note: To make this dynamic, it must be bound to a tag via Text -> Tag in the Properties panel.
  • TextPosition
    • Determines the position of the header text relative to the barcode (Top or Bottom).
  • Value
    • The static data to be converted into a barcode (e.g., “0123456789”).
    • Note: To make this dynamic, it must be bound to a tag via Value -> Tag in the Properties panel.
  • ValuePosition
    • Determines the position of the value text relative to the barcode (Top or Bottom).
  • ForeColor
    • Determines the color of the barcode bars (Default: Black).

Common Usage Examples

Example 1: Displaying a Static Barcode

To create a barcode that displays fixed information (e.g., company website) which the operator cannot modify.

  1. Add a Barcode object to the screen.
  2. Go to the Advanced panel:
  • Set Format to QR_CODE.
  • Enter the website address in the Value property: https://www.fultek.com.tr.
  • Set ShowText to True.
  • Enter “Visit Us” in the Text property.
  • Set ShowValue to False (to hide the long URL text).

Result: When the screen opens, the Barcode object directly displays a QR code encoding the address https://www.fultek.com.tr.

Example 2: Dynamic Barcode Switching with Buttons

To allow the operator to see serial numbers of different products as barcodes by pressing buttons.

  1. Create a String type tag in your SCADA project.
  2. Add a Barcode object to the screen.
  3. Go to the Properties panel and bind the Value -> Tag property to your created tag.
  4. In the Advanced panel, set the Format property to CODE_128.
  5. Add two buttons to the screen: “Product A” and “Product B”.
  6. Create a function on the Mouse Down event of the “Product A” button that sets the string tag to “URA-SN-001”.
  7. Create a function on the Mouse Down event of the “Product B” button that sets the string tag to “URB-SN-500”.

Result: When the operator presses the “Product A” button, the tag updates, the Barcode object detects this, and encodes the data “URA-SN-001”. When the other button is pressed, the data “URB-SN-500” is encoded.

Leave a Reply