Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 15 of 15

N-400 User's Manual: Multi-Drop Controller for BL Series, pages 141 to 150

Pages 141 to 150 of 150

The original document is the PDF (1.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Keyence N-400

Page 141

Appendices

Indications on the N-400 The N-400 displays the following codes: ■ Status indication These codes indicate that the N-400 is in a special condition. 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(51): 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. ■ 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 test switch to reset this error. “97”: 97 Indicates a data overflow in the N-400’s buffer. Press the test switch to reset this error. “96”, ”95”: 96 95 Displayed when communication is abnormal in PLC link mode. (Indicates a PLC link error.) Press the test switch to reset this error.

133

Appendices

Appendix E

Page 142

Appendices

Appendix F

ASCII Code Table

High-order 4 bits Hexadecimal

0

1

2

3

4

5

6

7

Appendices

Low-order 4 bits

Binary 0000 0001 0010 0011 0100 0101 0110 0111

134

0

0000

DLE (SP)

0

@

P

' p

1

0001 SOH DC1

!

1

A

Q a q

2

0010 STX DC2

”

2

B

R b r

3

0011 ETX DC3

#

3

C

S c s

4

0100 EOT NAK

$

4

D

T d t

5

0101 ENQ DC4

%

5

E

U e u

6

0110 ACK SYN

&

6

F

V f v

7

0111 BEL ETB

’

7

G

W g w

8

1000 BS CAN

(

8

H

X h x

9

1001 HT

EM

)

9

I

Y i y

A

1010 LF

SUB

✽

:

J

Z j z

B

1011 HM ESC

+

;

K

[ k

{

C

1100 CL

,

<

L

\

I

D

1101 CR

–

=

M

]

M

}

E

1110 SO

.

>

N n

~

F

1111 SI

/

?

O o del

_

Page 143

Appendices

Checksum Calculation Method You can add a checksum to transmitted data. (The checksum cannot be added to a command or a response to a command.) Adding a checksum enables incorrect data translation to be detected in the RS232C communication. If the checksum does not match when the PASS/RTRY or ACK/NAK protocol is used, modify the program so that the “Request to resend” (RTRY or NAK) command is sent to the N-400. To set the checksum, use the “PROTOCOL SETUP” screen of the N-400 setup software. (The checksum cannot be added when the PLC link is used.) ■ 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 = Checksum (Two ASCII code characters) •

Data communication in multi-drop link mode Header % P mm – Read Data CC Delimiter Calculation range Result

•

Data communication in multi-head mode Header Read Data CC Delimeter Calculation range Result

■ Checksum calculation method Example:

Appendices

Appendix G

Header % P 01 – AB12 CC Delimiter

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. Data % P 0 1 – A B 1 2

ASCII code (Hexadecimal) 25h 50h 30h 31h 2Dh 41h 42h 31h 32h

* Based on the “Exclusive OR” logic, when an odd number of “1”s are present, the calculation result is “1”, and when an even number of “1”s are present, the calculation result is “0”.

Binary

0010 0101 0011 0011 0010 0100 0100 0011 0011

0101 0000 0000 0001 1101 0001 0010 0001 0010

+

0101

1001

59h

135

Page 144

Appendices Convert the calculated hexadecimal number into an ASCII code in two digits. The result obtained is the checksum. Therefore, the checksum for the above example is “cc = 59 (35h 39h). Example: Result: CC=04

Header % P 15 – ERROR CC Delimiter

CC=04

Header 1234 CC Delimiter

Tips

•

* •

Exclusive OR calculation formula Calculate the numbers of each bit, referring to the following formula: 0+0=0 0+1=1 1+0=1 1+1=0 + : 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

Appendices

Binary number

136

0

1

2

3

4

5

6

7

0000 0001 0010 0011 0100 0101 0110 0111 8

9

A

B

C

D

E

F

1000 1001 1010 1011 1100 1101 1110 1111

Page 145

Appendices

Appendix H

Setup Parameter List

HOST MODE Mode

❑ Multi-drop link mode ❑ Multi-head mode Interference suppression

❑ Disable ❑ Enable

Trigger ON time for interference suppression

( ) * 10 ms to 2550 ms

Reading mode

❑ Single label ❑ Multi label 1 ❑ Multi label 2 ❑ After reading ❑ At trigger OFF

Data-send timing Read error code

(

)

* Up to eight characters

TRIGGER SETUP (Effective in multi-head mode only) Trigger input signal type

❑ Level

One-shot input time

(

❑ One-shot

Input time State

❑ 2 ms ❑ Normally-open

Trigger ON command

(

)

* Up to eight characters

Trigger OFF command

(

)

* Up to eight characters

)

* 100 ms to 25.5 s

❑ 10 ms ❑ Normally-closed

PLC link

❑ Disable Handshaking

PLC trigger area

❑ No handshaking ❑ PASS/RTRY ❑ ACK/NAK ❑ None ❑ STX ❑ ESC ❑ Custom ( ) * Up to five characters ❑ CR ❑ CR + LF ❑ ETX ❑ Custom ( ) * Up to five characters ❑ Do not add ❑ Add ❑ Do not add ❑ Add ❑ SYSMAC-C ❑ MELSEC-A ❑ KV ❑ Disable ❑ Enable

DM head address

(

) 00

* 0000 to 9900

PLC station/ unit number

(

)

* 000 to 255

Header Delimiter Add ID Checksum

❑ Enable

PLC model name

File register

❑ Disable

File register block number

(

❑ Enable )

* 000 to 255

137

Appendices

PROTOCOL SETUP

Page 146

Appendices

ID SETUP ❑ 01 ❑ 02 ❑ 03 ❑ 04 ❑ 05 ❑ 06 ❑ 07

❑ 08 ❑ 09 ❑ 10 ❑ 11 ❑ 12 ❑ 13

❑ 14 ❑ 15 ❑ 16 ❑ 17 ❑ 18 ❑ 19

❑ 20 ❑ 21 ❑ 22 ❑ 23 ❑ 24 ❑ 25

❑ 26 ❑ 27 ❑ 28 ❑ 29 ❑ 30 ❑ 31

RS-232C SETUP Baud rate

(

Data length

RTS/CTS handshaking

❑ 7 bits ❑ Even ❑ 1 bit ❑ Disable

Baud rate

(

Data length

❑ 7 bits ❑ Even ❑ 1 bit

Parity Stop bit length

)

❑ 8 bits ❑ Odd ❑ 2 bits ❑ Enable

* 600 to 38400 bps

❑ None

RS-485 SETUP

Parity

Appendices

Stop bit length

138

)

❑ 8 bits ❑ Odd ❑ 2 bits

* 600 to 38400 bps

❑ None

Page 147

Appendices

Appendix I

Default Setting List

HOST MODE Mode

Multi-drop link

PLC link

Disable

Handshaking

No handshaking

Header

None

Delimiter

CR

Add ID

Add

Checksum

Do not add

PROTOCOL SETUP

ID SETUP Only ID 1 is registered.

Baud rate

9600

Data length

7 bits

Parity

Even

Stop bit length

1 bit

RTS/CTS handshaking

Disable

Baud rate

9600

Data length

7 bits

Parity

Even

Stop bit length

1 bit

Appendices

RS-232C SETUP

RS-485 SETUP

139

Page 148

Appendices

Appendix J

Sample Printout of Setting List / / / New setting data [Untitled] / / / [X] selected [X] - - - - - => Changed 1) HOST MODE [MODE] [Interference Suppression] [Read mode] [Data-send] [Read error code]

