Home

User`s Manual

image

Contents

1. 2100 i 3000 COMMAND RECEIVE RECEIVING COMMAND xw Xk kkk KK 3010 MDATS MIDS DATS 6 2 3020 IF MDATS NC THEN GOSUB 5000 RETURN 3030 MDATS MIDS DATS 6 4 3040 IF MDATS SERR THEN GOSUB 6000 RETURN 3050 GOSUB 9000 RETURN 3060 i 4000 BUFFOVER D BUFFER OVER X kk kk kCkCk Ck kk kk kk kk ke kk kk 4010 PRINT DATS 4020 PRINT THE UNIT MIDS DATS 3 2 OCCURS BUFFER OVER 4030 DATS 4040 RETURN 4050 5000 1 kNOCONNEC CONNECTION ERROR XXX kk KK KK KK kk kk OK 5010 PRINT DATS 5020 PRINT THE UNIT 4 MIDS DATS 3 2 IS NOT CONNECTED 5030 DATS 5040 RETURN 5050 Y 6000 SRLERR COMMUNICATION ERROR Xe ok ok kkk ek He k 6010 PRINT DATS 6020 PRINT COMMUNICATION ERROR PLEASE RETRY 6030 DATS 6040 RETURN 6050 7000 RMPTY D NO DATA kk KK KK KK KK KK KK Ck kk kk kc ke k kk KK KK 7010 PRINT DATS 7020 PRINT THE UNIT MIDS DATS 3 2 HAS NO DATA 7030 DATS Ta 7040 RETURN 7050 i 8000 BARCODE DISPLAYING READ DATA x X odd e 8010 PRINT DATS 8020 PRINT THE UNIT 4 MIDS DATS 3 2 READS THE DATA AS MID DAT 6 8030 DATS 8040 RETURN B 8050 9000 RE
2. P4 E P4 E MN ri i 100 to 240 VAC I 1 E EX with 3 core plug f i i 6 26 5 Cable length 2 m ce i S i Bo re i id i foi 4 Pon i 9 i i 1 i i io 4 NN i i co co 8 2 7 8 ee n L in 120 d io ot 0H bd Rs 4 x 25 mounting hole pe il l 150 gt 51 i 186 i 91 max gt l Appendices 123 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 Set the N 400 as follows Header None Delimiter CR Handshaking protocol No handshaking or PASS RTRY protocol 100 N A400 SAMPLE PROGRAM kk kk kk k kk kk Ck ck ck kk kk kk ek ek x 110 VeOnS 3 120 DATS RD CMS 130 OPEN COM1 9600 E 7 1 RS CS DS CD FOR RANDOM AS 1 140 BUFFCLR CLEARING BUFFER
3. 4 3 Load o E m c Load Load d Rated load 30 V max 100mA 18 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 Shield cable Twisted pair cable TIM COM RS 485 SG RS 485 RS 485 SG RS 485 lolo RS 485 24V DC OUT 24V DC OUT RS 485 24V DC IN 24V DC IN Sr 24V DC OUT 24V DC OUT RS 485 RS 485 RS 485 SG I loiololelo Iololo o z A co RS 485 SG RS 485 RS 485 24V DC IN lolo 24V DCIN 24V DC OUT 24V DC OUT RS 485 RS 485 lojojolola _ ojofo RS 485 SG lo z k co lO Glo O RS 485 SG RS 485 RS 485 24V DC IN 24V DC IN 24V DC OUT 24V DC OUT RS 485 RS 485 RS 485 SG lojojolo a_ jo lo z k Oo 24V DC IN 24V DC IN N 400 24 VDC 19 Chapter2 Installation Procedure The diagram on the previous page s
4. Connect the sensor for trigger input to the N 400 The N 400 can be connected to the BL 700 BL 500 BL 180 series bar code readers Additional 24 VDC power supply is required for the N 400 and N 48 Chapter 1 Overview of The N 400 1 3 Part Names N 400 CD Display LEDs 2 RS 232C port Communication status indicator LEDs 4 Test switch Terminator switch ON OFF Name KEYENCE N 400 N TET 2 88 o lt x RS 232C i E Q 9 Power supply terminal E 8 OOO RS 485 terminal s s cii Trigger input terminal OO 9 TERMINATOR OQ dre EPEE DEE Function Display LEDs e Normally displays 00 ID number of the N400 Displays the ID number of the device being tested gt See p 26 Displays S1 51 to indicate setup mode gt See p 75 Displays SO 50 to indicate initial communication status after a setting change See p 48 e Displays the N 400 s error condition gt See 131 Displays the ID number of the device currently connected when sending a hotline command See p 73 RS 232C port Connect a host computer or PLC to this connector Communication status indi
5. MM H H M J Description of setup commands Bi Saving settings Initializing settings Quitting SETUP mode Function Command Response Description Error code Saving settings SAVE OK See p 74 00 02 in the EEPROM 05 14 Initializing DFLT OK Resets the current settings 00 02 settings to the default values and 05 14 saves them in the EEPROM 15 Quitting See p 74 00 02 SETUP mode 05 14 il HOST MODE Function Command Response Description Error code Mode Change WPOOn OK n 0 Multi drop link n 1 Multi head scan Confirm RPOO mode Interference Change WPO06n n 0 Disable suppression n 1 Enable Trigger Confirm RPO6 ON time in Change WP47nnn nnn 001 to 255 interference suppression Units 10 ms mode Confirm RP47 Read mode Change WP12n n 0 Single n 1 Multi label 1 Confirm RP12 n 2 Multi label 2 Datatrans Change WP13n n 0 After read mission timing n 1 At trigger Effective in signal label Confirm RP13 mode only Read error Change WP55hhh hhh Read error code code up to eight characters To set a read error code use HEX hexadecimal Confirm codes hhh FF Read error code is not set Tips d To set a read error code use the following command fo
6. Hexadecimal 0 1 2 3 4 5 6 7 Binary 0000 0001 0010 0011 0100 0101 0110 0111 o 0000 DLE SP 0 P i p 1 0001 SOH DC1 1 A Q a g 2 0010 STX DC2 2 B R b r 3 0011 ETX DC3 s 3 ICS C S 4 0100EOT NAK 4 D T d t 5 0101 ENQ DC4 5 E U e u 5 6 0110 ACK SYN amp 6 F V f V E 7 0111 BEL ETB 7 G W g w E 8 1000 BS CAN 8 H X h x 9 1001 HT EM 9 Y i y A 1010 LF SUB J Z j Z B 1011 HM ESC K k C 1100 CL gt L D 1101 CR M M E 1110 SO 7 gt N n F 1111 SI l O _ o del 134 Appendices Appendix G 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 RS 232C 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 The checksum cannot be added when the PLC link is used Bl Checksum calculation range and the position to add checksum The checksum calculation is performed with all characters except for the header and delimiter The checksum is added immediately before the delimiter CC Check
7. 98 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 for RS 232C Baud rate Serial communication time H Number of data digits Header Delimiter Number of data digits 10 Number of data digits 20 Number of data digits 32 9600 bps 15 ms 27 5 ms 42 5 ms 3 8 ms 6 9 ms 10 7 ms 38400 bps Next trigger input receiving OFF time I During this time the BL series does not start operation even when the next trigger input is turned ON When the RS 485 communication baud rate is 38400 bps Number of connected BL series Next trigger input receiving OFF time I 2 50 ms 5 140 ms 10 290 ms 20 590 ms 31 920 ms B When the interference suppression function is used The timing chart in interference suppression mode is as follows Trigger input H N i to N 400 m T BL series with AA JL TIL ID No 1 0o BL series with l ID No 2 i i MM BL series with eee M ko ID No 3 Mi Mie M IM Scan time per unit L The setting of the trigger ON time in interference suppression mode can be changed to a value in the range of 10 ms to 2550 ms However the trigger ON time
8. N 48 BL series KEYENCE READER O Qa 9 Q Pin assignment 12 3 4 5 D sub 9 pin male 9 0 9 e DCE specification defined as terminal 0000 114 40 screw e 7 8 9 Symbol Function Signal direction TIM Trigger input Output RD RXD Receives data Output SD TXD Sends data Input OK OK Input GND SG Ground Common ground for respective signal NG NG Input RS RTS Ready to send data Input CS CTS Request to send data Output 45V 5 V power supply output 600mA Output 2 3 2 Terminals of I O terminal block and connections mom HBBH Viewed from the left of the unit Description Signal direction Trigger input Input Common terminal for trigger input Input OK output Output NG output Output Common terminal for output Output 16 Chapter 2 Installation Procedure 24V DC IN a Description Viewed from the bottom of the unit 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 The following l type clips can be used for connections Connecting power supply
9. sssssssssseee 32 Setup Software Operating Procedure uessss 34 Operating procedure scien ela eee 34 Description on each setup screen sssse e 35 Outline Of Operation esee 36 Details of Operating Procedure sse 38 Setting ejee te U rec 38 Reading Saving Printing File sse 44 Sending Receiving Settings ssssseeeee 48 Using Terminal rrr beim des 52 List of Error Messages essere nnn 55 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 Multi Drop Link Mode eem 58 Controlling multi drop link mode sssseeen 58 Setup procedure rerainane en aada aiia aiaa ai enini 60 Data Communication in Multi Drop Link Mode 61 foXDreferellaf EET 61 Mangal ore Toro e aa 62 Capacity of Transmission Buffer sse 63 Handshaking protocol s cree eat t ce t Lo qt beret eds 65 Command Transmission To BL Series sssususss 66 N 400 Direct Control Commands sse 69 Communication procedure essent nns 69 Description of commands sse emen 70 N 400 Setup Command sse 75 Communication
10. MOV 0002 DM0200 Specify the data memory flag for each ID number as 2 To use the flag select Sequential processing MOV 0002 DM0300 0000 MOV 0000 MOV of ID No 1 0000 DM0031 0001 MOV 0001 DMO0032 Enter 0001 for the reading trigger input of ID No 2 0002 MOV 0000 DM0032 0002 MOV ll 0001 DM0033 4 E oT 2 n lt x Enter 0002 for the reading trigger input of ID No 3 0002 MOV 0000 DM0033 25313 MOV 0100 DM0003 When DM0100 becomes 3 the specified processing is performed After processing is completed enter 2 in DMO100 subsequent areas is processed 25506 St stored in D103 i MOV 0002 DMO0100 0001 DM0081 1 Enter 0000 for the reading trigger input 128 Appendices 25313 CMP DM0200 0003 25506 Data stored in DM0203 When DM0200 becomes 3 the Jl amp subsequent areas is specified processing is performed processed After processing is completed enter 2 in DM0200 MOV 0002 DM0200 25313 CMP ll DM0300 0003 25506 Data stored in DM0303 When DM0300 becomes 3 the ll amp cies
11. Command TRCOM Response mm mm 01 to 31 ID number mm 00 ID number is not specified Description of the procedure Send the TRCOMmm command The N 400 sends back OK The N 400 displays the specified ID number 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 Example To start reading Send LON CR e To end reading Send LOFF CR To go to the SETUP mode Send SSET CR When the N 400 fails to send a command to the BL series the BL series sends back the following response NC The BL series with the specified ID number is disconnected SERR Communication error After the command transmission is completed be sure to send TROFF Otherwise the N 400 cannot receive any commands 74 Chapter 4 Multi Drop Link Mode Control Procedure 4 5 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 E Details of the communication 1 To confirm the N 400 s current settings send the setting check command to the 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 5 P When this c
12. windows desktop im n400 J OK X Cancel 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 Matched Not matched Information Information 7 YN Matched Ay Not matched 46 Chapter 3 N 400 Setup Procedure Printing contents of a setting file 1 To print settings click on Print The following screen will appear Printer Default Printer Voyager on DK WLaserwriter V oyager ok r Print range Cancel e AE Setup fram ig Print quality 300 dpi Copies Collate copies 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 f you try to initialize the settings currently being edited without saving them the following message appears If you wish to execute initialization click on OK 1 Settings are not saved OK j Cancel Note The initialization procedure described in this section is used to initialize the settings being edited with the setup software The settings on the N 400 cannot be initialized 47 Chapter 3 N 400 Setup Procedure 3 4 Sending Receiving Settings Sending updated settings to the N 40
13. Incorrect Correct Connection with branch Connection without branch BL U1 BL U1 N 400 BL U1 BL U1 N 400 BL U1 BL U1 Terminator ON 25 Chapter 2 Installation Procedure 2 5 Using Connection Test Mode This section describes the procedure for performing a connection test after the N 400 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 1 When you press and hold the N 400 test switch for approximately 2 seconds after the power to all devices is turned ON the connection test mode is acti vated The N 400 displays the ID number of the device being tested If the devices are properly connected the ID number is automatically incremented 2 If any device is not connected or is improperly connected the ID number corresponding to the device flashes To go to the next step during the connection test press the test switch once Example 1 When ten BL series ID Nos 1 to 10 are connected The displayed ID number automatically changes from 1 to 10 and then 11 will flash if the connection test result is OK Example 2 When fourteen BL series ID Nos 3 to 16 are connected When 1 flashes press the test switch once When 2 flashes press the test switch again The displayed number ch
14. Confirm RP41 80 B ID SETUP Function Command Chapter 4 Multi Drop Link Mode Control Procedure Response Description Error code Registering ID number for each unit Change WIDmmn OK Confirm RIDmm mm 01 to 31 ID 3 number n 0 Do not register n 1 Register 00 01 02 05 07 14 Registering serial numbers Register all ID numbers more than the specified number Change WIDMAXmm Confirm RWIDMAXmm mm 01 to 31 ID 4 number If mm is 99 in the response serial ID numbers are not registered Registering all serial numbers Change WIDAnnn n Confirm E RS 232C SETUP Function Command Response n 0 Do not register n 1 Register n corresponds to ID numbers 1 to 31 in ascending order Description Baud rate Change WP35n OK Confirm n 5 38400 bps n 6 31250 bps n 7 19200 bps n 0 9600 bps n 1 4800 bps n 2 2400 bps n 3 1200 bps n 4 600 bps Data length Change Confirm n 0 n 1 7 bits 8 bits Change Confirm n 0 None n 1 Set parity To set the parity type use the Parity type command Parity type Change Confirm n 0 Even n 1 Odd Stop bit length Change Confirm n 0 1 bit n 1 2 bits RTS CTS control Change Co
15. 0000 the data stored in the A 02 to A 258 addresses can be processed Example 2 Normally the A400 address is set to 0001 When data writing is completed the flag area becomes 0000 The data stored in the A 02 to A 258 addresses can then be processed Set the A 00 address to 0001 immediately after data processing is completed When the A 00 address becomes 0000 this indicates that writing new data is completed Note When the BL series 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 To specify the flag areas use 0002 or 0003 When the A 00 address is 0002 new data can be stored When data writing is completed the flag area becomes 0003 and new data has been stored in the A 02 to A 258 addresses After data processing is completed set the flag area to 0002 Writing new data is impossible until the flag area is 0002 Data which cannot be stored in the specified areas is retained in the BL series transmission buffer In sequential processing mode data is retained in the BL series transmission buffer instead of the N 400 s transmission buffer For the capacity of the BL series transmission buffer see p 63 If the amount of retained data exceeds the buffer capacity the BUFFER OVERFLOW error
16. Print from the initial setting the condition immediately after it is read from the Default Version info file changed is displayed Com port Transfer Monitor Exit C HOST MODE Sets auto polling mode multi drop link and multi head scan mode Sets the interference suppression function in multi head mode Sets read mode measuring method and trigger input in multi head mode Sets aread error code and trigger ON OFF commands in multi head mode PROTOCOL Sets the handshaking protocol Sets the header and delimiter Sets the PLC link ID SETUP Registers the ID number of the connected BL Bar Code Reader RS 232C Sets the baud rate data length stop bit length and parity for the RS 232C communication Setting the RTS CTS protocol RS 485 Sets the baud rate data length stop bit length and parity for the RS 485 com munication FILES Saves reads or prints settings COM PORT Sets the communication parameters baud rate etc of the host computer according to the settings of the N 400 before communication starts between the N 400 and host computer TRANSFER e Sends updated settings to the N 400 or reads the current settings of the N 400 MONITOR Checks if the N 400 can operate normally EXIT e Quits the N 400 setup software 39 Chapter 3 N 400 Setup Procedure 3 2 3 Outline of operation This section describes the basic operations of the N 400 setu
17. amp amp XXX KKK KK kk kk kk KK 150 A LOC 1 160 IF A lt gt 0 THEN RS INPUTS 1 1 GOTO 140 165 i 170 MAT MAT ROUTINE amp amp XX kk KK KK ck kCkCkck ck kc k kc k kc k KK 180 A LOC 1 190 KS INKEYS 195 WHILE K lt gt E 200 IF KS lt gt THEN GOSUB 410 210 IF A 0 THEN 170 220 RDS INPUTS 1 1 2 320 IF RDS CHR amp HD THEN GOSUB 1000 GOTO 170 330 DATS DATS RDS 340 GOTO 170 2 400 410 COMMAND TRANSMITTING COMMAND gt kkk Xk kkk Kk kkk kkk k 420 IF KS CHR amp HD THEN 470 440 CMS CMS K 450 PRINT KS 460 RETURN 470 SEND 480 PRINT 1 CMS CHR amp HD TRANSMITTING COMMAND 490 PRINT PRINT CM WAS SENT 500 CM 510 RETUR 520 l 1000 1x RECEIVE D RECEIVING X X XXX kk kc kc kk k ck ck ckckck kk ck ck ck ck ck kk 1010 LDATS LEFTS DAT 2 1020 IF LDATS P THEN GOSUB 2000 RETURN 1030 IF LDATS T THEN GOSUB 3000 RETURN 1040 GOSUB 3000 RETURN 1050 2000 DATA RECEIVE D U RECEIVING DATA KKK KKK KKK KKK KKK 2010 MDAT MIDS DATS 6 4 2020 IF MDATS OVER THEN GOSUB 4000 RETURN 2030 MDAT MIDS DATS 6 2 2040 IF MDATS NC THEN GOSUB 5000 RETURN 2050 MDATS MIDS DATS 6 4 2060 IF MDATS SERR THEN GOSUB 6000 RETURN 2070 MDAT MIDS DATS 6 1 2080 IF MDATS e THEN GOSUB 7000 RETURN 2090 GOSUB 8000 RETURN 124 Appendices
18. 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 Checking serial ID numbers Command IDMAX Response MAXmm mm 01 to 31 ID number mm 00 Not registered mm 99 The registered ID numbers are not serial numbers Description Registers all ID numbers not more than mm When the registered ID numbers are not serial numbers the response is 99 The registered ID numbers for auto polling are saved in the N 400 Command IDSAVE Response OK Setting auto polling mode to ON or OFF Auto polling ON Command POLEOO Response OK Example Sending the command to start auto polling When ten BL series units are connected PUN Send ID001111111111000000000000000000000 CR or IDMAX10 CR The N 400 sends back OK CR Send POLEOO CR The N 400 sends back OK CR 71 Chapter 4 Multi Drop Link Mode Control Procedure Specific ID polling ON Command POLEmm mm 2 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 When the N 400 executes polling for several BL series in reading rate check mode a large amount of data is continuously sent from the BL series which causes the buffer overfl
19. for sending settings is abnormal N 400 failed to open OK Communication with N 400 for reading settings is abnormal Errors file editing Accessing file during rejected OK No floppy disk is inserted The floppy disk is write protected The floppy disk is full File not found OK File name incorrect OK The file name is incorrect Enter a correct file name 99 Chapter 3 N 400 Setup Procedure 56 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 Multi Drop Link Mode e 58 Controlling multi drop link mode esses 58 icu Teeo iy C 60 Data Communication in Multi Drop Link Mode 61 AUO ore lur eR 61 Manual DO coi o sido neto do de te etm aedes ie terrd erra Son ra iet 62 Capacity of Transmission Buffer encres 63 Handshaking protocol 1 terrm teen entr rp be eene 65 Command Transmission To BL Series 66 N 400 Direct Control Commands 69 Communication DO BOUE rset 69 Description of commands essa eaue e encre ctr esepcecnestiecettents tones 70 N 400 Setup Command eese 75 Communication Time Consideration 83 Chapter 4 Multi Drop Link Mode Contro
20. rt 6 mm min Connect a 24 VDC power supply to the IN terminal When a 24 VDC power supply is connected to the IN terminal the OUT terminal can be used as a 24 VDC power supply output terminal In this case the OUT terminal can be used as a power supply for other N 48 unit connected in the multi drop link configuration gt For a connection example see p 19 24V DC IN NM I4 24V DC OUTI HH 24 VDC 4 Input Output Do not connect a power supply other than 24 VDC or the unit may be damaged Connecting a power supply to the RS 485 terminal may damage the N 48 Do not connect different types of power supplies to the IN and OUT termi nals or the unit may not start normally due to the potential difference between the power supplies 17 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 M 5 9 o E 9 E i I TE DN I 15 to 26 VDC Connecting OK NG output The OK NG output indicates the result of the comparison with preset data or indicates whether reading is successful or not
21. 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 Command sent to BL series Header 96 P mm Serial command Delimiter Response Header P mm Response Delimiter For details about the communication format see pp 4 10 and 4 11 Note To use the BL series reading rate check mode send the Specific ID polling ON command first See p 72 After using this command be sure to reset it 5 4 2 N 400 direct control setup commands The commands sent to the N 400 are the same as those used in multi drop link mode Command sent to N 400 Response Header Response Delimiter For details about the communication format see pp 69 70 and 75 96 Chapter 5 Multi Head Mode Control Procedure 5 5 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 The interference suppression function allows each BL series laser beam to be turned ON sequentially starting at the unit with the smallest ID number Therefore the connected B
22. 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 Installing the N 400 eee 10 Connecting N 400 and Wiring ssssem 12 Terminals of I O terminal block and wiring uesesesessss 12 Connecting RS 232C ssssssssssssssssseeee eee 13 Connecting N 48 and Wiring sssssssee 16 Connecting the BL series sss 16 Terminals of I O terminal block and connection ssssss 16 Connecting RS 485 acesa a a rentre estrena 19 Connecting BL U1 and Wiring ssssssen 21 Connecting power supply sse eene 21 Connecting BLE Seri6S lost o ett ee Det aeu EE dede Cosa daa 21 Setting BL U1 DIP switches ssssseeeenenee 22 Terminals of I O terminal block and wiring ssesesessss 23 Connecting RS 485 ase races Cooper d rod aee een coniu 25 Using Connection Test Mode ssessseen 26 Mounting Procedure escicn a 27 Precautions for mounting environment see 27 Mounting N 400 e 28 Mounting N 48 esed emeret en ea eta are ta c oda en diis 28 Mounting BLU iie ca ie 29 Chapter 3 N 400 Setup Procedure 3 1 3 2 3 2 1 3 2 2 3 2 3 3 3 3 3 1 3 3 2 3 4 3 5 3 6 Installing Setup Software
23. BL series Response Response to the command OK ERROR etc NC Disconnection error This error occurs when the BL series with the speci fied ID number does not exist SERR Communication error For the serial commands the response to the serial commands and the error codes see the BL series User s Manual The BL series does not send any response to some of the direct control commands TEST1 LON etc How ever the BL series always send back a response when they are used in multi drop link mode OK Normal processing ERROO Incorrect command 67 Chapter 4 Multi Drop Link Mode Control Procedure When the command format is Command CR the response format is Re sponse CR When the command format is SSTX Command ETX the response format is SSTX Response ETX Command Response Command Response Command Response 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 However ESC is not added to the response Example Sending LON to start reading the BL series with ID No 5 Command being sent T 05 LON CR Response ZTE Ok CR Command being sent ESC STX 96 T 05 LON ETX Response 5TX TJ05 OK ETX Note When the reading rate check mode TEST1 start command is sent to the BL series the data is stored in the
24. ID number does not exist or is not con nected for communication SERR Communication error has occurred 62 Chapter 4 Multi Drop Link Mode Control Procedure The polling command can be received in either of the following formats P mm CR STX 96 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 Header ESC STX None Delimiter CR CR LF ETX E Setting manual polling mode If ID numbers have not been registered with the N 400 setup software manual polling mode can be used When ID numbers have been registered the N 400 automatically selects auto polling mode Reference Auto polling mode simplifies the host computer s program since the polling command is constantly sent to each BL series from the N 400 instead of from the host computer 4 2 3 Capacity of Transmission Buffer E Transmission buffer of N 400 The N 400 s transmission buffer can store up to 24 Kbytes 24576 characters The number of characters stored in the transmission buffer per piece of data is the number of characters of the data including the additional data such as number of decodings plus two characters indicating the data attributes Exam
25. N 400 click on COM PORT to match the communication parameters of the personal computer with the current settings of the N 400 The default settings of the N 400 are as follows Baud rate 9600 bit s Data length 7 bit Parity Even Stop bit length 1 bit Immediately after you purchase the N 400 set COM PORT to the above settings If you do not know the current settings of the N 400 press the N 400 test switch for approximately 5 seconds When the N 400 displays SO 58 the N 400 is automatically set to the above settings The N 400 can communicate with the host computer if the COM PORT settings are same as the above Click on Transfer to send the updated settings to the N 400 The current settings of the N 400 can also be read Select FILES to save or print the settings as required After the setup procedure is completed click on Exit to close the setup soft ware 34 Chapter 3 N 400 Setup Procedure 3 2 2 Description on each setup screen Pile Displays the name of the setup file Set ft lt lt Default Bid Satis eotia ceara currently being edited If the file has HOST MOD PROTOCOL ID SETUP 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 Compare If the file name has been changed
26. VDC power input terminal Input Viewed from the left of the terminal block The following l type clips can be used for the connections Connecting power supply The N 400 operates with a 24 VDC power supply 24N DC IN sor HOHHH uu When a 24 VDC power supply is connected to the power supply IN terminal the OUT terminal can be used as the 24 VDC power supply output terminal Note The power supply connected to the IN terminal must have a capacity high enough to supply power to the equipment connected to the OUT terminal Using this function the OUT terminal can be used as a 24 VDC power supply for each BL series connected in the multi drop link configuration For a connection example see p 19 To operate the N 400 be sure to use a 24 VDC power supply Using a power supply exceeding 24 VDC or using an AC power supply may damage the unit If your system must comply with UL regulations be sure to use the power supply with NEC class 2 output 12 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 i COM sG l Contact 4 or solid state i 1 i L 15 to 26 VDC Internal circuit 2 2 2 Connecting RS 232C Pin assignment
27. codes is unknown in a product or bar codes are printed in several positions the bar codes 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 controller is used in multi head scan mode a host computer can control several BL series units as if they were a single unit Ss iy Sensor for i trigger input Li j o LL RS 485 Chapter 1 Overview of The N 400 B 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 Since the laser beams turn ON sequentially the duration of laser OFF time when each unit is not reading a bar code becomes longer as the number of connected units is increased Therefore the bar code readers may fail to read bar codes if the line speed is set too fast N 400 jo ggoo esegue i RS 485 B PLC link function In the multi drop link mode or multi head
28. data is not listed The button name is changed to Start If you try to display received data again click on Start 52 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 Commandg CR Typing command and pressing ENTER key sends the command Monitor l Ba Send command 3 TERT x St op Received Data T01 OK lt cr gt P01 49400465 lt cr gt Quit 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 Monitor Of Send command N Received Data P01 49400465 lt cr gt OK lt cr gt OK lt cr gt 7 Click on Quit to quit this mode Procedure for starting BL test mode using the Monitor screen To start the BL series Reading rate check mode by sending a command from the host computer to the N 400 in multidrop link mode send the com mand using the Monitor screen according to the procedure below E Using the N 400 in multi drop link mode 1 Send the Specific ID polling command see p 72 so that polling is performed only for the BL series to be tested To send the command using the Monitor screen be sure to enter the command using uppercase characters CR of the following command corresponds to the Enter key of the pers
29. folder or document and Windows will open it for you Open v Cancel Browse 32 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 When installation starts the file copy process is displayed as a graph When the installation is completed the following message appears Information 9 Setup is complete You may run the installed program by double clicking on the installed program icon 7 For Windows 3 1 double click on the N400 icon in the KEYENCE group to start the setup software For Windows 95 start the program from the Start menu 33 Chapter 3 N 400 Setup Procedure 3 2 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 Start the N 400 setup software Select a setup item and set it to the desired condition Before sending the updated settings to the
30. is stored in the transmission buffer of the N 400 2 For the buffer capacity see p 63 If the amount of read data exceeds the buffer capac ity the N 400 clears all data stored in the transmission buffer In this case the N 400 stops its operation The N 400 s operation restarts when the RTS signal is turned ON or when the N 400 sends back the OVER code to the host computer See p 63 Note 1 The RTS CTS control can be used together with other handshaking protocols Note 2 When the RTS signal is OFF the N 400 does not send back a response e g OK to the host computer 66 Chapter 4 Multi Drop Link Mode Control Procedure 4 3 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 e T 03 TEST1 Terminator amp N 400 Header 96 T 03 OK Terminator 1 Send a command in the following format from the host computer Header T mm Serial command Terminator 2 When the command is received by the BL series the BL series sends back a response in the following format Header T lmm Response Terminator mm 01 to 31 ID number of
31. output Output terminal for RS 422A data transmission Output RS 485 terminal Input Output terminal for RS 422A data transmission Output RS 485 terminal Input Output Sign al ground terminal for RS 422A data reception Input ter Viewed from the M3 0 screws are minal for RS 422A data reception Input left of the terminal block used for the terminal block Use the following crimp terminals for connections less 6 0 mm e Qd 6 0 mm or D less Round shape Fork shape The trigger input allows the BL series to start reading bar codes turn on the laser beam The trigger input is turned ON when 8 5 to 30 VDC input is activated between the trigger input terminals The BL U1 power eal supply for the sensor can be used as the input power supply 412V OUT Tee o Contact or s Ir ol solid state bogus ped 8 5 30VDC 23 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 a a Rated load 30 V max 10
32. quent areas is specified processing is performed processed After processing is completed enter 2 in DM0300 MOV 0002 DM0300 END Appendices 129 Appendices Program for the KV series 2008 H sia gt M gt M Specify the head address of the data DMO0000 DM0001 DM0002 memory area for each ID number 0002 0002 0002 Specify the data memory flag for each DW gt lt _ DW gt lt Dw ID number as 2 To use the flag 0000 DMO0100 DM0200 DMO0300 select Sequential processing 0001 F bw gt we DMO0031 Enter 0000 for the reading trigger 0000 0000 input of ID No 1 lt _ bw DM0031 0091 0100 m w gt 0001 DM0032 Enter 0001 for the reading trigger 0000 input of ID No 2 lt _ bw DM0032 0094 0001 lt _ bw DMO0033 Enter 0002 for the reading trigger input 1F Dw 2002 DM0033 0100 0003 Ax Lpa gt lt CMP gt 2010 When DM0100 becomes 3 the Data stored in DM0103 and subsequent specified processing is performed areas is processed After processing is completed enter 2 in DMO100 0002 DW 2002 DM0100 DM0200 0003 _ lt LDA gt MP gt 1 2010 i When DM0200 becomes 3 the I ae eibi and subsequent specified processing is performed g p i After processing is completed enter 2 0002 in DM0200 DW J Di DM020
33. scan mode the PLC link function enables the BL series data to be sent to a PLC without a communication program Using this function you can reduce the number of steps for a PLC program because the N 400 stores the data read by No communication program is necessary the BL series directly into the PLCs memory To BL Chapter 1 Overview of The N 400 1 2 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 Multi drop link mode Maximum number of connectable units 31 Maximum extension distance 1 2 km N 400 setup software for Windows N 400 Fm RS 232C y CZ mumj Host Sensor for trigger input BL series zs Sa N 4 or BL U1 The N 400 can be connected to the BL 700 BL 500 BL 180 series bar code RS 485 readers Additional 24 VDC power supply is required for the N 400 and N 48 Multi head scan mode with the interference suppression function Maximum number of connectable units 31 Maximum extension distance 1 2 km N 400 setup software for Windows n Sensor for trigger input N 400 EE 3900 seco IIIJ RS 485
34. the BL series the OVER code is stored in the corresponding area ID number 1 to 31 Number of digits of bar code data 1 to 255 1st digit of read data 2nd digit of read data 255th digit of read data Note These data areas accept up to 255 digits However the BL series can read only 32 digits Therefore all of the areas for 255 digits are not used for the N 400 Only the areas corresponding to the number of the data digits are used Example When the BL series reads bar code data as KE12 D number Number of digits K E Specified by ASCII codes 4 hexadecimal numbers o D number 7 Number of digits E R gt Specified by ASCII codes R hexadecimal numbers o R 115 Chapter 6 PLC Link 6 4 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 106 and 107 4 Check if the cable connections are correct or if any cable is disconnected Referring
35. the above operation select baud rate Baud rates of 19200 to 38400 bps are added to this parameter Select the desired baud rate BL 500 Series SetupGetup Comm Baud rate Data bits B bits Stop bits 2 bits Parity C None Handshaking C PASS RTRY C ACK NAK RTS CTS Use RTS CTS handshaking Multidrop Set RS 485 multidrop link Communication strings Return Perform the above operation every time you start the setup software 59 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 proce dures 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 Set the RS 485 communication parameters baud rate data length parity and stop bit length for the BL series according to the N 400 s settings The default settings for the BL series and the N 400 are as follows Baud rate 9600 bps Data length 7 bits Parity Even Stop bit length 1 bit Note To increase the response speed set the BL series baud rate to 38400 bps 4 Setting Handshaking protocol or HTC CTS is not effective 5 Set Header to None Setting Delimiter is not effecti
36. 0 To send updated settings to the N 400 perform the following procedure 1 Press and hold the N 400 test switch for five seconds When the N 400 displays SO 53 the communication parameters are temporarily set as follows Baud rate 9600 bits s Step bit length 1 bit Data length 7 bits PLC link Disabled Parity Even If you know the current communication parameter settings of the N 400 this step is not necessary You can send data to the N 400 by setting the communication parameters of the host computer using COM PORT so that they conform to the current settings of the N 400 However if PLC link is enabled you cannot send data to the N 400 without performing this step because the handshaking protocol is set for PLC link only 2 Click on COM PORT to set the communication parameters of the host com puter according to the values listed in the step 1 above procedure Select an RS 232C port and click on OK Port G Port 1 C Port 2 C Port 3 C Port 4 Baud rate 9600 gt bps Data bits 7 bits 8 bits Parity Even C Odd C None Stop bits C1bit C2bis SY ok 3 Click on Send setting Save in N 400 EEP ROM The updated settings are then sent to the N 400 Send Receive settings N 400 x Send settings Save in N 400 EEP ROM 48 4 Chapter 3 N 400 Setup Procedure If the settings were successfully sent to the N 400 the following message a
37. 0 2 2002 DM0300 0003 lt lt LDA gt cP gt s 2010 When DM0300 becomes 3 the I Data stored in DM0303 and subsequent specified processing is performed arenes processed After processing is completed enter 2 0002 in DM0300 Dw gt J DM0300 END ENDH 130 Appendices Appendix D 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 N 400 s connection test mode If communication is unsuccessful check the following points D Check if the power switches of the N 400 and all BL series are ON 2 Check if the RS 485 communication parameters baud rate data length parity and stop bit length for the BL series are the same as the N 400 s settings 3 Check if the BL series is set to multi drop link mode 4 Check if the same ID number is assigned to different BL series 5 Check if the specified cable is used for the multi drop link connection the cable extension is within the specified distance 1 2 km and the number of con nected BL series is within the specified range thirty one 6 Check if the multi drop link connection is not passed through the terminal block or not branched See pp 20 and 25 Check if the terminators are correctly set in the mu
38. 0 mA Load Load 1 l O circuit diagram Input circuit diagram 3 3KQ o o W qj secs 41S Ty ANE S ph F KQ TA ERES e 1 1 g Hj Output circuit diagram A OK NG Load Internal circuit COM 24 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 BL U1 BL U1 BL U1 N4009 SDA SDA SDA RS 485 SDB SDB SDB RS 485 SG SG SG RS 485 SG Recommended RS 485 cable 0 75 mm 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 Turn ON the equipment terminator termination resistance 100 2 at both ends of the RS 485 connection marked with in the above diagram Turn ON OFF the BL U1 terminator using the terminator switch See p 22 Turn ON OFF the N 400 terminator using the terminator switch See p 6 Note Be sure not to connect the RS 485 cable using the terminal block Incorrect BL U1 Correct BL U1 Note 1 Do not place the RS 485 cable in the same conduit as a power cable Note 2 Do not branch the RS 485 connection as shown below
39. 03 6 2 Setup Proced re siaii asi aoaaa een de Ee rete ead Ee 104 6 2 1 Setting the BL Series esses 104 6 2 2 Setting the N 400 eet treten Pag n re x e Eu nuda 105 6 2 3 Setting the PLC arsenas aaa nnns 106 6 3 Device Assignment esscriuan a 108 6 3 1 Device assignment in multi drop link mode sssssssss 108 6 3 2 Device assignment in multi head scan mode sesser 113 6 4 PLC Link Error iuit eoa oie 116 Appendix A Specifications sse 120 Appendix B Dimensions eene 122 Appendix C Sample Programs eee 124 Sample programs for multi drop link 124 Sample program for PLC link sseees 126 Appendix D Troubleshooting ese 131 Appendix E Indications on the N 400 sees 133 AppendixF ASCII Code Table se 134 Appendix G Checksum Calculation Method 135 AppendixH Setup Parameter List sssssssssse 137 Appendix I Default Setting List ssssseeee 139 Appendix J Sample Printout of Setting List sssss 140 WARRANTIES AND DISCLAIMERS m 141 Vii Chapter 1 Overview of the N 400 1 1 Functions of the N 400 sseeeeemmmRR 1 2 Syste
40. 1 Data stored in D103 and subsequent areas is processed MOV K2 D100 Data stored in D203 and subsequent areas is processed MOV K2 D200 Data stored in D303 and subsequent areas is processed MOV K2 D300 END J J 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 Enter X0 for the reading trigger input of ID No 1 Enter X1 for the reading trigger input of ID No 2 Enter X2 for the reading trigger input of ID No 3 When D100 becomes 3 the specified processing is performed After processing is completed enter 2 in D100 When D200 becomes 3 the specified processing is performed After processing is completed enter 2 in D200 Appendices When D300 becomes 3 the specified processing is performed After processing is completed enter 2 in D300 127 Appendices Program for the SYSMAC C series M9038 MOV ll 0064 DM0000 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 0008 DM0001 MOV 012C DMO0002 MOV 0002 DM0100
41. 191 File register DMO0000 to R8191 according to the setting SYSMAC C Data memory DMO0000 to DM6143 The MELSEC A series provides an extension file register When a block number is specified during the N 400 setup the specified extension file register is used When 0 is specified for the block number the extension file register of the block number specified in the PLC program is used If no block number is specified during the N 400 setup and PLC programming the file register incorporated in the CPU is used 103 Chapter 6 PLC Link 6 2 Setup Procedure For setup and connection procedures see p 10 This section describes the proce dures 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 Set the RS 485 communication parameters baud rate data length parity and stop bit length for the BL series according to the N 400 s settings The default settings of the BL series and the N 400 are as follows Baud rate 9600 bps Data length 7 bits Parity Even Stop bit length 1 bit Note To increase the response speed set the BL series baud rate to 38400 bps 4 Setting Handshaking protocol or RTS CTS is not effective 5 Set Header to None Setting
42. 2 3 4 slil2t3l4is 1 2 3l tab 4l Host N400 E M ERE RS 232C Boe B The above timing chart shows the case in which five BL series units are con nected Therefore data transmission is delayed by a certain time duration until the polling command is sent to the BL series after the BL series reads bar code data First obtain the time duration required for the RS 485 data transmission In the RS 485 data transmission from the BL series to the N 400 the required time varies depending on whether the BL series has stored bar code data the BL series has already read bar code data or not In the above timing chart a the RS 485 data transmission time is short shows the case in which the BL series has stored no data and b the RS 485 data transmission time is long shows the case in which the BL series has stored some data a RS 485 data transmission time required when the BL series has stored no data Baud rate for RS 485 Communication time a 9600 bps 27 9 ms 38400 bps 12 8 ms b RS 485 data transmission time required when the BL series has stored some data Baud rate for RS 485 Communication time b Number of data Number of data Number of data digits 10 digits 20 digits 32 9600 bps 64 ms 74 ms 86 ms 38400 bps 28 ms 32 ms 37 ms 83 Chapter 4 Multi Drop Link Mode Control Procedure From the above data the RS 485 data tr
43. 27 Mo nting ario nias 28 Mounting N 48 Pr 28 Mounting BL U1 1 ctr neietrbantraac cita iE op pta e bap pio 29 Chapter 2 Installation Procedure 2 1 Installing the N 400 1 Equipment used N 400 multi drop controller 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 To use the N 48 for multi drop link an additional BL U2 24 VDC power supply unit is required The N 48 does not provide an RS 232C port The BL U1 can be used as an RS 232C or RS 485 power supply RS 232C cable for the N 400 This cable is used to connect the N 400 and the host computer Use a cable appropriate for the personal computer and the PLC s pin assign ment OP 98769 cable and OP 25057 connector are available RS 232C cable for BL series setup This cable is used to connect the BL U2 or BL U1 and the host computer to change the BL series settings Since the wiring of this cable is different from that of the RS 232C cable for the N 400 both cables must be prepared For wiring the BL U2 and BL U1 see the BL U2 Instruction Manual and BL series User s Manual respectively OP 279
44. 350 ms Approx 400 ms Approx 750 ms 32 Approx 400 ms Approx 500 ms Approx 1050 ms E 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 N 400 This time duration corresponds to the RS 232C command transmission time C described on p 84 To obtain the total communication time add the RS 485 command transmission time D 4 b described on p 84 When the RS 232C communication baud rate is 9600 bps Number of connected BL series MELSEC A SYSMAC C KV KV mode 1 Approx 150 ms Approx 150 ms Approx 100 ms 31 Approx 400 ms Approx 600 ms Approx 1 5s 117 Chapter 6 PLC Link 118 Appendices Appendix A Specifications ore abo pee reesen erren 120 Appendix B Dimensions rrr rni cet xec nn proxi a 122 Appendix C Sample Programs sese 124 Sample programs for multi drop link 124 Sample program for PLC link e 126 Appendix D Troubleshooting ssseesesessss 131 Appendix E Indications on the N 400 133 Appendix F ASCII Code Table sssssssss 134 Appendix G Checksum Calculation Metho
45. 37 cable is available for BL U2 OP 22149 cable and OP 25057 are available for BL U1 Twisted pair cable for the RS 485 Prepare the recommended cable gt See pp 19 20 and 25 Host computer Use a personal computer with an RS 232C port When large quantities of data are sent from several BL series they may exceed the host computer s data processing capacity If this occurs reduce the number of the connected BL series units or enhance the data processing capacity including the programming language of the host computer Setup and connection Setting the BL series bar code readers Prepare the BL series unit the BL U2 or BL U1 RS 232C power supply unit the RS 232C cable used for setup and a personal computer Set up the BL series using the BL series setup software For connection and setup procedures see the BL series User s Manual For the pin assignment of the connection cable between the BL U2 and the host computer see the BL U2 Instruction Manual The setting contents vary slightly depending on the mode being used Refer to the following pages for more information Multi drop link mode p 60 Multi head scan mode p 87 10 Chapter 2 Installation Procedure 2 Setting the N 400 3 4 5 6 7 8 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 operat
46. 4 LE Exclusive OR calculation formula Calculate the numbers of each bit referring to the following formula 06020 0 1 160 16120 Q Operator of Exclusive OR Conversion from hexadecimal number into binary number To convert ASCII codes into binary numbers refer to the following table Hexadecimal number Binary number Hexadecimal number Binary number 4 3 rr 2 z3 lt 136 Appendices Appendix H Setup Parameter List HOST MODE C1 Multi drop link mode Q Multi head mode Interference suppression Q Disable Q Enable Trigger ON time for interference suppression 10 ms to 2550 ms Reading mode Q Single label Q Multi label 1 Q Multi label 2 Data send timing LJ After reading Q At trigger OFF Read error code TRIGGER SETUP Effective in multi head mode only PROTOCOL SETUP Trigger input signal type C Level Up to eight characters Q One shot One shot input time 100 ms to 25 5 s Input time CL 2 ms Q 10 ms State Q Normally open C Normally closed Trigger ON command Up to eight characters Trigger OFF command PLC link U Disable Handshaking Q ACK NAK Q No handshaking Up to eight characters Q PASS RTRY C None C Custom Header Q STX O ESC Up to five characters Appendice
47. 900000009 Oo 2 6 3 Mounting N 48 To mount the N 48 use the mounting hole 28 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 4x95 P l J 150 TT 00000 98 t l 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 If it is not push it inward 3 To remove the BL U1 from the DIN rail pull the hook so that it is set in condition B 4 To mount the unit on the DIN rail again restore the hook to condition A 29 Chapter 2 Installation Procedure 30 Chapter 3 N 400 Setup Procedure 3 1 3 2 3 2 1 3 2 2 3 2 3 3 3 3 3 1 3 3 2 3 4 3 5 3 6 Installing Setup Software sssssessss 32 Setup Software Operating Procedure 34 Operating procedure esseseeeeereernnnneene 34 Description on eac
48. B Status indication These codes indicate that the N 400 is in a special condition 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 Baud rate 9600 bps Data length 7 bits Parity Even Stop bit length 1 bit Using PLC link Disable S1 5 f The code indicates that the N 400 is in SETUP mode This code is displayed after the SSET command is sent or while settings are sent to the N 400 or received from the N 400 on the setup software E Error indication The following codes indicate that the N 400 is in an abnormal condition 99 99 That the N 400 is defective If this error cannot be removed even when the test switch is pressed contact KEYENCE 98 98 Indicates an EEPROM memory error All the settings will be initialized Press the D test switch to reset this error E lt b 97 91 E Indicates a data overflow in the N 400 s buffer Press the test switch to reset this error 96 95 95 95 Displayed when communication is abnormal in PLC link mode Indicates a PLC link error Press the test switch to reset this error 133 4 2 3 2 lt Appendices Appendix F ASCII Code Table High order 4 bits
49. BL series buffer causing the buffer overflow error unless auto polling is performed Even if auto polling is performed the buffer overflow error may occur because the polling interval is longer than the BL series reading interval when many BL series are connected In this case send the Specific ID polling ON command to the N 400 2 see p 72 to control the N 400 directly so that auto polling is performed only for the BL series to be tested After using the specific ID polling mode be sure to reset this command 68 Chapter 4 Multi Drop Link Mode Control Procedure 4 4 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 The above control 3 can be performed using the connection test switch provided on the N 400 2 See p 51 4 4 4 Communication procedure Bl Sequence and format for communication Auto polling Y POLEOO CR M e N00 Ey OK CR For a description of the commands see the following pages 1 Send a direct control command to the N 400 from the host comput
50. BL series with ID No 1 Light source of BL series with ID No 2 Light source of BL series with ID No 3 e TIN MEE UN output Data is sent sequentially starting with Read error the earliest data 91 Chapter 5 Multi Head Mode Control Procedure n 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 ABL series that causes a read error sends no data e Ifall 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 Light source of BL series with ID No 1 Light source of BL series with ID No 2 Light source of BL series with ID No 3 Deve 1 2 3 1 2 3 communicate PU OL output j N A B n Multi 2 reading mode all connected BL series read bar code data while the trigger input is ON and send the individual data after the trigger input is turned OFF starting with the smallest ID number n Multi 2 reading mode every connected BL series sends a piece of data A BL series which causes a read error sends an error code Example In the above timing chart the communication output is as follows Communication output A Header 1234 Terminator Header ABC Terminator Header ERROR T
51. C cable pin assignment of the N 400 is the same as that of the host computer After the settings are read press the N 400 test switch once to reset the SO 50 condition If the N 400 does not display SO 53 you do not need to press the test switch When the N 400 displays 00 the reading procedure is completed 21 Chapter 3 N 400 Setup Procedure 3 5 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 com puter according to the current settings of the N 400 2 Click on Monitor The MONITOR screen will appear Monitor 10 Send command M top Received Data Quit 3 When the BL series reads bar codes the data read by the BL series is listed on the screen in the Received Data field A record of up to 1000 lines of data can be obtained Using the scroll bar at the right of the Received Data field you can see the previous data Monitor nml Send command M E op Received Data P01 49400465 lt cr gt P01 49400465 lt cr gt P01 49400465 lt cr gt 6P01 49400465 cr P01 49400465 lt cr gt 4 f you click Stop received
52. D 3 lt 3 RD RS 4 gt 4 RS Cs 5 5 CS SG 7 7 SG D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw The OP 98769 cable 1 5 m manufactured by KEYENCE or a commercially available straight cable can be used Connection with C 200HS CPU21 23 31 33 CQM1 CPU21 41 42 43 44 C 200HE CPU42 C200HG CPU43 63 C200HX CPU44 64 C200HWCOM02 COM04 COM05 COM06 D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw BH SYSMAC CV series Connection with CV500 LK201 Port 1 Link unit N 400 FG 1 1 FG SD 2 gt 2 SD RD 3 lt 3 RD RS 4 4 RS Cs 5 5 CS SG 7 7 SG D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw The OP 98769 cable 1 5 m manufactured by KEYENCE or a commercially available straight cable can be used Chapter 2 Connection with C 20H C 28H C 40H C 60H C 80H D sub 25 pin male M2 6 screw Connection with CV500 LK201 Port 2 CV500 CV1000 D sub 25 pin male M2 6 screw Installation Procedure CVM1 PLC N 400 FG 1 1 FG SD 2 gt 2 SD RD 3 lt 3 RD RS 4 gt 4 RS CS 5 5 CS Sey ys D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw 15 Chapter 2 Installation Procedure 2 3 Connecting N 48 and Wiring 2 3 1 Connecting the BL series Connect the BL series to the READER port of the N 48
53. D No 12 reads bar code data as KE12 D number Number of digits K E gt Specified by ASCII codes E hexadecimal numbers o D number Number of digits E R gt Specified by ASCII codes RH hexadecimal numbers o R 112 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 Acommunication error occurs If a communication failure occurs between the BL series and N 400 when the N 400 is in the multi drop link mode the N 400 operates as follows Address Contents Operation during a connection error A 4 00 Write Data flag The flag is turned on as data are area written A 01 Reserved area A 02 ID number FFFF is written A 4 03 Number of bar code 1 is written This indicates that the number of digits of the error code written in A 04 is 1 A 04 First digit of bar code data During connection error N ASCII codes 4E is written During communication error S ASCII codes 53 is written The above specifications apply to the multi drop link mode only The same specifications do not apply to the multi head scan mode The addresses subsequent to A 04 retain the previous data Note If the N 400 s power s
54. D numbers of the BL series connected to the N 400 have been regis tered in auto polling mode the N 400 automatically executes polling queries the BL series of the specified ID number about its data The obtained data is con stantly sent to the host computer from the N 400 Since the N 400 automatically queries the BL series about its data the host com puter can be operated using a simple program B Communication format The BL series with ID No 3 reads bar code data as ABC123 Nee In auto polling mode the N 400 sends the read data to the host computer in the following format Header P 03 ABC123 Terminator Header P mm Data Terminator mm 01 to 31 ID number of BL series Data Read data OVER BUFFER OVERFLOW error has occurred See p 63 Select the header and delimiter from the following formats The header and delimiter can be changed to any string of five characters or less Header ESC STX None Delimiter CR CR LF ETX E Setting auto polling mode To set auto polling mode use the N 400 setup software 2 see p 42 or serial commands 2 see p 71 Using the serial commands you can easily control auto polling stop or start auto polling 61 Chapter 4 Multi Drop Link Mode Control Procedure 4 2 2 Manual polling E Manual polling When you send a polling command from the host com
55. Data transmission timing Data transmission timing can be selected from the following modes only in single label 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 Normally the data transmission timing should be set to this mode After trigger input is turned OFF This mode allows the BL series to send data when the trigger input is turned OFF If the one shot trigger mode is selected data is sent after the preset measurement time has passed When the BL series When the BL series failed to successfully read bar code data read bar code data Trigger input Communication output Read error 94 Chapter 5 Multi Head Mode Control Procedure 5 3 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 The header and delimiter can be selected from the following formats The header and delimiter can be changed to any string of up to five characters To change the header and delimiter form
56. Delimiter is not effective To use multi head scan mode set the following parameters Additional setups for multi head scan mode use 1 To use the N 400 in multi head scan mode set the BL series reading mode to Single label 2 Set the trigger input signal type to Level 3 Set the read error code according to the N 400 s setting Normally the read error code is set to ERROR default setting 4 Set the reading start command and read end commands according to the N 400 s settings Normally these commands are set to LON and LOFF respec tively default settings Change other parameters as required 104 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 DM head address Trigger input through PLC Setting PLC unit number station number Setting file register to Enable or Disable 3 Enter the ID numbers for the connected BL series on the ID SETUP screen gt See p 42 4 Set the baud rate data length parity and stop bit length according to the PLC s s
57. KEYENCE User s Manual 96M0353 Multi Drop Controller for BL Series N 400 KEYENCE BEADER O O O POWER SD RD KEYENCE O000000000000 O00000000000 c 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 Your rights of ownership are subject to the limitations and restrictions imposed by copyright laws Under the copyright laws you may not copy the manual or software in whole or in part without the written consent of Keyence except in the normal use of the software or to make a backup copy It is illegal to copy reproduce or transmit any part of the manual or the software in any form or by any means including translation to another language computer language or format except as permitted by the Copyright law You are permitted to write the contents of the software into the machine memory of your compute
58. L series do not simultaneously emit a laser beam This function prevents the laser beams from interfering with each other ensuring stable read ings The differences in operation depending on the reading mode and the trigger input signal type are the same as those in normal multihead mode Trigger input Light source of eee BL series with ID No 1 A Light source of eee BL series with ID No 2 A Light source of eee BL series with ID No 3 You can change the laser ON time A of each BL series by changing the BL series setting When A is prolonged the reading operation is stabilized but it is not applicable for a high speed line Conversely when A is reduced the reading operation is applicable for a high speed line but the reading stability may decrease Note The interference suppression function prolongs the time duration that each BL series light source is OFF Therefore reading may be impossible when the scan time is extremely short for example when the BL series cans bar codes on a high speed line 97 Chapter 5 Multi Head Mode Control Procedure 5 6 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
59. Note Be sure not to connect the RS 485 cable using the terminal block Incorrect Correct Note 1 Do not place the RS 485 cable in the same conduit as a power cable Note 2 Do not branch the RS 485 connection as shown below Incorrect C orrect Connection with branch Connection without branch N 48 N 48 N 400 N 48 N 48 N 400 N 48 N 48 Terminator ON 20 Chapter 2 Installation Procedure 2 4 Connecting BL U1 and Wiring To use the BL U1 AC power supply connect it as described below 2 4 4 Connecting power supply Plug the BL U1 power cable into an outlet A 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 ooooo ot o BL U1 READER port pin assignment 12345 o0ooooo oooo 6789 Symbol D sub 9 pin male DCE specification defined as terminal 314 40 screw female Function gt Signal direction TIM Trigger input Output RD RXD Receives RS 232C data Output SD TXD Sends RS 232C data Input OK OK Input GND SG Ground Common ground for respective signal NG NG Input RS RTS Ready to send RS 232C data Input CS CTS Request to send RS 232Cdata Control method can be sele
60. PN open collector output Rated load 30 VDC 100 mA Leakage current at OFF 0 1 mA max Residual voltage at ON 1 V max Interface RS 232C RS 422A RS 485 multi drop Max number of connectable units 31 Max total extension distance 1 2 km Ambient temperature 0 to 50 C 32 to 122 F No freezing Relative humidity 35 to 8596 No condensation Ambient atmosphere No dust or corrosive gas Vibration resistance 10 to 55 Hz 1 5 mm double amplitude in X Y and Z directions respectively Power supply voltage 100 to 240 VAC 50 60 Hz Power consumption 40 VA 100 VAC 50 VA 240 VAC Weight Approx 615 g including cable 121 Appendices Appendix B Dimensions Unit mm N 400 i E D T Ly Ley 4 reveNce N 400 o TET e QQQQ 112 100 90 88 29 9 TERMINATOR amp 3 0 O 9 O 0 OD Y es 4x 94 5 X 94 H k 40 mounting lt 70 lt 51 gel a 60 hole N 48 2x94 5 mounting hole N E rT n lt 122 Appendices BL U1
61. R ANY MATTER ARISING OUT OF OR IN CONNEC TION WITH THE USE OR INABILITY TO USE THE PRODUCTS EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED OF A POS SIBLE THIRD PARTY S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST BUYER In some jurisdictions some of the foregoing warranty disclaim ers or damage limitations may not apply BUYER S TRANSFER OBLIGATIONS If the Products Samples purchased by Buyer are to be resold or delivered to a third party Buyer must provide such third party with a copy of this document all specifications manuals catalogs leaflets and written information provided to Buyer pertaining to the Products Samples 141 Specifications are subject to change without notice KEYENCE KEYENCE CORPORATION 1 3 14 Higashi Nakajima Higashi Yodogawa ku Osaka 533 8555 Japan Phone 81 6 6379 2211 Fax 81 6 6379 2131 AFFILIATED COMPANIES KEYENCE CORPORATION OF AMERICA Phone 201 930 0100 Fax 201 930 0099 KEYENCE DEUTSCHLAND GmbH Phone 06102 36 89 0 Fax 06102 36 89 100 KEYENCE UK LIMITED Phone 01908 696900 Fax 01908 696777 KEYENCE FRANCE S A Phone 01 56 37 78 00 Fax 01 56 377801 KEYENCE ITALIA S p A Phone 02 6688220 Fax 02 66825099 KEYENCE SINGAPORE PTE LTD Phone 6392 1011 Fax 6392 5055 KEYENCE MALAYSIA SDN BHD Phone 03 2092 2211 Fax 03 2092 2131 KEYENCE THAILAND CO LTD Phone 02 369 2777 Fax 02 369 2775 KEYENCE CORPORATION KEYENCE TAIWAN CO LTD P
62. Response ETX Command Response Command CR gt Response CR STX Command wp STX Response 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 However ESC is not added to the response 79 Chapter 4 Multi Drop Link Mode Control Procedure E 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 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 07 N is any value other than 0 or 1 08 n exceeds the setting range 09 nnn or nn exceeds the setting range 10 hhh is not specified as HEX codes hexadecimal numbers 11 Setting hhh FF is impossible 12 hhh exceeds the specified number of characters 14 The data stored in the EEPROM may be corrupted Initialize the settings 15 The area storing the initial settings is incorrect 76 Chapter 4 Multi Drop Link Mode Control Procedure pum
63. SPONSE XDTSPLAYING RESPONSE X Xx kk KKK KK KKK T 9010 PRINT DAT WAS RETURNED 9020 DATS ec 9030 RETURN 9040 WEND 9050 CLOSE 1 9060 END Note This sample program is shown for your reference only Please note that this may not work correctly depending on the version of BASIC you use 125 4 3 oT 2 n lt 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 ID 1 D103 DM103 and subsequent areas ID 2 D203 DM203 and subsequent areas ID 3 D303 DM303 and subsequent areas You can use this program based on the following conditions Number of connected BL series 3 N 400 s settings Mode Multi drop link Using PLC trigger area Enable Data memory flag Sequential processing 126 Appendices Program for the MELSEC A Series M9038 X0 X0 X1 X1 X2 X2 LD D100 K3 L r LD D200 LD D300 K3 K3 I A MOV K100 DO MOV K200 D1 MOV K300 D2 MOV K2 D100 MOV K2 D200 MOV K2 D300 MOV K1 D31 MOV KO D31 MOV K1 D32 MOV KO D32 MOV K1 D33 MOV KO D33
64. Time Consideration eene 83 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 Multi head Mode n aa 88 Controlling multi head mode ssssseeeenenns 88 SELUP PIOCCOUIC e lad tte eben erases eee 89 Reading Operation in Multi Head Mode susssse 91 Difference in operation depending on reading mode 91 Trigger input signal ype sssrinin nenne 93 Dataitramsmission Timing deo e oup tuned ue tae dnt Euer rever Rt d dan 94 Data Communication in Multi Head Mode 95 Communication format pesussa tanse enne a reina 95 Handshaking protocol sssseenee enne 95 Road oror Golas te sanigech ss tected Sanmceceens ty de vech A 95 Command Communication in Multi Head Mode 96 Sending a command to BL series sse 96 N 400 direct control setup commands ssssseen 96 Interference Suppression Function sssesse 97 Communication Time 2 ni esci i erus teo nac co Usa Edo cde 98 Chapter 6 Appendices WARRANTIES PLC Link 6 1 PLC MAK enu eerte ennt ien ee aa 102 6 1 1 List of PLCs used for PLC link sse 102 6 1 2 Devices used for PLC link 1
65. amplitude in X Y and Z directions respectively Power supply voltage 24 VDC 10 20 Current consumption 140 mA max Weight Approx 180 g 120 Appendices N 48 BL U1 Model N 48 Conversion interface RS 232C amp RS 485 Level conversion Connectable bar code reader BL 500 series BL 180 series Power supply for bar code reader 5 VDC 5 600 mA Trigger Rated input 15 to 26 VDC 10 mA max input Max OFF current 1 0 mA OK NG Output form NPN open collector output Rated load 30 VDC 100 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 total extension distance 1 2 km Ambient temperature 0 to 50 C 32 to 122 F No freezing Relative humidity 35 to 85 No condensation Ambient atmosphere No dust or corrosive gas Vibration resistance 10 to 55 Hz 1 5 mm double amplitude in X Y and Z directions respectively Power supply voltage 24 VDC 10 20 Current consumption 260 mA max Weight Model Approx 100 g BL U1 Power supply for bar code reader 5 VDC 5 1 5 A Power supply for sensor 12 V 10 300 mA Trigger Rated input 8 5 to 30 VDC 10 mA max input Max OFF current 0 5 mA OK NG Output form Appendices N
66. anges from 3 to 16 and then 17 will flash if the connection test result is OK 3 If an ID number of any BL series flashes the BL series unit is not properly connected After checking the following points perform the connection test again e Check that the RS 485 communication parameters baud rate data length parity and stop bit length of the N 400 match to those of the BL series Check that the BL series is set to multi drop link mode Check that all cables are properly connected Ensure that the connections are not branched and that no cables are connected using the terminal block gt See pp 19 20 and 25 Check that the equipment terminators at both ends of the connection are ON and the terminators of other equipment are OFF e Check that the BL series ID numbers are properly assigned Make sure that the same ID number is not assigned to different devices Pressing and holding the test switch for approximately 2 seconds again resets the connection test mode 26 Chapter 2 Installation Procedure 2 6 Mounting Procedure 2 6 1 Operating environment precautions This unit is a precision instrument and you must take care in choosing the operating environment E Ambient environments Do not install the unit in place as shown below Theunit is exposed to direct sunlight or the ambient temperature may fall below 0 C 32 F or exceed 50 C 122 F The relat
67. ansmission time A shown in the timing chart on the previous page is obtained as follows Maximum time A a xn 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 N 400 When several BL series simultaneously send data the required time may be longer than the above The time duration b corresponding to the case in which the BL series has stored some data is prolonged Next obtain the time duration required for the RS 232C data transmission The RS 232C data transmission time B shown in the timing chart on the previous page can be obtained from the following formula B Amount of data 1 Set Parity Start Stop bit Baud rate Number of data digits Header Delimiter 5 Baud rate for RS 232C Communication time b Number of data Number of data Number of data digits 10 digits 20 digits 32 9600 bps 21 3 ms 33 8 ms 48 8 ms 38400 bps 5 4 ms 8 5 ms 12 2 ms From the above data the total communication time is obtained as follows Communication time A B E Command communication time When you send a command e g Laser ON command to the BL series obtain the time duration for how long it takes for the BL series to receive the command after you send it to the N 400 The communication time required to send a command to the BL series consists of the time required for the RS 232C command transmis
68. applicable for a high speed line because the scan OFF time of each BL series is prolonged 100 Chapter 6 PLC Link 6 1 PLC Link 102 6 1 1 Lister PLCs used Tor PLG link ecco tro rae eren 102 6 1 2 Devices used for PLC link ssseeeeesssseeee 103 6 2 Setup Procedure uci oorr tact pe biFasse n b Eo ern eC ua 104 6 2 4 Setting the BL Series sesseseessesess 104 p2 2 Selling ihe N 400 sssi nananana 105 SWE Bie 2 1 6 Bical fot 106 6 3 Device Assignment c ccc eeeeeeeeeeteteeeeeeeees 108 6 3 1 Device assignment in multi drop link mode 108 6 3 2 Device assignment in multi head scan mode 113 6 4 PLCLink Error 116 Chapter 6 PLC Link 6 1 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 in volves the following limitations The settings of the N 400 and BL series cannot be changed on the PLC The PLC link cannot send a command to the BL series However the PLC link provides a reading control address to start end reading The PLC link cannot send a command to the N 400 The start
69. are only suggestions and it is Buyer s responsibility to ascertain the fitness of the Products for Buyer s intended use KEYENCE will not be responsible for any damages that may result from the use of the Products 3 The Products and any samples Products Samples supplied to Buyer are not to be used internally in humans for human transportation as safety devices or fail safe systems unless their written specifications state otherwise Should any Products Samples be used in such a manner or misused in any way KEYENCE assumes no responsibility and additionally Buyer will indemnify KEYENCE and hold KEYENCE harmless from any liability or damage whatsoever arising out of any misuse of the Products Samples 4 OTHER THAN AS STATED HEREIN THE PRODUCTS SAMPLES ARE PROVIDED WITH NO OTHER WARRANTIES WHATSOEVER ALL EXPRESS IMPLIED AND STATUTORY WARRANTIES INCLUDING WITHOUT LIMITA TION THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICU LAR PURPOSE AND NON INFRINGEMENT OF PROPRIETARY RIGHTS ARE EXPRESSLY DISCLAIMED IN NO EVENT SHALL KEYENCE AND ITS AFFILI ATED ENTITIES BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DIRECT INDIRECT INCIDENTAL PUNITIVE SPECIAL OR CONSEQUENTIAL DAM AGES INCLUDING WITHOUT LIMITATION ANY DAMAGES RESULTING FROM LOSS OF USE BUSINESS INTERRUPTION LOSS OF INFORMATION LOSS OR INACCURACY OF DATA LOSS OF PROFITS LOSS OF SAVINGS THE COST OF PROCUREMENT OF SUBSTITUTED GOODS SERVICES OR TECHNOLOGIES OR FO
70. at change the settings of the N 400 Header ESC STX None Delimiter CRI CR LF E TX Tips A You can change the communication format so that an ID number is included The communication format including an ID number is the same as that for multi drop link mode Header P Imm Reading Data Terminator mm 01 to 31 ID number 5 3 2 Handshaking protocol The handshaking protocol and the capacity of the transmission buffer for multi head mode is the same as that for multi drop link mode For details see the descriptions for multi drop link mode 5 3 3 Read error code If the BL series fails to read bar code data a read error code is sent However since the read error code can be easily changed on the BL series the code indicat ing a read error must be specified on the N 400 Therefore the read error code setting of the N 400 must be the same as that of all connected BL series The default setting of the read error code is as follows Header ERROR Delimiter The read error code can be easily changed However you must ensure that the same error code is specified for all connected BL series 95 Chapter 5 Multi Head Mode Control Procedure 5 4 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
71. ation The N 400 s operation restarts when the PASS command is sent to the N 400 in response to the OVER code 65 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 2 see p 73 is sent to the N 400 while it is waiting for the PASS command the N 400 clears the data stored in the transmission buffer and goes into SETUP mode ACK NAK protocol The ACK NAK protocol uses ACK 06H instead of PASS and NAK 15H instead of RTRY described in the above protocol The operation is the same as the above protocol only the response codes are different RTS CTS control When the RTS signal is turned OFF during RS 232C communication the N 400 becomes ready for data transmission When the RTS signal is turned ON the N 400 starts sending data This cannot stop start the data transmission once data is being sent It is effective for controling the transmission of a set of data Even when the RTS signal is OFF the BL series can read bar code data In this case the read data
72. be longer than the following data Reading starts The BL series read i bar code data Trigger input to the N 400 Reading operation G ee N 400 Host MEE mec d NE REM computer RS 232C a Reading start delay time F When the trigger input connected to the N 400 is turned ON in multi head mode the N 400 sends the Reading start LON command to all connected units Therefore the start of the BL series reading operations is delayed by the time duration until the command transmission to all the BL series is completed The communication time required to send the reading start command to one BL series is as follows Baud rate RS 485 Reading start delay time D 9600 bps 31 ms 38400 bps 13 5 ms When the number of connected BL series is n the communication time is calculated as follows F Dxn n Number of connected BL series Serial output maximum delay time G The serial output maximum delay time is the maximum delay time until the N 400 sends bar code data to the host computer after the BL series reads the data When the RS 485 communication baud rate is 38400 bps Number of Serial output maximum delay time G connected BL Number of data Number of data Number of data series digits 10 digits 20 digits 32 2 96 ms 106 ms 116 ms 5 258 ms 268 ms 278 ms 10 528 ms 538 ms 548 ms 20 1 068 ms 1 078 ms 1 088 ms 31 1 662 ms 1 672 ms 1 682 ms
73. cation mode to KV mode Set the N 400 s communication mode to KV 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 Set the station number to 00 To use the KV L2 port 2 set the port 2 selector switch to RS 232C No other parameters need to be set Settings for KV L2 Display Interface mode Set the KV L2 s communication mode to Display Interface mode To use Display Interface mode select SYSMAC C for the N 400 s setting Set the baud rate data length parity and stop bit length according to the RS 232C communication parameters of the N 400 107 Chapter 6 PLC Link 6 3 Device Assignment The device assignment varies depending on whether the PLC link is used in multi drop 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 When a device head address is specified on the PLC SETUP screen of the N 400 setup software the device numbers are automatically assigned based on the specified head address E Data memory head address for each ID number and reading trigger areas The addresse
74. cator LEDs POWER Lit when power is ON TIMING Lit when the trigger input connected to the N 400 is ON For the RS 232C connections Lit when the SD RD RS and CS signals are ON For the RS 485 connections SD Lit when the N 400 is sending data RD Lit when the N 400 is receiving data Both the SD and RD indicators are lit when the N 400 is receiving data Test switch Starts the connection test mode Terminator switch Switches the terminator s ON OFF status Power supply terminal Connect a 24 VDC power supply RS 485 terminal Used for the multi drop link connection Trigger input terminal Used for trigger input in multi head scan mode Chapter 1 Overview of The N 400 N 48 Note BL U1 is not available in the Europe area READER port KEYENCE HEADER POWER LED I O terminals O OO POWER SD RD L Communication status indicator EDs Terminator switch ON OFF RS 485 terminals Power supply terminals Name Function READER port Connect the BL series to this port POWER LED Lit when power is ON I O terminals Includes the trigger input terminal and OK NG output terminals RS 485 terminals Used for multi drop link mode Power supply terminals Connect a 24 VDC
75. ch ID number These areas are used to send the trigger input signal to the BL series to start reading bar code data You can set these areas to Used or Unused depending on the N400 s internal setting See p 40 If you set these areas to Unused users can freely use the When a photoelectric sensor for trigger input is connected to the BL series do not use these areas Specify these areas as follows Start reading Trigger ON 0001 End reading Trigger OFF 0000 Note Specify these areas as 0000 while the BL series is not reading bar code data A 00 A Data memory head address specified as 00 to 30 Data memory flag area These areas are used as a flag that indicates if bar code data has been stored in each area The flag areas can be used for the following two purposes 110 Chapter 6 PLC Link Real time control Sequential processing 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 A400 address is set to 0000 While the N 400 is writing data the flag area is 0001 When the flag area becomes
76. checks which ID numbers are registered The following commands are intended for the N 400 These commands do not check whether the BL series of the registered ID number is connected Registering all ID numbers Command IDOOnnnnn n 0 Do not register n 1 Register Response OK ERROT n is any value other than 0 or 1 Description n corresponds to the ID number 1 to 31 in ascending order Thirty one n s are required If you need to register ID numbers 2 3 and 4 the command is ID0001 11000 Checking all ID numbers Command IDCHK Response nnnnn n 0 Not registered n 1 Registered Description n corresponds to the ID number 1 to 31 in ascending order Thirty one n s are required Registering individual ID number Command IDmmn mm 01 to 31 ID number n 0 Do not register n 1 Register Response OK ERRO 1 mm exceeds the range of 01 to 31 ERROT n is any value other than 0 or 1 70 Chapter 4 Multi Drop Link Mode Control Procedure Saving registered ID numbers Controlling auto polling Checking individual ID number Command IDCHKmm mm 2 01 to 31 ID number Response ON Registered OFF Not registered ERR0O1 mm exceeds the range of 01 to 31 Registering serial ID numbers Command IDMAXmm mm 01 to 31 ID number Response OK ERR0O1 mm
77. cted with the DIP switches See p 22 Output 45V 5 V power supply 1 5 A Output 21 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 The figure on the left shows the default settings ON O w LI op Tl aC T op Tl o Tl DIP Switch No Interface selection RS 232C RS 422A RS 485 multidrop RS 422A terminator OFF Termination resistance 100 Q ON RS 485 terminator OFF Termination resistance 100 Q ON Selection of READER port ON or OFF according CS control method to the RS 232C port CS signal status Normally ON 22 Chapter 2 Installation Procedure 2 4 4 Terminals of I O terminal block and wiring Connecting trigger input jM 12V OUT COM OK NG SDA SDB SG RDA RDB lel elelelelelelelelelele Trigger Power supply OK NG output RS 422A RS 485 input for sensors Symbol Description Signal direction 12 VDC 300 mA TIM Trigger input Input Input 12 V OUT terminal of power supply for sensor 12 VDC 300 mA Output terminal of power supply for sensor 0 V Output COM Common terminal for OK NG output OK OK output Output NG NG
78. d 135 Appendix H Setup Parameter List 137 Appendix I Default Setting List susssssss 139 Appendix J Sample Printout of Setting List 140 4 E rr 2 2 lt Appendices Appendix A Specifications N 400 Model N 400 Connectable bar code reader BL 700 series BL 500 series BL 180 series Trigger Rated input 15 to 26 VDC 10 mA max input Max OFF current 1 0 mA RS 232C Applied standards EIA RS 232C standards Synchronization Start stop full duplex Transmission code ASCII code Baud rate 600 1200 2400 4800 9600 19200 31250 38400bps Data length 7 or 8 bits Parity check Even Odd None Stop bit length 1 or 2 bits Applied standards EIA RS 485 standards Synchronization Start stop full duplex Transmission code ASCII code Baud rate 600 1200 2400 4800 9600 19200 31250 38400 bps Data length 7 or 8 bits Parity check Even Odd None Stop bit length 1 or 2 bits Max number of connectable units 31 Max total extension distance 1 2 km Ambient temperature 0 to 50 C 32 to 122 F No freezing Relative humidity 35 to 8596 No condensation Ambient atmosphere No dust or corrosive gas Vibration resistance 10 to 55 Hz 1 5 mm double
79. ducts including the costs of recovering such data MS Windows Windows 95 are registered trademarks of Microsoft Corporation All other company product names in this publication are registered trademarks of their respective owners Safety Precautions Symbols General 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 N 400 The N 400 can be connected to the BL 700 BL 180 and BL 500 series The following symbols alert you to important messages Be sure to read these messages carefully Failure to follow instruction may lead to injury electric A WARNING shock burn etc A CAUTION Failure to follow instructions may lead to product damage Note Provides additional information on proper operation At startup and during operation be sure to monitor the functions and perfor mance of the N 400 We recommend that you take substantial safety measures to avoid any damage in the event a problem occurs Donotopen or modify the N 400 or use it in any way other than described in the specifications When the N 400 is used in combination with other instruments functions and performance may be degraded depending on operating conditions and the surrounding environment Do not use the N 400 for the purpose of protecting the human body Warnings and Cautions Specific to the N 400 To operate th
80. e 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 Command RESET Response OK Clearing transmission buffer Clears the transmission buffer of the N 400 and all BL series Command BCLR Response OK Checking trigger input status Used to monitor the ON OFF status of the trigger input connected to the N 400 This command can be used in multi head scan mode only Command TIMCHK Response ON OFF Shift to SETUP mode Used to go to the SETUP mode See p 4 19 Command SSET Response OK Specifying the ID number of command transmission destination Hotline command Normally when a command is sent to the BL series the ID number of the BL series is added to the command If you send the following command you can send a command to the specified BL series without adding its ID number to the command After using this command be sure to reset it Specifying the Destination ID number for command transmission Command TRCIMmm mm 01 to 31 ID number Response OK ERR01 mm exceeds the range of 01 to 31 Resetting the destination ID number for command transmission Command TROFF Response OK 73 Chapter 4 Multi Drop Link Mode Control Procedure Checking the destination ID number for command transmission
81. e BL series reading operation using the read start end commands To use the BL series in multi head scan mode connect a sensor for trigger input to the N 400 This sensor is not required when controlling the BL series read ing operation using the read start end commands If the sensor for trigger input is directly connected to each BL series the BL series cannot operate normally Checking operation Using the terminal software included in the N 400 setup software check whether the RS 232C communication between the N 400 and host computer can be performed correctly See p 52 To use a PLC link check whether data is stored in the PLC s memory 11 Chapter 2 2 2 2 2 1 Installation Procedure Connecting N 400 and Wiring This section describes the procedure for connecting the N 400 to external equip ment RS 485 24V DC IN 24V DC IN it owe e 1 pug in Terminals of I O terminal block and wiring Symbol Description Signal direction TIM Trigger input Input COM Common terminal for trigger input Input RS 485 SG RS 485 signal ground RS 485 RS 485 terminal Input Output RS 485 RS 485 terminal Input Output 24 VDC OUT 24 VDC power output terminal Output 24 VDC power output terminal Output 24 VDC IN 24 VDC power input terminal Input 24
82. e N 400 N 48 use a 24 VDC power supply Using a different type of power supply may damage the unit This unit is a precision instrument and may be damaged if dropped Be careful when carrying and mounting the unit Toinstall this unit read Chapter 2 2 6 Mounting Procedure in this manual thoroughly for instructions on proper mounting conditions For the RS 485 connections use the recommended cable and follow the instructions given in this manual See Chapter 2 2 3 3 Connecting RS 485 or Chapter 2 2 4 5 Connecting RS 485 Connecting the RS 485 cable without following these instructions may cause a communication error 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 E N 400 package contents e N 400 x 1 Users Manual x 1 e N 400 setup software x 1 E N 48 package contents e N 48 x 1 Instruction manual x 1 E BL U1 package contents e BL U1 x 1 B BL U2 package contents e 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 Functions of the N 400 sssseeeenmenennnnnnnen nnns 2 System Configuration sssssssssseeeeeeennnennes 4 Part Names e ee eter eee beta cited 5 Chapter 2 Installation Procedure 2 1 2 2 2 2 1 2
83. elect Multi drop link or Multi head scan fi Setup software lt lt Default gt gt BE RS485 HOST MODE PROTOCOL Mode amp Multi drop link C Multi head Scan Com port Transfer Monitor Exit C 1 If you select Multi head scan mode the following setup items appear The following steps are effective for Multi head scan mode only m Setup software default changed Ex RS232C RS485 PROTOCOL HOST MODE Mode C Multi drop link Scan Interference Suppression Read error code Enable ASC ERROR Read mode amp Single C Multi 1 C Multi 2 HES asseszar Data send G After read C At trigger input Trigger setup Com port Transfer Monitor Exit C 2 To use the Interference Suppression function the following setup items appear Interference Suppression i MEnable TIMER x l msec TIMER indicates the reading time of each BL series in the interference sup pression mode Enter a value using the keyboard 3 Data send is displayed only when Read mode is set to Single 4 Enter a read error code using the keyboard The read error code can be changed to any eight character string Set this code so that it conforms to the read error code of the connected BL series Normally you should use the default setting ERROR without changing it as well as the BL series read error code 38 Chapter 3 N 400 Setup Procedure 5 W
84. er 2 After the N 400 receives the command the N 400 sends back a response e g OK or NG to the host computer Note If an incorrect command is sent the N 400 sends back no response The ID number is not specified in the command response format The N 400 returns the response with the same header and delimieter as it receives When the command format is Command CR the response format is Response CR When the command format is STX Command ETXT the response format is STX Response ETX Command Response Command m Response 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 However ESC is not added to the response 69 Chapter 4 Multi Drop Link Mode Control Procedure Example When the Polling ON command is sent to the N 400 When POLEOO CR is sent to the N 400 the response is OK CR When STX POLEOO ETXT is sent to the N 400 the response is STX OK ETX When ESC POLEOO 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 Registers ID numbers for auto polling and
85. erminator The BL series with ID No 1 The BL series with ID No 2 Read error occurred in the BL reads bar code data as 1234 reads bar code data as ABC series with ID No 3 Communication output B Header ERROR Terminator Header ERROR Terminator Header ERROR Terminator N a ui Read errors have occurred in the BL series with ID Nos 1 2 and 3 92 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 When the BL series When the BL series failed to successfully read bar code data read bar code data Trigger input Communication E dE eS output Read error One shot trigger signal After the rising edge of the trigger input is detected the BL series reads bar code data for the preset trigger time When the BL series When the BL series failed to successfully read bar code data read bar code data Trigger input Preset trigger time Preset trigger time lt a Communication output Read error 93 Chapter 5 Multi Head Mode Control Procedure 5 2 3
86. ettings on the RS 232C SETUP screen 2 See p 42 Setting RTS CTS protocol is not effective when PLC link is enabled 5 Set the baud rate data length parity and stop bit length according to the BL Series settings on the RS 485 SETUP screen See p 43 Note To increase the response speed set the RS 485 communication baud rate to 38400 bps Set the BL series baud rate to this value as well To use multi head scan mode set the following parameters Additional setups for multi head scan mode use 1 In multi head scan mode connect the trigger input to the N 400 so that all of the BL series connected to the N 400 are controlled like a single bar code reader You must also set the Read mode and Trigger input signal type on the N 400 2 Set the read error code according to the BL series setting Normally the read error code is set to ERROR default setting 3 Set the reading start command and read end commands according to the BL series settings Normally these commands are set to LON and LOFF respectively default settings 105 Chapter 6 PLC Link 6 2 3 Setting the PLC Set the PLC or link unit as follows E 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 t
87. g 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 Timing input E 4 Light source of BL series with ID No 1 Light source of BL series with ID No 2 Light source of BL series with ID No 3 MOMENT output A piece of data which was read Read error first is sent nthe Single label reading mode a piece of data which was first read by any of several BL series is sent to the host computer When any of the connected BL series reads bar code data all light sources of the other BL series are turned OFF Therefore several BL series can be operated like a single bar code reader lf all of the connected BL series units cannot read bar code data while the trigger input is ON a read error code is output Normally the BL series sends data immediately after reading it However you can set the data transmission timing so that data is sent after the trigger input is turned OFF gt See p 94 Multi 1 label reading mode The following timing chart shows the case in which three BL series are connected Timing input Light source of
88. g protocol and various items to enable the Use PLC fi Setup software lt lt default changed gt gt ic x HOST MODE Host setup rHandshaking Use PLC c None C PASSIRTRY C ACK NAK Header string Delimiter I7 Add ID None C STX CR CCRsLF CESC C Custom CETX Custom Checksum Com port Transfer Monitor Exit C 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 Delimiter CCR C CRLF ASC Note When customizing the header and delimiter you modify them based on the previously selection When selecting custom if you currently use CR OD appears in hex and in ASCII It is not a period but stands for CR If none was used previously nothing appears 3 Normally the ID number of the BL series that executed reading is not added to the read data in multi head scan mode However you can set Add ID so that the ID number is added to the read data 4 Checksum can be added to read data to check incompatible data translation between the N 400 and the host computer Normally this function is not neces sary Handshaking protocol pp 65 and 66 Header Delimiter p 61 Chec
89. gs in a file click on Save The following screen will appear Save Settings file x Drive Sic win95e vj File Name Directory NCF cA 3 test ncf windows desktop im n400 X OK X cance 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 Tips When the saved setting file is sent to the N 400 the name of the file is simulta neously sent to the N 400 When you read the settings of the N 400 using this software the file name is also read It is convenient for maintenance since you can find the file that stores the settings To enter a file name use alphanumerics letters and numbers only Otherwise the file name cannot be sent to the N 400 because it can only recognize alphanumer ics To send a file name be sure to enter the file name using alphanumerics and then save it If the file name is not saved it cannot be sent to the N 400 45 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 Compare Settings files Drive Sic wingse sj File Name Directory cstnd c
90. h setup screen sssssuuuss 35 Outline OF aperaeliBIl ssenarinin a nes 36 Details of Operating Procedure 38 Seting OC rea e 38 Reading Saving Printing File ssseeesssss 44 Sending Receiving Settings ssssussss 48 Using Terminal seseseeemm 52 List of Error Messages ssessmI 55 Chapter 3 N 400 Setup Procedure 3 1 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 B 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 B OS requirements MS Windows 3 1 or MS Windows 95 Installation procedure 1 Insert the N 400 setup software system disk into the floppy drive 2 Perform the following procedure Windows 3 1 Execute Run in the icon menu of the program manager Command Line K C Run Minimized Windows 95 Select Run from the Start menu 3 Run the SETUP file from the floppy disk drive This step is common to both the Windows 3 1 and Windows 95 Type in as follows A SETUP Run L2 x Type the name of a program
91. he main channel to RS 232C 5 Set Checksum to Enable 6 Set Write during running to Enable 7 Set Selecting computer link multi drop to Computer link for the AJ71UC24 only E Setting SYSMAC C 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 unit number according to the N 400 s setting 3 Set the command level to Level 1 2 3 4 Set 1 1 1 N to 1 N 5 Set I O port to RS 232C 6 Set Trigger input to Internal 7 Set Supply 5 V to Disable 8 Set CTS to 0 V Normally ON The I O port Trigger input Supply 5 V and CTS parameters may not be provided depending on the type of link unit B Setting KV series handheld programmer port The KV series handheld programmer port must always be 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 Set the N 400 s communication mode to KV 2 No other parameters need to be set 106 Chapter 6 PLC Link 1 _ Set the unit number according to the N 400 s setting To use the KV L2 port 2 set the port 2 selector switch to RS 232C No other parameters need to be set Settings for KV L2 KV mode Set the KV L2 s communi
92. hen you click on Trigger setup you can set the trigger input in multi head mode 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 999909099 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 Trigger Setup 7 Trigger input Signal Type Level C One shot State Input time Normally open Normally close Command for Trigger ON Command for Trigger OFF HEX AC4F4E HEX 4C4F 4646 v 1 Set Trigger Input Signal Type to Level or One shot If you select One shot the one shot input time is displayed 2ms C 10ms fio x 100ms 1 255 One shot input time 2 Enter the Command for Trigger ON and Command for Trigger OFF using the keyboard These commands can be changed to any eight character string Set these commands so that they conform to the trigger ON OFF commands of the connected BL series Normally you should use the default settings LON and LOFF without chang ing them as well as the BL series trigger ON OFF commands LM Trigger Input Signal Type p 91 Command for Trigger ON Command for Trigger OFF p 72 39 Chapter 3 N 400 Setup Procedure PROTOCOL when Use PLC is disabled The PROTOCOL screen is used to set Handshakin
93. his 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 A400 address is set to 0000 While the N 400 is writing data the flag area is 0001 When the flag area becomes 0000 the data stored in the A 02 to A 258 addresses can be processed Example 2 Normally the A400 address is set to 0001 When data writing is completed the flag area becomes 0000 The data stored in the A 02 to A 258 addresses can then be processed Set the A 00 address to 0001 immediately after data processing is completed When the A 00 address becomes 0000 this indicates that writing new data is completed Note When the BL series 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 This prevent this use the sequential processing mode Sequential processing To specify the flag area use 0002 or 0003 When the A 00 address is 0002 new data can be stored When data writing is completed the flag area becomes 0003 and new data has been stored in the A 02 to A 258 addresses After data processing is completed set the flag area to 0002 Writing new data is impossible until the flag area is 0002 Data which cannot be stored in the specified areas is retained in the BL series transmiss
94. hone 02 2627 3100 Fax 02 2798 8925 KEYENCE HONG KONG CO LTD Phone 3104 1010 Fax 3104 1080 KEYENCE INTERNATIONAL TRADING SHANGHAI CO LTD Phone 021 68757500 Fax 021 68757550 KOREA KEYENCE CO LTD Phone 02 563 1270 Fax 02 563 127 1 997 0114 4 96M0353 Printed in Japan
95. hows 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 consump tion 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 Note The RS 485 cable can be extended up to 1 2 km With the power supply cable however the 1 2 km extension is not guaranteed To extend the power supply cable as shown in the connection diagram on the previous page ensure that the power voltage supplied to all the N 48 units is within the range of 24 VDC 20 to 10 To connect a 24 VDC power supply to each N 48 unit remove the 24 VDC wiring shown in the previous page To connect the power supply use the follow ing cable Recommended RS 485 cable 0 75 mm x 2 cores sheilded Upto thirty one N 48 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 Turn ON the equipment terminator termination resistance 100 Q at both ends of the RS 485 connection marked with in the figure above Turn ON OFF the N 48 terminator using the terminator switch See p 7 e Turn ON OFF the N 400 terminator using the terminator switch See p 6
96. i Head Mode Control Procedure 5 1 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 I Sensor for a i trigger input iF l 1 TOIT k The host computer can control several BL series like it would be a single unit The procedures for controlling the N 400 using the host computer are classified into the following three methods Data communication Used to send bar code data read by the BL series to the host computer Command communication to the BL series Used to send a command to the BL series Command communication to the N 400 Used to control the N 400 directly or change the settings of the N 400 All of the above communication methods use ASCII codes The procedures for sending a command to the BL series or the N 400 are the same as for multi drop link mode For details see the descriptions on multi drop link mode 88 Chapter 5 Multi Head Mode Control Procedure 5 1 2 Setup procedure Setting the BL series For setup and connect
97. in interference suppression mode depends on the setting of the RS 485 communi cation baud rate because the laser ON OFF command transmission time is re quired Even if the trigger ON time is set to 10 ms for example the actual ON time is approximately 50 ms when the baud rate is set to 38400 bps The trigger ON time for each unit cannot be set to less than 50 ms 99 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 8 ms Scan cycle time N The cycle time between the scan of one BL series and the next BL series is in creased when the number of connected BL series is increased or when the trigger ON time is prolonged To reduce the scan cycle time to scan bar codes on a high speed line reduce the number of connected BL series or shorten the trigger ON time The scan cycle time can be calculated from the following formula N L M n n Number of connected BL series Note When the interference suppression function is used the reading operation is not
98. ing 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 102 Setting a host computer PLC For the RS 232C communication set the baud rate data length parity and stop bit length according to the settings of the N 400 To use a PLC link set up the PLC according to pp 104 and 105 Connection between the BL series and N 400 See pp 19 20 and 25 Connect the N 48 or BL U1 power supply unit to the BL series Then connect the specified cable twisted pair cable between the power supply and the N 400 Turn ON the equipment terminator at both ends of the connection When using the BL U1 set the DIP switch to RS 485 See p 22 Connection between the N 400 and host computer PLC See pp 13 to 15 To connect the N 400 to the host computer or PLC use the RS 232C cable whose pin assignment conforms to that of the host computer and PLC Checking the RS 485 connection between the N 400 and the BL series The N 400 provides a connection test mode that checks whether the RS 485 connection is correct or not Using this function check whether the RS 485 communication can be correctly performed For the procedure for using this function see p 26 Connecting a sensor for trigger input Connect a sensor for trigger input to each N 48 or BL U1 unit This sensor is not required when controlling th
99. ion buffer For the capacity of the BL series transmission buffer see p 63 If the amount of retained data exceeds the buffer capacity the buffer overflow error occurs and the OVER code is stored in the corresponding area 01 Reading trigger area This area is used to send the trigger input signal to the BL series to start reading bar code data You can set this area to Used or Unused depending on the N400 s internal setting See p 41 If you set this area to Unused users can freely use it 114 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 The number of data digits is stored in the 03 address as binary data The read bar code data is stored in the 04 to 258 addresses using the ASCII codes Hexadecimal numbers in two digits by the digit See the ASCII code table on p 134 e Ifa read error occurs the ERROR code is stored in the corresponding area The read error code can be easily changed according to the BL series setting fthe buffer overflow error occurs with
100. ion procedures see p 10 This section describes the procedures for setting the N 400 BL series and host computer only 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 Set the RS 485 communication parameters baud rate data length parity and stop bit length for the BL series according to the N 400 s settings The default settings for the BL series and the N 400 are as follows Baud rate 9600 bps Data length 7 bits Parity Even Stop bit length 1 bit Note To increase the response speed set the BL series baud rate to 38400 bps 4 Setting Handshaking protocol or RTS CTS is not effective 5 Set Header to None Setting the terminator is not effective 6 Set the BL series reading mode to Single label 7 Set the trigger input signal type to Level 8 Set the read error code of the BL series according to the N400 s setting Normally the read error code is set to ERROR default setting 9 Set the reading start command and read end commands according to the N 400 s settings Normally these commands are set to LON and LOFF respectively default settings Set other parameters as required 69 Chapter 5 Multi Head Mode Control Procedure Setting the N 400 Using the N 400 setup software set the N 400 as follo
101. iption Reference page A 4 00 Data memory flag area pp 110 and 111 A 01 Reserved area A 402 ID number A 4 03 Number of digits of bar code data A404 1st digit of bar code data A405 2nd digit of bar code data A 4 06 3rd digit of bar code data A 4 258 255th digit of bar code data Note These data areas accept up to 255 digits However the BL series can read only 32 digits Therefore all the areas for 255 digits are not used for the N 400 Only the areas corresponding to the number of the data digits are used Example When the head address is 100 and three BL series ID nos 1 to 3 are connected Head address 100 ID1 ID2 ID3 DM200 Flag DM300 Flag DM400 Flag DM201 Reserved DMS301 Reserved DM401 Reserved DM202 ID DM302 ID DM402 ID DM203 Number of DMS303 Number of DM403 Number of digits digits digits 109 Chapter 6 PLC Link E 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 31 to 61 Reading trigger area for ea
102. is i D sub 25 pin male o90000000000000 DCE specification defined as terminal 00000000000000 M2 6 screw 25 14 Function Signal direction Frame ground Sends data Input Receives data Output Ready to send data Input Request to send data Output Connected to pin No 20 inside Output Signal ground ER DTR Connected to pin No 6 inside Input 5 V 5 V power supply output 100 mA Output Pin No 25 is used for a 5 V power supply output Do not connect this termi A lee M nal to the ground terminal or any other terminal when it is unused Doing this may damage the N 400 or the external device connected to this terminal RS 232C cable connections B Connecting personal computer e Connecting the computer with 25 pin Connecting IBM PC Computer N 400 PC Connector case RD SD ER SG DR RS cs CD o o oOi AJOJN D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw D sub 9 pin female D sub 25 pin male 314 40 screw M2 6 screw The OP 98769 cable 1 5 m manufactured The OP 98769 cable 1 5 m manu by KEYENCE can be used factured by KEYENCE and the OP25057 conversion connector can be used A commercially available straight cable D sub 25 pin 25 pin or D sub 25 pin 9 pin can be used 13 Chapter 2 Installation Procedure Bl Connecting KV series Handheld programmer port Use the o
103. ity Stop bit length 139 Appendices Appendices Appendix J Sample Printout of Setting List New setting data Untitled X selected gt Changed 1 HOST MODE MODE X MULTI DROP LINK MULT HEAD SCAN Interference Suppression X Disable ENABLE Timer 10 x 10 msec Read mode Data send Read error code X Single Multi 1 Multi 2 X After read At trigger input ERROR 4552524F52 2 Trigger setup only with MULT HEAD SCAN Signal type One shot input time Input time State X Level One shot 10 x 100 ms X 2ms 10 ms X Normally open Normally close Command for Trigger ON LON 4C4F4E Command for Trigger OFF LOFF 4C4F4646 3 PROTOCOL SETUP Use PLC X Don t use Use Handshaking X No handshaking PASS RTRY ACK NAK Header X None STX ESC Custom Delimiter X CR CR LF ETX Custom Add ID Don tAdd X Add Checksum X Dont Add Add PLC Model Name SYSMACC MELSECA KV PLC Trigger Area X Disable ENABLE DM Head Address 000 D PLC Station Unit No 0 3 File Register X Disable ENABLE A File Register Block Number 0 f A ID setup X O1 02 03 04 05 06 07 08 09 10 I 2 E JIS 4T IS 6p t7 18 I9 20 121 22 23 24 25 26 27 28 29 30 31 5 RS 232C Baud rate 9600 bi
104. ive humidity may exceed the range of 35 to 85 or condensation may occur due to rapid temperature changes Corrosive gas or inflammable gas is present or a high level of dust salt iron particles or soot is present Theunit is subject to vibration or impact Water oil or chemicals may splash the unit Astrong magnetic field or electric field is generated Do not place the cables in the same conduit as a power cable B In panel installation To mount the N 400 in a panel carefully observe the following instructions e Provide enough ventilation space fthe ambient temperature may fall below 0 C 32 F or exceed 50 C 122 F provide a fan or air conditioner Donot mount this unit in a panel where a high voltage device is installed Place this unit as far away from power lines as possible 27 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 l NAx 05 mounting hole DIN rail mounting To mount the N 400 on a DIN rail press the unit against the DIN rail until it clicks To remove the unit pull the hook in the direction indicated by arrow KEYENCE OJ 000000000000 200
105. ksum pp 133 and 134 v 8 E 40 Chapter 3 N 400 Setup Procedure PROTOCOL when Use PLC is enabled To enable the Use PLC set each item as follows fi Setup software default changed x HOST MODE PROTOCOL PIG sen _ Connected PLC j g MELSEC ASeries C KEYENCE KV Series Use PLC SYSMAC C Series PLC trigger area DM head address Enable No 0 00 0000 95 The setting of the station number is not displayed when KV Series is selected Station No File Register 00031 sed The setting of the file register is displayed only when MELSEC A is selected Com port Transfer Monitor Exit C 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 To send a trigger signal to the BL series when the PLC link is enabled set PLC trigger area 3 To use File Register set File Register to Enable When File Register is enabled the following screen appears The File Register can be used with the Mitsubishi MELSEC A series only Block No fixed 000 255 Enter the block number 000 to 255 of the file register using the keyboard PLC link p 100 PLC trigger area p 106 DM head address p 106 File register p 101 99 08 8 41 Chapter 3 N 400 Setup Procedure ID SETUP The ID SETUP scree
106. l Procedure 4 1 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 The ID number assigned to the header of the transmitted data allows you to identify the BL series unit that sent the data Therefore multi drop link mode provides a system configuration that allows use of a simpler program on the host computer The procedures for controlling the N 400 through a host computer are classified into the following three methods Data communication Used to send bar code data read by the BL series to the host computer Command communication to the BL series Used to send commands to the BL series Command communication to the N 400 Used to control the N 400 directly or change the settings of the N 400 All of the above communication is performed using ASCII codes Details on these control methods are described on the following pages 58 Chapter 4 Multi Drop Link Mode Control Procedure pm M M M MM H M M o a d 1 Setting the Baud Rate of
107. ling 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 PASS RTRY protocol Read data e 4 N 400 EM Response PASS RTRY After sending read data to the host computer the N 400 waits for the response PASS or RTRY from the host computer When the host computer sends the PASS quit command to the N 400 communication of one piece of data is completed and the N 400 is ready to send the next data The N 400 sends back no data in response to the PASS command fthe RTRY request to re send command is sent to the N 400 while the N 400 is waiting for the PASS command the N 400 sends the same data again and waits for the PASS command After the N 400 receives the PASS command the N 400 sends back no data even if the RTRY command is sent to the N 400 The BL series can read bar code data even when the N 400 is waiting for the PASS command In this case the read data is stored in the transmission buffer of the N 400 2 For the capacity of the transmission buffer see p 63 If the amount of read data exceeds the buffer capacity the N 400 sends back the BUFFER OVERFLOW error code to the host computer gt see p 63 and clears all data stored in the transmission buffer In this case the N 400 stops its oper
108. lti drop link connection 2 See pp 20 and 25 2 Check the communication between the N 400 and the host computer for the following points D Check if the communication parameters baud rate data length parity and stop bit length for the host computer are the same as the N 400 s settings Appendices 2 Check if the N 400 s handshaking protocol is set as desired Normally the handshaking protocol is set to No handshaking 131 Appendices 3 Check the N 400 s settings for the following points D 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 iv Check if the BL series reading start end commands are the same as the N 400 s settings PLC link error occurs The N 400 displays 95 or 96 For details see p 116 BUFFER OVERFLOW error occurs with the BL series The BL series sends back the OVER code For details see p 64 N 3 oT 2 2 lt 132 Appendices Appendix E Indications on the N 400 The N 400 displays the following codes
109. m Configuration ssessesesseese 1 3 Part Names eeee emere nh ne n rer eren nenas Chapter 1 Overview of The N 400 1 1 Functions of the N 400 The N 400 multi drop controller allows the following functions to be added to the BL series 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 The communication path is an RS 485 cable which provides high noise resistance and enables data transmission over a long distance up to 1 2 km Since a twisted pair cable two cables is used for the connections the multi drop link configuration can be realized with simple wiring The N 400 controls the complicated communication RS 485 communication between each BL series and the N 400 Since the host computer works only for communication with the N 400 it can be operated with a simple program The ID number assigned to the head of the transmitted data allows you to identify the BL series unit that sends the data Therefore the host computer s job is reduced with this system configuration BL series EN TIT RS 485 Multi head scan function mode If the position of bar
110. n is used to register the ID numbers of the connected BL series When you register the ID numbers in multidrop link mode polling automati cally starts when the N 400 starts up To perform manual polling skip the ID SETUP fi Setup software default changed BE HOST MODE PROTOCOL Remote Unit setup Voi roz ros roa ros r10 11 riz 7 r18 13 20 25 26 27 28 Com port Transfer Monitor Exit C Tips d 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 Set these parameters so that they conform to those of the host com puter or PLC fi Setup software default changed Ex PROTOCOL RS405 FILES Baud rate RTS CTS 9600 Z bps F Use RTS CTS handshaking Data bits Parity Stop bits amp 7 bits Even 1bit C Odd C8 bits Pe C 2bits Com port Transfer Monitor Exit C 1 Setting RTS CTS is disabled when Use PLC is selected Tips A RTS CTS p 66 42 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 a Setup software lt lt default changed gt gt c x Baud rate bps Data bits Parity Stop bits 1 bits even 1 bit Odd 8 bits C None C 2 bits Com port T
111. nfirm n 0 Disable n 1 Enable 61 Chapter 4 Multi Drop Link Mode Control Procedure E RS 485 SETUP Function Command Response Description Baud rate Change WP75n OK Confirm n 5 38400 bps n 6 31250 bps n 7 19200 bps n 0 9600 bps n 1 4800 bps n 2 2400 bps n 3 1200 bps n 4 600 bps Data length Change Confirm n 0 7 bits n 1 8 bits Change Confirm n 2 0 None n 1 Set parity To set the parity type use the Parity type command Parity type Change Confirm n 0 Even n 1 Odd Stop bit length Change Confirm n 0 1 bit n 1 2 bits 82 Chapter 4 Multi Drop Link Mode Control Procedure 4 6 Communication Time Consideration This section describes how to calculate the time required for data transmission and for command transmission in multi drop link mode E 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 When the N 400 sends the polling command to a BL series with a specified ID number the data read by the BL series is sent to the host computer through the RS 232C interface of the N 400 N400 lt gt BL RS 485 I112i3 4 5 1
112. occurs and the OVER code is stored in the corresponding area Even when the BL series with ID No 1 retains data the flag area is 0003 data from the BL series with other ID numbers can be stored if the flag area is 0002 Thus the sequential processing for each ID number is performed independently 111 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 ad dress 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 gt See the ASCII code table on p134 e faread error occurs the ERROR code is stored in the corresponding area The read error code can be easily changed according to the BL series setting fthe buffer overflow error occurs with the BL series the OVER code is stored in the corresponding area ID number 1 to 31 Number of digits of bar code data 1 to 255 1st digit of read data 2nd digit of read data 255th digit of read data Note These data areas accept up to 255 digits However the BL series can read only 32 digits Therefore all of the areas for 255 digits are not used for the N 400 Only the areas corresponding to the number of the data digits are used Example When the BL series with I
113. of auto polling or registration of ID numbers cannot be set on the PLC To register ID numbers use the N 400 setup software 6 1 1 List of PLCs used for PLC link KEYENCE Built in CPU port KV series KV 10 16 24 40 80 KV 300 Serial link unit KV L2 Mitsubishi Built in CPU port MELSEC A series A2CCPU24 A2CCPU24 PRF Calculator link unit AJ71C24 AJ71C24 Sx AJ71UC24 A0J2 C21481 A1SJ71C24 R2 PRF A1SJ71UC24 R2 PRF OMRON Built in CPU port SYSMAC C series C20H 28H 40H 60H 80H C200HS CPU21 23 31 33 C200HE CPU42 C200HG CPU43 63 C200HX CPU44 64 High order link unit C200H LK201 V1 C500 LK203 C500 LK201 V1 C120 LK201 V1 Communication board C200HW COMO2 C200HW COM04 C200HW COM05 C200HW COMO6 OMRON Built in CPU port SYSMAC CQM1 series COM CPU21 41 42 43 44 OMRON Built in CPU port SYSMAC CV series CV500 CV1000 CV M1 High order link unit CV500 LK201 102 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 PLC Device name Memory area KV 10 16 Data memory DMO0000 to DM0999 KV 24 40 80 Data memory DMO0000 to DM1999 KV 300 Data memory DMO0000 to DM8999 MELSEC A Data register DMO0000 to D8
114. om the above data the total communication time E can be obtained as follows Maximum time E C b D b Time required for the data transmission from the BL series to the N 400 when the BL series has stored some data Minimum time E C D 85 Chapter 4 Multi Drop Link Mode Control Procedure 86 Chapter 5 Multi Head Mode Control Procedure 5 1 9T 5 12 5 2 5 2 1 52 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 Multi head Mode sesssseeeseeneeeeen 88 Controlling multi head mode rro teet vecednevadacteds 88 Setup procedure sseessseeeeeeeeeeeen nennen 89 Reading Operation in Multi Head Mode 91 Difference in operation depending on reading mode 91 Trigger INPUT Signal type i c eno hit iearssicouatavealioncaneacars 93 Data transmission MING iau oc ea ror Cet tite bic ta orbata 94 Data Communication in Multi Head Mode 95 Communication TOUYIGLsa inia turn S rtt p Rin tiani bb teu 95 Handshaking protocol RU 95 Readienror CODEC E 95 Command Communication in Multi Head Mode 96 Sending a command to BL series rettet 96 N 400 direct control setup commands 96 Interference Suppression Function 97 Communication Time ssssseemm 98 Chapter 5 Mult
115. ommand is processed normally the N 400 sends back Ok After the N 400 goes into SETUP mode send the command of the item to be changed setting change command to the N 400 When this command is processed normally the N 400 sends back Ok If an error occurs the N 400 sends back ERR is the error code N 400 When this command is processed normally the N 400 sends back the data on the current settings If an error occurs the N 400 sends back ERR is the error code To save the settings in the EEPROM of the N 400 send the SAVE command to the N 400 If updated settings are saved in the EEPROM these settings take effect the next time the N 400 is turned ON When this command is processed normally the N 400 sends back Ok If an error occurs the N 400 sends back ERR is the error code To exit SETUP mode and perform normal reading operation send the SEND command to the N 400 When this command is processed normally the N 400 sends back Ok If an error occurs the N 400 sends back ERR is the error code E Communication format The ID number is not specified in the command response format The N 400 returns the response with the same header and delimieter as it receives When the command format is Command CR the response format is Response CR When the command format is STX Command ETXT the response format is SSTX
116. onal computer POLEmm CR mm 01 to 31 ID number of BL series Note When only a few BL series units are connected you need not send this command However when many BL series units are connected the cycle of the N 400 s polling for each BL series becomes longer than the reading cycle of the test mode causing the data to be stored in the N 400 buffer To prevent this be sure to send the above command 53 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 9eTmm TEST1 CR mm 01 to 31 ID number of BL series 3 To quit the test mode send the test mode end command 9eTmm 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 When you finish using the test mode reset the Specific ID polling command If the auto polling mode is selected send the Auto polling ON command If the manual polling mode is selected send the Auto polling OFF command Auto polling POLEOO CR Manual polling POFF CR B Using the N 400 in multi head scan mode Send the Specific ID polling command see p 72 so that polling is performed only for the BL series to be tested To send the command using the Monitor screen be sure to enter the command using uppercase characte
117. ore 16 pieces of data If the number of read data exceeds the buffer capacity the BL series until causing the BUFFER OVERFLOW error sends the following error code to the host compu ter and clears all data stored in the BL series The other BL series units which did not cause the error can continue to operate normally P mm CR STX 96 P mm ETX mm 01 to 31 ID number of BL series The BUFFER OVERFLOW error occurs when the BL series reading interval is shorter than the polling interval To prevent this error take the following actions Reduce the polling interval by setting the baud rate to 38400 bps the highest rate for the RS 485 communication between the N 400 and each BL series unit Reduce the polling interval by reducing the number of connected BL series units Reduce the amount of data to be processed by the N 400 by increasing the BL series reading interval n manual polling mode modify the program so that the polling command is sent to the BL series before the BUFFER OVERFLOW error occurs with the BL series Erase all ID numbers of disconnected BL series on the ID SETUP screen of the N 400 setup software 64 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 pol
118. ow error because the polling interval is longer than the reading interval To perform the reading rate check use the Specific ID polling ON command Checking auto polling Command POLE Response mm OFF mm 01 to 31 ID number Auto polling is performed for the BL series specified by IDmm only mm 00 Auto polling ON OFF Auto polling OFF Auto polling OFF Command POFF Response OK Checking connections in multi drop link mode Checks if the RS 485 communication between the N 400 and each BL series is normal Command SRCmm mm 01 to 31 ID number Response OK Connection is correct NC Disconnection error SERR Communication error ERR01 mm exceeds the range of 01 to 31 Controlling reading operation Used to activate the reading trigger signal using a command in multi head scan mode This command can be used in multi head scan mode only Starting reading Command LON Response None Ending reading Command LOFF Response None You can start end reading operation by sending the above command in the same way as when using trigger input These commands can be used in multi head mode only 72 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 th
119. p 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 RS485 FILES HOST MODE PROTOCOL ID SETUP Clicking on O Used to select any of several options The selected item is marked with Mode Multi drop link Multi head Scan i Clicking on Used to select whether to enable or disable this function To enable this function the mark is checked with v For the Windows Ver 3 1 itis checked with x Iv Use PLC Clicking on Used to select any of several options Baud rate 36 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 2 See p 55 DM head address No 0 00 0000 9900 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 hexa decimal numbers 00 to 7F This function is used to enter control characters 00 to 21h ASCII codes such as CR and STX Read error code asc 37 Chapter 3 N 400 Setup Procedure 3 3 Details of Operating Procedure 3 3 1 Setting procedure HOST MODE In the HOST MODE s
120. ple 1 When the number of bar code digits is 10 with no additional data 24576 10 2 2048 The transmission buffer can store 2048 pieces of data Example 2 When the number of bar code digits is 20 with no additional data 24576 20 2 2 1117 The transmission buffer can store 1117 pieces of data If the number of read data exceeds the buffer capacity the N 400 sends back the following BUFFER OVERFLOW error code to the host computer and clears all data stored in the transmission buffer The N 400 displays error code 97 Header P 00 OVER Terminator 63 Chapter 4 Multi Drop Link Mode Control Procedure B 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 Five characters per piece of data indicating the data attributes are added to the number of characters of the data including the additional data such as number of decodings when stored in the transmission buffer Example 1 When the number of bar code digits is 10 with no additional data 400 10 5 26 The transmission buffer can store 26 pieces of data Example 2 When the number of bar code digits is 20 with no additional data 400 20 5 16 The transmission buffer can st
121. power supply to these terminals Communication status indicator LEDs Allows you to monitor the communication status of the READER port SD Lit when the BL series is sending data RD Lit when the BL series is receiving a command Terminator switch Turns the terminator ON OFF Chapter 1 Overview of The N 400 BL U1 Note The BL U1 is not available in Europe OK NG LED KEYENCE TIMING LED 3 Communication status indicator EDs POWER LED I O terminal block 6 Power switch Power supply cable 2 m RS 232C port READER port Name DIP switches Function OK NG LED When OK output is ON The green LED lights When NG output is ON The red LED lights TIMING LED Lit when trigger input is ON ee elg Communication status indicator LEDs Allows you to monitor the communication status of the RS 232C port The SD RD RS and CS indicators are provided in this order from the top POWER LED Lit when power is ON I O terminal block Includes the trigger input terminal OK NG output terminals RS 422A terminal and RS 485 terminal Power switch Turns the power ON OFF Power supply cable 2 m Use a 100 to 240 VAC 50 60 Hz power supply RS 232C port Connect a personal computer to this port This port is
122. ppears Result N 400 settings completed If the host computer failed to send the data to the N 400 the following message appears Result AN N 400 settings failed If this message is displayed check the following points Check that COM PORT is set to the values listed in step 1 when the N 400 displays SO 5 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 After the settings are sent press the N 400 test switch once to reset the SO 550 condition If the N 400 does not display SO 53 you do not need to press the test switch When the N 400 displays 00 the sending procedure is completed The communication parameters of the N 400 are set to the updated settings 49 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 When the N 400 displays SO 53 the communication parameters are temporarily set as follows Baud rate 9600 bits s Data length 7 bits Parity Even Step bit length 1 bit PLC link Disabled Tips A If you know the current communication parameter settings of the N 400 step 1 is not necessary You can send data
123. ptional cable manufactured by KEYENCE g O KV 10 16 24 er eei 1m OP 96369 N40 80 OP 24025 5 m mmr o JE iM KV 300 b 1 KV 300 and KV L2 are not available in Europe B Connecting KV L2 Port 1 Terminal block KV L2 N 400 KV L2 N 400 ME zio eg a A S SD 2 gt 2 SD RD 5 Ty 2 SD RD 3 3 RD RD RS 4 4 SG RS CS 5 5 RS CS DR 6 lt 6 CS 6 Ds SG 7 7 DR ER ER 20 20 ER SG SG D sub 25 pin male D sub 25 pin male Terminal block D sub 25 pin male M2 6 screw M2 6 screw M2 6 screw The OP 98769 cable 1 5 m manufactured 1 KV 300 and KV L2 are not available in Europe by KEYENCE or a commercially available straight cable can be used E Connecting MELSEC A series Connection with AJ71C24 AL71C24 S Connection with A1SJ71C24 R2 PRF A0J2 C21481 AJ71UC24 A2CCPUC24 A2CCPUC24 PRF A1SJ71UC24 R2 PRF Link unit N 400 Link unit N 400 D sub 25 pin male D sub 25 pin male D sub 25 pin male D sub 25 pin male M2 6 screw M2 6 screw M2 6 screw M2 6 screw 14 B SYSMAC C series Connection with C 200H LK201 V1 C 500 LK203 C 500 LK201 V1 C120 LK201 V1 Link unit N 400 FG 1 1 FG SD 2 gt 2 SD R
124. puter to a desired BL series while in manual polling mode the BL series sends back its data to the host compu ter 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 However manual polling mode allows data to be sent back to the host computer only when the host computer can receive the data For this purpose manual polling mode is useful In auto polling mode data is constantly sent to the host computer regardless of the conditions of the host computer When auto polling is not performed when the BL series ID numbers have not been registered with the N 400 setup software manual polling mode can be used E Sequence and format for communication In manual polling mode data is sent in the following sequence and format The BL series with ID No 5 reads bar code Header P O5 Terminator data as 123456 N 400 Header J P 05 123456 Terminator 1 Send a polling command from the host computer Header P mm Terminator 2 The BL series sends back its bar code data Header P mm Data Terminator mm 01 to 31 ID number of BL series Data Read data e This code is sent back when the BL series has read no data OVER BUFFER OVERFLOW error has occurred gt See p 63 NC The BL series with the specified
125. r so that the software can be executed The software may be associated with one computer and may be used by more than one person on that computer or may be associated with one person and used by that person on more than one computer However in no event shall two or more persons use the software at the same time You may not rent or lease the software but you transfer the software and accom panying written materials on a permanent basis provided you retain no copies and the recipient agrees to the terms of this agreement You may not reverse engineer decompile or disassemble the software Keyence warrants that if you discover physical defects in the media on which this software is distributed or in the manual distributed with the software Keyence will replace the media or manual at no charge to you provided you return the defective items postage prepaid and with proof of purchase within ninety days of the date of purchase Keyence reserves the right to revise this software and manual without obligation to notify any person of such revision In no event will Keyence be liable for loss of profits or goodwill or other indirect special incidental or consequential damages resulting from any defect in the software media or manual Keyence s liability for damages to you or others will in no event exceed the total amount paid by you for the software In particular Keyence shall have no liability for any data stored in or used with Keyence s pro
126. ransfer Monitor Exit C 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 43 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 fi Setup software lt lt default changed gt gt c x Wosrwonr PROTOCOL Rsezc nsass Open Save Compare Print Default Version info Com port Transfer Monitor Exit C 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 Version info Displays the version information of this software Reading a previously saved setting file 1 To read a previously saved setting file click on Open The following screen will appear Drive Ec wings z File Name Directory a Td D tes E t ncf wv OK X Cancel 2 When you click on OK after selecting a file the selected file can be opened 44 Chapter 3 N 400 Setup Procedure Saving updated settings in a file 1 To save updated settin
127. re E PROTOCOL SETUP Function Command Response Description Error code Handshaking Change WPO07n OK n 0 No handshaking protocol 1 n 1 Use protocol To set details of the protocol use 00 02 handshaking protocol 2 ER 07 Confirm RPO7 Handshaking Change WPO08n n 0 PASS RTRY protocol 2 protocol Confirm RPO8 n 1 ACK NAK protocol Header Change WPb5thhh hhh Header up to five characters To set a header use HEX hexadecimal Confirm codes hhh FF Header is not set Delimiter Change WP52hhh hhh Delimiter up to five characters To set a delimiter use HEX hexadecimal Confirm codes hhh FF Delimiter is not set Adding Change n 0 Do not add checksum n 1 Add Confirm 79 Chapter 4 Multi Drop Link Mode Control Procedure Bl PROTOCOL SETUP only when PLC link is used Function Command Response Description PLC link model Change OK n 0 PLC link disabled n 1 SYSNAC C n 2 MELSEC A Confirm n 3 KV n 4 MELSEC A File register is used Trigger input Change WP37n n 0 Disable through PLC n 1 Enable link Confirm RP37 DM head Change WP40nn nn 00 to 99 address 0000 to 9900 Confirm RP40 PLC station Change WP43nn nn 00 to 31 number Confirm RP43 File register Change WP41nnn nnn 000 to 255 block number
128. rmat Example To set the read error code to BR BR WP554252 B 42h R 52h 171 Chapter 4 Multi Drop Link Mode Control Procedure B TRIGGER INPUT SETUP Effective in multi head scan mode only Function Command Response Description Error code Trigger input signal type Change WPO05n OK Confirm RP05 05n n 0 Level n 1 One shot 00 02 05 07 14 One shot input time Change WP42nnn OK Confirm RP42 42nnn nnn 001 to 255 Units 100 ms 00 02 05 07 09 14 Trigger input time Change WP04n OK Confirm RP04 n 0 2ms n 1 10ms 00 02 05 07 14 State of trigger input Change WP03n Confirm RPO3 n 0 Normally open n 1 Normally closed Characters of trigger ON command Change WPS OK Confirm RP56 Trigger ON command up to eight characters To set this command use HEX hexadecimal codes Characters of trigger OFF command Change WP57hhh Confirm 57hhh hhh Trigger OFF command up to eight characters To set this command use HEX hexadecimal codes To set the characters of the trigger ON OFF commands use the following com mand format Example To change the trigger ON command to CR or STX S ETX S PS WP5653 S 53h 78 Chapter 4 Multi Drop Link Mode Control Procedu
129. rs CH of the following command corresponds to the Enter key of the personal computer POLEm CR mm 01 to 31 ID number of BL series Note In multi head scan mode the N 400 performs polling only when the BL series read bar codes Therefore to use the test mode you need to send the Polling ON command or Specific ID polling command before starting the test mode so that polling is always enabled 2 Send the test mode command to the BL series to be tested 9eTmm 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 When you finish using the test mode send the Polling OFF command POFF CR 24 Chapter 3 N 400 Setup Procedure 3 6 List of Error Messages Error message Contents Errors during setup Timer value incorrect OK The setting of the trigger ON time exceeds the range of 1 to 255 x10 ms in the interfer ence suppression mode Station number incorrect OK The setting of the station number exceeds the range of 000 to 255 Block number incorrect OK The setting of the block number exceeds the range of 0 to 255 when the file register is used in PLC link Errors communi cation N400 settings failed OK Communication with N 400
130. s Delimiter UCR C Custom Q CR LF Q ETX Up to five characters Add ID Q Do not add Q Add Checksum Q Do not add Q Add C Enable Q SYSMAC C Q KV PLC model name C MELSEC A Q Disable PLC trigger area Q Enable DM head address 0000 to 9900 PLC station unit number 000 to 255 File register QO Disable C Enable File register block number 000 to 255 137 Appendices ID SETUP RS 232C SETUP Baud rate 600 to 38400 bps Data length Q 7 bits Q 8 bits Parity C Even Q Odd Q None Stop bit length Q 1 bit Q 2 bits RTS CTS handshaking Q Disable C Enable RS 485 SETUP Baud rate 600 to 38400 bps Data length Q 7 bits Q 8 bits Parity Even Q Odd Q None Stop bit length Q 1 bit Q 2 bits 4 3 rr 2 z3 lt 138 Appendices Appendix I HOST MODE PROTOCOL SETUP ID SETUP RS 232C SETUP RS 485 SETUP Default Setting List Wode Mmao PLC link Disable Handshaking No handshaking Header None Delimiter CR Add ID Add Checksum Do not add Only ID 1 is registered Baud rate 9600 Data length 7 bits Parity Even Stop bit length 1 bit RTS CTS handshaking Baud rate Disable Data length Par
131. s of 00 to 30 based on the specified head address indicate the areas where the bar code data for each ID number is stored The addresses of 31 to 61 indicate the areas used to send a reading trigger signal to the BL series These areas are not assigned if you set Reading trigger input area to Disable in the N 400 setup software In this case these areas can be used for other purposes Address Description Reference page 00 Data memory head address for ID No 1 p 108 01 Data memory head address for ID No 2 02 Data memory head address for ID No 3 Data memory head address for ID No 31 Reading trigger area for ID No 1 Reading trigger area for ID No 2 Reading trigger area for ID No 3 Reading trigger area for ID No 31 The 00 to 30 data memory head addresses can be set to the same number If the same head address is specified data from all the BL series is stored in the same area 108 Chapter 6 PLC Link eee EEE n o es E 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 Descr
132. sion from the host computer to the N 400 and the time required for the RS 485 command transmission from the N 400 to each BL series However since each BL series constantly sends its data to the N400 the com mand transmission from the N 400 to the BL series must be performed in the interval of the data transmission from the BL series to the N 400 N 400 lt gt BL ET T 7 RS 485 a 1 Men EE mM gt me D c Command Command Host N 400 RS 232C DE First obtain the time C required for the RS 232C command transmission from the host computer to the N 400 Calculate this time duration by substituting the number of command characters e g LON three characters LOFF four characters for the number of data digits in formula B given above 64 Chapter 4 Multi Drop Link Mode Control Procedure SSeS ue LL LZ l P LR Eel 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 When the reading start command LON or read ing end command LOFF is sent to the BL series for example the communication time is as follows Baud rate for RS 485 Communication time D Command LON Command LOFF 9600 bp 29 ms 30 ms 38400 bps 11 5 ms 11 8 ms Fr
133. sum Two ASCII code characters Data communication in multi drop link mode Header P mm Read Data CC Delimiter Po Calculation range Result Data communication in multi head mode Header Read Data CC Delimeter Ld Calculation range Result B Checksum calculation method Example Header P 101 AB12 ICC Delimiter Appendices Calculate the checksum CC in the above example Convert each character into the ASCII code as shown below and express the result as 8 bit binary numbers Calculate the Exclusive OR of the binary numbers of each bit ASCII code Data Hexadecimal Binary Basedon the Exclusive OR logic 94 25h 0010 0101 when an odd number of 1 s are present the calculation result is 1 P 50h 0101 0000 and when an even number of 1 s 30h 0011 0000 are present the calculation result is 31h gt 0011 0001 o gt 2Dh gt 0010 1101 41ih gt 0100 0001 42h 0100 0010 31h 0011 0001 32h 0011 0010 0 0101 1001 gt 59h yw wrD gt 135 Appendices Durum ap LLL r 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 Example Result Header P 15 ERROR CC Delimiter CC 04 Header 1234 CC Delimiter CC 0
134. t s Data bits X 7 bits 8 bits Parity X Even Odd None Stop bits X 1 bit 2 bits RTS CTS X Invalid Use RTS CTS handshaking 6 RS485 Baud rate 9600 bit s Data bits X 7 bits 8 bits Parity X Even Odd None Stop bits X 1 bit 2 bits 140 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 Any Products found to be defective must be shipped to KEYENCE with all shipping costs paid by Buyer or offered to KEYENCE for inspection and examination Upon examination by KEYENCE KEYENCE at its sole option will refund the purchase price of or repair or replace at no charge any Products found to be defective This warranty does not apply to any defects resulting from any action of Buyer including but not limited to improper installation improper interfacing improper repair unauthorized modification misapplication and mishandling such as exposure to excessive current heat coldness moisture vibration or outdoors air Components which wear are not warranted 2 KEYENCE is pleased to offer suggestions on the use of its various Products They
135. the BL Series In order to increase the response speed of the BL 500 180 series when it is con nected 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 The baud rate can be set to be in the above range using serial commands However the BL 500 180 series baud rate can be set between 19200 and 38400 bps by performing the following procedure The following procedure is not de scribed in the BL 500 180 Series User s Manual The following procedure refers to the BL 180 series setup software The procedure is exactly the same for the BL 500 series 1 Display the Communication Setup screen with the BL series setup software BL 500 Series Setup Setup Comm Baud rate 9600 Data bits C 7 bits C 8 bits Stop bits 1 bit C 2 bits Parity Even C dd C None Handshaking No handshaking C PASS RTRY C ACK NAK RTS CTS Use RTS CTS handshaking Multidrop Set RS 485 multidrop link Communication strings Return 2 Select either 7 bits or 8 bits for the data length parameter on the communi cation setup screen by clicking on the appropriate value The selected item is enclosed in a dotted line box 3 Press the key once 4 After
136. to pp 14 to 16 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 N 400 do not exist in the PLC communi cation 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 116 Chapter 6 PLC Link 6 5 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 E Time required for RS 232C data transmission in PLC link mode The time required for data transmission from the N 400 to the PLC is as follows This time duration corresponds to the RS 232C data transmission time in multi drop link mode B described on p 84 To obtain the total communication time add the RS 485 data transmission time A described on p 82 When the RS 232C communication baud rate is 9600 bps Number of data digits MELSEC A SYSMAC C KV KV mode 10 Approx 300 ms Approx 350 ms Approx 500 ms 20 Approx
137. to the N 400 by setting the communication parameters of the host computer using COM PORT so that they conform to the current settings of the N 400 However if PLC link is enabled you cannot send data to the N 400 without performing step 1 because the handshaking protocol is set for PLC link only 2 Click on COM PORT to set the communication parameters of the host com puter according to the values listed in step 1 Select an RS 232C port and click on OK Port G Port 1 C Port 2 C Port 3 C Port 4 Baud rate 9600 gt bps Data bits 7bits 8 bits Parity Even C Odd None Stop bits C1bit C2bits y OK 3 Click on Send setting Save in N 400 EEP ROM When you click on Read N 400 settings the settings of the N 400 can be read on the host computer Send Receive settings N 400 x Send settings Save in N 400 EEP ROM T M AA C Read N 400 Settings X Cancel 50 4 Chapter 3 N 400 Setup Procedure If the settings of the N 400 were successfully read the following message appears Result Successfully ended If the host computer failed to read the data the following message appears Result N 400 failed to open If this message is displayed check the following points Check that COM PORT is set to the values listed in step 1 when the N 400 displays SO 5 Check that the power to the N 400 is ON Check that the RS 232
138. unused in multi drop link mode READER port Connect the BL series to this port NO DIP switche Switches the communication port and turns the terminator ON OFF Chapter 1 Overview of The N 400 Chapter 2 Installation Procedure 2 1 2 2 gel 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 Installing the N 400 seseeeeeeeeeee 10 Connecting N 400 and Wiring sseussss 12 Terminals of I O terminal block and wiring 12 Connecting RS 2320 C 13 Connecting N 48 and Wiring sessssessssss 16 Connecting the BL series 4 erret terre nere een 16 Terminals of I O terminal block and connection 16 Connecting RS 485 sssesseeseeeneneer 19 Connecting BL U1 and Wiring sussss 21 Connecting power SUD ei reete Innes 21 C nnecting BL SONGS esnean aew 21 Setting BL U1 DIP switches recent emn 22 Terminals of I O terminal block and wiring 23 Connecting RS 485 uuiecscie casus ote tun karten tid eii tom ctt sits 25 Using Connection Test Mode sssesss 26 Mounting Procedure eeeeee 27 Precautions for mounting environment
139. upply is turned on before the BL series is turned on the N 400 starts communication before the BL series starts This results in the above connection error Create programs that ignore the connection error when the power supply is turned on in this case 6 3 2 Device assignment in multi head scan mode These areas are used to store the bar code data read in multi head scan mode Unlike multi drop link mode multi head scan mode can control several BL series like a single unit Therefore this mode provides only one data memory area Address Description Reference page A 00 Data memory flag area pp 113 and 114 A 4 01 Reading trigger area p 114 A 4 02 BL series ID number memory area A 4 03 Number of digits of bar code data A 4 04 1st digit of bar code data A 05 2nd digit of bar code data A 4 06 3rd digit of bar code data A 4 258 255th digit of bar code data E Detailed description on device assignment 00 Data memory flag area This area is used as a flag that indicates if bar code data has been stored in the area The flag area can be used for the following two purposes 113 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 T
140. ve Set other parameters as required Setting the N 400 Using the N 400 setup software set the N 400 as follows 1 Set the host mode to multi drop link mode See p 38 2 Set the handshaking protocol on the PROTOCOL screen See p 40 3 Enter the ID numbers of the connected BL series on the ID SETUP screen gt See p 41 To perform manual polling do not register ID numbers 4 Set the baud rate data length parity and stop bit length according to the host computer s settings on the RS 232C screen gt See p 42 5 Set the baud rate data length parity and stop bit length according to the BL series settings on the RS 485 screen See p 43 Note To increase the response speed set the RS 485 communication baud rate to 38400 bps Set the BL series baud rate to this value as well Setting the host computer Set the RS 232C communication parameters baud rate data length parity and stop bit length for the host computer according to the N 400 s settings 60 Chapter 4 Multi Drop Link Mode Control Procedure 4 2 Data Communication in Multi Drop Link Mode 4 2 1 Auto polling 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 E Auto polling mode When the I
141. ws 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 gt See p 42 4 Set the baud rate data length parity and stop bit length according to the host computer s settings on the RS 232C SETUP screen gt See p 42 5 Set the baud rate data length parity and stop bit length according to the BL series settings on the RS 485 SETUP screen 2 See p 43 Note To increase the response speed set the RS 485 communication baud rate to 38400 bps Set the BL series baud rate to this value as well 6 Set the read error code of the N 400 according to the BL series setting Nor mally the read error code is set to ERROR default setting 7 Set the reading start command and read end commands according to the BL series settings Normally these commands are set to LON and LOFF respectively default settings Setting the host computer Set the RS 232C communication parameters baud rate data length parity and stop bit length for the host computer according to the N 400 s settings 90 Chapter 5 Multi Head Mode Control Procedure 5 2 Readin

Download Pdf Manuals

image

Related Search

Related Contents

BENUTZERHANDBUCH  Radio Shack 17-908 User's Manual  Bilan de compétences scolaires mode d`emploi  

Copyright © All rights reserved.
Failed to retrieve file