A58-001 User’s Manual CCD Bar Code Reader BL-180 Series Worldwide Headquarters KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: 81-6-6379-2211 FAX: 81-6-6379-2131 KEYENCE CORPORATION OF AMERICA PHONE: 201-930-0100 FAX: 201-930-0099 KEYENCE (MALAYSIA) SDN BHD PHONE: 03-252-2211 FAX: 03-252-2131 KEYENCE (UK) LIMITED PHONE: 01908-696900 FAX: 01908-696777 KEYENCE (THAILAND) CO.
No part of this document is to be reproduced or utilized in any form or by any means without the written consent of KEYENCE Corporation. The contents of this document are subject to revision without notice. If you have any problems or questions regarding this document, please contact one of the KEYENCE offices listed on the last page of this document. KEYENCE is not responsible for any results of the application of the product.
Contents Introduction ......................................................................................................................vii Unpacking ........................................................................................................................vii Safety Precautions ..........................................................................................................vii Conventions .............................................................................................
Codabar setup ............................................................................................................................................... 35 UPC/EAN setup ............................................................................................................................................. 36 CODE128 setup ............................................................................................................................................. 36 Trigger input setting ...........
Setting the BL-U1 DIP switches ..................................................................................................................... 82 Function and wiring on the I/O terminal block ................................................................................................ 83 RS-232C port pin assignment ........................................................................................................................ 84 RS-232C port wiring ..........................................
Introduction Thank you for choosing the BL-180 series CCD bar-code reader. This User’s Manual describes details on operations and functions of the BL-180. Read this manual carefully to maximize the BL-180 performance. Unpacking There are two packages: A BL-180 package and a software package. Each package contains the following components.
System Configuration BL-180/185 RS-232C null modem cable IBM PC/AT OP-22149 (1.5 m) + OP-25057 or compatible (25- to 9-pin adapter) RS-232C 5VDC Power-supply unit* Trigger input OK/NG output BL-18H1E Setup software 3.5-inch version WINDOWS 3.1 Timing sensor PLC etc. Note The 5 VDC power supply unit must be purchased separately. The optional BL-U1 or BL-U2 power supply is also available. Parts and Functions BL-180 OK output: Lights in green. NG output: Lights in red.
viii
Chapter 1 Connection and Installation
1.1 BL-180 Connections 1.1 BL-180 Connections 1.1.1 Wire colors and signal types The following wires extend from the BL-180. Solder the required wires to a connector to connect the BL-180 to a computer/controller.
1.1 BL-180 Connections OK/NG output This output signals whether the readout data is the same as the preset data. When no preset data has been registered, the signal indicates bar code read status. It is an NPN open-collector output. Internal circuit BL-180 1kΩ OK/NG Write/Gray GND Black Load + *Rated load: 24 VDC (100 mA) max. 1.1.4 RS-232C Connections Note This BL-180 setup software applies to port 1 and port 2 only. Communication cannot be performed with another port.
1.1 BL-180 Connections Hints on correct use Trigger (TIM) input Set the trigger input to be long enough to allow the laser beam to cover the entire bar code. If the trigger input needs to be on for only a short period of time, select one-shot mode. Influence from mirror surface If a mirror surface (metallic surface) is near the bar code and the laser beam reflects off the mirror, the BL-180 may cause a read error.
1.1 BL-180 Connections Bar code height The bar code height must be at least 3 mm. However, adjust any bar code of 3 mm or more height so that it is arranged from one end to the other on the lightreceiving axis.
1.2 Installing the BL-180 Series 1.2 Installing the BL-180 Series Installation method Use the mounting holes on the side panel to install the unit. To prevent dust from entering the unit, seals have been placed over the screw holes. Remove the seals before mounting. Using the supplied mounting brackets Install the BL-180 Series as shown in the figures below.
1.2 Installing the BL-180 Series Mounting angle and mounting distance 12.5 BL-180 15.3 BL-180 10° 33 Light-receiving axis BL-185 Set the angle and reading distance by referring to the read range characteristics and angle characteristics described on page 63 and 64. The allowable reading distance and angle may vary depending on the narrow bar width of the bar code, the bar code size, and the readability of the bar code.
1.
Chapter 2 Functions for Reading Operation
2.1 Read Operation 2.1 Read Operation 2.1.1 Scanning method There are two methods for triggering the BL-180 to read bar codes; the “Level signal” method and the “One-shot signal” method. The example given for these two methods uses the “single label read mode” (see page 12), which reads one bar code while trigger input turns on once, and uses the “after read” as the data-send mode (see page 11). Level signal trigger When the trigger input turns on, LED emission begins and the the unit begins reading.
2.1 Read Operation One-shot signal trigger The unit detects the rising edge of the trigger input and starts reading bar codes for the preset input time. The LED beam turns off after reaching the specified decode count and the unit sends the readout data. The remaining actions are the same as those for level signal trigger. Trigger input *1 Bar code Preset input time Preset input time LED beams Communication time OK/NG output OK/NG NG 1.
2.2 Read modes 2.2 Read modes The BL-180 provides 4 types of read modes. 2.2.1 Single label read mode This mode allows the unit to read one bar code during one trigger input signal. The operation and timing chart are described on page 10. 2.2.2 Multi-label read mode 1 (Multi 1) This mode allows the unit to read several bar codes printed on one label as shown below during one trigger input signal. The unit outputs the readout data sequentially.
2.2 Read modes 2.2.3 Multi-label read mode 2 (Multi 2) As with multi 1 mode, this mode allows the unit to read several bar codes continuously while the trigger input is on. (The number of bar codes that can be read depends on the buffer capacity. See page 48.) The difference between the two modes is that multi 2 modesends all the readout data at one time after the trigger input turns off.
2.2 Read modes Operation of multi-label read mode 3 This mode allows the unit to continuously read each one of 4 bar code types “Code 1”, “Code 2”, “Code 3”, and “Code 4” as specified in the “code setup” of the setup software (see page 32). If 3 types are specified in the “code setup”, the unit reads 3 bar codes (each of 3 types). If 2 types are specified, the unit reads 2 bar codes. The following time chart is given.
2.2 Read modes Example Suppose that the following codes are specified: Code 1 --- CODE39, 7 digits Code 2 --- CODE39, 7 digits Code 3 --- CODE39, 7 digits Code 4 --- CODE39, 7 digits Header Note ABCD123 , XYZ3333 , 1234567 , KEYENCE , Delimeter The unit cannot read the bar code having the same content twice while trigger input turns on once.
2.3 Label orientation mode 2.3 Label orientation mode As shown below, this mode allows the unit to read bar codes only in the specified orientation when bar code labels are moving both in the forward and reverse orientations. Forward orientation Reverse orientation 4 9000000 BL-180 OK/NG STABILITY 4 9000000 Normally, the unit can read bar codes regardless of the orientation.
2.4 Test Mode 2.4 Test Mode Test mode can be used for the bar code reading test. Because trigger input is not required, this mode allows you to perform a reading test easily. You can select one of the following 3 methods to enter the test mode. Send the command Enter test mode by sending the serial command for the test mode (TEST1, TEST2). Commands should be entered in all uppercase characters.
2.4 Test Mode • The read count can be up to 9999. • Although an OK/NG signal is not output, the OK/NG LED lights (see page 19). Note When the unit is running in test mode, the LED beam remains on, which can shorten the LED’s service life. Select the test mode only when you need to perform a test read. Avoid long emission times. When using the “additional information” (see page 21 to 22) in the test mode, the selected data is added in the same manner as in the normal operation mode.
2.5 STABILITY LEDs 2.5 STABILITY LEDs STABILITY LEDs allows you to easily check reading stability. STABILITY LEDs light only when the test mode gets started or the decode count adding function (see P. 34) is used. Indication of reading stability When reading rate check mode is selected STABILITY LEDs light according to the reading rate shown in the table below. Although, in the test mode, the unit does not output an OK/NG singnal, the OK/NG LED lights as below.
2.6 Preset Function (Compare with:) 2.6 Preset Function (Compare with:) 2.6.1 What is the preset function? The BL-180 can store one bar codeas preset data. It compares the preset data to the bar code data actually read and outputs an OK/NG signal to whether there is a match. Using the BL-180 preset function, you can prevent the wrong products from entering the line without using a PC.
2.7 Additional Information 2.7 Additional Information When sending the bar code data, you can add the following data to the readout data. Additional information types Decode match count add function Adds the number of successful scans during one bar code reading (decode count) to the end of the readout data (up to 9999 count). However, this decode count is never less than the preset decoding match count. • This function can be used to check reading stability and code label quality.
2.7 Additional Information label orientation add function Adds the orientation of bar code travel before the readout data. Delimiter : r r =F R Readout data :Forward :Reverse If an read error occurs, this information is not added.
2.8 Max. Code Length (Designated Digit ) Output Function 2.8 Max. Code Length (Designated Digit ) Output Function This function allows you to output the designated digit(s) as desired from the readout bar code data. For example, from bar code data “49123456”, you can extract “1234” for output. Setting digits to be output Set the digits to be output as shown below. Individually set the digits for codes 1 to 4. 1. Set the direction to designate. Set from which direction you want to start counting.
2.8 Max.
Chapter 3 Setup Software
3.1 Controlling the BL-180 3.1 Controlling the BL-180 The BL-180 can be controlled by computer using an RS-232C serial communication with Windows™ Terminal software or using BL-180 Setup Software. This chapter describes how to set the BL-180 using the BL-180 setup software. For more information on using the serial communication, see “Chapter 4” on page 45. 3.1.
3.1 Controlling the BL-180 8. To accept the directory name, click on the OK button. 9. To change the directory name, click on the column displying the directory name, type a desired directory name using the keyboard, and click on the OK buttonAfter the installation is completed, the “KEYENCE Barcode Reader” window is created in the program manager. In this window, icon “BL18WIN” is created. 10. To start the setup software, double-click on the “BL18WIN” icon. 11.
3.2 Operating Procedure 3.2 Operating Procedure 3.2.1 Outline of Operation To operate the setup software, place the mouse pointer on the item to be changed, and click the left button of the mouse. Use the Down Arrow button to select an item from a list. Place the mouse pointer on a desired item, and click on the item. Click on the Option button to select one of several items. In the above settings, Read mode is set to “Single” and Data-send is set for “At trigger input.
3.3 Setup Software Operating Procedure 3.3 Setup Software Operating Procedure After the setup software is started, the following screen (main setting screen) is displayed. The function of each display is as follows. Title (Name of the current setting screen) Current file name The initial file name is “Untitled. CFG”. Menu bar (*) Parameter Setting screen selector buttons The setup software provides the following setting screens according to the parameters.
3.3 Setup Software Operating Procedure Menu Bar The following operations can be performed using the menu bar. File Menu (Alt+F) Specifies a file name/Saves a file. Exits the setup software. Send Settings (Alt+S) Sends settings to the BL-180. Info (Alt+I) Indicates the version number of this software. 3.3.1 File Operation The following is the procedure for specifying a file name, saving a file or exiting the setup software. Click on File in the menu bar. The following menu appears.
3.3 Setup Software Operating Procedure Open 1. Click on Open. 2. The following screen is displayed for selection of the file to be read. Select a desired file from those listed in the file selection column, and click on the OK button. If you wish to cancel this operation, click on the Cancel button. To change the directory or drive, select a desired directory or drive in the directory/drive selection column. 3. When you click on the OK button on the above screen, the following message appears.
3.3 Setup Software Operating Procedure Example When the file name is “TEST”: 1. Click on the file name entry column. 2. Enter “TEST. CFG” as the file name . 3. Click on the OK button. If you wish cancel this operation, click on the Cancel button. To change the directory or drive, select a desired directory or drive in the directory/drive selection column. 4. If the specified file name has already been stored, the following message will appear.
3.3 Setup Software Operating Procedure 4. When selecting Single for Read mode, the following appears on the screen: When selecting Multi 1 or Multi 2, the following appears on the screen: Set the time within the range from 1 to 255 (100 ms to 25.5 s). When selecting Multi 3, none of the above information appears. 5. In the Additional information field, you can select one or more items. However, the scan count is given only when the decode count is selected.
3.3 Setup Software Operating Procedure 4. When you select Inspect check-digit, the following information appears: The above setting sends the data together with the check-digit. Modulus 43 is used to calculate the check-digit. 5. When you select Max code length output, the following information appears: Set Effective and Starting from 1 to 32. 6. When you select Specify label orientation, the following information appears: 7. Click the Return button or press [ENTER] to return to the main setting screen.
3.3 Setup Software Operating Procedure 3.3.6 Codabar setup 1. Set code length from 3 to 32 including the start/stop character. 2. When you select Send start/stop character, A, B, C, and D are added to the data to be sent. In this case, the following information appears: You can select lowercase or uppercase for the start/stop character. 3. When you select Inspect check-digit, the following information appears: Specify the check-digit calculation method and whether or not the check-digit is sent. 4.
3.3 Setup Software Operating Procedure 3.3.7 UPC/EAN setup 1. Select Read EAN 8 code, Read UPC-A[EAN13] code or Read UPC-E to enable to read. If you select Read UPC-A[EAN13] code, the following information appears, asking you to select which digits you want to output on UPC-A. If you select Read UPC-E, the following information appears, asking if you want to send data with the leading zero-suppressed. 2.
3.3 Setup Software Operating Procedure 2. Check that the double-character start pattern is regulated in the UPC/EAN128 standard. It means the combination of start character (CODE-C) and FNC1 (function code 1). The standard specifies that the UPC/EAN-128 bar codes should start with the double character start pattern. Using this parameter, you can specify that reading will not start without the double character start pattern. 3.
3.3 Setup Software Operating Procedure 3.3.10 Communication setting 1. Place the mouse cursor at the item to be changed and click it, or move to the target item by pressing [TAB]. Then, change the setting using [Space]. 2. When setting the header string, delimeter, and read error, click [Communication strings] or press [ENTER] to move to the communication strings setting screen. 3. Click the Return button or press [ENTER] to return to the main setting screen.
3.3 Setup Software Operating Procedure 3. When you select Default[:] for Partition mark and Intermediate delimiter, these parameters are set as below: When you select Custom, the following appears: Then, you can enter the desired value from the keyboard (using one character for the partition mark and 5 characters or less for the intermediate delimiter). 4. Input the Read error using the keyboard. You can change the code as desired (within 8 characters). Normally, you should use the default setting (ERROR).
3.3 Setup Software Operating Procedure 3.3.13 Sending Settings 1. Choose Send from the menu bar. The following screen appears. 2. Set the baud rate, data bits, stop bit and parity according the BL-180’s settings. The BL-180’s default settings are shown above. 3. Specify whether the parameter settings are to be saved in the EEPROM or not. If the current settings are not saved in the EEPROM, the setup software will start with the previous settings when the power is turned on again. 4.
3.4 List of Error Messages 3.4 List of Error Messages If an error occurs, the following messages will appear on the screen. Click on OK and delete the error message. Then, take the necessary corrective action. Error message File not found. The file specified for Open Setting does not exist. Drive is not ready. The specified disk is not prepared. Write protected. Overwrite protection is set to the disk. Illegal filename (must be in format of xxxxxxxx.CFG.) The remaining disk capacity is insufficient.
3.5 How to Use Terminal Software 3.5 How to Use Terminal Software The terminal software allows bar code data to be displayed on a Windows-based personal computer and allows serial commands to be sent to the BL-180. You can use the standard terminal software included in Windows Ver. 3.1. This section describes how to use the terminal software to confirm the operation of the BL-180. For more information on the terminal software and its functions, please refer to theWindows manual. 1.
3.5 How to Use Terminal Software 4. When you click on Terminal Preferences, the setting screen is displayed. Set the displayed parameters as shown below. After setting the parameters, click on OK. 5. Then, Click on Settings then Communications. The following screen appears. After setting “Connector” to COM1 or COM2, set the baud rate, data bits, stop bits and parity according to the BL-180’s settings. When the data bits is set to “8 bits”, the parity can only be set to “None.
3.
Chapter 4 Serial Communication (RS-232C/RS-422A)
4.1 Serial Communication 4.1 Serial Communication The BL-180 communicates with the PC via the RS-232C serial port. This enables you to change the BL-180’s settings from your PC. Communication Types The BL-180 provides the following two communication types: Data communication Sends read bar code data from the BL-180 to the PC. Command communication Changes the BL-180’s settings by sending a command from the PC to the BL180. All communication is performed using ASCII codes. 4.1.
4.2 Details on Data Communication 4.2 Details on Data Communication 4.2.1 Communication Protocols(Hardware handshaking) The BL-180 supports the following four handshaking protocols. No Handshaking The BL-180 sends read data to the PC without using any handshaking protocol. Read data PASS/RTRY Handshaking After sending the read data, the BL-180 waits for a response from the PC. The response is either a PASS command or a RTRY command.
4.2 Details on Data Communication RTS/CTS Handshaking When the PC’s RTS (BL-180’s CTS) signal turns off, the BL-180 becomes ready for data transmission. When the PC’s RTS signal turns on, the BL-180 starts data transmission. When the PC’s RTS signal is off, the BL-180 can still read. In this case, data is stored in the BL-180’s transmission buffer (see 4.2.2 below).
4.2 Details on Data Communication 4.2.4 Read Error Code If the BL-180 fails to read a bar code, the B-500 sends back a read error code. The initial setting of the read error code is as follows: Header ERROR Delimiter The read error code can freely be changed (within 8 characters). The BL-180 can be set to send no error code (see page 38).
4.3 Command Communication 4.3 Command Communication The BL-180 includes commands to directly operate the BL-180 (direct control commands) and the commands used to change or confirm the BL-180’s settings (parameter setting commands). 4.3.1 Setup of Direct Control Commands Communication procedure Command Response 1. Send a direct control command from the PC to the BL-180. 2. After receiving the command, the BL-180 sends back an OK response and executes the required operation.
4.3 Command Communication 4.3.2 Explanation of Direct Control Commands The following describe direct control commands in details. Read operation control This command specifies the data read timing. [LON] Trigger on Command: LON Response: None [LOFF] Trigger off Command: LOFF Response: None • Even when the read operation is controlled with these commands, the BL-180 performs the same operation as with the trigger input (see page 10 to 12).
4.3 Command Communication Clearing transmission buffer [BCLR] Clears data stored in the transmission buffer. Command: BCLR Response: OK Shift to setting mode [SSET] Enters the setting mode (see page 51). Command: SSET Response: OK 4.3.3 Details on Parameter Setting Commands The following describes how to change the BL-180’s settings through command communication. You can use the setup software to change the BL-180’s settings instead of these commands. Communication Details 1.
4.3 Command Communication 4.3.4 Response Error Code When an incorrect command is sent to set parameters, the BL-180 sends back data indicating the cause of the error (error code). For the commands corresponding to the error codes, see the error code column given in the table on the following pages. Error code Cause of error 00 01 02 03 Undefined command. Command format is incorrect. Nothing corresponds to the number in the command. “m” value (codes 1 to 4) is other than 0 to 3.
4.3 Command Communication Setting Bar Code Type and Number of Readable Digits for Codes 1 to 4 The following describes the parameter setting commands for Codes 1 to 4. Be sure to send “Bar code type setting command” first before setting other parameters. Note When “Bar code type setting command” is newly sent, all other parameters for the specified code will return to the default settings. In this case, set all other parameters again.
4.3 Command Communication Function Command being sent Respons e Codabar Setting check digit type Change Confirm WCm34n RCm34 OK 34n UPC(A-E)/EAN Change Confirm WCm40n RCm40 OK 40n Change Confirm WCm41n RCm41 OK 41n Reading UPC-E UPC(A-E)/EAN Reading EAN 8 digits Function UPC(A-E)/EAN Reading JAN 13 digits UPC(A-E)/EAN No.
4.
4.3 Command Communication Setting Trigger Input (Starting Test Mode) Function Command being sent Setting signal type Setting one-shot input time Setting time constant of trigger input Setting state of trigger input Starting test mode when trigger input turns on. (To specify the test mode, use the command below.) Specifying the test mode to be started when trigger input turns on. Starting test mode when power is turned on.
4.3 Command Communication Setting Communication Parameters Function Setting baud rate Setting data bit length command being sent Change Confirm Change Confirm Setting parity check Change * To set the parity type, use the Confirm command below. Setting parity type Change Confirm Setting Stop bit Change Confirm Setting handshaking protocol 1 Change * To specify the protocol, use Confirm the command below.
4.3 Command Communication Setting Communication strings Function command being sent Setting header Change Confirm WP51hhh... RP51 OK 51hhh... Setting delimiter Change Confirm WP52hhh... RP52 OK 52hhh... Setting partition mark when Change additional information is used. Confirm WP50hh RP50 OK 50hh Setting intermediate delimiter when multi label reading mode 2 or 3 is used. Change Confirm WP54hhh... RP54 OK 54hhh... Setting read error code Change Confirm WP55hhh... RP55 OK 55hhh...
4.
APPENDIX
A.1 Specifications A.1 Specifications BL-180/185 Model Model (with connector) Scanning direction Light source/Light receiving element BL-180 BL-185 BL-180SO(7030) BL-185SO(7031) Front Side LED/CCD image sensor Scanning distance 33 mm ± 10 mm1 (Using narrow bars of at least 0.19 mm in width) Readable bar width 0.125 to 1.0 mm2 Maximum label width PCS 80 mm3 (Using narrow bars of at least 0.19 mm in width) 0.
A.2 Reading Range Characteristics (Typical) A.2 Reading Range Characteristics (Typical) Mount the BL-180 referring to the figure below. (The BL-185 provides the same characteristics as the BL-180.) BL-180 80 60 Readable label width (mm) * The readable label width means the bar code length including the bar code margins (quiet zones). OK/NG STABILITY 10 10 33 Reading distance (mm) 5 5 •••Reading range when narrow bar width is not less than 0.125, less than 0.19 mm.
A.3 Angular Characteristics (Typical) A.3 Angular Characteristics (Typical) Mount the BL-180 referring to the data given below. (The BL-185 provides the same characteristics as the BL-180.) Skew Pitch Tilt -40° to -5°, +10° to +40° -40° to -5°, +10° to +40° ±15° ±15° ±10° ±15° Narrow bar width 0.125 to 0.19 mm(less than 0.19 mm) 0.19 to 1.0 mm (Measuring conditions) • The KEYENCE standard bar code is used.
A.4 Dimensions A.4 Dimensions BL-180 4 26 10 17 2 x 2-M3 Depth: 5 mm or less 47 20 80 55 Readable width ø10 5 10 29 33 ø4.5 Cable length: 1.8 m 10 15.3 4 26 Receiver axis 17 BL-185 4 6 15 2 x 2-M3 Depth: 5 mm or less 36 55 20 80 Readable width 55 ø10 5 37 Receiver axis 6 12.5 33 10 ø4.5 Cable length: 1.
A.4 Dimensions BL-180 (with mounting bracket) 20 55 31 16 9 55 9 16 31 33 47 7 33 Receiver axis 80 (Readable width) 20 80 (Readable width) 8 33 47 7 33 ° Receiver axis 15.7 (36) 31 31 (38) 23.3 ° 10 10 t=1.6 BL-185 (with mounting bracket) 33 4.4 20 9 55 80 (Readable width) 8 16 31 7 8 33 47 12.5 Receiver axis ° 31 (37) 10 t=1.
A.5 Example Program for Serial Communication A.5 Example Program for Serial Communication The following is a example program that allows data communication and command communication. Type in a command and press [Enter] to send the data to the BL-180. Only the QUIT command can be sent by pressing [Q].
A.6 Troubleshooting A.6 Troubleshooting If a problem occurs during operation, please check the following troubleshooting notes first. If you cannot fix the problem, contact KEYENCE or your nearest dealer. Bar codes cannot be read. Check whether the light source LED is ON. When using a power supply other than the BL-U1 special power supply unit, confirm that the power supply voltage and capacity is within 5 VDC±5% and 300 mA. Check the wiring of the power supply unit and the timing input terminal (see p.
A.6 Troubleshooting Check whether the transmitter (light source) and the receiver (optical pickup) are clean. If moisture, oil or dust adheres to the transmitter or the receiver, wipe the units using a soft cloth and a mild plastic cleaner. Check whether the protective label is attached to the transmitter or the receiver. Remove the protective label before using the BL series. Check whether the protective label is attached to the transmitter or the receiver. Check the environmental conditions.
A.7 CODE128 Specifications A.7 CODE128 Specifications Setting No. of Digits • The start/stop character and check digit are not included in the number of digits. • FNC1 to 4 (Function codes), SHIFT, and CODE-A to -C should not be added to the number of digits. • The number of digits setting range varies depending on the start character (CODE-A to -C). CODE-A, B: 1 to 32 CODE-C: 2 to 64 One digit of CODE-A or CODE-B represents two digits of CODE-C.
A.8 ASCII Code Table A.8 ASCII Code Table Upper 4 bits 0 1 2 3 4 5 6 7 Binary 0000 0001 0010 0011 0100 0101 0110 0111 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 SOH STX ETX EOT ENQ ACK BEL BS HT LF HM CL CR SO SI DLE DC1 DC2 DC3 DC4 NAK SYN ETB CAN EM SUB ESC → ← ↑ ↓ (SP) ! “ # $ % & ‘ ( ) * + , .
A.9 Default Settings A.9 Default Settings In the main setting screen, the default bar code selections for the four bar code fields are as shown below. Bar Code Default Settings Below are the default settings for each bar code setting screen.
A.
A.
A.
A.
BL-U1 Power Supply
Introduction This User’s Manual describes the operation and functions of the BL-U1. Read this manual carefully to ensure safe use and maximum performance from your BL-U1. Note: No part of this document is to be reproduced or utilized in any form or by any means without the written consent of KEYENCE Corporation. The contents of this document are subject to revision without notice.
System Configuration Using the RS-232C and RS-422A RS-232C null modem cable OP-22149 (1.5 m) + OP-25057 (25- to 9-pin adapter) BL series IBM PC/AT or compatible BL-U1 Power supply unit RS-232C Trigger input BL-18H1E Setup software 3.5-inch version WINDOWS 3.1 OK/NG output RS-422A Timing sensor Equipment with RS-422A* PLC etc. • If not using the BL-U1, prepare an equivalent 5 VDC power supply unit separately. • To communicate through the RS-422A, you need a BL-U1 in your system.
BL-U1 OK/NG LED OK output: Lights in green. NG output: Lights in red. 123 TIMING LED Lights when trigger input turns ON. I/O terminal block Contains I/O terminals and RS-422A/RS-485 terminals. Communication status indicator LEDs Indicate the communication status of each communication signal line. Each LED lights when the corresponding signal turns ON. Show SD, RD, RS, and CS from the top. POWER LED Power switch Power cable (2 m) Use 100 to 240 VAC (50/60 Hz).
Power Supply BL-U1 1 BL-U1 Connections 1.1 Connecting the AC power supply Plug the BL-U1 power cable into the power receptacle. At the same time, ground the frame ground wire. FG line CAUTION Make sure that the power supply provides 100 to 240 VAC ± 10%. 1.2 Connecting the BL-U1 to a BL series Use the READER port on the BL-U1.
Power Supply BL-U1 Prepare the BL series for connection to the BL-U1 by soldering a D-sub 9-pin connector to the BL series cable. Then connect the cable to READER port of the BLU1. Prepare the D-sub 9-pin connector and its connector case separately.
Power Supply BL-U1 1.
Power Supply BL-U1 Wiring the OK/NG output Use this output to determine OK/NG status by comparing the readout data with the preset data. It is NPN open-collector output. COM OK NG *Rated load: 30 V max. (100 mA) Load Load + Input/output circuit diagram Output circuit TIM Internal circuit 3.3KΩ 2.4 KΩ Internal circuit Input circuit OK/NG COM Load + 1.5 RS-232C port pin assignment 13 1 25 86 14 Pin No.
Power Supply BL-U1 1.6 RS-232C port wiring When you want to connect the BL-U1 to a PC through the RS-232C port, the wiring is as shown below. You can use the optional OP-22149 cable (1.5 m) and OP-25057 (25- to 9-pin adapter). BL-U1 1 SD 2 RD 3 RS 4 CS 5 GND 7 DR 6 ER 20 D-sub 25-pin (male) M 2.6 screw PC/AT 1 Shield 2 SD 3 RD 4 RS 5 CS 7 SG 6 DR 20 ER D-sub 25-pin (male) M 2.6 screw 1.7 RS-422A port wiring When you want to communicate using the RS-422A port, the wiring is as shown below.
Power Supply BL-U1 1.8 Wiring the RS-485 (multidrop link) Multidrop link is a method to connect multiple BL series units to a single PC. See P. 82 of this document for details. Use the terminal blocks SDA and SDB. Twisted pair cable Twisted BL-U1 * SDA SDB SG RS-485/RS-232C convertor BL-U1 SDA SDB SG * BL-U1 SDA SDB SG SD/RD+ SD/RDGND Shielded cable RS-232C PC • Up to 31 BL-U1 (BL series) units can be connected in multidrop link. • The extended cable length must be within 1.2 km.
Power Supply BL-U1 2 Installation 2.1 Precautions before use Operating environment The BL-U1 is a precision instrument. Be sure to install the unit in the proper operating environment, and avoid using the unit under any of the following conditions. • Exposed to direct sunlight, or where the ambient temperature is below 0°C or above 50°C for the BL-U1. • Where the relative humidity is below 35% or above 85%, or where the temperature changes drastically, causing condensation.
Power Supply BL-U1 2.2 Installing the BL-U1 There are two methods for installing the BL-U1: When installing the BL-U1 directly Pull out the four screw slots on the rear panel and screw them to the base. 4-ø5 98 150 When installing the BL-U1 to the DIN rail 1. Hook the BL-U1 to the DIN rail groove from its top. Push the BL-U1 bottom against the DIN rail until you hear a click. 2. Check that the DIN rail mounting notch is shaped like notch A below. If not, push the BL-U1 further. OK Insufficient Fig.
Power Supply BL-U1 3 Outline of Multidrop Link 3.1 Multidrop Link The multidrop link is a communication method to control several BL series readers simultaneously with one host computer as shown in the system configuration on page 79. Using the RS-485 cable as the communication path, the multidrop link offers high noise immunity and enables long-distance transmission. The multidrop link allows easy wiring using twisted-pair cables (2-wire). 3.
Power Supply BL-U1 4 Setup and Connection Procedures 1. BL series setup Using the Setup software, set the BL series as described below: • Set the multidrop link to “Enable”. • Assign ID number 1 to 31 to the connected BL series. Do not assign the same ID number to different BL series. • Set the baud rate, data length, parity and stop bit length. 2. RS-485/RS-232C converter setup Referring to the instruction manual of your RS-485/RS-232C converter, set the following parameters.
Power Supply BL-U1 5 Communication 5.1 Outline of Communication types You can perform all multidrop link communication by sending commands from the host computer to the BL series. The communication of the multidrop link is classified into the following two types: Data communication For sending read data from the BL-series to the host computer. When data receive commands (polling commands) are sequentially sent to each BL series connected to the host computer, the read data is sent to the host computer.
Power Supply BL-U1 Example: Data to send is [STX][008][01][P][cc][ETX] Examples 0 0 8 0 1 P 30h 30h 38h 30h 31h 50h 1. Convert each data bit to ASCII code (Hex). 2. Convert the ASCII code to 8-bit binary. 3. Calculate Exclusive OR of each data bit. 0011 0000 0011 0000 0011 1000 0011 0000 0011 0000 0101 0000 Exclusive OR 0110 1001 4. Convert the 8-bit binary to hexadecimal data. 0110 1001 6 9 h 5. Enter the result as [cc].
Power Supply BL-U1 5.3 Details on Data Communication Communication Procedure 1 S 2 S 3 S 4 S 5 6 S S T X 008 03 P 6B E T X 008 03 P 6B E T X 011 T X 008 03 T X 008 03 T X 009 03 1234 03 37 E C 78 E C 78 E OK 3E E ID•••1 T X T X ID•••2 T X ID•••3 T X ID No. 3 is reading bar code data ”1234“ T X ID•••4 T X 1. Send a polling command (P) to the BL series whose data you wish to receive. [STX] mmm nn P cc [ETX] mmm=008 2.
Power Supply BL-U1 4. After sending data, the BL series waits for the clear command (C). When the clear command is sent to the BL series, the BL series clears one piece of data received with the polling command. [STX] mmm nn C cc [ETX] When the polling command is sent to the BL series again while the BL series is waiting for the clear command, the BL series sends back the same data again, and waits for the clear command. [STX] mmm nn P cc [ETX] 5.
Power Supply BL-U1 5.4 Details of Command Communication All RS-232C and RS-422A serial communication commands can be used. Communication Procedure ID•••1 1 S 2 S 4 S T X 010 02 LON 7E E T X 010 02 LON 7E E T X 009 02 OK 3F E T X ID•••2 T X 3Timing input turns ON. T X ID•••3 ID•••4 1. Send a command from the host computer to the BL series you wish to operate. [STX] mmm nn Command cc [ETX] 2. Data, including the same command, loops back to the host computer.
Power Supply BL-U1 Example: When the command to shift to the setting mode (SSET) is sent to the BL series of ID No. 3: 1. From the host computer: [STX] 011 03 SSET 22 [ETX] 011 03 SSET 22 [ETX] 009 03 OK 3E [ETX] 2. Loopback data: [STX] 3. From the BL series: [STX] CAUTION If an incorrect ID number is specified, an incorrect format is used to send a command, or a data transmission error occurs (checksum is incorrect), the BL series sends back no response.
Power Supply BL-U1 6 Precautions for Programming • Since the multidrop link requires communication of many commands, the host computer must have high processing ability. As the number of connected BL series increases, the host computer needs higher data processing speed. When the host computer’s processing speed is insufficient, the BL series’ transmission buffer will become full, and the BL series will send back the following response.
Power Supply BL-U1 BL-U1 Specifications Model BL-U1 Power supply for bar code reader 5 VDC±5% (1.5 A) Power supply for sensor 12 V ±10% (300 mA) OK/NG output Trigger input 7 Input rating 8.5 to 30 VDC, 10 mA max. Max. OFF current 1.0 mA Output type NPN open-collector Rated load 30 VDC, 100 mA Leakage current (at OFF) 0.1 mA max.
Power Supply BL-U1 BL-U1 Approx. 40 100 to 240 VAC (with 3-core plug) 90 98 110 ø6.5, Cable length: 2 m 4 x ø5 mounting hole 150 186 4 4 120° 91 max.
Power Supply BL-U1 When using the BL-U1 For a PC with a 9-pin D-sub RS-232C connector If the RS-232C interface of your personal computer uses a D-sub 9-pin connector, prepare a cable as described below. BL-U1 FG 1 SD 2 RD 3 RS 4 CS 5 SG 7 DR 6 ER 20 D-sub 25-pin (male) M 2.6 screw PC – Connector case 2 RD 3 SD 4 ER 6 DR 5 SG 7 RS 8 CS D-sub 9-pin (female) #4-40 screw Be sure to use a metal connector case for the 9-pin D-sub connector. Connect the connector case to the shield wire.
A58-001 User’s Manual CCD Bar Code Reader BL-180 Series Worldwide Headquarters KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan PHONE: 81-6-6379-2211 FAX: 81-6-6379-2131 KEYENCE CORPORATION OF AMERICA PHONE: 201-930-0100 FAX: 201-930-0099 KEYENCE (MALAYSIA) SDN BHD PHONE: 03-252-2211 FAX: 03-252-2131 KEYENCE (UK) LIMITED PHONE: 01908-696900 FAX: 01908-696777 KEYENCE (THAILAND) CO.