[X] MULTI-DROP LINK [X] MULTI-HEAD SCAN [X] Disable [X] ENABLE Timer [10] x 10 msec [X] Single [X] Multi 1 [X] Multi 2 [X] After read [X] At trigger input ERROR [4552524F52]

2) Trigger setup (only with MULTI-HEAD SCAN) [Signal type] [X] Level [X] One-shot [One-shot input time] [10] x 100 ms [Input time] [X] 2 ms [X] 10 ms [State] [X] Normally-open [Command for Trigger ON] LON [4C4F4E] [Command for Trigger OFF] LOFF [4C4F4646]

Appendices

3) PROTOCOL SETUP [Use PLC] [Handshaking] [Header] [Delimiter] [Add ID] [Checksum] [PLC Model Name] [PLC Trigger Area] [DM Head Address] [PLC Station/Unit No.] [File Register] [File Register Block Number]

[X] Normally-close

[X] Don't use [X] Use [X] No handshaking [X] PASS/RTRY [X] ACK/NAK [X] None [X] STX [X] ESC [X] Custom [X] CR [X] CR + LF [X] ETX [X] Custom [X] Don’t Add [X] Add [X] Don’t Add [X] Add [X] SYSMAC-C [X] MELSEC-A [X] KV [X] Disable [X] ENABLE 000 0 [X] Disable [X] ENABLE 0

