Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


U-CON: Receiving Unsolicited Data Without a Unique ID


Last Update: 11/7/2018

Problem:
A connected device sends several pieces of data in one transaction, but the data packets do not contain a unique identifier.

Solution:
Follow the instructions below.

  1. In KEPServerEX, create a new U-CON channel.
  2. In Mode, check Unsolicited Mode. In Key Length, enter 0.
  3. Continue through the Channel Wizard, configuring the channel as desired. Once finished, create a new device.
    Note: The unsolicited transaction steps are similar to those discussed in Tutorial 5: Processing Unsolicited Requests.
  4. Once the message from the device is read into the read buffer, use Processing Commands in the Transaction Editor (such as "Seek Character") to locate a byte within the data packet that can be used to locate the device data.
  5. Test the byte using Conditional Commands.

Note: If using a scale or barcode scanner that does not have unique identifiers, configure one channel for each device that is sending data.