You are on page 1of 6

BARCODE SCANNER

1. Overview
This driver provides the function of communication with the barcode scanner via RS232C. The barcode scanner driver is distinct from other standard drivers. It does not support real TAG.

Barcode Scanner

RS232C

This driver receives the characters from barcode scanner and converts them to keyboard input. Because of that, in XPanel kernels point of view, the barcode scanner is just like as a standard keyboard. To utilize the data from the barcode scanner, the keyboard input window object must be used in the graphic page design. This topic is described in this manual.

2. Communication Setup : Barcode Scanner


Follow the manual from barcode scanner vender. Make the confirmation of following condition during barcode scanner setup. Enter (0Dh) or other special code must be added at the end of data transmission. Prepare the communication parameters from venders documentation. (Baudrate, Parity, Stop Bit, Data Bits, Stop Bit)

DELTA TAU PMAC - 1

3. Communication Setup : XPanel


(1) Create a new device. For creating a new device, use the menu Tools->I/O Devices or Following picture shows the first step of creating a new device. icon in tool-bar.

I/O Device Name Give a device name.

(2) Select a network type : Barcode Scanner After selecting the OK button of previous step, Serial Communication Configuration dialog box will be popped up as shown in following picture.

DELTA TAU PMAC - 2

In this window, select the Device Type as Barcode Scanner and configure the proper serial communication parameters.

(3) Create a station Move to the Station tab of Serial Communication Configuration dialog box. In this dialog box, all the connected PLC stations can be configured and registered to the XPanel. Each field can be configured with following rules. Station Name Give a name to the barcode scanner. Station Type Choose the BarCode. (No other type can be selected.) Network ID This field has no effect. Station No. This field has no effect. 16Bit Data Swap This field has no effect.

DELTA TAU PMAC - 3

32Bit Data Swap This field has no effect Using Checksum This field has no effect. Comm. Error Message Pop Up This field has no effect.

DELTA TAU PMAC - 4

4. Key Input Window Object : XPanel (Page Designer)


Key input window object displays the input character to the screen and executes the assigned commands when the predefined terminating code input is detected.

End Code (HEXA) This field must be matched with terminating code of the barcode scanner. Typically 0Dh (Enter) code is widely used. Input Tag Name This field must be designated a string TAG. The input string from barcode scanner is stored in this string TAG. Command On Input Describe the command script in this field. When the End Code is received, this command script is executed automatically. Password Type This option can be used when there is need to hide input characters. If this option was checked, the input characters will be seen as * character. Clear at End Code If this option was checked, the string on screen will be cleared when End Code is received. Otherwise, the string on screen will be cleared when there is a new input.

DELTA TAU PMAC - 5

5. Communication Cable Wiring


[XPANEL COM1/COM2 RS232C] Connector Type : DB9

RD TD SG DTR DSR RTS CTS

2 3 5 4 6 7 8

Pin assignment of XPanel (RS232C, D-Sub 9 pin)


Above picture shows only the RS232C port of XPanel. This is the standard DB9 RS232C pin assignment. Typically RD and SG pins are enough to communicate with general barcode scanner. Refer to the manual of your barcode scanner for signal description.

DELTA TAU PMAC - 6

You might also like