N-400 User's Manual 96M0353 User's Manual Multi-Drop Controller for BL Series N-400 N-400 TEST RS-232C READER SD RD POWER TIMING POWER SD RD TERMINATOR OFF TERMINATOR ON OFF Specifications are subject to change without notice. AFFILIATED COMPANIES 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 ITALIA S.p.A.
Software License Agreement Please read this license agreement carefully and be sure you accept its terms before you use the software. By using the software you signify that you consent to be bound by the terms and conditions of this agreement. Keyence grants to you, and you accept a license to use the programs and the related materials delivered with this agreement. The manual and the software are copyrighted with all rights reserved.
Safety Precautions This instruction manual describes the operation and function of the N-400. Read this manual carefully to ensure safe use and maximum performance from your N400. The N-400 can be connected to the BL-700, BL-180 and BL-500 series. Symbols The following symbols alert you to important messages. Be sure to read these messages carefully. Failure to follow instruction may lead to injury. (electric WARNING shock, burn, etc.
List of Package Contents The N-400 includes the following equipment and accessories. Before using the unit, ensure that all of these items are included with your N-400. ■ • • • N-400 package contents N-400 (x 1) User’s Manual (x 1) N-400 setup software (x 1) ■ N-48 package contents • N-48 (x 1) • Instruction manual (x 1) ■ BL-U1 1. package contents • BL-U1 (x 1) ■ BL-U2 package contents • BL-U2 (x 1) 1. BL-U1 is not available in Europe. Use BL-U2 instead.
Contents Chapter 1 Overview of the N-400 1.1 1.2 1.3 Chapter 2 Installation Procedure 2.1 2.2 2.2.1 2.2.2 2.3 2.3.1 2.3.2 2.3.3 2.4 2.4.1 2.4.2 2.4.3 2.4.4 2.4.5 2.5 2.6 2.6.1 2.6.2 2.6.3 2.6.4 Chapter 3 Functions of the N-400 .......................................................................... 2 System Configuration ............................................................................ 4 Part Names ............................................................................................
Chapter 4 Multi-Drop Link Mode Control Procedure 4.1 4.1.1 4.1.2 4.2 4.2.1 4.2.2 4.2.3 4.2.4 4.3 4.4 4.4.1 4.4.2 4.5 4.6 Chapter 5 Multi-Head Mode Control Procedure 5.1 5.1.1 5.1.2 5.2 5.2.1 5.2.2 5.2.3 5.3 5.3.1 5.3.2 5.3.3 5.4 5.4.1 5.4.2 5.5 5.6 v Multi-Drop Link Mode .......................................................................... 58 Controlling multi-drop link mode ............................................................. 58 Setup procedure ...........................................
Chapter 6 PLC Link 6.1 6.1.1 6.1.2 6.2 6.2.1 6.2.2 6.2.3 6.3 6.3.1 6.3.2 6.4 PLC Link ............................................................................................. 102 List of PLCs used for PLC link .............................................................. 102 Devices used for PLC link ..................................................................... 103 Setup Procedure ................................................................................ 104 Setting the BL Series .....
vii
Chapter 1 Overview of the N-400 1.1 Functions of the N-400 ......................................................... 2 1.2 System Configuration .......................................................... 4 1.3 Part Names ............................................................................
Chapter 1 1.1 Overview of The N-400 Functions of the N-400 The N-400 multi-drop controller allows the following functions to be added to the BL series. 1 Note: The BL-U1 and N-48 can be used as an RS-232C to RS-485 converter. However, the BL-U1 is not available in Europe. Multi-drop link function (mode) The N-400 can control up to thirty-one BL series units using a host computer, enabling the multi-drop link configuration.
Chapter 1 Overview of The N-400 ■ Mutual-interference suppression function (in multi-head scan mode) When several bar code readers are mounted close to each other, for example when reading multi-stage labels as shown below, the units’ light sources (laser beams) interfere with each other, affecting the reading stability. The mutual-interference suppression function allows the BL series’ laser beams to turn ON sequentially, thus suppressing the mutual interference to ensure stable readings.
Chapter 1 1.2 Overview of The N-400 System Configuration The system configurations using the N-400 controller are as follows: This section describes multi-drop link mode and multi-head scan mode individually. 1 Multi-drop link mode • • Maximum number of connectable units: 31 Maximum extension distance: 1.
Chapter 1 1.3 Overview of The N-400 Part Names N-400 1 N-400 1 Display LEDs TEST 2 RS-232C port RS-232C 3 Communication status indicator LEDs SD RD POWER TIMING CS SD RS 7 RS-485 terminal RD RS-455 4 Test switch 6 Power supply terminal 8 Trigger input terminal TERMINATOR ON OFF 5 Terminator switch ON OFF No. Name 1 Display LEDs Function • Normally displays “00” (ID number of the N400). • Displays the ID number of the device being tested. (➮ See p. 26.
Chapter 1 Overview of The N-400 N-48 Note: BL-U1 is not available in the Europe area. 1 READER port 1 READER 2 POWER LED POWER SD RD 6 Communication status indicator LEDs 7 Terminator switch 3 I/O terminals ON OFF 4 RS-485 terminals 5 Power supply terminals No. Name Function 1 READER port Connect the BL series to this port. 2 POWER LED Lit when power is ON. 3 I/O terminals Includes the trigger input terminal and OK/NG output terminals.
Chapter 1 Overview of The N-400 BL-U1 Note: The BL-U1 is not available in Europe 1 OK/NG LED 2 TIMING LED 1 3 Communication status indicator LEDs 4 POWER LED 5 I/O terminal block 6 Power switch 7 Power supply cable (2 m) 8 RS-232C port 9 READER port 0 DIP switches No. Name 1 OK/NG LED Function • When OK output is ON: The green LED lights. • When NG output is ON: The red LED lights. 2 TIMING LED 3 Communication status • Allows you to monitor the communication status of the RS232C port.
Chapter 1 1 8 Overview of The N-400
Chapter 2 Installation Procedure 2.1 Installing the N-400 ............................................................. 10 2.2 Connecting N-400 and Wiring ............................................ 12 2.2.1 Terminals of I/O terminal block and wiring ............................. 12 2.2.2 Connecting RS-232C ............................................................. 13 2.3 Connecting N-48 and Wiring .............................................. 16 2.3.1 Connecting the BL series ...................
Chapter 2 2.1 Installation Procedure Installing the N-400 ■ Equipment used • N-400 multi-drop controller 2 • BL series bar code readers The N-400 can be connected to the BL-700, BL-500 and BL-180 series bar code readers. • N-48 (or BL-U1) power supply unit for BL series (RS-485 mode) Each bar code reader requires one N-48 (or BL-U1) power supply. • BL-U2 (or BL-U1) power supply unit for BL series (RS-232C mode) To change the BL series’ settings, one BL-U2 or BL-U1 power supply unit is required.
Chapter 2 Installation Procedure 2) Setting the N-400 Prepare the N-400, the RS-232C cable for the N-400, and a personal computer. Set up the N-400 using the N-400 setup software. For the setup software operating procedure, see pp. 32 and following. The setting contents vary slightly depending on the mode being used. • • • Multi-drop link mode: p. 60 Multi-head scan mode: p. 88 PLC link: p.
Chapter 2 2.2 Installation Procedure Connecting N-400 and Wiring This section describes the procedure for connecting the N-400 to external equipment. TIM COM SG 2 RS-485 + - 24V DC IN + – 24V DC IN + – 2.2.
Chapter 2 Installation Procedure Connecting trigger input To use multi-head scan mode, connect the trigger input to the N-400 only, instead of to each BL series unit. TIM COM SG Internal circuit TIM + Contact or solid state + + 2 COM + 15 to 26 VDC 2.2.2 Connecting RS-232C Pin assignment 13 1 25 14 Pin No. CAUTION D-sub 25-pin (male) DCE specification (defined as terminal) M2.6 screw Symbol Function 1 FG Frame ground Signal direction 2 SD (TXD) Sends data.
Chapter 2 Installation Procedure ■ Connecting KV series/Handheld programmer port Use the optional cable manufactured by KEYENCE. N-400 TEST RS-232C SD RD POWER TIMING CS SD RS RD RS-455 TERMINATOR ON OFF OP-24045 (1 m) or OP-24025 (5 m) KV-10, 16, 24 KV-40, 80 OP-96369 2 1. KV-300 and KV-L2 are not available in Europe. KV-300 1. ■ Connecting KV-L2 1.
Chapter 2 ■ SYSMAC-C series Connection with C-200H-LK201(-V1), C-500-LK203, C-500-LK201-V1, C120LK201-V1 Installation Procedure Connection with C-20H, C-28H, C-40H, C-60H, C-80H PLC N-400 FG 1 1 FG FG 1 1 FG SD 2 2 SD SD 2 2 SD RD 3 3 RD RD 3 3 RD RS 4 4 RS RS 4 4 RS CS 5 5 CS CS 5 5 CS SG 7 7 SG SG 7 7 SG Link unit D-sub 25-pin (male) M2.6 screw N-400 D-sub 25-pin (male) M2.6 screw D-sub 25-pin (male) M2.6 screw 2 D-sub 25-pin (male) M2.
Chapter 2 2.3 Installation Procedure Connecting N-48 and Wiring 2.3.1 Connecting the BL series Connect the BL series to the READER port of the N-48. BL series N-48 2 READER POWER SD RD Pin assignment 1 2 3 4 5 D-sub 9-pin (male) DCE specification (defined as terminal) #4-40 screw 6 Pin No. 7 Symbol 8 9 Function Signal direction 1 TIM Trigger input Output 2 RD (RXD) Receives data. Output 3 SD (TXD) Sends data.
Chapter 2 RS-485 SG + - 24V DC OUT Installation Procedure RS-485 24V DC IN – + - + SG * Viewed from the bottom of the unit Symbol Description Signal direction RS-485 SG RS-485 signal ground ––– RS-485 + RS-485 + terminal Input/Output RS-485 - RS-485 - terminal Input/Output 24 VDC IN (OUT) 24 VDC power supply input (output) + terminal Input(Output) 24 VDC power supply input (output) - terminal Input(Output) 2 • The following I-type clips can be used for connections. 2.0 mm max.
Chapter 2 Installation Procedure Connecting trigger input The trigger input allows the BL series to start reading bar codes (turn on the laser beam). To connect the BL series in multi-head mode, send the trigger input to the N-400 instead of the N-48. TIM COM OK TIM Internal circuit 2 + + + COM + 15 to 26 VDC Connecting OK/NG output OK NG COM + Internal circuit The OK/NG output indicates the result of the comparison with preset data, or indicates whether reading is successful or not.
Chapter 2 Installation Procedure 2.3.3 Connecting RS-485 For the RS-485 connections, use the “RS-485 +” and “RS-485 -” terminals provided on the terminal block.
Chapter 2 Installation Procedure • The diagram on the previous page shows the connections to supply 24 VDC power to the N-48 from the power supply connected to the N-400. In this case, the 24 VDC power supply connected to the N-400 must have a capacity of at least “140 mA (N-400 current consumption) + 260 mA (N-48 current consumption) x n (Number of N48 units connected)”. Example When five N-48 units are connected: 140 mA + 260 mA x 5 = 1.44 A Use a power supply with at least 1.44 A capacity.
Chapter 2 2.4 Installation Procedure Connecting BL-U1 and Wiring To use the BL-U1 AC power supply, connect it as described below. 2.4.1 Connecting power supply Plug the BL-U1 power cable into an outlet. 2 FG line CAUTION Use a power supply of 100 to 240 VAC ± 10% (50/60 Hz). 2.4.2 Connecting BL series Connect the BL series to the READER port of the BL-U1. BL-U1 READER port pin assignment 1 2 3 4 5 6 7 8 9 Pin No.
Chapter 2 Installation Procedure 2.4.3 Setting BL-U1 DIP switches Switch the interface setting to “RS-485 multi-drop” using the BL-U1 DIP switches. Switch the RS-485 terminator according to p. 25. OFF ON * The figure on the left shows the default settings. 1 2 3 4 5 6 2 DIP Switch No.
Chapter 2 Installation Procedure 2.4.
Chapter 2 Installation Procedure Connecting OK/NG output The OK/NG output is used to differentiate between acceptable and unacceptable results based on the comparison with the preset data, and to indicate whether or not the BL series successfully read bar codes. The OK/NG output is an open-collector output. COM OK NG *Rated load: 30 V max. (100 mA) 2 Load Load + I/O circuit diagram 3.3KΩ TIM 2.
Chapter 2 Installation Procedure 2.4.5 Connecting RS-485 For the RS-485 connections, use the “SDA” and “SDB” terminals provided on the terminal block. * * N-400 BL-U1 BL-U1 BL-U1 SDA SDA SDA RS-485 + SDB SDB SDB RS-485 – SG SG SG RS-485 SG 2 Recommended RS-485 cable • 0.75 mm2 x 2 cores, shielded • Up to thirty-one BL-U1 (BL series) units can be connected in multi-drop link mode. • The total extension length of the RS-485 cable must be within 1.2 km.
Chapter 2 2.5 Installation Procedure Using Connection Test Mode This section describes the procedure for performing a connection test after the N400 and the BL series (N-48 or BL-U1) are connected with the RS-485 cable. Note: To use the connection test mode, ensure that the settings of the connected BL series and those of the N-400 are switched to “multidrop link” mode.
Chapter 2 2.6 Installation Procedure Mounting Procedure 2.6.1 Operating environment precautions CAUTION This unit is a precision instrument and you must take care in choosing the operating environment.
Chapter 2 Installation Procedure 2.6.2 Mounting N-400 To mount the N-400, you can use one of the following two methods: Direct mounting Pull the brackets provided at four positions on the rear of the N-400, and fix them with screws. N-400 2 TEST RS-232C SD 100 CS RD RS RD SD POWER TIMING RS-455 TERMINATOR ON OFF 4 x ø5 mounting hole 40 DIN-rail mounting To mount the N-400 on a DIN-rail, press the unit against the DIN rail until it clicks.
Chapter 2 Installation Procedure 2.6.4 Mounting BL-U1 To mount the BL-U1, you can use one of the following two methods: Positions of direct mounting Pull the brackets provided at four positions on the rear of the BL-U1, and fix them with screws. 4 x ø5 2 98 150 DIN-rail mounting 1. Hook the BL-U1 in the groove of the DIN rail from the top, and press the bottom of the BL-U1 against the DIN rail until it clicks. 2. Make sure that the DIN-rail mounting hook is set in condition “A”.
Chapter 2 2 30 Installation Procedure
Chapter 3 N-400 Setup Procedure 3.1 Installing Setup Software ................................................... 32 3.2 Setup Software Operating Procedure ............................... 34 3.2.1 Operating procedure .............................................................. 34 3.2.2 Description on each setup screen ......................................... 35 3.2.3 Outline of operation ............................................................... 36 3.3 Details of Operating Procedure ...........
Chapter 3 3.1 N-400 Setup Procedure Installing Setup Software The N-400 includes the setup software for the Windows version only. The operating environments and the procedure for installing this setup software are described below. ■ Hardware requirments • IBM PC/AT 100% compatible CPU: 80386 or higher Memory: 4 MB or more Floppy disk drive: 3.5 inch floppy disk drive (1.44 Mb compatible) Serial port: A minimum of one RS-232C port is required. ■ OS requirements • MS-Windows 3.
Chapter 3 N-400 Setup Procedure 4. The N-400 setup software installer starts. Follow the instructions in the install window. (Typically, the installation procedure can be completed simply by pressing [Next (N)] twice.) 5. The setup software is normally installed in the following directory: C: \KEYENCE\N400 If this directory is correct, click on [Next (N)]. If you wish to change the directory, click on [Browse (R)..], and select the desired directory. 6.
Chapter 3 3.2 N-400 Setup Procedure Setup Software Operating Procedure 3.2.1 Operating procedure To set up the N-400 using the setup software, follow the procedure below. 1. Connect the N-400 to the host computer using the RS-232C cable. ➮ For the recommended cable, see 2.2.2 Connecting RS-232C. 2. Start the N-400 setup software. 3. Select a setup item, and set it to the desired condition. 4.
Chapter 3 N-400 Setup Procedure 3.2.2 Description on each setup screen ▼ ▲ Displays the name of the setup file currently being edited. If the file has been read from the setup file, the file name is specified as “File: ...”. If the file has been read from the N-400, the file name is marked with “N-400”. If the file name is the initial setting, “default” is displayed.
Chapter 3 N-400 Setup Procedure 3.2.3 Outline of operation This section describes the basic operations of the N-400 setup software. To enter settings, place the mouse pointer on the item to be changed, and click the left mouse button. Mouse pointer Clicking on • • • Used to select the item to be changed. 3 Clicking on Used to select any of several options. The selected item is marked with • . Clicking on Used to select whether to enable or disable this function.
Chapter 3 N-400 Setup Procedure Entering a value After clicking in the frame, enter a value using the keyboard. If the entered value exceeds the setting range, an error message is displayed. (➮ See p. 55.) Entering characters When you click in the frame labeled “ASC”, you can enter characters using the keyboard. When you click in the frame labeled “HEX”, you can enter characters using hexadecimal numbers (00 to 7F).
Chapter 3 3.3 N-400 Setup Procedure Details of Operating Procedure 3.3.1 Setting procedure HOST MODE In the HOST MODE, select “Multi-drop link” or “Multi-head scan”. 3 1. If you select “Multi-head scan” mode, the following setup items appear. The following steps are effective for “Multi-head scan” mode only. 2. To use the “Interference Suppression” function, the following setup items appear. “TIMER” indicates the reading time of each BL series in the interference suppression mode.
Chapter 3 N-400 Setup Procedure 5. When you click on [Trigger setup], you can set the trigger input in multi-head mode. Tips ➮ MULTI-DROP LINK (Multi-drop link mode): p. 58 ➮ MULTI-HEAD SCAN (Multi-head scan mode): p. 86 ➮ Interference Suppression: p. 95 ➮ Read mode: pp. 89 to 90 ➮ Data-send: p. 92 ➮ Read error code: p. 93 TRIGGER SETUP (only when Multi-head scan is selected) The Trigger Setup screen is used to set the trigger input for Multi-head scan mode. 3 1.
Chapter 3 N-400 Setup Procedure PROTOCOL (when "Use PLC" is disabled) The PROTOCOL screen is used to set “Handshaking protocol” and various items to enable the "Use PLC". 3 1. When “Use PLC” is disabled, set the “Handshaking protocol” as shown above. 2. Select “Header” and “Delimiter” from the displayed items. You can change the read data format by setting these items. If you select “Custom”, the following screen appears. These items can be set to any five character string using the keyboard.
Chapter 3 N-400 Setup Procedure PROTOCOL (when "Use PLC" is enabled) To enable the "Use PLC", set each item as follows: S018 The setting of the station number is not displayed when “KV Series” is selected. ▼ ▼ The setting of the file register is displayed only when “MELSEC-A” is selected. 1. Set “Connected PLC”, “DM head address” and “Station No.”. To set “DM head address”, enter a value (0000 to 9900) using the keyboard. 2.
Chapter 3 N-400 Setup Procedure ID SETUP The ID SETUP screen is used to register the ID numbers of the connected BL series. When you register the ID numbers in multidrop link mode, polling automatically starts when the N-400 starts up. To perform manual polling, skip the ID SETUP. 3 Tips ➮ Auto polling: p. 61 ➮ Manual polling: p. 62 RS-232C The RS-232C screen is used to set the RS-232C communication parameters for the N-400.
Chapter 3 N-400 Setup Procedure RS-485 The RS-485 screen is used to set the RS-485 communication parameters for the N-400. Set these parameters so that they conform to those of the connected BL series. 3 Note: We recommend that you set the baud rate to “38400 bits/s” to increase the processing speed, since the RS-485 communication between the N-400 and the BL series transfers a large volume of data.
Chapter 3 N-400 Setup Procedure 3.3.2 Reading/Saving/Printing File The FILES screen is used to save updated settings in a file, to read a saved setting file, and to print the contents of a setting file. 3 • Open: Reads a saved setting file. • Save: Saves updated settings in a file. • Compare: Compares the settings currently edited with a file previously saved. • Print: Prints contents of a setting file. • Default (Initialize settings): Restores updated settings to the default settings.
Chapter 3 N-400 Setup Procedure Saving updated settings in a file 1. To save updated settings in a file, click on [Save]. The following screen will appear. 3 2. Click on the file name entry field, and enter a file name using the keyboard. Specify a file name within eight characters. Be sure to add the extension “NCF”. After entering the file name, click on [OK] to save the file. Note: This software cannot accept a long file name in Windows 95.
Chapter 3 N-400 Setup Procedure Comparing the settings currently edited with a saved file 1. To compare the settings currently edited with the setting file previously saved, click on [Compare]. 3 2. Select a file to be compared, and click on [OK]. Then, the system compares the selected file with the settings currently edited, and displays the result.
Chapter 3 N-400 Setup Procedure Printing contents of a setting file 1. To print settings, click on [Print]. The following screen will appear. 3 2. Adjust “Printer Setup” as required, and click on [OK]. Printing will then start. Restoring the settings currently edited to the default (initial) settings 1. To restore the settings currently being edited to the default settings, click on [Default (Initialize settings)]. 2.
Chapter 3 3.4 N-400 Setup Procedure Sending/Receiving Settings Sending updated settings to the N-400 To send updated settings to the N-400, perform the following procedure. 1. Press and hold the N-400 test switch for five seconds.
Chapter 3 N-400 Setup Procedure 4. If the settings were successfully sent to the N-400, the following message appears. If the host computer failed to send the data to the N-400, the following message appears. 3 If this message is displayed, check the following points: • • • Check that [COM PORT] is set to the values listed in step 1. when the N400 displays “S0 (50)”. Check that the power to the N-400 is ON.
Chapter 3 N-400 Setup Procedure Reading the current settings of the N-400 To read the current settings of the N-400, perform the following procedure. (This procedure is almost the same as the procedure for sending settings.) 1. Press and hold the N-400 test switch for five seconds.
Chapter 3 N-400 Setup Procedure 4. If the settings of the N-400 were successfully read, the following message appears. If the host computer failed to read the data, the following message appears. 3 If this message is displayed, check the following points: • • • Check that [COM PORT] is set to the values listed in step 1. when the N400 displays “S0 (50).” Check that the power to the N-400 is ON. Check that the RS-232C cable pin assignment of the N-400 is the same as that of the host computer. 5.
Chapter 3 3.5 N-400 Setup Procedure Using Monitor This setup software provides the “Monitor” program to check if the N-400 can send data properly. The “Monitor” program allows you to display the data read by the BL series on the host computer’s monitor screen, and also to send a command from the host computer to the N-400 or BL series. 1. Click on [COM PORT] to set the communication parameters of the host computer according to the current settings of the N-400. 2. Click on [Monitor].
Chapter 3 N-400 Setup Procedure 5. When you enter a command in the “Send command” field, you can send the command to the N-400 (or BL series). The format of the command to be sent is “[Command] + [CR]”. Typing command and pressing [ENTER] key sends the command. 3 6. When you click on the [ARROW] button in the “Send command” field, the commands previously sent are listed. (Up to 100 commands can be listed.) 7. Click on [Quit] to quit this mode.
Chapter 3 N-400 Setup Procedure 2. Send the test mode command to the BL series to be tested. When the test mode is started, data read by the BL series is listed in the [Received Data] field of the Monitor screen. %Tmm-TEST1[CR] * mm = 01 to 31: ID number of BL series 3. To quit the test mode, send the test mode end command. %Tmm-QUIT[CR] * mm = 01 to 31: ID number of BL series 4. To continue the test mode with a BL series of a different ID number, repeat steps 1. to 3. 5.
Chapter 3 3.6 N-400 Setup Procedure List of Error Messages Error message Errors during setup Errors communication Errors file editing Contents “Timer value incorrect. [OK]” The setting of the trigger ON time exceeds the range of 1 to 255 (x10 ms) in the interference suppression mode. “Station number incorrect.” [OK] The setting of the station number exceeds the range of 000 to 255. “Block number incorrect.
Chapter 3 3 56 N-400 Setup Procedure
Chapter 4 Multi-Drop Link Mode Control Procedure 4.1 Multi-Drop Link Mode ......................................................... 58 4.1.1. Controlling multi-drop link mode ............................................ 58 4.1.2 Setup procedure .................................................................... 60 4.2 Data Communication in Multi-Drop Link Mode ................ 61 4.2.1 4.2.2 4.2.3 4.2.4 Auto polling ............................................................................
Chapter 4 4.1 Multi-Drop Link Mode Control Procedure Multi-Drop Link Mode 4.1.1. Controlling multi-drop link mode Multi-drop link mode can control up to thirty-one BL series units through a host computer. Since the complex communication (RS-485 communication) between each BL series unit and the N-400 is controlled by the N-400, the host computer controls the communication with the N-400 only, and consequently can be operated with a simple program.
Chapter 4 Multi-Drop Link Mode Control Procedure Setting the Baud Rate of the BL Series In order to increase the response speed of the BL-500/180 series when it is connected in the multi-drop link mode through the N400, we recommend that the baud rate for RS-485 communication between the BL-500/180 series and the N-400 be set to 38400 bps. The baud rate cannot be set through normal operations to between 19200 and 38400 bps with the BL series setup software included with the BL-500/180 series.
Chapter 4 Multi-Drop Link Mode Control Procedure 4.1.2 Setup procedure For setup and connection procedures, see p. 10. This section describes the procedures for setting the N-400, BL series and host computer only. Setting the BL series Using the BL setup software or serial communication, set the BL as follows: 1. Set “Multi-drop Link” to “Enable”. 2. Assign ID numbers (1 to 31) to the connected BL series. Be sure not to assign the same ID number to different units. 3.
Chapter 4 4.2 Multi-Drop Link Mode Control Procedure Data Communication in Multi-Drop Link Mode In multi-drop link mode, the bar code data read by the BL series is sent to the host computer through either “Auto polling” or “Manual polling”. The following sections describe these polling methods individually. You should normally use auto polling mode. 4.2.
Chapter 4 Multi-Drop Link Mode Control Procedure 4.2.2 Manual polling ■ Manual polling When you send a polling command from the host computer to a desired BL series while in manual polling mode, the BL series sends back its data to the host computer. In manual polling mode, the host computer is operated with a more complex program than in auto polling mode, because the host computer executes the polling.
Chapter 4 • Multi-Drop Link Mode Control Procedure The polling command can be received in either of the following formats: % P mm CR , STX % P mm ETX [LF] can be added to the end of the command. When [ESC] is added to the head of the command, data stored in the N-400’s receiving buffer can be cleared. • Specify the read data format by selecting the “Header” and ”Delimiter” from the following formats. (➮ See p. 40.) The read data format can be changed.
Chapter 4 Multi-Drop Link Mode Control Procedure ■ Transmission buffer of BL series The BL-500/BL-180 series provides a transmission buffer that can store 400 bytes (400 characters). This buffer temporarily stores the BL series’ data and the N-400 executes polling for the data stored in this buffer. The data is stored until polling is executed.
Chapter 4 Multi-Drop Link Mode Control Procedure 4.2.4 Handshaking protocol The N-400 supports the following four types of data communication modes (handshaking protocols). The handshaking protocols described in the following sections are common to both auto polling mode and manual polling mode. No handshaking Read data ••• • N-400 The N-400 automatically sends read data to the host computer without using any handshaking protocol.
Chapter 4 Multi-Drop Link Mode Control Procedure • The “PASS” and “RTRY” commands can be received in either of the following formats: PASS [CR], or [STX] PASS [ETX] [ESC] can be added to the head of the command, or [LF] can be added to the end of the command. Note 1: Even when the N-400 is waiting for the “PASS” command, it can still receive any type of command. In this case, the N-400 immediately sends back a response (e.g. “OK”) to the host computer. Note 2: If the “SSET” command (➮ see p.
Chapter 4 4.3 Multi-Drop Link Mode Control Procedure Command Transmission To BL Series All the serial commands that can be used for the BL series can be sent from the host computer through the N-400 to the BL series. Send these commands in the following sequence and format: The BL series with ID No. 3 starts the reading rate measurement test mode. ••• Header % T 03 – TEST1 Terminator N-400 Header % T 03 – OK Terminator 1. Send a command in the following format from the host computer.
Chapter 4 Multi-Drop Link Mode Control Procedure • When the command format is [Command] [CR], the response format is [Response] [CR]. When the command format is [STX][Command][ETX], the response format is [STX][Response][ETX]. Command Response Command CR Response CR STX Command ETX STX Response ETX * [LF] can be added to the end of the command. However, [LF] is not added to the response. * When [ESC] is added to the head of the command, the N-400’s receiving buffer is cleared.
Chapter 4 4.4 Multi-Drop Link Mode Control Procedure N-400 Direct Control Commands You can perform the following controls by sending a command to the N-400. 1) Assigning an ID number to the BL series for which auto polling is performed. 2) Setting auto polling mode to ON/OFF 3) Checking if the BL series is properly connected 4) Reading control command in multi-head scan mode 5) Resetting the N-400 The above control 1) can be set with the N-400 setup software. (➮ See p. 42.
Chapter 4 Multi-Drop Link Mode Control Procedure Example: When the “Polling ON” command is sent to the N-400 When “POLE00 [CR]” is sent to the N-400, the response is “OK [CR]”. When “[STX] POLE00 [ETX]” is sent to the N-400, the response is “[STX] OK [ETX]”. When “[ESC] POLE00 [CR]” is sent to the N-400, the response is “OK [CR].” 4.4.2 Description of commands The following is a description of each command. Registering and checking the ID numbers of the BL series for which auto polling is performed.
Chapter 4 Multi-Drop Link Mode Control Procedure ● Checking individual ID number Command: IDCHKmm [mm = 01 to 31 (ID number)] Response: ON: Registered OFF: Not registered ERR01: “mm” exceeds the range of “01” to “31”. ● Registering serial ID numbers Command: IDMAXmm [mm = 01 to 31 (ID number)] Response: OK ERR01: “mm” exceeds the range of “01” to “31”. Description: Registers all ID numbers not more than “mm”. When “mm” is “00”, registering serial numbers is disabled.
Chapter 4 Multi-Drop Link Mode Control Procedure ● Specific ID polling ON Command: POLEmm [mm = 01 to 31 (ID number)] Response: OK ERR01: “mm” exceeds the range of “01” to “31”. The “Specific ID polling ON” command is used to execute polling for the BL series with the specified ID number only.
Chapter 4 Multi-Drop Link Mode Control Procedure • The “LON” command corresponds to “Trigger input: ON”, and the “LOFF” command corresponds to “Trigger input: OFF”. • When the bar code data read by the BL series has already been sent to the host computer, you do not need to send the “LOFF” command (in “Single Label” reading mode only). • These commands can be changed to any string of up to eight characters. Reset Resets the data stored in the N-400.
Chapter 4 Multi-Drop Link Mode Control Procedure ● Checking the destination ID number for command transmission Command: TRCOM Response: mm [mm = 01 to 31 (ID number) mm = 00: ID number is not specified.] ■ Description of the procedure 1. Send the “TRCOMmm” command. (The N-400 sends back “OK”.) The N-400 displays the specified ID number. 2. You can then send a command to the specified BL series without adding its ID number. (For the commands sent to the BL series, see the BL series User’s Manual.
Chapter 4 4.5 Multi-Drop Link Mode Control Procedure N-400 Setup Command This section describes the procedure for changing the N-400’s settings by sending a command to the N-400. To change the settings of the N-400, you should normally use the N-400 setup software instead of these commands. ■ Details of the communication 1. Send the “SSET” direct control command to the N-400. The N-400 then goes into SETUP mode. (In SETUP mode, the N-400 displays “S1(51)”.
Chapter 4 Multi-Drop Link Mode Control Procedure ■ Response error codes If an incorrect setup command is sent to the N-400, the N-400 sends back the cause of the error (error code). Error response: ERR** (** is the error code.) Error code 4 76 Cause of error 00 Undefined command 01 The ID number exceeds the setting range. 02 The number included in the command does not correspond to anything. 05 The number included in the command is too long. 06 “hhh...” is too short.
Chapter 4 Multi-Drop Link Mode Control Procedure Description of setup commands ■ Saving settings/Initializing settings/Quitting SETUP mode Function Command Response Description Error code Saving settings in the EEPROM SAVE OK See p. 74. 00, 02, 05, 14 Initializing settings DFLT OK Resets the current settings to the default values and saves them in the EEPROM. 00, 02, 05, 14, 15 Quitting SETUP mode SEND OK See p. 74.
Chapter 4 Multi-Drop Link Mode Control Procedure ■ TRIGGER INPUT SETUP (Effective in multi-head scan mode only) Function Command Trigger input signal type Change One-shot input time Trigger input time OK Confirm RP05 05n Change WP42nnn OK n = 0: Level n = 1: One-shot nnn = 001 to 255 (Units: 100 ms) Confirm RP42 42nnn Change WP04n OK RP04 04n Change WP03n OK Confirm RP03 03n Characters of trigger ON command WP56hhh... OK hhh...
Chapter 4 Multi-Drop Link Mode Control Procedure ■ PROTOCOL SETUP Function Command Handshaking protocol 1 Change WP07n OK Confirm RP07 07n *To set details of the protocol, use handshaking protocol 2. Change WP08n OK n = 0: PASS/RTRY protocol Confirm RP08 08n n = 1: ACK/NAK protocol Change WP51hhh... OK hhh... = Header (up to five characters) * To set a header, use HEX (hexadecimal) codes. * hhh... = FF: Header is not set. hhh...
Chapter 4 Multi-Drop Link Mode Control Procedure ■ PROTOCOL SETUP (only when PLC link is used) Function Command PLC link model Change Response Description WP36n OK n = 0: PLC link disabled n = 1: SYSNAC-C n = 2: MELSEC-A Confirm RP36 36n Error code n = 3: KV 00, 02, 05, 08, 14 n = 4: MELSEC-A (File register is used.
Chapter 4 Multi-Drop Link Mode Control Procedure ■ ID SETUP Function Command Response Description Registering ID number (for each unit) Change WIDmmn OK mm = 01 to 31 (ID 3 number) Confirm RIDmm mmn n = 0: Do not register n = 1: Register Change Confirm RWIDMAXmm MAXmm * If “mm” is “99” in the response, serial ID numbers are not registered. Registering all serial numbers Change WIDAnnn...n OK n = 0: Do not register n = 1: Register Confirm RIDA Annn...
Chapter 4 Multi-Drop Link Mode Control Procedure ■ RS-485 SETUP Function Command Response Description Baud rate Change OK WP75n Error code n = 5: 38400 bps n = 6: 31250 bps n = 7: 19200 bps n = 0: 9600 bps Confirm RP75 75n n = 1: 4800 bps 00, 02, 05, 08, 14 n = 2: 2400 bps n = 3: 1200 bps n = 4: 600 bps Data length Parity 4 Parity type Stop bit length 82 Change WP70n OK Confirm RP70 70n Change WP71n OK n = 0: None n = 1: Set parity * To set the parity type, use the "Parity type
Chapter 4 4.6 Multi-Drop Link Mode Control Procedure Communication Time Consideration This section describes how to calculate the time required for data transmission and for command transmission in multi-drop link mode. ■ How to calculate data transmission time The following is the timing chart for multi-drop link mode communication . Through the RS-485 communication between the N-400 and each BL series unit, data transmission is constantly performed from the BL series to the N-400.
Chapter 4 Multi-Drop Link Mode Control Procedure From the above data, the RS-485 data transmission time (“A” shown in the timing chart on the previous page) is obtained as follows: • • Maximum time: A = a x n + b (n = Number of connected BL series) Minimum time: A = b * The above table shows the case in which one BL series sends data to the N400. When several BL series simultaneously send data, the required time may be longer than the above.
Chapter 4 Multi-Drop Link Mode Control Procedure Baud rate (for RS-232C) Communication time (B) Command = LON Command = LOFF 9600 bp 12.5 ms 13.8 ms 38400 bps 3.2 ms 3.5 ms Then, obtain the time duration (D) required for the RS-485 command transmission from the N-400 to the BL series.
Chapter 4 4 86 Multi-Drop Link Mode Control Procedure
Chapter 5 Multi-Head Mode Control Procedure 5.1 Multi-head Mode ................................................................. 88 5.1.1 Controlling multi-head mode .................................................. 88 5.1.2 Setup procedure .................................................................... 89 5.2 Reading Operation in Multi-Head Mode ............................ 91 5.2.1 Difference in operation depending on reading mode ............. 91 5.2.2 Trigger input signal type ...............
Chapter 5 5.1 Multi-Head Mode Control Procedure Multi-head Mode 5.1.1 Controlling multi-head mode If the bar code position on a product is unknown, or if bar codes are printed in several positions, the bar code data cannot be read with a single bar code reader. In such cases, several bar code readers need to be mounted in various positions or at various angles. When the N-400 is used in multi-head mode, the host computer can control several BL series like it would be a single unit.
Chapter 5 Multi-Head Mode Control Procedure 5.1.2 Setup procedure For setup and connection procedures, see p. 10. This section describes the procedures for setting the N-400, BL series and host computer only. Setting the BL series 1. Set “Multi-drop Link” to “Enable”. (Click the button.) 2. Assign ID numbers (1 to 31) to the connected BL series. Be sure not to assign the same ID number to different units. 3.
Chapter 5 Multi-Head Mode Control Procedure Setting the N-400 Using the N-400 setup software, set the N-400 as follows: 1. Set the host mode to multi-head mode (Click the button). (➮ See p. 38.) 2. In multi-head mode, connect the trigger input to the N-400 so that all BL series connected to the N-400 are controlled as if they are a single bar code reader. You must set the “Read mode” and “Trigger input signal type” of the N-400. 3. Enter the ID numbers of the connected BL series on the “ID SETUP” screen.
Chapter 5 5.2 Multi-Head Mode Control Procedure Reading Operation in Multi-Head Mode 5.2.1 Difference in operation depending on reading mode Multi-head mode can control several BL series like they are a single bar code reader. The N-400 provides the “Level” and “Oneshot” trigger signal types, and the “Single” label and “Multi” label reading modes. “Single” label reading mode The following timing chart shows the case in which three BL series are connected.
Chapter 5 Multi-Head Mode Control Procedure • In “Multi 1” reading mode, all connected BL series units read bar code data while the trigger input is ON, and send the individual data immediately after reading it. • A BL series that causes a read error sends no data. • If all of the connected BL series cannot read bar codes while the trigger input is ON, a read error code is output. “Multi 2” reading mode The following timing chart shows the case in which three BL series are connected.
Chapter 5 Multi-Head Mode Control Procedure 5.2.2 Trigger input signal type When the trigger input is connected to the N-400 in multi-head mode, the trigger signal is sent to all connected BL series to start the reading operation. The trigger input signal type can be set for the N-400 as well as for the BL series. “Level” trigger signal While the trigger input is ON, the BL series reads bar code data.
Chapter 5 Multi-Head Mode Control Procedure 5.2.3 Data transmission timing Data transmission timing can be selected from the following modes only in singlelabel reading mode: (The data transmission timing cannot be selected in the multil 1/2/3 reading modes.) • After reading This mode allows the BL series to send data immediately after reading them. This operation is the same as that described in the timing chart in “5.2.2 Trigger input signal type”.
Chapter 5 5.3 Multi-Head Mode Control Procedure Data Communication in Multi-Head Mode 5.3.1 Communication format The communication format for multi-head mode is as follows: Header Reading Data Delimiter The communication format does not include an ID number. However, to assign ID numbers to the connected BL series, make sure that the same ID number is not assigned to different units.
Chapter 5 5.4 Multi-Head Mode Control Procedure Command Communication in Multi-Head Mode The command communication in multi-head mode is the same as that in multi-drop link mode. For details, see the descriptions for multi-drop link mode. The following sections describe the main points only. 5.4.1 Sending a command to BL series The data communication format does not include an ID number. However, the command sent to the BL series must include an ID number.
Chapter 5 5.5 Multi-Head Mode Control Procedure Interference Suppression Function In multi-head mode, the BL series’ light sources (laser beams) are usually turned ON simultaneously. If the BL series are mounted close to each other, the laser beam emitted from one unit enters the receiver of another unit, causing mutual interference. This may result in a reading error or unstable reading. (Laser beams in close proximity often cause interference.
Chapter 5 5.6 Multi-Head Mode Control Procedure Communication Time The following is the operation timing chart for “Single label” reading in multi-head mode. This operation timing chart shows the case in which only one BL series succeeded in reading bar code data. When several BL series simultaneously read bar code data, the communication time may be longer than the following data. Reading starts. The BL series read bar code data.
Chapter 5 Multi-Head Mode Control Procedure • Serial communication time (H) The serial communication time can be obtained from the following formula: (This formula applies to the case in which an ID number is not added to the data.) H= Number of data + (1: Set Parity) + Start/Stop bit x Baud rate (Number of data digits + Header/Delimiter) Baud rate (for RS-232C) Serial communication time (H) Number of data digits: 10 Number of data digits: 20 Number of data digits: 32 9600 bps 15 ms 27.5 ms 42.
Chapter 5 Multi-Head Mode Control Procedure The following table shows the actual minimum scan time for each baud rate setting. Baud rate (RS-485) Actual minimum scan time (L) 9600 bps 141 ms 38400 bps 58 ms • Scan OFF time (M) When the interference suppression function is used, a time lag occurs between the scan of one BL series and the next. During this period, the BL series cannot read bar code data. Baud rate (for RS-485) Scan OFF time (M) 9600 bps 36.5 ms 38400 bps 14.
Chapter 6 PLC Link 6.1 PLC Link ............................................................................ 102 6.1.1 List of PLCs used for PLC link ............................................. 102 6.1.2 Devices used for PLC link .................................................... 103 6.2 Setup Procedure ............................................................... 104 6.2.1 Setting the BL Series ........................................................... 104 6.2.2 Setting the N-400 ...............
Chapter 6 6.1 PLC Link PLC Link The PLC link enables read data to be directly stored in the internal memory of a PLC (programmable logic controller). Since the N-400 directly controls the PLC’s memory, no program is required for data communication, resulting in a reduced number of programming steps. As compared with the serial communication using a computer, the PLC link involves the following limitations: • The settings of the N-400 and BL series cannot be changed on the PLC.
Chapter 6 PLC Link 6.1.2 Devices used for PLC link The N-400 supports the following PLC devices. To use MELSEC-A series, select the data register or file register. The available memory areas of the MELSEC-A or SYSMAC-C may be smaller than the following data. For details, see the instruction manual for the PLC being used.
Chapter 6 6.2 PLC Link Setup Procedure For setup and connection procedures, see p. 10. This section describes the procedures for setting the N-400, BL series and PLC only. 6.2.1 Setting the BL series 1. Set “Multi-drop Link” to “Enable”. (Click the button.) 2. Enter the ID numbers (1 to 31) for the connected BL series. Be sure not to assign the same ID number to different units. 3.
Chapter 6 PLC Link 6.2.2 Setting the N-400 Using the N-400 setup software, set the N-400 as follows: For the difference in settings depending on the type of the link unit or PLC, see “Setting the PLC” on the next page. 1. Set the host mode to multi-drop link mode or multi-head scan mode. (➮ See p. 38.) 2. Set the PLC link on the “PROTOCOL SETUP” screen. (See p. 40) • • • • • PLC model name To use the KV-L2 in “Link” mode, select “SYSMAC-C” for the N-400’s setting.
Chapter 6 PLC Link 6.2.3 Setting the PLC Set the PLC or link unit as follows: ■ Setting MELSEC-A series 1. Set the RS-232C communication parameters (baud rate, data length, parity and stop bit length) according to the N-400’s settings. 2. Set the station number according to the N-400’s setting. 3. Set the mode to “Protocol Type 4 ”. 4. Set the main channel to “RS-232C”. 5. Set “Checksum” to “Enable”. 6. Set “Write during running” to “Enable”. 7.
Chapter 6 PLC Link ■ Settings for KV-L2/KV mode 1. Set the KV-L2’s communication mode to “KV mode”. Set the N-400’s communication mode to “KV”. 2. The KV mode must be always set to the following values: • Baud rate : 9600 bps • Data length: 8 bits • Parity: Even • Stop bit length: 1 bit Set the RS-232C communication parameters of the N-400 according to the above settings. 3. Set the station number to “00”. 4. To use the KV-L2 port 2, set the port 2 selector switch to “RS-232C”. 5.
Chapter 6 6.3 PLC Link Device Assignment The device assignment varies depending on whether the PLC link is used in multidrop link mode or in multi-head scan mode. The following sections describe the device assignment in each mode. 6.3.1 Device assignment in multi-drop link mode The data areas used to control the N-400 are provided in the PLC’s internal memory (D areas or DM areas).
Chapter 6 PLC Link ■ Data memory areas for each ID number Bar code data read by the BL series for each ID number is stored in the areas of “+00” to “+30” (based on the specified data memory head address). In the following table, “A” indicates the data memory head address. When ten BL series are connected, ten data memory areas exist (if the different data memory head addresses are specified for each ID number). Address Description Reference page A + 00 Data memory flag area pp.
Chapter 6 PLC Link ■ Detailed description on device assignment +00 to +30 Data memory head address for each ID number Specify the head address of the areas where the read data are stored. (Specify the head address as binary data.) Specify different head addresses for each ID number. (If the same address is specified, all data is replaced with the last data when BL series units with different ID numbers continuously read data.
Chapter 6 PLC Link Real-time control • To specify the flag areas, use “0000” or “0001”. • While the N-400 is writing the bar code data read by the BL series in the PLC’s memory, the flag area is specified as “0001”. • When data writing is completed, the flag area becomes “0000”. This indicates that new data has been stored in the A+02 to A+258 addresses. When the A+00 address is “0000”, the stored data is effective. Example 1 Normally, the A+00 address is set to “0000”.
Chapter 6 PLC Link A +02 to +258 Data (ID number, number of digits, data) memory area • The ID number of the BL series that read the data is stored in the A +02 address. The number of data digits is stored in the A +03 address as binary data. • The read bar code data is stored in the A+04 to +258 addresses using the ASCII codes (Hexadecimal numbers in two digits) by the digit. (➮ See the ASCII code table on p134.) • If a read error occurs, the “ERROR” code is stored in the corresponding area.
Chapter 6 PLC Link Operation when a connection error occurs The power supply of the connected BL series is turned off: • The BL series is disconnected from the BL-U1 or N-48: • The cable is disconnected: • A communication error occurs: If a communication failure occurs between the BL series and N-400 when the N400 is in the multi-drop link mode, the N-400 operates as follows: Address Contents Operation during a connection error A + 00 “Write Data” flag The flag is turned on as data are area written.
Chapter 6 PLC Link Real-time control • To specify the flag area, use “0000” or “0001”. • While the N-400 is writing the bar code data read by the BL series in the PLC’s memory, the flag area is specified as “0001”. • When data writing is completed, the flag area becomes “0000”. This indicates that new data has been stored in the A+02 to A+258 addresses. When the A+00 address is “0000”, the stored data is available. Example 1 Normally, the A+00 address is set to “0000”.
Chapter 6 PLC Link When a photoelectric sensor for trigger input is connected to the BL series, do not use this area. Specify this area as follows: • Start reading (Trigger ON): 0001 • End reading (Trigger OFF): 0000 Note: Specify this area as “0000” while the BL series is not reading bar code data. +02 to +258 Data (ID number, number of digits, data) memory area • The ID number of the BL series that read the data is stored in the +02 address.
Chapter 6 6.4 PLC Link PLC Link Error When a communication error occurs during PLC link, communication stops and the N-400 displays the following code: or 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 N400’s settings. 2. Check if the N-400’s communication mode is set to “KV”, “MELSEC” or “SYSMAC”. 3. Check if the PLC’s settings are correct. (See pp.
Chapter 6 6.5 PLC Link Communication Time Even in PLC link mode, the RS-485 communication between the N-400 and each BL series is regarded as the same as standard mode serial communication. (➮ See pp. 83 to 85.) The time required for the RS-232C communication between the N-400 and the PLC is described below: This communication time may change depending on the PLC’s scan time and the model of the PLC.
Chapter 6 6 118 PLC Link
Appendices Appendix A Specifications ................................................... 120 Appendix B Dimensions ....................................................... 122 Appendix C Sample Programs ............................................. 124 Sample programs for multi-drop link ................... 124 Sample program for PLC link .............................. 126 Appendix D Troubleshooting ............................................... 131 Appendix E Indications on the N-400 .............
Appendices Appendix A Specifications N-400 Model N-400 Connectable bar code reader Rated input 15 to 26 VDC, 10 mA max. Max. OFF current 1.
Appendices N-48 Model N-48 Conversion interface RS-232C & RS-485 (Level conversion) Connectable bar code reader BL-500 series BL-180 series Power supply for bar code reader Trigger Rated input input Max. OFF current 5 VDC ±5% (600 mA) OK/NG output Output form NPN open-collector Rated load 30 VDC, 100 mA 15 to 26 VDC, 10 mA max. 1.0 mA Leakage current (at OFF) 0.1 mA max. Residual voltage (at ON) 1 V max. Interface RS-485 multi-drop (Max. number of connectable units: 31) (Max.
Appendices Appendix B Unit: mm Dimensions N-400 N-400 27.3 TEST RS-232C SD RD POWER TIMING CS SD RS RD RS-455 35.4 112 100 90 TERMINATOR ON OFF 4 x ø4.5 mounting hole 40 60 (70) 51 Appendices N-48 (70) 2 x ø4.5 mounting hole 5.5 43.2 55 5.9 5.9 26 63.
Appendices BL-U1 Approx. 40 100 to 240 VAC (with 3-core plug) 90 98 110 ø6.5, Cable length: 2 m 91 max.
Appendices Appendix C Sample Programs Sample programs for multi-drop link The following program (QBASIC) is an example of a serial communication program for multi-drop link mode and multi-head mode. The bar code data read by the BL series, along with the transmitted command and response to the command can be displayed. Enter the commands using the keyboard and press the [Return] key to send the command.
2100 ' 3000 '*COMMAND RECEIVE:'***RECEIVING COMMAND**************** 3010 MDAT$ = MID$(DAT$, 6, 2) 3020 IF MDAT$ = "NC" THEN GOSUB 5000: RETURN 3030 MDAT$ = MID$(DAT$, 6, 4) 3040 IF MDAT$ = "SERR" THEN GOSUB 6000: RETURN 3050 GOSUB 9000: RETURN 3060 ' 4000 '*BUFFOVER :'***BUFFER OVER**************************** 4010 PRINT DAT$ 4020 PRINT "THE UNIT #"; MID$(DAT$, 3, 2); " OCCURS BUFFER OVER.
Appendices Sample program for PLC link The following is an example of a PLC link program for multi-drop link mode. Data is stored in the following areas. Process the data using the program as desired.
Appendices Program for the MELSEC-A Series M9038 M0V K100 D0 M0V K200 D1 M0V K300 D2 M0V K2 D100 M0V K2 D200 M0V K2 D300 M0V K1 D31 Specify the head address of the data memory area for each ID number. Specify the data memory flag for each ID number as “2”. (To use the flag, select “Sequential processing”.) X0 X0 M0V K0 D31 M0V K1 D32 M0V K0 D32 M0V K1 D33 M0V K0 D33 Enter “X0” for the reading trigger input of ID No. 1.
Appendices Program for the SYSMAC-C series M9038 MOV #0064 DM0000 MOV #0008 DM0001 Specify the head address of the data memory area for each ID number. The N-400 processes data as binary data. Specify each DM number in binary format. MOV #012C DM0002 BCD Binary 100 64 200 C8 MOV #0002 DM0100 300 12C MOV #0002 DM0200 Specify the data memory flag for each ID number as “2”. (To use the flag, select “Sequential processing”.
Appendices 25313 CMP DM0200 #0003 25506 [Data stored in DM0203 and subsequent areas is processed.] When DM0200 becomes “3”, the specified processing is performed. After processing is completed, enter “2” in DM0200. MOV #0002 DM0200 25506 CMP DM0300 #0003 [Data stored in DM0303 and subsequent areas is processed.] When DM0300 becomes “3”, the specified processing is performed. After processing is completed, enter “2” in DM0300.
Appendices Program for the KV series 2008 0000 0000 0001 0001 0002 0002 2002 #0100 DW DM0000 #0002 DW DM0100 #0001 DW DM0031 #0000 DW DM0031 #0100 DW DM0032 #0000 DW DM0032 #0001 DW DM0033 #0000 DW DM0033 #0100 LDA #0200 DW DM0001 #0002 DW DM0200 #0300 DW DM0002 #0002 DW DM0300 Enter “0001” for the reading trigger input of ID No. 2. Enter “0002” for the reading trigger input of ID No. 3. #0003 CMP [Data stored in DM0103 and subsequent areas is processed.
Appendices Troubleshooting If an abnormal condition occurs while operating this unit, check the following points. If you cannot solve the problem, contact KEYENCE. Communication is unsuccessful. 1) Check communication between the N-400 and each BL series using the N400’s connection test mode. If communication is unsuccessful, check the following points: 1 Check if the power switches of the N-400 and all BL series are ON.
Appendices 3) Check the N-400’s settings for the following points: 1 Check if the ID numbers of all connected BL series have been registered on the “ID SETUP” screen of the N-400 setup software. 2 To use multi-head mode, check the following points in addition to the above. i) Check if the BL series is set to “Single label” reading mode. ii) Check if the BL series’ trigger input signal type is set to “Level”. iii) Check if the BL series’ read error code setting is the same as the N-400.
Appendices Indications on the N-400 The N-400 displays the following codes: ■ Status indication These codes indicate that the N-400 is in a special condition. 50 50): S0 (50 When you press and hold the test switch for five seconds, this code is displayed. When the N-400 displays this code, the communication parameters are set as follows: (➮ See p. 48.) This code is used to send settings to the N-400 on the N-400 setup software.
Appendices Appendix F ASCII Code Table High-order 4 bits Hexadecimal 0 1 2 3 4 5 6 7 Appendices Low-order 4 bits Binary 0000 0001 0010 0011 0100 0101 0110 0111 134 0 0000 DLE (SP) 0 @ P ' p 1 0001 SOH DC1 ! 1 A Q a q 2 0010 STX DC2 ” 2 B R b r 3 0011 ETX DC3 # 3 C S c s 4 0100 EOT NAK $ 4 D T d t 5 0101 ENQ DC4 % 5 E U e u 6 0110 ACK SYN & 6 F V f v 7 0111 BEL ETB ’ 7 G W g w 8 1000 BS CAN ( 8 H X h x 9 1001 HT EM )
Appendices Checksum Calculation Method You can add a checksum to transmitted data. (The checksum cannot be added to a command or a response to a command.) Adding a checksum enables incorrect data translation to be detected in the RS232C communication. If the checksum does not match when the PASS/RTRY or ACK/NAK protocol is used, modify the program so that the “Request to resend” (RTRY or NAK) command is sent to the N-400. To set the checksum, use the “PROTOCOL SETUP” screen of the N-400 setup software.
Appendices Convert the calculated hexadecimal number into an ASCII code in two digits. The result obtained is the checksum. Therefore, the checksum for the above example is “cc = 59 (35h 39h).
Appendices Appendix H Setup Parameter List HOST MODE Mode ❑ Multi-drop link mode ❑ Multi-head mode Interference suppression ❑ Disable ❑ Enable Trigger ON time for interference suppression ( ) * 10 ms to 2550 ms Reading mode ❑ Single label ❑ Multi label 1 ❑ Multi label 2 ❑ After reading ❑ At trigger OFF Data-send timing Read error code ( ) * Up to eight characters TRIGGER SETUP (Effective in multi-head mode only) Trigger input signal type ❑ Level One-shot input time ( ❑ One-shot Input time
Appendices ID SETUP ❑ ❑ ❑ ❑ ❑ ❑ ❑ 01 02 03 04 05 06 ❑ ❑ ❑ ❑ ❑ ❑ ❑ ❑ ❑ ❑ ❑ ❑ 08 09 10 11 12 13 ❑ ❑ ❑ ❑ ❑ ❑ 14 15 16 17 18 19 ❑ ❑ ❑ ❑ ❑ ❑ 20 21 22 23 24 25 26 27 28 29 30 31 07 RS-232C SETUP Baud rate ( Data length RTS/CTS handshaking ❑ ❑ ❑ ❑ Baud rate ( Data length ❑ 7 bits ❑ Even ❑ 1 bit Parity Stop bit length ) 7 bits Even 1 bit Disable ❑ ❑ ❑ ❑ * 600 to 38400 bps 8 bits ❑ None Odd 2 bits Enable RS-485 SETUP Parity Appendices Stop bit length 138 ) ❑ 8 bits ❑ Odd ❑ 2 bits *
Appendices Appendix I Default Setting List HOST MODE Mode Multi-drop link PLC link Disable Handshaking No handshaking Header None Delimiter CR Add ID Add Checksum Do not add PROTOCOL SETUP ID SETUP Only ID 1 is registered.
Appendices Appendix J Sample Printout of Setting List / / / New setting data [Untitled] / / / [X] selected [X] - - - - - => Changed 1) HOST MODE [MODE] [Interference Suppression] [Read mode] [Data-send] [Read error code] [X] MULTI-DROP LINK [X] MULTI-HEAD SCAN [X] Disable [X] ENABLE Timer [10] x 10 msec [X] Single [X] Multi 1 [X] Multi 2 [X] After read [X] At trigger input ERROR [4552524F52] 2) Trigger setup (only with MULTI-HEAD SCAN) [Signal type] [X] Level [X] One-shot [One-shot input time] [10] x 10
WARRANTIES AND DISCLAIMERS: (1) KEYENCE warrants the Products to be free of defects in materials and workmanship for a period of one (1) year from the date of shipment. If any models or samples were shown to Buyer, such models or samples were used merely to illustrate the general type and quality of the Products and not to represent that the Products would necessarily conform to said models or samples.
N-400 User's Manual 96M0353 User's Manual Multi-Drop Controller for BL Series N-400 N-400 TEST RS-232C READER SD RD POWER TIMING POWER SD RD TERMINATOR OFF TERMINATOR ON OFF Specifications are subject to change without notice. AFFILIATED COMPANIES 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 ITALIA S.p.A.