4) ID setup [X]01 [X]02 [X]03 [X]04 [X]05 [X]06 [X]07 [X]08 [X]09 [X]10 [X]11 [X]12 [X]13 [X]14 [X]15 [X]16 [X]17 [X]18 [X]19 [X]20 [X]21 [X]22 [X]23 [X]24 [X]25 [X]26 [X]27 [X]28 [X]29 [X]30 [X]31

140

5) RS-232C [Baud rate] [Data bits] [Parity] [Stop bits] [RTS / CTS]

9600 bit/s [X] 7 bits [X] 8 bits [X] Even [X]Odd [X]None [X] 1 bit [X]2 bits [X] Invalid [X]Use RTS / CTS handshaking

6) RS485 [Baud rate] [Data bits] [Parity] [Stop bits]

9600 bit/s [X] 7 bits [X] 8 bits [X] Even [X]Odd [X] 1 bit [X]2 bits

[X]None

Page 149

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 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 LIMITATION, THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF PROPRIETARY RIGHTS, ARE EXPRESSLY DISCLAIMED. IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE TO ANY PERSON OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL, PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES (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 FOR ANY MATTER ARISING OUT OF OR IN CONNECTION WITH THE USE OR INABILITY TO USE THE PRODUCTS, EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER CLAIM AGAINST BUYER. In some jurisdictions, some of the foregoing warranty disclaimers 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

Page 150

N-400 User's Manual

96M0353

User's Manual Multi-Drop Controller for BL Series

N-400

N-400 TEST

RS-232C

READER

SD

RD

POWER TIMING

POWER

SD

RD

TERMINATOR

OFF

TERMINATOR ON OFF

Specifications are subject to change without notice. AFFILIATED COMPANIES

KEYENCE CORPORATION 1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku, Osaka, 533-8555, Japan Phone: 81-6-6379-2211 Fax: 81-6-6379-2131

KEYENCE CORPORATION OF AMERICA Phone: 201-930-0100 Fax: 201-930-0099

KEYENCE ITALIA S.p.A. Phone: 02-6688220 Fax: 02-66825099

KEYENCE TAIWAN CO., LTD Phone: 02-2627-3100 Fax: 02-2798-8925

KEYENCE DEUTSCHLAND GmbH Phone: 06102-36 89-0 Fax: 06102-36 89-10 0

KEYENCE SINGAPORE PTE LTD Phone: 6392-1011 Fax: 6392-5055

KEYENCE (HONG KONG) CO., LTD Phone: 3104-1010 Fax: 3104-1080

KEYENCE (UK) LIMITED Phone: 01908-696900 Fax: 01908-696777

KEYENCE (MALAYSIA) SDN BHD Phone: 03-2092-2211 Fax: 03-2092-2131

KEYENCE FRANCE S.A. Phone: 01 56 37 78 00 Fax: 01 56 37 78 0 1

KEYENCE (THAILAND) CO., LTD Phone: 02-369-2777 Fax: 02-369-2775

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

© KEYENCE CORPORATION, 1997 0114-4 96M0353 Printed in Japan

RS

SD

RD RS-455

RS-232C

ON

CS