The text of a manual · part 16 of 19
Laser Bar Code Reader BL-700 Series User's Manual: Chapter 1 Laser Safety Precautions, pages 124 to 133
Pages 124 to 133 of 161, from Laser Bar Code Reader BL-700 Series User's Manual
The original document is the PDF (1.4 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Keyence BL-700, Keyence BL-701 and Keyence BL-781
Page 124
Chapter 6
PCL Link
Detailed description of device assignment +00 to +03 Data memory head address
Specify the head address of the areas where the read data is stored. (Specify the head address as binary data.) When using the BL-700 in multi-label read mode 3, +00 to +03 are used as the data memory head address for Codes 1 to 4, respectively. However, data is not stored in the area for which the code type is not set. +04 to +06 Reading trigger area
These areas are used to send the trigger input signal to the BL-700 to start reading bar code data. When connecting a photoelectric sensor for trigger input in the BL-700 series, do not use these areas. These areas are not assigned if you set “Reading trigger input area” to “Disable” in the BL-700 setup software. (In this case, these areas can be used for other purposes.) The method for using the areas varies depending on the BL-700 scan method, “Level signal trigger” or “One-shot signal trigger”. Each case is described below. ■ When “Level signal trigger” is set “Reading trigger area” at the +04 address is used to trigger the BL-700 to start reading the data (turn on the laser beams). “Trigger input response area” at the +05 address is used to check whether the data at +04 was sent correctly to the BL-700. When the BL-700 recognizes the +04 address (which means that the process has been completed), it returns a “1” to the +05 address. Address
Description
Data
+04
Reading trigger area
1 ... Trigger ON 0 ... Trigger OFF
+05
Trigger input response area
1 ... Process completed 0 ... Process not completed
+06
Reserved
Reserved
111
6
Page 125
Chapter 6
PLC Link ● Operating procedure 1. Set the +05 address to “0”. 2. To trigger the BL-700 to start reading (to turn the trigger ON), set the +04 address to “1”. 3. When the BL-700 recognizes the change in the +04 address, it returns a “1” to the +05 address. The BL-700 then starts reading the data. 4. When a “1” is returned to the +05 address, it indicates that the BL-700 succeeded in the trigger ON function. If a “1” is not returned, the BL-700 has not recognized the +04 address yet. Do not immediately reset the +04 address to “0”. After confirming that a “1” has been returned to the +05 address, reset the address to “0”. 5. After reading the bar code data, the BL-700 writes new data in A+05 to A+69. 6. To turn the trigger OFF, reset the +04 address to “0”. 7. When the BL-700 recognizes the change in the +04 address, it returns a “1” to the +05 address. The trigger then turns OFF. 8. When a “1” is returned to the +05 address, it indicates that the BL-700 has successfully turned the trigger OFF. If a “1” is not returned, the BL-700 has not recognized the +04 address yet. Do not immediately set the +04 address to “1”. After confirming that the +05 address has been set to “1”, reset the address to “0”. 9. If a reading error occurs, a reading error code is written in A+05 to A+69.
6
Note: The +05 address monitors whether or not the BL-700 successfully recognized the +04 address. When quickly turning the trigger ON/OFF at the +04 address, the BL-700 may overlook the change in the +04 address and fail to turn the trigger ON/OFF. If this occurs, change the program so that the +05 address can confirm that the BL-700 recognized the +04 address. If your system does not have the problem described above, monitoring by the +05 address is not required. ■ One-shot signal trigger The +04 address “Reading trigger area” triggers the BL-700 to start reading (turn ON the laser). The +05 address “One-shot signal trigger time setup area” sets the scan time in one-shot signal mode (➮ see P.31). When “0” is set for this address, the value set by the BL-700 setup software is used as the scan time. Address
Description
Data
+04
Reading trigger area and response area
1: Trigger ON 0: Trigger OFF
+05
Reserved
Reserved
+06
One-shot signal trigger time setup area
0: Use the value set by the BL-700 setup software. 1 to 255 (binary) : 100 ms to 25.5 s
* When the BL-700 recognizes “1”, “0” is set to the +04 address.
112
Page 126
Chapter 6
PCL Link
● Operating procedure 1. To trigger the BL-700 to start reading, set the +04 address to “1”. 2. When the BL-700 recognizes the +04 address, it returns a “0” to the +04 address. The BL-700 then starts reading the data. 3. The BL-700 continues reading for the “one-shot signal trigger time” set at the +06 address. 4. When the BL-700 has read all the bar codes, it writes the new data in A+05 to A+69. If a reading error occurs, the BL-700 writes a reading error code in A+05 to A+69. A+00 (A is the head address in which the data specified in +00 to +03 is stored.) Memory data flag areas
These areas are used to flag that the bar code data has been stored. The following two methods are available depending on the application. ■ Real time control • To specify the flag areas, use “0” or “1”. •
While the BL-700 is reading and writing the bar code data in the PLC’s memory, the flag area is set to “1”.
•
When data writing is completed, the flag area becomes “0”. This indicates that new data has been stored in the A+05 to A+69 addresses. When the A+00 address is “0”, the stored data is effective.
•
When the interval of bar code reading with the BL-700 is shorter than that of communication with the connected PLC, data that has not been written into the specified area is retained in the BL-700 transmission buffer. (For the capacity of the transmission buffer, see p.86.) If the amount of retained data exceeds the buffer capacity, the entire contents of the buffer is cleared and an “OVER” code is stored in the memory data area (A+05 to A+09). If a buffer “OVER” error occurs, the BL-700 halts operation, but then restores operation once the “OVER” code has been stored.
Example 1 Normally, the A+00 address is set to “0”. While the BL-700 is writing data, the flag area is “1”. When the flag area becomes “0”, the data stored in the A+05 to A+69 addresses can be processed.
Example 2 Normally, the A+00 address is set to “1”. When data writing is completed, the flag area becomes “0”. The data stored in the A+05 to A+69 addresses can be processed. Set the A+00 address to “1” immediately after data processing is completed. This enables the BL-700 to use the point at which the A+00 address becomes “0” as the trigger for writing new data. Note: When the BL-700 continuously reads bar codes, the real time processing mode may replace stored data with new data before the new data is processed in the PLC. To prevent this, use the sequential processing mode as shown below. ■ Sequential processing • To specify the flag areas, use “2” and “3”. •
When the A+00 address is “2”, new data can be stored.
•
When data writing is completed, the flag area becomes “3”, and new data has been stored in the A+05 to A+69 addresses.
113
6
Page 127
Chapter 6
PLC Link •
After data processing is completed, set the flag area to “2”. Writing new data is impossible until the flag area is set to “2”.
•
Data that cannot be stored in the specified areas is retained in the BL-700 transmission buffer. (For the capacity of the BL-700 transmission butter, see p.88.) If the amount of retained data exceeds the buffer capacity, the entire contents of the buffer is cleared and an “OVER” code is stored in the memory data area (A+05 to A+09). If a buffer “OVER” error occurs, the BL-700 halts operation, but then restores operation once the “OVER” code has been stored. A+01 to A+04 Additional data area
The label orientation, decode count and other additional data are stored in these areas. Address
Description
Data
A+01
Label orientation
0: Reading error 1: Normal orientation 2: Reverse orientation
A+02
Decode count
0 to 9999 (binary)
A+03
Scan count
0 to 9999 (binary)
A+04
Bar code type
0: CODE 39 1: ITF 2: Industrial 2of5 3: Coda bar 4: EAN/UPC 5: CODE128 6: COOP 2of5 7: Reading error 8: CODE 93
6 A+05 to A+69 Data memory area
•
The number of digits of the data is stored in the +05 address.
•
The read bar code data is stored in the A+06 to A+69 addresses using the ASCII codes (hexadecimal numbers in two digits) by the digit. ➮ See the ASCII code table in P.140.
•
If a read error occurs, the “ERROR” code is stored in the corresponding area. (The reading error code can be easily changed in the BL-700 settings.)
•
If a buffer overflow error occurs with the BL-700, the “OVER” code is stored in the corresponding area. ➮ See P.113.
•
If an error occurs in the main unit, the “MOTOR” code is stored in the corresponding area.
114
A+05
Number of digits of bar code data (1 to 64)
1 to 64 (binary) ... Number of digits
A+06
1st digit of read data
A single ASCII code
A+07
2nd digit of read data
A single ASCII code ...
Data
...
Description
...
Address
A+69
64th digit of read data
A single ASCII code
Page 128
Chapter 6
PCL Link
Note 1: When test mode is enabled, the BL-700 does not write data. Note 2: These data areas accept up to 64 digits. However, the BL-700 can read only 32 digits. When the bar code type is CODE128 and the start character is CODE-C, up to 64 digits can be read.
Example When the BL-700 reads the bar code “KE12” 4
A+06
$004B
A+07
$0045
A+08
$0031
A+09
$0032
➝
A+05
Number of digits
Stored in ASCII codes (hexadecimal)
Example When the BL-700 generates a reading error (ERROR) 5
A+06
$0045
A+07
$0052
A+08
$0052
A+09
$004F
A+10
$0052
➝
A+05
Number of digits
Stored in ASCII codes (hexadecimal)
6
115
Page 129
Chapter 6
6.4
PLC Link
PLC Link Error When a communication error occurs during PLC link, the BL-700 stops communications. In this case the bottom STABILITY LED flashes. When this error occurs with the PLC link, check the following points: 1. Check if the RS-232C communication parameters (baud rate, data length, parity and stop bit) for the PLC are matched with the N-400’s settings. 2. Check if the PLC link is set to “Use” in the communication parameters 2 setup. 3. Check if the PLC’s settings are correct. (➮ See P.106.) 4. Check if the cable connections are correct, or if any cable is disconnected. Referring to pp.12 to 14 or pp.20 to 22 of this manual, check the connections using a multimeter. 5. Check if the device setting range does not exceed the available data memory areas of the PLC. If the data memory areas used for the BL-700 do not exist in the PLC, communication is impossible. 6. Check if the link unit operates normally. To re-start the PLC link, press the test switch. For the settings of the link unit, see the instruction manual for the link unit being used.
6
116
Page 130
Chapter 6
6.5
PCL Link
Communication Time ■ Time required data transmission The time required for data transmission from the BL-700 to the PLC is as follows: This communication time may change depending on the PLC's scan time and the model of the PLC. * When the RS-232C communication baud rate is 9600 bps: Number of data digits
MELSEC-A
SYSMAC-C
KV (KV mode)
10
Approx. 220 ms
Approx. 330 ms
Approx. 440 ms
20
Approx. 270 ms
Approx. 380 ms
Approx. 680 ms
32
Approx. 320 ms
Approx. 460 ms
Approx. 920 ms
■ Communication time to start reading using reading trigger area To control the BL series’ reading operation using the reading trigger area, enter the trigger ON command on the PLC, and obtain the time duration until the command is received by the BL-700. * When the RS-232C communication baud rate is 9600 bps: MELSEC-A
SYSMAC-C
KV (KV mode)
Approx. 60 ms
Approx. 80 ms
Approx. 30 ms
6
117
Page 131
Chapter 6
6
118
PLC Link
Page 132
Appendices Appendix A Specifications ....................................................... 120 Appendix A.1 Specifications........................................................... 120 Appendix A.2 Reading range characteristics (Typical) .................. 122 Appendix A.3 Angular characteristics (Typical).............................. 125 Appendix B BL-U1 Specifications ............................................ 126 Appendix C BL-U2, N-42 Specifications .................................. 127 Appendix D Dimensions ........................................................... 128 Appendix E Example Program for Serial Communication .... 131 Appendix F Sample Program for the PLC Link ...................... 132 Appendix G Troubleshooting ................................................... 135 Appendix H CODE93 Specifications ........................................ 137 Appendix I
CODE128 Specifications ...................................... 138
Appendix J
Checksum Calculation Method ........................... 139
Appendix K ASCII Code Table .................................................. 141 Appendix L Setup Parameter List ............................................ 142 Appendix M Default Setting List ............................................... 145
Page 133
Appendices
Appendix A Specifications Appendix A.1
Specifications
BL-700/701/740/741/780/781 Model
BL-700
Type
BL-701
BL-740
High-resolution
Light source
BL-780
Middle-distance
BL-781
Long-distance
Visible red semiconductor laser (wavelength 650 nm)
Maximum output
1.4 mW
1.8 mW
Class
FDA
Class II
IEC 825-1 11.1993
Class 2
DIN EN 60825-1 07.1994
Klasse 2
Scan method
2.0 mW
FDA: 50 µs, IEC: 91 µs
Pulse width
Single
Raster
Single
Raster
Single
Raster
Reading distance
160 to 370 mm (When narrow width is 0.5 mm)
150 to 750 mm (When narrow width is 1.0 mm)
200 to 1200 mm (When narrow width is 2.0 mm)
Reading bar width 1.
0.15 to 1.0 mm * 0.19 to 1.0 mm for CODE 93 and CODE 128
0.25 to 2.0 mm * 0.33 to 2.0 mm for CODE 93 and CODE 128
0.5 to 2.0 mm * 0.5 to 2.0 mm for CODE 93 and CODE 128
Maximum reading label width 2
310 mm (When reading distance is 335 mm)
600 mm (When 1010 mm (When reading distance is 680 mm) reading distance is 1080 mm)
PCS
0.6 or more (white reflection rate 75% or more)
Scan count
700 scans/second
Supported codes
Appendices
BL-741
CODE39, ITF, Industrial 2-of-5, COOP 2-of-5, Codabar CODE128, CODE93, EAN / UPC(A•E)
Reading digit
32 digits max. 3.
Timing input
Non-voltage input (relay contact, solid state) * TTL input is also available.
OK/NG
Output type
NPN open collector output
Rating load
24 VDC, 30 mA
Leakage current at OFF
0.1 mA max.
Residual voltage at ON Serial interface
0.5 V max.
Applied standard
In accordance with RS-232C
Synchronization
Start-stop synchronization
Transmission code Baud rate
ASCII code 600, 1200, 2400, 4800, 9600, 19200, 31250, 38400 bit/s
Data length
7/8 bits
Parity check
None/even/odd
Stop bit length
1/2 bits
Enclosure rating Ambient light Ambient temperature Relative humidity Operating atmosphere Vibration Power supply voltage Power consumption Weight
IP-65 Sunlight: 10000 lx Incandescent lamp: 6000 lx
Sunlight: 10000 lx Incandescent lamp: 4000 lx
0 to 40°C (32 to 104°F), No freezing 35 to 85%, No condensation No dust or corrosive gas present 10 to 55 Hz, amplitude 1.5 mm, 2 hours each in X, Y and Z directions. 5 VDC ±5% 510 mA max. Approx. 300 g (including cable)
1. Reading bar width indicates the range of readable narrow bar width when the bar code type is CODE39. 2. Maximum reading label width includes the bar code margin (quiet zone). 3. When start/stop character of CODE128 is CODE-C, up to 64 digits are allowed. Note: The internal BL settings are written to the built-in EEPROM (erasable up to 100,000 times).
120
Sunlight: 8000 lx Incandescent lamp: 3000 lx