Article sections

    2473 – WXS Scanner List and AOI

    Posted by Robert Ward | 10/11/2020

    Updated by Robert Ward | 7/19/2022

     

    For scanners to communicate with the WXS, two steps shall be taken.

    First, create an array called “wxsScannerList”, of Data Type “wxsScanners”, that contains the same number of elements as there are scan stations on the project.

    The UDT wxsScanners has the following elements:

    • .ID
      • Data Type: INT
      • Give this scanner a unique ID that is not duplicated elsewhere in the array. This can be “1” to start, but be sure not to have another ID be 1 in this array.
    • .Enabled
      • Data Type: BOOL
      • To enable this scanner, set this BOOL to a 1. To disable this scanner, set the BOOL to a 0.
      • Should the user wish to no longer write data for a scanner to the database and/or have the scanner show up under the WXS Scanner’s Page, simply set this BOOL to a 0.
      • NOTE: we do not recommend altering the array to delete elements that are no longer being used. This can be done, but the data is logged via the .ID and therefore if sometime later the .ID was duplicated, all of the data for the old scanner could show up under the new scanner.
    • .Name
      • Data Type: STRING
      • This is the unique name for this scan station. The name entered in here must match the name of the corresponding AOI
      • Max length of this STRING to be (25)

     


    Second, the user can distribute the wxsScanner_vXX AOI throughout the program, using one AOI instance for each scan station.

    This AOI is used to trigger and serve data up to the WXS Server.

    Explanation of Tags:

    • wxsScanner_vXX
      • Data Type: wxsScanner_vXX
      • Use: The tag name entered here must match that of the corresponding wxsScannerList array element.
    • ID
      • Data Type: INT
      • Use: The tag name here must be the .ID element of the corresponding wxsScannerlist array.
    • Enabled
      • Data Type: BOOL
      • Use: The tag name here must be the .Enabled element of the corresponding wxsScannerList array.
    • StoreContainerData
      • Data Type: BOOL
      • Use: This is the trigger bit used to store the scanner data locally within this AOI FIFO. This AOI can store up to (10) scans before overwriting. This AOI is designed to have the WXS retrieve all data any time the FIFO position is greater than zero. Set this bit to a 1 to load the data, via one-shot, and the AOI will reset to a 0 once loaded.
    • ContainerData
      • Data Type: udtContainerData
      • Use: This is the UDT used to control container data. While the UDT has all data elements used to populate a full WXS, the user may only populate the data needed for the given application. The WXS will only display the data field/columns that have active data within.
      • udtContainerData Breakdown:
        • TriggerID:
          • Data Type: DINT
          • Use: Unique Trigger Number for each scan
        • ResultData:
          • Data Type: STRING
          • Use: This is the return data from the scanner, unparsed
        • TxMessage:
          • Data Type: STRING
          • Use: This is the field used to send Barcode data to the WXS. This is also used in a Middleware application to send query info to the Middleware.
        • RxMessage:
          • Data Type: STRING
          • Use: This field is not used in WXS applications and is only used in Middleware applications. After the Middleware queries the Host, it will write the reply message into this field.
        • LaneAssigned:
          • Data Type: INT

    Use:       This will track and serve to the WXS which lane the sort query returned as the Lane Assignment.

     




     

    wxsScanner_v01.zip July 19, 2022 3 KB
    wxsScanners.zip July 19, 2022 724 B
    in Scanner Info, Scanners
    Did this article answer your question?

    Related Articles