Data Formatting

Data Formatting

Use Data Formatting to define and format the data from the barcode reading you output as a result of job runs. Output Data runs through various interfaces, including TCPIP, Serial, USB HID, and USB CDC-Serial.
Data Formatting
Setting
Description
Output Formatting
When Output Formatting is disabled, the default output result formatting is outlined below:
Standard identification tools (Read Barcode, Read DPM, Read DPM & Barcode, and Datacode) will have their Decodes.formattedOutputValue output. If there is more than one standard identification tool, the additional tool's Decodes.formattedOutputValue will be appended to the existing result data. The output result will be in the order of the tools on the flowbuilder.
For example barcodeTool1barcodeTool2barcodeTool3
Machine Vision Tools add the overall job success field (Pass/Fail) to the resulting output. If a standard identification tool is in the job, the job success field displays in front of the output result with a comma separator between the job success and barcode data.
Output Channel
Formatting can be customized to be unique for each communication channel. This allows you to have one format configuration for Serial (RS-232) output, a second for TCPIP output, and a third for (USB) HID mode output.    Select All to keep formatting the same for all output channels.
Tools
When building your formatted output, choose various outputs (properties) available for each of the tools you are using:
Job Specific
Choose elements to add to the formatting string related to the entire job instead of a specific tool within the job.
Examples include:
  • The name of the job (<name>).
  • The job's overall pass/fail status (<result.success>).
  • The processing time of a job (<result.time>).
Use the Read Barcode tool to insert formatting configured from within the original
Barcode tool > Data Formatting
into this
Connec t> Data Formatting
formatting layer, use the bdfValue element to capture those results.
To send barcode data in text form to the output stream, add the <FULL STRING:TEXT> data type to the
Data
field:
To use the Find and Replace tool:
  1. Click
    Add Rule
    and select the data you intend to find (for example, <Custom String>).
  2. Next, click the pencil icon within the
    Custom String
    section to define the string you are looking for (in this example, the string is TBA)
  3. Repeat these same steps in the
    Replace
    area to define what the found data replaces (in this example, the string XXX).
  4. Click
    Add Data Types
    and select
    Full String
    in the
    Data
    area.
With this configuration, the data output is XXX032029506001 when the device reads a barcode with the text TBA032029506001.