Look up a bar code – Rockwell Automation Logix5000 Controllers ASCII Strings Programming Manual User Manual

Page 20

Advertising
background image

Chapter 2 Processing ASCII characters

For example, in a sorting operation, an array of a user-defined data type creates a

table that shows the lane number for each type of product. To determine which

lane to route a product, the controller searches the table for the product ID

(characters of the bar code that identify the product).

To look up a bar code, follow these procedures:

Create the PRODUCT_INFO Data Type

on

page 21

.

Search for the characters

on

page 21

.

Identify the Lane Number

on

page 22

.

Reject Bad Characters

on

page 22

.

Enter the Product IDs and Lane Numbers

on

page 23

.

Tip:

To copy the above components from a sample project, open the Samples folder. On the Help menu, click

Vendor Sample Projects.

Look up a Bar Code

20

Rockwell Automation Publication 1756-PM013D-EN-P - October 2014

Advertising