You are on page 1of 38

763GB

Table of Contents
Safety Information for N-L20 ............................................................. 2
Precautions on Proper Use ............................................................... 2
Communication unit
Ethernet connection type Part 1 Basic Operation

N-L20 Chapter 1 Before Using the Product

User's Manual Rev2.0 1-1


1-2
Package Contents List....................................................................... 3
Part Names and Functions ................................................................ 3

Read this manual before use.


Keep this manual in a safe place for future reference. Chapter 2 Connection and Wiring
2-1 Connection and Wiring Methods ....................................................... 4

Chapter 3 AutoID Network Navigator Functions and Operations


(Basic)
3-1 Connecting ........................................................................................ 6
3-2 Communication Settings.................................................................... 6
3-3 Sending Settings ............................................................................... 8
3-4 Saving Settings.................................................................................. 8
3-5 Checking N-L20 Settings................................................................... 9
3-6 Restoring Settings (AutoID Network Navigator) ................................ 9
3-7 Connect to AutoID Network Navigator over Ethernet ........................ 9
3-8 Check the Read Data ...................................................................... 10
3-9 Send Commands............................................................................. 10
3-10 List of AutoID Network Navigator Settings ...................................... 11

Part 2 Communication
 Symbols
The following symbols alert you to important messages. Be sure to read these Chapter 4 Communication Types
messages carefully.
4-1 N-L20 Communication Specifications.............................................. 12
It indicates a hazardous situation which, if not avoided, will result in death or 4-2 Ethernet Data Conversion Timing ................................................... 12
DANGER
serious injury.
It indicates a hazardous situation which, if not avoided, could result in death
WARNING
or serious injury. Chapter 5 Command Communication

CAUTION
It indicates a hazardous situation which, if not avoided, could result in minor 5-1 Command Communication .............................................................. 13
or moderate injury.
5-2 N-L20 Control Commands............................................................... 14
It indicates a situation which, if not avoided, could result in product damage 5-3 N-L20 Configuration Commands ..................................................... 14
NOTICE
as well as property damage.

Important It indicates cautions and limitations that must be followed during operation. Chapter 6 PLC Link
6-1 PLC Link Overview .......................................................................... 16
Point It indicates additional information on proper operation.
5-6 Settings............................................................................................ 16
6-3 Memory Maps.................................................................................. 18
Reference It indicates tips for better understanding or useful information. 6-4 Operation Examples ........................................................................ 19
6-5 PLC Link Error ................................................................................. 20
Indicates the reference pages in this manual or the reference pages in
separate manuals.
Chapter 7 EtherNet/IP
7-1 EtherNet/IP Overview ...................................................................... 21
Introduction 7-2 Cyclic Communication ..................................................................... 22
7-3 Message Communication ................................................................ 26
This user's manual describes the connection/wiring procedure, setting 7-4 Reference Programs ....................................................................... 29
instructions, and precautions for using the "N-L20 Autofocus Code Reader".
Please read this manual thoroughly before using the N-L20 to ensure optimum
Chapter 8 PROFINET
performance. Keep this manual handy for quick future reference.
8-1 PROFINET Overview ...................................................................... 31
8-2 Cyclic Communication ..................................................................... 32

Part 3 Specifications and Application Examples

Appendix Specifications
A-1 Specifications .................................................................................. 35
A-2 Dimensions...................................................................................... 35
A-3 Troubleshooting............................................................................... 36
A-4 ASCII Codes.................................................................................... 36
A-5 Precautions on Proper Use ............................................................. 37
A-6 Software License Agreement .......................................................... 37
A-7 Copyright indications ....................................................................... 38

1 E N-L20 UM
Safety Information for N-L20 Precautions on Proper Use
 General Precautions • Do not use a voltage other than that described in the specifications with
• Do not use this product for the purpose to protect a human body or a part the N-L20. Doing so may cause damage to the unit.
of human body. • Be sure to turn off the power to devices attached to the N-L20 when you
WARNING • This product is not intended for use as explosion-proof product. Do not plug in or unplug the cables. Failure to do so may cause damage to the
use this product in hazardous location and/or potentially explosion N-L20.
atmosphere. • Do not disassemble or modify the N-L20. Doing so may cause damage to
• You must verify that the N-L20 are operating correctly in terms of the unit.
NOTICE
functionality and performance before the start and the operation of the • Place cables as far away as possible from high-voltage lines and power
CAUTION N-L20. lines. Otherwise, electrical noise can be generated that may cause a
• We recommend that you take substantial safety measures to avoid any product failure or malfunction.
damage in the event of a problem occurring. • The N-L20 is a precision instrument. Do not impact or drop the instrument.
Pay particular attention when transporting or installing the unit.
• KEYENCE never warrant the function or performance of the N-L20 if it is • Do not turn off the power of the N-L20 while accessing files. The internal
used in a manner that differs from the N-L20 specifications contained in data may be corrupted.
this instruction manual or if the N-L20 are modified by yourself.
• When the N-L20 is used in combination with other instruments, functions
NOTICE
and performance maybe degraded, depending on operating conditions
and the surrounding environment.
• If the equipment is used in a manner not specified by the manufacturer,
the protection provided by the equipment may be impaired.

E N-L20 UM 2
1-1 Package Contents List 7. FNC button function
FNC button operation Description
• Performs recovery from error state after an error
Main unit Instruction manual Hold down for 3 sec • Starts BOOTP client operation.
• Cancels BOOTP client operation.

96M13739
Precautions on Proper Use
• Do not use a voltage other than that described in the
specifications with the N-L20. Doing so may cause
damage to the unit.
Communication Unit Ethernet • Be sure to turn off the power to devices attached to the
N-L20 when you plug in or unplug the cables. Failure to do
so may cause damage to the N-L20.
Connection Type

Unit Operating Status Indicated by LED States


• Do not disassemble or modify the N-L20. Doing so may

N-L20
cause damage to the unit.
NOTICE • Place cables as far away as possible from high-voltage
lines and power lines. Otherwise, electrical noise can be
generated that may cause a product failure or malfunction.
• The N-L20 is a precision instrument. Do not impact or
Instruction Manual drop the instrument. Pay particular attention when
transporting or installing the unit.
• Do not turn off the power of the N-L20 while accessing
files. The internal data may be corrupted.
Introduction
Read this instruction manual before using the product in order to achieve
Precautions on Regulations and Standards

 Normal operation
maximum performance.
After reading it, keep the manual always at hand for future reference.
■ UL certification
■ Symbols The N-L20 has obtained the UL/C-UL certifications.
• UL File No. E222809
The following symbols alert you to important messages. Be sure to read • UL category QUYX/QUYX7
these messages carefully.
Be sure to observe the following installation and environment conditions.
It indicates a hazardous situation which, if not avoided, will • Pollution degree 2
DANGER result in death or serious injury. • Indoor use only.
• Install at an altitude of 2000 m or less.
It indicates a hazardous situation which, if not avoided,
WARNING could result in death or serious injury. • Caution - Do not connect directly to the branch circuit.
It indicates a hazardous situation which, if not avoided, This product must be supplied power by a suitable,
CAUTION approved isolated transformer or power supply not
could result in minor or moderate injury.
exceeding 200 VA max.
It indicates a situation which, if not avoided, could result in CAUTION • Attention - Ne raccordez pas l'unité directement au circuit

Operating status POWER LED


NOTICE product damage as well as property damage. de dérivation. Ce produit doit être alimenté par un
transformateur adapté, isolé et approuvé ou une
It indicates cautions and limitations that must be followed alimentation ne dépassant pas 200 VA.
Important
during operation.
Use this product with one of the following power supplies.
• UL/CSA certified power supply that provides Class 2 output as defined in
Point It indicates additional information on proper operation. the NFPA70 (NEC: National Electrical Code) and CEC (Canadian
Electrical Code).

Power OFF Off


• UL/CSA certified power supply that has been evaluated as a Limited
Reference It indicates tips for better understanding or useful information. Energy circuit as defined in UL61010-1 and CAN/CSA-C22.2 No. 61010-1.
• Ensure the circuits to be connected to the input/output terminals are SELV.
Indicates the reference pages in this manual or the reference pages in
separate manuals. ■ FCC regulations
The N-L20 complies with the following FCC EMI regulations.
• FCC Part 15 Subpart B, Class A digital devices
Safety Information for N-L20

Power ON (in operation) Solid green


■ General Precautions ■ Canada IC (Industry Canada) regulations
The N-L20 complies with the following IC EMI regulations.
• Do not use this product for the purpose to protect a • ICES-003, Class A digital apparatus
human body or a part of human body.
WARNING • This product is not intended for use as explosion-proof ■ CE marking
product. Do not use this product in hazardous location
Keyence Corporation has confirmed that this product complies with the
and/or potentially explosion atmosphere.
essential requirements of the applicable EC Directive, based on the following

When an IP address has not been assigned


• You must verify that the N-L20 are operating correctly in specifications.
terms of functionality and performance before the start Be sure to consider the following specifications when using this product in the
CAUTION and the operation of the N-L20. Member State of European Union.

Flashing blue
• We recommend that you take substantial safety measures • EMC Directive
to avoid any damage in the event of a problem occurring.
* The length of the communication and power cables should be less than 30 m.
• KEYENCE never warrant the function or performance of
These specifications do not give any guarantee that the end-product with this

(BOOTP status)
the N-L20 if it is used in a manner that differs from the
N-L20 specifications contained in this instruction manual product incorporated complies with the essential requirements of EMC
of if the N-L20 are modified by yourself. Directive. The manufacturer of the end-product is solely responsible for the
• When the N-L20 is used in combination with other compliance on the end-product itself according to EMC Directive.
NOTICE instruments, functions and performance maybe degraded,
depending on operating conditions and the surrounding ■ KC mark (Korea)
environment. The N-L20 is a KC listed Product.
• If the equipment is used in a manner not specified by the Class A device
manufacturer. the protection provided by the equipment

AutoID Network Navigator connection state Solid blue


This device is a commercial electromagnetic wave generating device (Class
may be impaired. A) and is intended for use in locations outside residences. Dealers and users
should be aware of this point.

Ͳ匏͑匶匶͑
Ͳ匏 ͑匶匶͙͑ 櫋怺殯͑愯暧皻柦匶沖
櫋怺殯͑愯暧皻柦匶沖沲 ͚
決͑匶匶垚͑櫋怺殯 ͙Ͳ 匏 ͚͑洊沖砒洇穯匶匶嵢昢͑砖廪沖͑嬖垚͑斲殯沖垚͑決͑洖汊
渂汞穞柢匶͑愚岂彶 ͑͝儆洛歾汞͑滆櫳櫖昢͑斲殯穞垚͑冉汊͑徯洇求嵢͑穯城埪 ͟

HEAD LED
1 E N-L20-IM
Operating status
SD RD
Terminal connector Head sending Flashing green -
• I/O connector Head receiving - Flashing green
• Power supply connector
Operating status ETHERNET LED
Ethernet LINK status Solid green
Option Ethernet LINK status Flashing green

Model Name Package content Qty. Appearance Operating status IN/OUT LED
IN/OUT ON status Solid green
Setup software
SR-H6W (AutoID Network DVD-ROM 1 IN/OUT OFF status Off
Navigator)
 When error occurs
LED
Cable Operating status
OP-51580 USB cable 1
(2 m) POWER ERROR
Duplicate IP Address Flashing red Solid red
Send buffer overflow Flashing red Solid orange
NX-C03R/C05R/ Cable (3m/5m/ Error
Extension cable 1 PLC link error*1 Flashing red Solid green
C08R 8m)
Other errors*2 Solid green Solid red
*1 Check the following three points.
D-sub 9-pin cross • PLC and N-L0 communication channels (Example: check whether the
OP-87533 Connector 1
connector
Ethernet cable is disconnected)
• Check whether the PLC and the N-L20 are set up correctly.
D-sub 9-pin cross
• Check whether the specified N-L20 address exists in the PLC.
OP-88081 connector (pin 9 Connector 1
insulated)
*2 Send the "%ERRSTAT" command to the N-L20 to check response content.

System Configuration Figure


1-2 Part Names and Functions
Personal
computer Timing sensor

1. USB port
PLC IN1

5. Power LED
Input
6. ERROR LED
KV
-B1
6X
C

2. I/O terminal terminal

7. FNC button

HUB
3. Ethernet connection
port

Ethernet connection port


8. Head port
4. Power terminal (Extension cables*)

Head: SR-700 Series, BL-1300 Series


Number Name Function
1 USB port Used to connect a PC with a USB cable
2 I/O terminal Used to connect I/O signal lines
* The following extension cables can be used.
3 Ethernet connection port Used to connect an Ethernet cable
• 3 m extension cable: NX-C03R
4 Power terminal* Terminal for DC24V power supply input. • 5 m extension cable: NX-C05R
5 Power LED Lights when the power is ON. • 8 m extension cable: NX-C08R
6 ERROR LED Lights when the ERROR status is ON.
7 FNC button Switches communication mode to BOOTP
8 Head port Used to connect the head.
* Please connect nothing to N.C.

763GB 3 E N-L20 UM
2-1 Connection and Wiring  Connecting the power supply
Connect the 24 VDC power supply to the power terminal of the N-L20.
Methods
 Connecting the code reader
 SR-700/BL-1300 Series
Connect the SR-700/BL-1300 Series reader to the head port of the N-L20.
Connect the code reader to the head port of the N-L20.
Pin layout of the head port

Pin Signal
2 1 number Name Signal name direction Twist pair cable
1 OUT1 OUT1 input Input Power supply
6 5 4 3
2 OUT2 OUT2 input Input
10 9 8 7
3 RXD RS-232C Receive Input 24 V+10%
12 11 4 RTS RS-232C Receivable Output -20%
5 OUT4 OUT4 input Input
6 IN2 IN2 output Output
Round 12-pin jack 7 TXD RS-232C Transmit Output • Using a power supply other than 24 VDC may cause product failure.
8 CTS RS-232C Transmittable Input NOTICE • The N-L20 does not support PoE (Power over Ethernet).
9 OUT3 OUT3 input Input Be sure to supply 24 VDC power to the power terminal.
10 IN1 IN1 output Output
11 +5V +5V power supply Output
12 GND(SG) Common GND -  Layout and Wiring of the I/O Terminal Block
• Layout of the I/O terminal block
NOTICE Install and remove connection cables with the power disconnected.

 HR-100/101
I/O terminal
block

HR-100/101 HR-1C3RC OP-87533 NX-CD2M N-L20

 HR-100B/101B

 Power and I/O terminal specifications


Connector
I/O terminal/power terminal
Wire size AWG 16-28
Wire material Copper
Wire type Solid wire/stranded wire
HR-100B/101B HR-1C3RB OP-88081 NX-CD2M N-L20 Tightening torque (power terminal only) 0.18 N•m
HR-B1
Electric wire temperature rating More than 60°C
HR-UC1
Using cables with terminal blocks

AC adaptor + AC cable
* The type that can be used differs depending on the Approx.
country. 9 mm

 BL-N70RK/N70RKE NOTICE
• Ensure that no wire strands are coming out of the end of stranded wires.
• Do not solder the ends of the wires.

Symbol Description Signal direction


INCOM Common for IN terminal -
IN1
Used as an input terminal for the code reader. Input
IN2
OUTCOM Common for OUT terminal -
OUT1
BL-N70RK OP-87533 NX-CD2M N-L20 OUT2
BL-N70RKE Used as an output terminal from the code reader. Output
OUT3
 BL-700/180 Series OUT4

 Wiring IN1 and IN2


N
IO

AM
BE
AR TION-
UT

NTO

nm
DU 91 W
650
PRO 1.4m
EI

CT µm
T ST DIA

SS RADIA TPUT ER
CA

NO RA

CLA D OU R LAS
DO SER

PU UM DUCTO

ER N
LA

I LAS TIO
MA ICON
SEM
XIM
RE

LSE
SU
PO

ER FR N
IS TE TIO
EX

TU OM
TH EMIT RADIA
OID

.
RE
AV

AP D
IS R
SE
LA

Circuit diagram
LASE
R ON
STB

OK/N
G
TIMIN
G
OK/NG
BL-180 STABILITY

TEST

BL-700
IN1, IN2

BL-700/701 BL-180SO(7030) NX-CD2M N-L20 Internal


BL-740/741 BL-185SO(7031) circuit
INCOM
BL-780/781
To use a BL-700/180 Series unit in this configuration, attach a ferrite core to the 24
V power line cable of the N-L20 and wind three turns of the cable around the
NOTICE
ferrite core.
Ferrite core: ESD-SR-25 (from NEC)

E N-L20 UM 4
 Wiring OUT1 to 4  Installing and removing the N-L20 to and from the DIN rail
• Installing the N-L20 to the DIN rail

OUT1 to 4 1 Lower the mounting tab on the back of the N-L20.

Internal circuit
Check that the mounting tab is placed in the position shown in the following
diagram.
Load Load
Load OUT
Load COM
Load

Circuit diagram

 Wiring the Ethernet port


* Use a cable of category 5 or higher. (Both STP and UTP can be used)
* The extended length must not exceed 100 m.

Mounting tab
 USB cable connections
2 Install the N-L20 to the DIN rail as shown in the following diagram.
1 Check orientation and insert the plug straight in and not at an angle.

Protrusion

DIN rail

• Insert the connector straight in and not at an angle. The connector pins
could break if the connector is inserted at an angle.
• Be sure to insulate when attaching the code reader. The N-L20 USB port
NOTICE
SG and the head port SG are shared. If it is not insulated, and there is a
potential difference between where it is attached and the SG, the N-L20,
code reader, and USB connection device may be damaged.
Installing the N-L20 to the DIN rail

Installing the N-L20 1. Hook

 Surrounding space Mounting tab


Protrusion

• When installing N-L20, maintain a space of 20 mm or Top DIN rail


more in all directions around the unit.
If installed without space, the operating temperature
upper limit will be 40C.
Provide a space of 80 mm or more in front of the 2. Push
N-L20 to connect the BL head.

• Removing the N-L20 from the DIN rail

1 Lower the mounting tab as shown in B in the following diagram, and


then remove the N-L20.
Bottom

20 mm or more on the top, bottom, right and left sides


80 mm or more from
20 mm the front

20 mm 20 mm A B

Lower with a screw


80 mm driver or another tool. Mounting tab
20 mm

2 After the N-L20 is removed, return the mounting tab to the state
shown in A.
 Installation precautions
• If the temperature of the N-L20 will foreseeable exceed the upper limit of the
operating temperature (50C), take the appropriate measures such as
performing forced air cooling or ensuring proper ventilation so that the
temperature does not exceed the upper limit of the normal operating
temperature (50C).

5 E N-L20 UM
3-1 Connecting 3 Click [Start the setup wizard], and then configure the communication
settings by following the instructions on the screen.

Point If you want to change the subnet mask, change the following value to one in
Installing AutoID Network Navigator the range of 8 to 30.
Run "AutoID Launcher.exe" inside the "AutoID Network Navigator" folder of the
SR-H6W, and then install the program by following the instructions on the screen.
* Refer to the AutoID Network Navigator Specifications "A-1 Specifications" Example) 24  255.255.255.0
(page 35). 16  255.255.0.0
8  255.0.0.0

Important • To install AutoID Network Navigator, log on as a user with Reference


IP address Specify a unique IP address on the network.
Administrator rights.
• Install ".Net Framework 3.5 SP1" before you install AutoID Network Match this value with that of the device that you will
Subnet Mask
Navigator. You do not have to install it again if it is already installed. connect to.
• If the UAC (User Account Control) dialog box is displayed during the
Normally leave this setting at its default value. Only
installation, click [Continue].
• Exit all active applications before starting the installation. The Default Gateway use this setting in circumstances when you are
installation of the software may be impeded by security software. using a router.
• To uninstall AutoID Network Navigator, double-click the
corresponding program in the list shown in the following location.
From the [Control Panel] screen, click [Uninstall a program]. Setup Wizard
You can easily configure the Ethernet settings by following the instructions in the
setup wizard.
Opening AutoID Network Navigator and Connecting to Example) TCP communication with a PC
the N-L20
1 Trigger input method
1 Use a USB cable (OP-51580) to connect the N-L20 and a PC. Select the reading trigger input method.

2 Double-click the "AutoID Network Navigator" shortcut on the I/O terminal input
The trigger input will be provided by a sensor or switch wired to
the N-L20.
desktop.
The trigger input will be provided by way of commands sent
Command input
from the host (PC).

If the following information is displayed, the connection has been established.

Point • To connect to the reader from AutoID Network Navigator, you can use
the following two methods:
(1) Connect through the USB interface.
(2) Connect through the Ethernet interface.
Normally connect to the reader through the USB interface. If you want to 2 Destination for of read data
connect to the reader through the Ethernet interface, refer to "3-7
Connect to AutoID Network Navigator over Ethernet" (page 9).
• A USB connection allows you to connect one PC to only one N-L20,
SR-700 Series or SR-2000/1000/G100 Series (USB connection) unit.
To connect two or more N-L20 units, connect each one separately.

3-2 Communication Settings

Ethernet Connection 3 Communication protocol

1 Click the [Ethernet] tab.

2 Set the IP address and other values to those assigned to the N-L20.

E N-L20 UM 6
4 Detailed settings  BL-1300 Series
Enter the IP address and port number of the PC that you will connect to, and
then click [Completed]. 1 Set the Head RS-232C setting items ([Table] tab) of the N-L20 to
coincide with the factory default communication settings of the code
reader, and then send the settings.

5 Click [Send Configuration].


Reference • For information on communications other than Ethernet, refer to the
following. [BL-1300's factory default settings]
• PLC link Baud Rate: 9600 bps
"6-1 PLC Link Overview" (page 16) Data length: 7 bits
• EtherNet/IP Parity: Even
"7-1 EtherNet/IP Overview" (page 21) Stop bit length: 1 bit
• PROFINET
"8-1 PROFINET Overview" (page 31) 2 Click the Head button.

Connected head settings


 SR-700 Series

1 Click the Head button.


3 Click the connected code reader.

2 Click the connected code reader.

4 Set up the connected code reader.


* AutoID Network Navigator cannot be used to turn off and on the AGC
function of the BL-1300 Series.
To change these functions, make the connection using the N-UB/N-R2 and
use AutoID Navigator.

5 To return to the N-L20 setup screen, click the N-L20 button.


3 Set up the connected code reader.

 HR-100 Series (HR-100/101/100B/101B)


The Head RS-232C settings ([Table] tab) of the N-L20 coincide with the
factory default settings of the HR-100 Series.
Therefore, you do not need to change the Head RS-232C settings
([Table] tab) of the N-L20.

* The settings of the HR-100 cannot be changed via the N-L20.

[HR-100 Series factory default settings]


Baud Rate: 115200 bps
Data length: 8 bits
4 To return to the N-L20 setup screen, click the N-L20 button. Parity: Even
Stop bit length: 1 bit

7 E N-L20 UM
 BL-700/180/N70RK/N70RKE
3-3 Sending Settings
1 Set the Head RS-232C setting items ([Table] tab) of the N-L20 to
Send the settings that you have selected with AutoID Network Navigator to the
coincide with the factory default communication settings of the code
N-L20. Sending the settings changes the settings on the N-L20.
reader, and then send the settings.

Sending Settings

1 Click [Send configuration].

When the settings are being changed, the display of the


[Send configuration] icon changes to that shown below.

[BL-700/180/N70RK/N70RKE factory default settings]


Baud Rate: 9600 bps
Data length: 7 bits
Parity: Even
Stop bit length: 1 bit
2 When a message indicating that the transmission is complete is
displayed, click [OK].
* The settings of the BL-700/180/N70RK/N70RKE cannot be changed via the
N-L20. 3 When you finish configuring the settings, click the following button.
The communication between AutoID Network Navigator and the N-L20 will be
disconnected.

This completes the setting procedure.

Important • Communication between the N-L20 and a PLC or other


communication device is enabled when the connection with AutoID
Network Navigator is disconnected.
• Note that data cannot be sent to a PLC or similar device while the
N-L20 is connected to AutoID Network Navigator (POWER LED:
Flashing blue).

3-4 Saving Settings


The AutoID Network Navigator settings can be saved as *.ptc files. This is useful
when you want to check the N-L20 settings at a later time and when you want to
configure a newly purchased N-L20 with the same settings.

Saving a Configuration File

1 Click the [Save] button.

2 Select the location in which to save the file, enter the file name, and
then click [Save].

E N-L20 UM 8
3-5 Checking N-L20 Settings 3-7 Connect to AutoID Network
Navigator over Ethernet
Receiving Settings

1 Use a USB cable (OP-51580) to connect the N-L20 and a PC. Connection Method
2 Start AutoID Network Navigator. 1 Connect the Ethernet cable of the N-L20 to a PC.
If the following information is displayed, the procedure is finished.
Check the settings. 2 Configure the network settings of the PC.

 Configuring Windows 7 network settings


(1) Click the [Start] button, and then click [Control Panel].
(2) Type "adapter" in the search box, and then click [View Network
Connection].

3-6 Restoring Settings


(AutoID Network Navigator)
(3) Right-click "Local Area Connection," and then click [Properties] on
the menu that appears.
(4) Click "Internet Protocol Version 4 (TCP/IPv4)," and then click
Send Configuration to a New N-L20
[Properties].
(5) Select [Use the following IP address], and then set the IP address
1 Follow steps in [3-5] to connect to AutoID Network Navigator.
and subnet mask as shown below.
2 Right-click the reader, and then click "Switch Reader Configuration" IP address 192.168.100.1
on the menu that appears. Subnet mask 255.255.255.0

3 Select a saved configuration file (*.ptc).

4 A confirmation message asking you whether you want to apply the


settings will be displayed. Click "Yes."
When the completion message is displayed, the configuration is complete.

(6) Click [OK] to close all the windows.

* If a firewall or security program is running on the PC, disable them


temporarily.

3 Double-click "AutoID Network Navigator" on the desktop.


When the N-L20 is in its factory default settings, it is in the BOOTP
state and will open the IP assignment screen.

4 Click [Connect over Ethernet].


If the N-L20 is detected automatically, the connection has been established.

* If the above procedure doesn't detect the N-L20


• An IP address other than "192.168.100.xxx" may be assigned to the N-L20
that you are attempting to connect to. Follow the procedure shown below to
connect to the reader.

9 E N-L20 UM
Auto Assignment of IP Addresses 5 Press the Register button. All connections are now completed.

1 (On an N-L20 whose settings have been modified) Hold down the FNC
button for 3 sec and make sure that the POWER LED flashes blue.

FNC button

Reference When the N-L20 POWER LED flashes blue, a broadcast package is
sent in the network.

3-8 Check the Read Data


2 Press the following buttons on the AutoID Network Navigator to
select the Ethernet.
Terminal

1 Click [Terminal].

2 Turn on the sensor (switch) wired to the N-L20.


When reading is successful, the read data is displayed.

3 Press the "Set Register IP Address" button.


3-9 Send Commands

Terminal

1 Click [Terminal].

2 Type a command in the command input field, and then press Enter.

4 Check the IP address and press the OK button.


Press the Change button to manually select an IP address.

* For details on commands, refer to "5-1 Command Communication" (page 13).

E N-L20 UM 10
3-10List of AutoID Network  Head RS-232C
Item name Default value Setting range Details
Navigator Settings Baud Rate
Data Bits
115200bps
8bit
9600bps to 115200bps
7bit or 8bit
-
-
Parity Even None, Even, or Odd -
Stop Bit 1bit 1bit or 2bit -
RTS/CTS protocol Disable Enable or Disable -
[Table] Tab When enabled and the head
Append data size check Disable Enable or Disable is appending data, the data is
delimited to the set size.
 Ethernet
N-L20 IP settings  Misc
Item name Default value Setting range Details Item name Default value Setting range Details
IP address 192.168.100.100 The IP address of the N-L20. Communication unit
PLCUNIT (1 to 8 characters)
name
Subnet Mask 24 8 to 30 -
Default Gateway 0.0.0.0 0.0.0.0 to 255.255.255.255 -
When this setting is enabled,
the connection will be
terminated when there is no
Keep Alive Enable Enable or Disable
communication with the
remote device for a period of
Search Settings
60 consecutive seconds.
Ethernet command data (server) You can use the search box shown in the following image to search for items in the
Communication
TCP Not used or TCP
The server operation setting list of settings.
method for socket communication.
Port (Waiting) 9004 1024 to 65535*1 -
Ethernet data (client)
Communication The socket operation setting
Not used Not used, TCP or UDP
method for socket communication.
Remote IP address 1 0.0.0.0 0.0.0.0 to 255.255.255.255 The remote IP address.
Remote port 1 9004 1024 to 65535*1 -
This setting is used when the
Remote IP address 2 0.0.0.0 0.0.0.0 to 255.255.255.255 same data is output to an
additional PC or PLC.
Remote port 2 9004 1024 to 65535*1
Connection request Disable Disable or Enable
Send read data to FTP
Save the read data as a file
Send read data to FTP Disable Disable or Enable
on the FTP server.
Remote FTP server IP
0.0.0.0 The remote IP address.
address
Remote FTP server
admin -
user account name
Remote FTP server
admin -
user account password
Enable this function when the
Passive mode Disable Disable or Enable FTP server operates passive
communication.
Use this setting to append
Append to preceding read data to preceding data
Enable Disable or Enable
data sent through the FTP interface
within .txt files.
Change directory Disable Disable or Enable -
Directory name data -
Keep connected Disable Disable or Enable -
File name data.txt -
*1 Excluding 9013, 9014, 9015, 5920, 9016, 5900, and 44818

 Field network/PLC link


Item name Default value Setting range Details
PLC communication *1 Select the protocol to use in
Not used
protocol communicating with the PLC.
Remote IP address 0.0.0.0 The remote IP address.
Remote port 5000 1024 to 65535 -
*2
DM front address 0 -
*2
Control region address 0 -
Response region *2
0 -
address
Use this setting to operate
PLC link timing input Do not use Do not use or Use timing input with the PLC's
bits.
UDP port number 5000 1024 to 65535*3 -
Node address 0 0 to 65535 -
Output length 64 1 to 100 -
Timing/Data wait
10 0 to 99 -
(x 10 ms)
Retry duration 5 1 to 10 -
EtherNet/IP
Data handshake Disable Disable or Enable -
Input assembly data
500 40 to 1400 Size of the data to send.
size (send)
Output assembly data
500 4 to 1400 Size of the data to receive.
size (receive)
Setting for use in swapping
Byte swapping Disable Disable or Enable
the DM storage order.
PROFINET
Device name n-l20 -
Data handshake Disable Disable or Enable -
*1 MC protocol (Ethernet), OMRON (Ethernet), KV STUDIO (Ethernet), EtherNet/IP, or PROFINET
*2 The setting range varies depending on the PLC link type.
*3 Excluding 9013, 9014, 9015, 9016, 5920, 5900 and 44818

11 E N-L20 UM
4-1 N-L20 Communication 4-2 Ethernet Data Conversion
Specifications Timing
Data received from the HEAD that conforms to any of the following four reception
(1) I/O Communication data formats is converted to Ethernet communication data.
Reception data format Remarks
The I/O terminals of the N-L20 form an interface for inputting and outputting
[Reception data] + <CR(0x0D)>
signals to the connected HEAD I/O terminals.
<STX(0x02)> + [reception data] +
Inputs signals from external sensors and switches and sends them <ETX(0x03)>
Input terminals
to the connected HEAD. Used when binary data is included.
Turns ON signals and external buzzers and LEDs when the OUT • Enable the "Append data size check"
Output terminals
terminals of the HEAD are read correctly or fail. setting in the N-L20.
• Enable the "Append data size check"
 Wiring the I/O terminals <Data size 4 digits> + [reception data] +
setting in the HEAD.
<CR(0x0D)>
"2-1 Connection and Wiring Methods" (page 4)
• Set the terminator to <CR(0x0D)>.
• If the data size is not recognized, follow
(2) Ethernet the rules for other reception data formats.
According to the communication settings of
With the Ethernet interface of the N-L20, you can use the following types of the HEAD, the data is converted to Ethernet
Reception data formats other than those above
communication. data if 100 bytes worth of time elapses after
the most recent data was received.
 Socket communication (TCP/UDP)
You can use socket communication to transfer the read data of the HEAD Conversion
connected to the N-L20.
You can use commands to control the N-L20 or HEAD operation and change
settings.
HEAD
"5-1 Command Communication" (page 13) reception data Ethernet data

Protocol TCP, UDP

 PLC link
You can communicate with PLCs that support the "PLC link function." Because the
N-L20 directly controls the memory in the PLC, communication programs are not
necessary. This leads to a reduction in man-hours spent creating programs.
"6-1 PLC Link Overview" (page 16)
Protocol KV Studio, MC protocol, or OMRON PLC Link

 EtherNet/IP
"7-1 EtherNet/IP Overview" (page 21)
Protocol EtherNet/IP

 PROFINET
"8-1 PROFINET Overview" (page 31)
Protocol PROFINET

 FTP
The N-L20 can perform the following operations through the FTP interface.
• Receiving configuration files
• Appending read data to text files on the FTP server
Protocol FTP

Ethernet Communication Port Numbers

Communication name Listen/remote port Protocol Port number


Ethernet command data
Listen port TCP 1024 to 65535*1
(server)
Ethernet data
Remote port TCP, UDP 1024 to 65535
(client)
PLC link Remote port UDP 1024 to 65535
20: FTP data port (ACTIVE mode)
FTP communication - FTP
21: FTP service port
*1 9013, 9014, 9015, 9016, 5900, 5920, and 44818 cannot be set as they are
reserved for the reader system.

E N-L20 UM 12
5-1 Command Communication Command Communication Process

1 The host (PC or PLC) sends a command to the N-L20.


What is Command Communication? 2 The N-L20 sends a response and operates according to the
command. The first character of a control and configuration
By sending commands from a PLC or PC, you can start reading and change the
settings of the N-L20. command must be "%."
Example 1) Control and Configuration Commands "%BCLR"
 Command communication interfaces
(1) Command transmission
• Ethernet (TCP socket communication)
%BCLR[CR]
 Types of commands
The following three types of commands are available.
• Control commands : Commands used to control the operation of the
N-L20. (2) Clear send buffer
• Configuration commands : Commands used to change or check the settings (3) Response
of the N-L20. OK,%BCLR[CR]
• Code reader's commands: Commands provided for the code reader itself.

Example 2) Configuration command


Command Communication Format
 Format (1) Command transmission
%WN,200,192.168.100.1[CR]
Header Command Terminator
(2) Response
OK,%WN[CR]
When formatting commands, the following three combinations of headers and
terminators are available.
Command format Response format

Error Responses
After receiving a command, if the corresponding processing fails, the N-L20
Series returns an error in response.
Header Terminator Header Terminator
 Response format
(1) None [CR] None [CR]
(2) None [CR] + [LF] None [CR] Header ER, Command name Error code Terminator
(3) [STX] [ETX] [STX] [ETX] Example) When an undefined command is received.
Example 1) When the command to start reading (LON) is sent to the SR-700/
Command ABCD[CR]
BL-1300.
Response ER,ABCD,00[CR]
Command LON[CR]
Response -  Error codes
Example 2) When the command to stop reading (LOFF) is sent to the SR-700/ Error Code Explanation
BL-1300. 00 Undefined command received
01 Mismatched command format (Invalid number of parameters)
Command LOFF[CR]
02 The parameter 1 value exceeds the set value
Response -
03 The parameter 2 value exceeds the set value
Example 3) When the command to clear the send buffer (%BCLR) is sent to the 04 Parameter 2 is not set in HEX (hexadecimal) code
N-L20. 05 Parameter 2 set in HEX (hexadecimal) code but exceeds the set value
There are 2 or more ! marks in the preset data
Command %BCLR[CR] 10
Preset data is incorrect
Response OK,%BCLR[CR]
11 Area specification data is incorrect
12 Specified file does not exist
Point • For details on LON, LOFF or similar code reader's commands, refer to 20 This command is not executable in the current status (execution error)
the user's manual for each code reader. 21 The buffer has overflowed, so commands cannot be executed
• When an HR-100/BL-N70 Series or similar handheld scanner is
An error occurred while loading or saving parameters, so commands cannot be
connected to the N-L20, you cannot use LON, LOFF or any other code 22
executed
reader's command. To start reading, pull the handheld scanner's
trigger. 23 Connected to AutoID Network Navigator
• Commands are sent and received in ASCII code. The N-L20 or the HEAD may be malfunctioning. Please contact your nearest
• If E S C is appended at the beginning of the command, the E S C will 99
KEYENCE sales office.
clear the receive buffer of the N-L20. If communication cannot be
completed correctly due to the presence of unnecessary characters in
the receive buffer of the N-L20, append E S C to the command and send
it.
Example) [ESC]LON[CR]
• Set the character interval to less than 10 seconds when sending
commands to the N-L20. If 10 seconds elapse, the N-L20 will delete all
received characters from the buffer.

13 E N-L20 UM
5-2 N-L20 Control Commands 5-3 N-L20 Configuration
Commands
 Reset
Function Command name Parameter Response
Reset %RESET - OK,%RESET Configuration Commands
The N-L20 is reset after it outputs a response.
The following two types of configuration commands are available.
 Send buffer clear • Operation configuration commands (%WP/%RP)
• Configuration commands (%WN/%RN)
Function Command name Parameter Response
Send buffer clear %BCLR - OK,%BCLR Point • Send the %SAVE command to save the contents changed by
Clear the send buffer of the N-L20. configuration commands in the memory. If you do not send the
%SAVE command, when the power is turned off or the %RESET
 Saving/loading settings command is received, the settings will return to the state that they
were in before they were changed.
Function Command name Parameter Response • The setting contents sent during N-L20 operations are applied when
Save settings* %SAVE - OK,%SAVE the current operation finishes, not after the response to the command
Load saved settings %LOAD - OK,%LOAD is sent.
Initialize settings %DFLT - OK,%DFLT
* If you turn the power off before executing the SAVE command, the settings
that you have configured will be discarded. Configuration commands (%WP/%RP)
 Other commands Use the following format for sending configuration commands.
Function Command name Parameter Response  Configuration change
OK,%KEYENCE, N-L20,v
Version confirmation %KEYENCE - Send command %WP,m,n
v: Version
OK,%CMDSTAT,m Normal process OK,%WP
m = none: No processing Response
Obtain the command status %CMDSTAT - wait: Wait for setting Abnormal process ER,%RP,ee
application
update: Updating  Configuration confirmation
OK,%EMAC,n
Obtain the MAC address %EMAC - n = MAC address Send command %RP,m
(12 bytes) Normal process OK,%RP,n
OK,%ERRSTAT,m Response
m = None: No error Abnormal process ER,RP,ee
system: System error
update: Update error m: Command number, n: Setting value
cfg: Set value error ee: Error code
ip: IP address
Obtain the error status %ERRSTAT - duplication
over: Buffer overflow Example) Set "PLCUNIT" as the communication unit name.
plc: PLC link error
profinet: PROFINET Configuration change %WP,710,0050004C0043
error Send command
lua: Script error 0055004E00490054
hostconnect:Host Response (Normal process) OK,%WP
connection error
OK,%BUSYSTAT,m
m = none: No processing Configuration confirmation Send command %RP,710
Obtain the BUSY status %BUSYSTAT - update: Update
processing OK,%RP,0050004C0043
Response (Normal process)
file: Saving the file 0055004E00490054
Clear the PLC link error %PCLR - OK,%PCLR
Clear the FTP communication %HCLR - OK,%HCLR
error Command Setting
Function Explanation Default
Number value
0050
004C
Specify up to 8 characters
0043
Communication unit (16 HEX bytes) from UNICODE
710 hhhhhhhh… 0055
name (UTF-16 BigEndian).
004E
FF : Not set
0049
0054

Communication configuration commands (%WN/%RN)


Communication configuration command is sent in the following format:
 Configuration change
Send command %WN,m,n
Normal process OK,%WN
Response
Abnormal process ER,%WN,ee

 Configuration confirmation
Send command %RN,m
Normal process OK,%RN,n
Response
Abnormal process ER,%RN,ee

m: Command number, n: Setting value


ee: Error code

Example: Changing N-L20 IP address to "192.168.100.1"


Configuration change Send command %WN,200,192.168.100.1
Response (Normal process) OK,%WN

Configuration confirmation Send command %RN,200


Response (Normal process) OK,%RN,192.168.100.1

Important To change and apply the communication configuration, make sure to


send a %SAVE command.

E N-L20 UM 14
 Ethernet communication settings Function
Command Setting
Explanation Default
Number value
Command Setting
Function Explanation Default 0 : Disable
Number value
1 : Enable
a : 0 to 255 Automatically clear PLC
216 0, 1 * When set to "Enabled," the unit 1
b : 0 to 255 192.168. link errors
IP address setting 200 a. b. c. d reconnects 30 sec after a PLC
c : 0 to 255 100.100 link error has occurred.
d : 0 to 255
EtherNet/IP 0 : Do not handshake
Specify with bit length 321 0, 1 0
data handshake setting 1 : Handshake
Subnet mask setting 201 8 to 30 255.255.255.0 ···24 24
EtherNet/IP
255.0.0.0 ···8 0040 to
Input assembly data 322 by 1 500
a : 0 to 255 1400
size setting
b : 0 to 255 0.0.0.0
Default gateway setting 202 a. b. c. d EtherNet/IP
c : 0 to 255 (Not set) 0040 to
d : 0 to 255 Output assembly data 323 by 1 500
1400
Method for size setting
communicating 0: Not used EtherNet/IP 0 : Disable (ROCKWELL)
203 0 to 1 1 324 0, 1 0
Ethernet command 1: TCP Byte swapping setting 1 : Enable (KEYENCE/OMRON)
data (server)
Up to 240 characters
Standby port number Specify with ASCII codes
1024 to
for Ethernet command 204 - 9004 * Device naming rule
65535 *1
data (server) 1 : PROFINET device name
0: Not used length: 1 to 240 characters
Ethernet data
207 0 to 2 1: TCP 0 2 : 1 label length: 1 to 63
(client) setting
2: UDP characters
a : 0 to 255 3 : Only [a to z] (alphabet lower
Ethernet data
b : 0 to 255 case), [0 to 9] (numbers), [-]
(client) 208 a.b.c.d 0.0.0.0
c : 0 to 255 (hyphen), [.] (period) can be
remote IP address 1 d : 0 to 255 used for a device name.
Ethernet data 4 : [-] (hyphen) cannot be used
1024 to
(client) 209 - 9004 at the beginning of the label.
65535
remote port number 1 5 : [-] (hyphen) cannot be used
PROFINET device
a : 0 to 255 330 nnn… at the end of the label. n-l20
Ethernet data name
b : 0 to 255 6 : port-xyz, port-xyz-abcde
(client) 210 a.b.c.d 0.0.0.0
c : 0 to 255 cannot be the name of the
remote IP address 2 d : 0 to 255 first label.
Ethernet data abcde and xyz mean [0 to 9]
1024 to (numbers).
(client) 211 9004
65535 7 : Device names cannot be
remote port number 2
made in the IP address
Continually send 0: Disable
213 0,1 0 format.
connection requests 1: Enable
(n.n.n.n n= 0 to 999)
0: Disable 8 : Labels cannot start with xn-.
Keep alive setting 214 0,1 1
1: Enable 9 : The first character of labels
*1 You cannot specify 9013, 9014, 9015, 9016, 5900, 5920, or 44818. cannot be a number.
If these rules are not observed, an
error occurs.
 PLC communication settings
0 : Do not handshake
PROFINET handshake 331 0, 1 0
Command Setting 1 : Handshake
Function Explanation Default
Number value
a : 0 to 255
b : 0 to 255
0.0.0.0
Remote IP address 300 a.b.c.d c : 0 to 255
(Not set)
d : 0 to 255
Only available in a PLC link
1024 to
Remote port number 301 Only available in a PLC link 5000
65535
UDP port number 1024 to
302 - 5000
setting for own device 65535
0 : Not used
4 : MC protocol (Ethernet)
5 : OMRON PLC Link
Protocol setting 303 0 to 8 0
6 : KV Studio
7 : EtherNet/IP
8 : PROFINET
MC:
0 to 32767
SYSWAY:
DM front address 304 0
0 to 9999
KV:
0 to 65534
MC:
0 to 7F
SYSWAY:
Control region address 305 0
0 to 6143
KV:
1 to 599
MC:
0 to 7F
Response region SYSWAY:
306 0
address 0 to 6143
KV:
1 to 599
Output data length 001 to * Set the upper limit of writing
307 64
setting 100 length.
0 : Disable
PLC link timing input 308 0, 1 0
1 : Enable
Timing/Data wait 309 00 to 99 by the 100 ms 1
Retry duration (s) 310 1 to 10 by the second 5
0 to PLC communication node address
Node address 311 1
65535 * OMROM PLC Link setting only

15 E N-L20 UM
 FTP Communication Settings
• FTP transmission of read data
6-1 PLC Link Overview
Command Setting
Function Explanation Default
Number value
FTP transmission 0 : Disable PLC Link
420 0,1 0
of read data 1 : Enable
a : 0 to 255
A PLC link enables the N-L20 to write data directly to internal PLC memory (data
b : 0 to 255 memory, data register) via Ethernet communications.
Remote IP address 421 a.b.c.d 0.0.0.0
c : 0 to 255 Since the N-L20 directly controls memory in the PLC, it eliminates the need for a
d : 0 to 255 communication program. Therefore, man-hours needed to create programs can
User name 422 ASCII (max. 16 characters) admin be reduced.
Password 423 ASCII (max. 16 characters) admin
Important The following restrictions are imposed regarding the use of the PLC link:
Directory transfer at 0 : Disable • You cannot use the PLC link to change the N-L20 settings.
424 0,1 0
connection 1 : Enable • You cannot use the PLC link to activate test modes.
Name of the directory • You cannot use the PLC link to send operation commands and
425 ASCII (max. 32 characters) data configuration commands.
to transfer to
• Due to long communication time, it is not suitable for a line that
Send FTP connection 0 : Disable requires high-speed processing.
426 0,1 0
request as necessary 1 : Enable • The amount of data that can be processed depends on the output
0 : Disable data length. A maximum number of digits is 100.
Passive mode 429 0,1 0 (Default output data length is 64 digits.)
1 : Enable
Append to preceding 0 : Disable
430 0,1 1
data 1 : Enable
File name 431 File name (max. 128 characters) data.txt
List of supported PLCs

 Head Communication Settings  Ethernet Interface


KEYENCE
Command Default
Function Set value Description Series name Connection method Model
number value
0: 9600 bps CPU built-in port KV-5000/5500/7500
KV Series
1: 19200 bps Ethernet unit KV-LE21V/LE20V, KV-NC1EP
HEAD port RS-232C
800 0 to 4 2: 38400 bps 4
Baud rate
3: 57600 bps Mitsubishi Electric
4: 115200 bps
HEAD port RS-232C 0: 7 bit Series name Connection method Model
801 0,1 1
Data length 1: 8 bit Q03UDECPU, Q04/06/10/13/20/26/
0: None 50/100UDEHCPU
HEAD port RS-232C CPU built-in port Q03/04/06/13/26UDVCPU
802 0 to 2 1: Even parity 1 MELSEC Series
Parity L02CPU/06CPU/26CPU-BT
2: Odd parity
R04/R08/R16/R32/R120CPU
HEAD port RS-232C 0: 1 bit
803 0,1 0 Ethernet unit QJ71E71-100/-B5/-B2
Stop bit 1: 2 bit
HEAD port RS-232C 0: Disabled
804 0,1 0 OMRON
RTS/CTS setting 1: Enabled
HEAD port RS-232C 0: Disabled Series name Connection method Model
810 0,1 0
Append data size check 1: Enabled SYSMAC Series CPU built-in port CJ2M-CPU3 Series

6-2 Settings

N-L20 Settings

1 Open the [Ethernet] tab.


2 Enter the [IP address] and [Subnet Mask] settings to assign to the
N-L20.
3 Start the [Setup Wizard].
4 STEP 1 Select the trigger input method.
5 STEP 2 Select [Field network/PLC].
6 STEP 3 Select the communication protocol.
7 STEP 4 Configure connection destination settings such as the [IP
Address] and the [Port].
8 Exit the [Setup Wizard].
9 Click [Send Configuration].
Point When configuring the PLC link settings, enable the PLC link only for the
N-L20. For the SR-700/BL-1300, disable the PLC link.

PLC Settings Examples


 KV Series
 Ethernet
IP address 192.168.100.10
Subnet mask 255.255.255.0 (default)
Port (VT) 8502 (default)

E N-L20 UM 16
 MELSEC Series Configuration • L02CPU/26CPU-BT
Set communication conditions with the GX-Works2.
 Ethernet ("Built-in Ethernet port configuration" in "PC parameters")
• QJ71E71-100/-B5/-B2 IP address 192.168.100.10*1
Set communication conditions with the GX-Developer. Subnet mask patterns 255.255.255.0 *1
("I/O assignment configuration" in "PC parameters") Default router IP address 192.168.100.254 *1
Type Intelligent Communication data
Binary code communication
Type name Name of the unit to be installed code configuration
Points 32 points Writing permitted during
RUN Check
First XY First output signal of the target unit (hexadecimal number) (FTP and MC protocol)
(Target unit number for "Ethernet/CC IE/MELSECNET" in "Network parameters") *1 Make the configuration appropriate to the network.
Network type Ethernet ("Built-in Ethernet port configuration" in "PC parameters")
Number specified in "I/O assignment configuration" in PC Protocol UDP
First I/O No.
parameters
Open system MC protocol
Network No. Any number
Port number with Ethernet
Group No. Any number 232C (hexadecimal number) * Any number
module installed
Division Any number
* The port number of the N-L20 must be set in decimal numbers.
Mode Online
("Operation configuration" for "Ethernet/CC IE/MELSECNET" in "Network
parameters")  SYSMAC Series Configuration
Communication data  Ethernet
Binary code communication
code configuration
Set communication conditions with CX-Programmer.
Initial timing configuration Always waiting for OPEN (Communication possible during STOP)
*1
IP address 192.168.100.10 • CPU built-in port
Writing permitted during [Rotary switch]
Check
RUN
Unit number 0
Send frame configuration Ethernet (V2.0)
Node address 1 *1
TCP living confirmation
KeepAlive is used.
configuration [TCP/IP]
*1 Configure so that it matches the network. IP address 192.168.100.10
* The port number is 5000. Subnet mask 255.255.255.0

[FINS/UDP]
• Q Series CPU internal port
Set communication conditions with the GX-Developer. FINS/UDP port 9600 (default)
("Built-in Ethernet port configuration" in "PC parameters") IP address conversion IP address table method
IP address 192.168.100.10 *1 Remote IP address
Do not perform dynamic conversion of the remote IP address.
dynamic conversion
Subnet mask patterns 255.255.255.0 *1
Destination node address 2
Default router IP address 192.168.100.254 *1
IP address 192.168.100.100 *2
Communication data
Binary code communication
code configuration *1 Set the node address to a value that is different from that of the N-L20.
Writing permitted during *2 Specify the IP address of the N-L20.
RUN Check
(FTP and MC protocol)
*1 Configure so that it matches the network.
Devices That Can Be Used
("Built-in Ethernet port configuration" in "PC parameters") The devices that can be accessed with the PLC link are shown below.
Protocol UDP
Open system MC protocol PLC Specified area Device name Available range

Port number with Ethernet Control region


232C (hexadecimal number) * Any number Input relay, output relay R100 to R59915*1
module installed KV Series Response region
* The port number of the N-L20 must be specified in decimal number while the Data region Data memory DM0 to DM65534
Q Series port number with Ethernet module installed is specified in Control region Input device Y0 to Y7FF*2
hexadecimal number. MELSEC Series Response region Output device X0 to X7FF*2
Example) Hexadecimal number Decimal number Data region Data register 0 to 32737

232C 9004 Control region CIO, internal auxiliary


0 to 6143ch
SYSMAC Series Response region relay
Data region Data memory D0000 to D9999
• R04/R08/R16/R32/R120CPU
Use GX Works3 to set the communication conditions. • The available range indicates the maximum value of the device accessible
("Parameter" - "CPU type" - Auto node setting in "Unit parameter" when the PLC link function is used. When you set the DM front address, control
IP address 192.168.100.10 *1 region address, or response region address, do so by taking into account the
Subnet mask 255.255.255.0 *1
number of necessary devices.
• Even with the same PLC model, depending on the specifications and the
Default gateway 192.168.100.254*1 configuration, it may not be possible to specify the maximum value for the
Writing enabled/disabled
Select Enable all (SLMP)
device region that can actually be used and there may be regions that cannot
setting in Run mode be used. For more information on the available regions, refer to the appropriate
New data code Binary PLC manual.
Open method setting The program will not open
*1 In the AutoID Network Navigator entry field, the range is 1 to 599 .

*2 In the AutoID Network Navigator entry field, the range is 0 to 7F .


*1 Set it up to suit the network it will be connected to.
("Parameter" - "CPU type" - "Set other party connection" in "Unit parameter"
• Specifying the front addresses of the control region and response region
If you enter the value 2 in the AutoID Network Navigator entry field,

the shaded area indicated below will be specified.


F E D C B A 9 8 7 6 5 4 3 2 1 0
1
2  Front address
3
Drag "SLMP connecting device" under Ethernet device (general). 4
5
Protocol UDP
Port number 232C (Decimal number)

17 E N-L20 UM
6-3 Memory Maps Point • If output data cannot fit in the output data region, starting with that
digit, the remaining data will be discarded.
• However, the D+02 digits are used to write the data digits that the N-
To use the N-L20 over the PLC link, the functions of the N-L20 need to be L20 outputs.
assigned to the PLC devices. For the N-L20, assign the front address of each
device to match the target functions.

Control region Device used to write commands from the PLC


Device Assignment Function Details
Response region Device used to write responses from the N-L20
 Read trigger area
Data region Device used to write the reading result data of the N-L20*
This bit is used to start and stop reading.
* Use to make parameter bank settings.
Address Description Data description
0: Instruction for timing OFF
A+00 PLC timing area
Assignment of Functions 1: Instruction for timing ON
0: Timing OFF
B+00 PLC timing input response area
 Control region 1: Timing ON
When the control region address A is specified, functions are assigned in order as A+00: When this bit is set to ON (1), the HEAD connected to the N-L20 starts
shown below starting with the specified beginning address. reading.
B+00: When the N-L20 recognizes that A+00 has been set to ON, it sets
A+15 A+14 A+13 A+12 A+11 A+10 A+9 A+8 A+7 A+6 A+5 A+4 A+3 A+2 A+1 A+0
"B+00" to ON.
Reserved area
 Data write processing method
N-L20 PLC
Address Description Data description
Write Write You can select from two data writing processing methods: "real time processing"
0: Instruction for timing OFF
and "sequential processing." Switch between the processing methods by setting
A+00 PLC timing area  the value of [A+01] to "0" and "1."
1: Instruction for timing ON
Data write processing 0: Real time processing
A+01   Real time processing
method 1: Sequential processing
Sequential processing 0: Data write disabled
Data will be sent immediately after reading.
A+02 
Data write enabled 1: Data write enabled
Address Description Data description
* When executing the trigger input ON/OFF using the PLC timing area, set "PLC 0: Real time processing
link timing input" to "Enable". A+01 Data write processing format
1: Sequential processing
Real time processing 0: No data being written
 Response region B+04
Data being written 1: Data being written
When the response region address B is specified, functions are assigned in order
as shown below starting with the specified beginning address. A+01: Set this bit to OFF (0) in advance.
B+04: While this bit is set to ON, data is being written. It is set to OFF when
B+15 B+14 B+13 B+12 B+11 B+10 B+9 B+8 B+7 B+6 B+5 B+4 B+3 B+2 B+1 B+0 writing finishes.
Reserved area  Sequential processing
After reading, data is stored in the send buffer of the N-L20 until the writing of
N-L20 PLC
Address Description Data description
Write Write data to the PLC is enabled.
PLC timing input 0: Timing OFF Address Description Data description
B+00 
response area 1: Instruction for timing ON
0: Real time processing
B+01 Reserved area - - - A+01 Data write processing method
1: Sequential processing
Sequential processing 0: No data Sequential processing 0: Data write disabled
B+02 
Data write request 1: Data write request A+02
Data write enabled 1: Data write enabled
Sequential processing 0: Data write incomplete
B+03  Sequential processing 0: No data
Data write complete 1: Data write complete B+02
Data write request 1: Data write request
Real time processing 0: No data being written
B+04  Sequential processing 0: Data write incomplete
Data being written 1: Data being written B+03
Data write complete 1: Data write complete
* Do not use the reserved area.
A+01: Set this bit to ON (1) in advance.
 Data region A+02: When this bit is set to ON (1), the N-L20 writes read data into "D+04 to
When the data region address D is specified, functions are assigned in order as D+53."
shown below starting with the specified beginning address. When this bit is set to OFF (0), the N-L20 stores data in the send buffer
without writing new data.
N-L20 PLC
Address Description Data description B+02: This bit is set to ON when read data is present in the send buffer.
Write Write
B+03: This bit is set to ON when the writing of data is finished.
0: Do not specify bank
(Alternate)
D+00 Specify reading bank
1 to 10: Specify bank n
  Reading bank specification
(SR-700 Series only) This specification is used for specifying banks when the SR-700 Series is
D+01 Reserved area connected to the N-L20.
Length of data (read data +
D+02 Output data length append data) output from the  Address Description Data description Data format
N-L20 0: Bank not specified (alternate)
D+00 Specify read bank Binary code
Read data writing count from 1 to 10: Bank n specified
Data writing process
D+03 the N-L20 to PLC is  D+00: When a bank number has been entered in this address, setting "A+00"
count
displayed.*1
to ON (1) starts reading with this bank specified.
1st and 2nd digits of
D+04 ASCII code 2 characters*2*3* 
output data*4
 Output data length
3rd and 4th digits of
D+05 ASCII code 2 characters*2*3  The area is used to write data length output from the N-L20.
output data*4
… Address Description Data description Data format
99th and 100th digits of Length of data output from the
D+53 ASCII code 2 characters*2*3  D+02 Output data length Binary code
output data*4 N-L20
*
1 When the next data reaches at the count of 65535, the value of count returns to 1.
*2 When the output data length is an odd number, [NUL] (0x00) is written in the  Output data
"Output data length + 1".
Address Description Data description Data format
*3 The order in which data of each PLC is stored is as follows:
KV : High order byte  Low order byte D+04 to 2 characters of ASCII code/
Output data ASCII code
SYSMAC : High order byte  Low order byte D+53 address
MELSEC : Low order byte  High order byte
*4 The data length output from the N-L20 depends on the data output length set
in the N-L20. (Default: 64 digits)
0-byte data is output as data with a length of 0.

E N-L20 UM 18
Point
Example 3) Trigger method: Level trigger. Data writing method: Sequential
• If "A+00" is switched between ON and OFF at high speed, the N-L20 will processing.
miss the changes in "A+00," which will prevent the trigger input from
turning on or off normally. In this situation, write the program so that Memory When reading is
Signal name Address When reading fails
"B+00" is used to check whether the N-L20 has recognized the change layout successful
in "A+00."
Data write
• If the code reading interval is shorter than the PLC link A+01
communication time, data that cannot be written to the PLC will be processing method
Control
stored in the send buffer of the N-L20. Trigger area A+00
• The N-L20 can hold up to 100 pieces of data. If this limit is exceeded, region
all data in the send buffer is erased and "OVER" is written into "D+04 Data write enabled A+02
to D+53." (This is a send buffer overflow.)
• When a send buffer overflow occurs, the N-L20 stops operation, Read operation (light is lit) OK ERROR
writes "OVER" to the PLC, and then recovers to an operating state.
• When you are using "sequential processing," be sure to set "A+02" to Trigger response
ON (1) after you have prepared the PLC to receive the data. B+00
area
• "One-shot trigger" cannot be used on a code reader connected to the Response
N-L20. Always use "Level trigger." region Data write request B+02
• When an HR-100/BL-N70 Series or similar handheld scanner is
connected to the N-L20, you cannot use "PLC timing area" bits. To Data write complete B+03
start reading, pull the handheld scanner's trigger.
Data region Output data D+02... Read data ERROR

 When reading is successful

6-4 Operation Examples 1


2
3
"A+00" and "B+00" are set to OFF (0).
"A+01" is set to ON (1).
"A+00" is set to ON (1).
Example 1) Trigger method: Level trigger. Data writing method: Real time 4 When the N-L20 recognizes that "A+00" has been set to ON (1), "B+00" is
set to ON (1) and reading starts.
processing.
5 When a code is read, "B+02" is set to ON (1).
Memory When reading is 6 "A+00" is set to OFF (0).
Signal name Address When reading fails
layout successful 7 When "A+02" is set to ON (1), the data is written into "D+04 to D+53."
Data write 8 When data writing is complete, "B+03" is set to ON (1).
A+01 9 When "A+02" is set to OFF (0), "B+03" is set to OFF (0).
Control processing method
region
Trigger area A+00  When reading fails
OK 1 "A+00" and "B+00" are set to OFF (0).
Read operation (light is lit) ERROR
2 "A+01" is set to ON (1).
Trigger response 3 "A+00" is set to ON (1).
B+00
Response area 4 When the N-L20 recognizes that "A+00" has been set to ON (1), "B+00" is
region set to ON (1) and reading starts.
Writing data B+04
5 "A+00" is set to OFF (0).
Data region Output data D+02... Read data ERROR 6 When the code cannot be read, "ERROR" is written to the send buffer, so
"B+02" is set to ON (1).
 When reading is successful 7 When "A+02" is set to ON (1), "ERROR" is written into "D+04 to D+53."
8 When data writing is complete, "B+03" is set to ON (1).
1 "A+00," "A+01," and "B+00" are set to OFF (0). 9 When "A+02" is set to OFF (0), "B+03" is set to OFF (0).
2 "A+00" is set to ON (1).
3 When the N-L20 recognizes that "A+00" has been set to ON (1), "B+00" is * Complete processing so that "A+02" is set to ON (1) when "B+03" is set to OFF
set to ON (1) and reading starts. (0) and "B+02" is set to ON (1). This makes it possible to obtain all the data
4 When the code is read, its data is written into "D+04 to D+53." even when multiple pieces of data are stored in the send buffer.
5 "A+00" is set to OFF (0).
6 When the N-L20 recognizes that "A+00" has been set to OFF (0), "B+00" is
set to OFF (0).
Point • The read data stored in the "D+04 to D+53" data region is overwritten
 When reading fails
with the new read data.
1 "A+00," "A+01," and "B+00" are set to OFF (0). • If the number of digits in the read data changes, parts of the previous
2 "A+00" is set to ON (1). read data may remain in "D+04 to D+53." If necessary, delete the data
3 When the N-L20 recognizes that "A+00" has been set to ON (1), "B+00" is stored in "D+04 to D+53" after this data is sent.
set to ON (1) and reading starts. • Timing with which to transfer the data stored in "D+04 to D+53" to a
4 "A+00" is set to OFF (0). different block of data memory
5 When the N-L20 recognizes that "A+00" has been set to OFF (0), "B+00" is "Real time processing:" Transfer the data when "B+04" is set to OFF
set to OFF (0) and reading stops. (0).
6 The code could not be read, so "ERROR" is written to "D+04 to D+53." "Sequential processing:" Transfer the data when "B+03" is set to ON
(1).
Example 2) When an HR-100/BL-N70RK/BL-N70RKE or similar handheld
scanner is connected to the N-L20. Data writing method: Real
time processing.
Memory When reading is
Signal name Address When reading fails
layout successful
Control Data write
A+01
region processing method
Trigger input
OK ERROR
Read operation (light is lit)
Response
Writing data B+04
region
Data region Output data D+02... Read data

 When reading is successful


1 "A+01" is set to OFF (0).
2 Pull the handheld scanner's trigger to start reading.
3 When the code is read, its data is written into "D+04 to D+53."

19 E N-L20 UM
Reference Program 6-5 PLC Link Error
This is a reference program for the use of the KV Series. In this program, error
handling is not considered, thus program by taking into account error handling
and test in actual operation. When a PLC Link Error Occurs
 N-L20 configuration The POWER LED flashes red and the ERROR LED is solid green when a PLC link
It is assumed that the N-20 is configured as follows. error occurs on the N-L20.
• Timing : Level trigger
Flashes red
• Read mode : Single
• Memory assignment : DM front address: DM1000
Control region address: R100
Response region address: R200 Solid green

• PLC link timing input : Yes

 Real time processing


Specifying alternate function
CR2008 #0
Write "0" into DM1000 and set to use the
DW
DM1000
alternate function.
Timing input processing
R000 R100
Input R000 as read timing.

Data processing
R204
Program data to be written into
DM1004 or later.

END

ENDH

Check Points
 Sequential processing
When a PLC link error occurs, check the following points:
Specifying sequential processing and alternate function
CR2008
 Wiring
R101
SET Set up the R101 and set it to sequential • Is the cable between the N-L20 and the PLC connected correctly?
processing.
• Are there any breaks in the cable?
#0
DW Write "0" into DM1000 and set to use the  Settings
DM1000 alternate function.
Timing input processing • Do the communication settings of the N-L20 match those of the PLC?
R000 R100 • Are the "memory layout" settings within the range of use of the PLC?
Input R000 as read timing.
 Operation
Sequential processing • After the PLC settings were configured, was the PLC restarted?
R202 R203 R102
Use the data write request flag (R202),
data write enabled flag (R102), data Recovering from PLC Link Errors
Data processing write complete flag (R203) to execute
R203 sequential processing. • When "Automatically clear PLC link error" is enabled, the unit reconnects 30 sec
Program read data to be written into after a PLC link error occurs.
DM1004 or later. • Restart the N-L20.
END
• Press the N-L20 [FNC] button for 3 seconds.
• Send the clear PLC link error command (%PCLR) to the N-L20.
ENDH
• Send the reset command (%RESET) to the N-L20.

Point
• While a PLC link error is occurring, trigger input signals are not
accepted.
• When PLC link errors are cleared, all the data stored in the send buffer
is cleared.
• When you have specified to use a PLC, this setting may not be applied
until you restart the PLC. After you specify this setting, be sure to
restart the PLC.
• PLC link error notification by I/O signals is not possible.

E N-L20 UM 20
7-1 EtherNet/IP Overview N-L20 EtherNet/IP Communication Specifications

Number of
16*
connections
What Is EtherNet/IP? Cyclic KEYENCE KV Series 4 to 1444 bytes
communication Rockwell Automation
EtherNet/IP is an industrial communications network managed by the ODVA Communication
(Implicit message) ControlLogix 4 to 496 bytes
(Open DeviceNet Vendor Association, Inc.). EtherNet/IP communication can share size
CompactLogix
the network with normal Ethernet communication.
OMRON CJ/CS Series 4 to 1436 bytes
Number of
Message 16*
Cyclic and Message Communication connections
communication
Applicable UCMM (unconnected type), Class 3 (connected
(Explicit message)
In EtherNet/IP, there is cyclic communication (Implicit message) that handles messaging methods type)
periodic sending and receiving of data, and there is also message communication * In total, there are 16 connections in cyclic communication and message com-
(Explicit message) which handles sending and receiving of commands/responses munication.
arbitrarily.

 Cyclic communication Usable Functions


In cyclic communication, RPI (communication cycle) can be set according to the
priority of data that is sent and received. Overall communication load adjusted The functions that the N-L20 can use with EtherNet/IP are shown below.
data can be sent and received. Function Description
PLC Begins reading operation.
Reading instruction Also executes reading end, bank setting reading, etc.
Communication cycle (RPI) setting
N-L20 (1): 10 ms EtherNet/IP (HEAD is SR-700 Series only)
N-L20 (2): 50 ms Checks the cause of the error that occurred in the main unit, and
N-L20 (3): 1000 ms
Error-handling returns the error.
N-L20 (1) N-L20 (2) N-L20 (3) (Example: Buffer overflow check/cancellation)
RPI = 10 ms RPI = 50 ms RPI = 1000 ms
Main unit status
Checks the main unit status (BUSY status).
The communication cycle (RPI) put together in order of priority can be set and network load can be adjusted. acquisition
Operation results Acquires read data.
 Message communication acquisition When set to silent mode, the read data is not updated.
In message communication, timing is controlled through commands/responses. Terminal status
Acquires input terminal and output terminal status.
acquisition

Command Main unit reset


Send Receive Displays the N-L20 software reset.
instructions
Process, operation
Point About the exclusion process
Receive Response Send
Data The N-L20 can simultaneously give control instructions to multiple
interfaces (I/O terminal, Ethernet Communication (TCP/IP), EtherNet/IP
PLC N-L20
communication). However, when a control instruction is being received
from one interface, instructions from other interfaces cannot be received.

List of Supported PLCs


 PLC manufactured by KEYENCE
EtherNet/IP
PLC model Software used
Communication unit
KV-3000 KV-EP21V
KV-5000 KV-EP21V
KV STUDIO
KV-7500/5500 -(KV-5500 built-in port or KV-EP21V)
KV-N24/N40/N60/NC32T KV-NC1-EP

 PLC manufactured by Rockwell Automation


• Control Logix/Compact Logix category PLC

EtherNet/IP Firmware Version of


PLC model Software used
Communication unit version software used
1756 ControlLogix 1756-ENBT
1769 - (N-L20 built-in Ver. 13 or later RsLogix5000 Ver. 13 or later
CompactLogix port)

• Micro Logix category PLC

EtherNet/IP Firmware Version of


PLC model Software used
Communication unit version software used
- (N-L20 built-in
1761/1766
port)/1761-NET- Series A,
MicroLogix
ENI Revision A, RsLogix500 Ver. 7.10 or later
1762/1763/1764 FRN1
1761-NET-ENI
MicroLogix

 PLC manufactured by Omron


EtherNet/IP
PLC model Software used
Communication unit
SYSMAC CJ2 - (CJ2 built-in port or CJ1W-EIP21)
SYSMAC CJ1 CJ1W-EIP21 CX-One
SYSMAC CS1 CS1W-EIP21

21 E N-L20 UM
7-2 Cyclic Communication 8
9
Exit the [Setup Wizard].

Click [Send Configuration].

Cyclic Communication PLC Settings


This communication can be used to execute reading or tuning by setting bits to When you use cyclic communication, configure the following settings on the PLC.
ON or OFF. (1) Connection settings
(2) Settings of the device to communicate with by way of EtherNet/IP

For setting details, refer to the PLC's manual.

 Connection type
IN area OUT area
Open a connection from the PLC to the N-L20 during EtherNet/IP cyclic
Reading result Reading result communication. The types of usable connections vary depending on the device.
Handshake information Handshake information
The connections that can be used by the N-L20 are shown below.

Device status Device status Connection type Data type Instance ID Size (byte) RPI (ms)
Result data
Busy/error information Busy/error information Exclusive Owner 0X64(100) 40 to 1400
(Input Assemblies)
Statistical information Statistical information
(Data transmission + 10 to 10000
Communication cycle (RPI) Control data
control) 0X65(101) 8 to 1400
Set with PLC (Output Assemblies)
Result data
Input Only 0X64(100) 40 to 1400
OUT area IN area (Input Assemblies)
(Data transmission 10 to 10000
Control data
Reading instruction Reading instruction only) 0XFE(254) 0
(Output Assemblies)
Handshake instruction Handshake instruction

• N-L20PLC:Data transmission
• PLCN-L20:Control instruction
Exclusive Owner Use this connection to send data from the N-L20 Series and to
enable the PLC to send control instructions, such as starting
Point • Communication settings such as the communication cycle (RPI) and reading, to the N-L20.
data size are set in the PLC.
When there is a large load in the network which connects many • N-L20PLC:Data transmission
devices including EtherNet/IP devices, delays or packet loss may Use this connection to only send data from the N-L20. You can use
Input Only
occur. Perform a thorough verification before operation. multiple connections with a single N-L20. (To a maximum of 16
• When communicating via EtherNet/IP with PLCs (MicroLogix Series connections.)
manufactured by Rockwell, etc.) that do not support cyclic
communication, use message communication.
Point • When you use "Input Only," you have to set the RPIs of all the devices
for "Exclusive Owner" and "Input Only" to the same values.
N-L20 Series Settings • Multiple "Exclusive Owner" connections cannot be used with a single
N-L20 unit.
1 Open the [Ethernet] tab.
• The trigger timing of each connection is executed in a cyclic manner.
• When using the KV series, the connection names are assigned as
shown below.
2 Enter the [IP address] and [Subnet Mask] settings to assign to the 1: Exclusive Owner  Result data/control data class 1
N-L20. 2: Input Only  Result data class 1 (Input Only)

KV-7500 Series settings


We have prepared information regarding connecting the KV-7500 and the SR
Series. Download the information from the KEYENCE website.

CJ Series settings

1 Set the PLC network communication.


3 Start the [Setup Wizard]. Using the CX-Developper, make the communication settings of PLC's IP
address, etc.
4 STEP 1 Select the trigger input method.
2 Set the EtherNet/IP network configuration for PLC and N-L20.
5 STEP 2 Select [Field network/PLC]. Using Network Configurator, set the network configuration.
6 STEP 3 Select [EtherNet/IP]. * The EDS file for N-L20 is in the EDS folder on disc1 of SR-H6W.

7 STEP 4 Configure the detailed EtherNet/IP settings.


3 Register the transmission area tag and the reception area tag for
PLC.
Right-click the PLC icon on Network Configurator, select [Parameter] – [Edit],
enter the [Edit device parameter] setting screen, and edit the tag.

4 Make the setting to relate the PLC tag with the N-L20 tag.
Register the device on the [Edit device parameter] setting screen and make
the connection assignment setting.
Transfer the configuration parameters to the PLC to complete the setting.

Data handshake Set whether to implement handshake processing. [Setting example]


Set this to a value that is the maximum amount of read data + Connection I/O type: Class1
Input assembly data size
44 bytes or higher. *1
Originator device (PLC) Target device (N-L20)
Output assembly data size Specify a value of 12 bytes or higher.*1
Input tag set E0_00000 - [500byte] Input_100 -
You can change the order in which data is stored in memory Output tag set
Connection type Multi-cast connection [500byte]
(read data).
Byte swapping
Disable: Low order to high order Output tag set D00000 - [500byte] Output_101 -
Input tag set
Enable: High order to low order Connection type Point to Point connection [500byte]
*1 Increase the value according to the number of digits in the read data. * For operation details of CX-Developper and Network Configurator, see "SYSMAC
CS/CJ Series EtherNet/IP Unit User's Manual" published by Omron.

E N-L20 UM 22
Control Logix/Compact Logix Series settings Memory Maps

Result data (Input Assemblies)


1 Right-click the EtherNet/IP enabled device on the RSLogix5000 and
select New Module. Input Assemblies write responses from the N-L20 to the PLC. When using this
device, each device function is assigned as follows. Device status, Result Data,
etc. are written to the Input Assemblies.

 Input Assemblies memory map (Instance ID: 0x64)


N-L20  PLC
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Read
Buffer Read Data
MODE General Data
0 BUSY Overflow Update Error
BUSY Error Update
Error Complete
Available
Reading
1
Complete
OUT4 OUT3 OUT2 OUT1 IN2 IN1
2
Status Status Status Status Status Status
3
4
5
6

2 Click the Communications' [+] button, select ETHERNET-MODULE 7


8
(Generic Ethernet Module), and click OK.
9
10
11
12
13
14
15
16 General Error Cause
17
18 Read Data Ready Count
19 Read Data Update Count
20
21 Read Data Size
22 and
Read Data
above

* Gray parts are reserved areas for the system.

Control data (Output Assemblies)


3 Set the ETHERNET-MODULE as follows:
Output Assemblies write instructions from the PLC to the N-L20. When using this
device, each device function is assigned as follows. Output Assemblies operate
device control instructions, error clear, handshake process, etc.

 Output Assemblies memory map (Instance ID: 0x65)


(1) PLC  N-L20
(4) (5) Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

(6) (7) Reading


Error Read
(2) 0 Start
Clear Data
(9) Request
Transmission Update
(8) Buffer Clear Permitted
(3)
Reading
1 Complete
Clear
2 Bank Number

* Gray parts are reserved areas for the system.

(1) Name Arbitrary value


Arbitrary value
Data - DINT (double integer, 4 bytes)
(2) Comm Format
Data - INT (integer, 2 bytes)
Data - SINT (single integer, 1 byte)
(3) IP Address IP address of the N-L20
(4) Input Assembly Instance 100
(5) Input Size Input assembly size of the N-L20*1
(6) Output Assembly Instance 101*2
(7) Output Size Input assembly size of the N-L20*1
(8) Configuration 1*3
(9) Configuration Size 0*3
*1 In AutoID Network Navigator, the input assembly size and output assembly
size are set with 8 bits, but these are set with 32 bits on the RSLogix5000.
8-bit notation 32-bit notation
100 25

*2 When operating with the "Input Only" connection type, set (6) to 254 and (7) to
0.
*3 The N-L20 does not use the Configuration setting. However, enter the above
value since failing to do so will result in an incomplete input error.

23 E N-L20 UM
Details of Result Data (Input Assemblies) Address 16 Failure cause status

Address 0 Bit 0 to Bit 7 Handshake and error status Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
16

Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Address Bit Name Description Data contents Data type
0 When any of the error statuses
(Input Assemblies Address 1, Bit 8
General Error
Address Bit Name Description Data contents 16 to Bit 15) turns on, the error code Error code* UINT
Cause
is output to the applicable
This Bit turns ON when either "6
0 : No error location.
0 0 Error Buffer Overflow Error" or "7
1 : Error
General Error" Bit is ON. * For error codes, refer to List of error codes (Page 33).
This Bit is used when using
Read Data
handshake.* 0 : No read data
0 1 Update
This displays whether read data 1 : Read data available Address 18 to 19 Read data status
Available
exists or not.
This Bit is used when using Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Read Data
handshake.* 01: Result data update 18
0 2 Update
This turns ON when read data complete
Complete 19
update is complete.
Buffer Overflow This turns ON when buffer 0 : No error
0 6 Address Bit Name Description Data contents Data type
Error overflow error occurs. 1 : Error
Read Data
This turns ON when a 18 Read Data Ready Count 0 to 65535* UINT
Ready Count
communication or main unit error
Read Data
occurs. It does not turn ON when
0 : No error 19 Read Data Update Count 0 to 65535* UINT
0 7 General Error a buffer overflow error occurs. Update Count
1 : Error
If this turns ON, the error code is
* When the count number reaches 65535 and the next data arrives, the count
output to "Address 16 General
Error Cause". number returns to 0.

* Handshake is a communication procedure to make the permission system for Address 21 or above Read data
read data writing.
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Address 0 Bit 8 and Bit11 BUSY status 21
22
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Address Bit Name Description Data contents Address Bit Name Description Data contents Data type
This Bit turns ON when any of the 21 Read Data Size Read data length 0 and above* UINT
0 : -
0 8 BUSY following BUSY Bits (9 to 13) is 22 and
1 : BUSY status Read Data Read Data Read data* BYTE[]
ON. above
0 : -
0 11 MODE BUSY MODE BUSY
1 : MODE BUSY status * When the header, terminator and append data are set to the read data of HEAD,
the header, terminator, append data and inter-delimiter are also output. [CR] has
been set to the terminator as the default setting. Accordingly, [CR] is appended
after the read data for output.
Address 1 Bit 0 Completion status * If the silent mode is set for HEAD, read data is not output.
* [NUL] (0x00) is appended to the end of the read data.
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 * The read data is cleared each time that a code is read.
1

Address Bit Name Description Data contents Details of Control Data (Output Assemblies)
Reading This turns ON when reading is 0 : -
1 0
Complete complete.*1 1 : Complete*2 Address 0 Bit 1 to Bit 7 Handshake/Clear bit
*1 This Bit also turns ON when reading with IN1/IN2 input signal was
successful. This Bit also turns ON when the character string of "ERROR" is Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

output when reading error occurs. 0

*2 This returns to 0 when the applicable clear bit is set to ON or when the
Address Bit Name Description Data contents
Output Assemblies "Reading Start Request" bit is set to ON.
This Bit is used when using
Read Data 01: Writing read data is
handshake.
0 1 Update permitted.
This displays whether read data
Permitted 10: -
Point Make sure that "BUSY" is OFF before starting reading. When "BUSY" is exists or not.
ON, processing will not start even if a read operation instructions are The following Bits of Input
made. Assemblies are cleared.
• Buffer Overflow Error
Error Clear • General Error 01: Clear
0 7 Transmission • Read Result Ready Count 10: -
Buffer Clear
• Result Data Update Count
Address 2 Bit 0 to Bit 7 Terminal status • Read data stored in the
transmission buffer of the N-L20
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
2 Address 0 Bit 8 Reading start request
Address Bit Name Description Data contents Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
This represents IN1 terminal 0 : OFF 0
2 0 IN1 Status
status. 1 : ON
This represents IN2 terminal 0 : OFF Address Bit Name Description Data contents
2 1 IN2 Status
status. 1 : ON Reading Start 01: Reading start
0 8 The HEAD Series starts reading. *1
This represents OUT1 terminal 0 : OFF Request 10: Reading stop
2 4 OUT1 Status
status. 1 : ON
*1 Use "Address 2 bank number" to specify an SR-700 Series bank.
This represents OUT2 terminal 0 : OFF
2 5 OUT2 Status
status. 1 : ON
This represents OUT3 terminal 0 : OFF
2 6 OUT3 Status
status. 1 : ON
This represents OUT4 terminal 0 : OFF
2 7 OUT4 Status
status. 1 : ON

* The above chart shows the contents when the input polarity setting of the N-L20
is Norm. open (normally open).
For Norm. closed (normally closed), the data is reversed as 0: ON 1: OFF.

E N-L20 UM 24
Address 1 Bit 0 Completion bit clear Operation Examples
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Example 1) Trigger method: Level trigger. Handshaking: Disabled.
1 Input : PLC ← N-L20

Output : PLC → N-L20

Address Bit Name Description Data contents
Attribute Signal name When reading successful When reading fails
Reading
"Reading Complete" Bit of Input Output
1 0 Complete 01: Bit clear Read Request
Assemblies is cleared.* →
Clear Barcode/2D code
Read Complete

* When Complete Bits are cleared, Error/Failure Bits of each operation are also Input
← Read Complete
cleared. Output
Read Complete Clear

Input
← OUT1 Status (OK)*1
Address 2 Bank number Input
← OUT2 Status (ERROR)*1
Input
← Read Data Ready Count*2 m m+1 m m+1
Address Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Input m m+1 m m+1
← Read Data Update Count*2
2
Input Read data ERROR
← Read Data and Data Size

Address Bit Name Description Data contents Data type 1 "Read Request" is set to ON (1).
Input a bank number here and Parameter 2 When the code is read, its data is written into "Read data." Then "Read
then start reading. Then, reading bank Complete" goes ON (1).
2 Bank number UINT
is completed with the parameter number: 3 "Read Request" is set to OFF (0). If the code cannot be read, the data is
bank specified. 1 to 10* written.
4 It is confirmed that "Read Complete" is ON (1), and then "Read Complete
* If inputting a parameter bank number other than 1 to 10 to start reading, then the Clear" is set to ON (1).
alternate reading function operates. 5 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to
OFF (0).
6 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete
List of error codes Clear" is set to OFF (0).
Example 2) When an HR-100/BL-N70RK/BL-N70RKE or similar handheld
Error code Type of error Error description
scanner is connected to the N-L20. Handshaking: Disabled.
0 No error -
Input : PLC ← N-L20
Values with 100 added to the "Command communication ←
100 to 199 Command error Output : PLC → N-L20
response error code" (page 9-4) are applicable. →

Another operation instruction was received during Attribute Signal name When reading successful When reading fails
Operation
120 operation. In this case, the incoming instruction is not Trigger input
instruction error
completed. Input Barcode/2D code
← Read Complete
Bank number
102 The parameter bank number specification is invalid. Input Read Complete
error ←
Output
→ Read Complete Clear
EIP data update Read data larger than the specified size in the cyclic
230 Input
error communication was received. ← OUT1 Status (OK)
Input
← OUT2 Status (ERROR)
Input Read Data Ready Count m m+1 m

Input Read Data Update Count m m+1 m

Input Read Data and Data Size Read data

 When reading is successful


1 Pull the handheld scanner's trigger to start reading.
2 When the code is read, its data is written into "Read data." "Read
Complete" is set to ON (1).
3 It is confirmed that "Read Complete" is ON (1), and then "Read Complete
Clear" is set to ON (1).
4 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to
OFF (0).
5 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete
Clear" is set to OFF (0).

25 E N-L20 UM
Example 3) Trigger method: Level trigger. Handshaking: Enabled.
Attribute
Output
Signal name When reading successful When reading failed
7-3 Message Communication
→ Read Request
Barcode/2D code
Read Complete
Input

Read Complete Message Communication
Output Read Complete Clear

Input
Message communication is a function that uses objects and services (Service
Read Data Update Available
Output

Code) prepared in the EtherNet/IP device and then issues and transmits
Read Data Update Permitted
→ commands arbitrarily. Message communication is used for applications such as
Input
reading and writing adaptor device settings.
Read Data Update Complete

Input

OUT1 Status (OK)*1
There are established standard items, as well as device specific items in the
Input

OUT2 Status (ERROR NG)*1
objects and services in message communication.
Input

Read Data Ready Count*2 m m+1 m m+1
The N-L20 uses specific objects and services and can perform operations such
as parameter reading/writing and resetting.
Input Read Data Update Count*2 m m+1 m m+1

Input Read Data and Data Size Read data ERROR

Reference The N-L20 message communication function is compatible with
 When reading is successful UCMM (unconnected type) and CLASS 3 (connected type).
1 "Read Request" is set to ON (1).
 Objects and services
2 When the code is read, "Read Complete" and "Read data update enable"
go ON (1). In message communication, data are sent and received using objects and
3 "Read Request" is set to OFF (0). If the code cannot be read, the data is services.
written.
When services for N-L20 objects are executed, data output, settings reading, and
4 It is confirmed that "Read Complete" is ON (1), and then "Read Complete
Clear" is set to ON (1). specified operations are executed.
5 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to
OFF (0).  Message communication basic format
6 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete During message communication, the PLC and the N-L20 communicate by
Clear" is set to OFF (0).
7 It is confirmed that "Read Data Update Available" is ON (1), and then sending and receiving Explicit messages. When an Explicit message command is
"Read Data Update Permitted" is set to ON (1). sent from the PLC, the N-L20 sends a response to the PLC.
8 When "Read Data Update Permitted" is set to ON (1), the data is written
into "Read data." "Read Data Update Complete" is set to ON (1).  Commands
9 It is confirmed that "Read Data Update Complete" is ON (1), and then
"Read Data Update Permitted" is set to OFF (0). Item Description
10 When "Read Data Update Permitted" is set to OFF (0), "Read Data Update Service code Specifies the Service.
Available" and "Read Data Update Complete" are set to OFF (0). Class ID Specifies the Class ID according to service.
Instance ID Specifies the Instance ID according to service.
Point • The signal directions are indicated as shown below. Attribute ID Specifies the Attribute ID according to service.
Input
: PLC  N-L20 Service data Specifies the Service Data according to service.

Output  Responses

: PLC  N-L20
• The following describes OUT1 and OUT2 operation when the SR-700 Item Description
Series and BL-1300 Series operation settings and Multi I/O settings
are in their factory default settings. General status Returns the General Status in response to the command.
• The "Read Data Ready Count" and "Read Data Update Count" values (1 byte) Returns 00H when operation is successful.
may differ depending on the operation status and communication Additional status
frequency. Returns Additional Status.
(2 bytes)
For example, when a code is read and then the reading of the next
code finishes before the updating of the PLC data finishes, the result Service response Returns the result data in response to the command.
data ready count will be larger than the expected value by one.
• If "Read Request" is set to ON/OFF at high speed while the EtherNet/  Message communication operation
IP cyclic cycle (RPI) is slow, the N-L20 may not be able to detect the
change between the rising and falling edge of "Read Request."
• The N-L20 is equipped with a 10 KB send buffer.
• Because a send buffer is present, even if the data processing on the Send the command.
PLC is unfinished during handshake processing, the next reading
operation can be completed.
• When read data is still present in the N-L20 during handshake
processing, even if "Read Data Update Permitted" of the PLC is OFF Send the response.
(0), "Read Data Update Available" of the N-L20 remains in the ON (1)
state.
Until "Read Data Update Available" is set to OFF (0), repeatedly switch
"Read Data Update Permitted" of the PLC between ON (1) and OFF (0). Commands are sent from the PLC to execute services on the N-L20. The N-L20
• If the data stored on the N-L20 is unnecessary during handshake
processing, you can delete all the data from the send buffer by sends back responses as service execution results. The service code, class ID,
sending the send buffer clear command (%BCLR) from the command instance ID, and attribute ID are specified in the commands that are sent. The
port. setting value (service data) is necessary when writing parameters.
• "One-shot trigger" cannot be used on a code reader connected to the
N-L20. Always use "Level trigger."
• When an HR-100/BL-N70 Series or similar handheld scanner is Command Response
connected to the N-L20, you cannot use the "Reading Start Request" Service code General status
bit. To start reading, pull the handheld scanner's trigger. Class ID Additional status
Instance ID Service response data
Attribute ID
Service data

* The attribute ID and service data may not be necessary depending on the
command used.
Service response data may not be generated depending on the command
used.

E N-L20 UM 26
N-L20 Series Settings Service Objects

1 Open the [Ethernet] tab.  Object configuration

2 Enter the [IP address] and [Subnet Mask] settings to assign to the
Class ID
105
Object name
AutoID Communication
Description
Object which delivers the N-L20 status and parameter
N-L20. (0x69) Unit Object* writing/reading.
1 Object which delivers general information, main unit
Identity Object
(0x01) reset, etc.

* The [AutoID Communication Unit Object] is not an object within EtherNet/IP


standards but rather it is an object that KEYENCE developed to make the N-L20
easier to operate.

 Reading the object table


 Attribute
(1) (2) (3) (4)
Response parameter
Instance Attribute
3 Start the [Setup Wizard]. ID ID
Name Data
Type
Description

4 STEP 1 Select the trigger input method. bit4: OUT1 Status


1 108 OUT bit5: OUT2 Status
5 STEP 2 Select [Field network/PLC]. (0x01) (0x6C) Status
UINT
bit6: OUT3 Status
bit7: OUT4 Status
6 STEP 3 Select [EtherNet/IP].

7
Item Description
STEP 4 Configure the detailed EtherNet/IP settings. (1) Instance ID The instance ID is shown in decimal (hexadecimal).
(2) Attribute ID The attribute ID is shown in decimal (hexadecimal).
(3) Name Denotes the attribute name.
(4) Response Displays the receiving parameter's data type and each parameters
parameter description.

 Service

(1) (2) (3) (4) (5)


Data handshake Set whether to implement handshake processing.
Set this to a value that is the maximum amount of read data + Service data
Input assembly data size Instance Service
44 bytes or higher. *1 ID code Data Name Description
Data
Output assembly data size Specify a value of 6 bytes or higher. *1 type
You can change the order in which data is stored in memory. 1 Bank Read
0x4B UINT Starts reading.
Byte swapping Disable: Low order to high order (0x01) Number Start
Enable: High order to low order
*1 Increase the value according to the number of digits in the read data or Item Description
preset data. (1) Instance ID The instance ID is shown in decimal (hexadecimal).

8 Exit the [Setup Wizard].


(2) Service code
(3) Service data
The service code is shown in decimal (hexadecimal).
Displays the type of the service data and service data description.
9 Click [Send Configuration]. (4) Name Displays the service name.
(5) Description Displays the service function description.

 Data type
The data types are defined as follows.
Range
Data type Description
Min. Max.
BOOL Boolean 0: FALSE 1: TRUE
SINT Short integer -128 127
INT Integer -32768 32767
DINT Double precision integer -231 231-1
LINT Long integer -263 263-1
USINT Unsigned short integer 0 255
UINT Unsigned integer 0 65535
UDINT Unsigned double precision integer 0 232-1
ULINT Unsigned long integer 0 264-1
String String (1 byte/character) - -
SSTRING String (1 byte/character) - -
BYTE Bit sequence: 8-bit - -
WORD Bit sequence: 16-bit - -
DWORD Bit sequence: 32-bit - -
LWORD Bit sequence: 64-bit - -

27 E N-L20 UM
 Object details Operation Examples
AutoID Communication Unit Object Class ID: 105 (0x69) (1) Start reading (Read Start)
• Command • Response
 Attributes Class ID 105 (0x69) General response -
Instance ID 1 Additional status -
Instance Attribute Response parameter
ID ID
Name Service code 75 (0x4B) Service data -
Data Description
Attribute ID -
bit0 : Error
bit1 : Result Data Available Service data UINT: Bank number
bit2 : Result Data Strobe (2) Stop reading (Read Stop)
bit3 to 5 : Reserved
bit6 : Buffer Overflow Error • Command • Response
bit7 : General Error Class ID 105 (0x69) General response -
UINT
bit8 : BUSY
Instance ID 1 Additional status -
100 bit9 to 10 : Reserved
Read Status Service code 76 (0x4C) Service data -
(0x64) bit11 : MODE BUSY
bit12 : ERR BUSY Attribute ID -
bit13 : FILE BUSY Service data UINT: Bank number
bit14 to 15 : Reserved
(3) Get result data
UINT bit0 : Read Complete
UINT Reserved • Command • Response
UINT Reserved Class ID 105 (0x69) General response -
1 Instance ID 1 Additional status -
bit0 : IN1
(0x01) bit1 : IN2 Service code 85 (0x55) UINT: Result Data
bit2 to 3 : Reserved
Attribute ID - Size
108 bit4 : OUT1
IN/OUT Status UINT UINT: Data size Service data UINT: Rest Result
(0x6C) bit5 : OUT2 Service data
UINT: Offset Data Size
bit6 : OUT3
BYTE[]:Result Data
bit7 : OUT4
bit8 to 15 : Reserved (4) Get attribute (Get Attribute Single)
110 UINT Result Data Ready Count
Result Data Count • Command • Response
(0x6E) UINT Result Data Update Count
Class ID 105 (0x69) General response -
111
General Error Code UINT General Error Code Instance ID 1 Additional status -
(0x6F)
128 Result Data Ready Service code 14 (0x0E)
UINT Result Data Ready Count Service data Attribute parameters
(0x80) Count Attribute ID Attribute ID
129 Result Data Update Service data -
UINT Result Data Update Count
(0x81) Count

 Service

Instance Service Service data


Name Description
ID code Data type: Data
14 Get_Attribute_
- Obtains the attribute's one item.
(0x0E) Single
16
- Obtains the attribute's one item.
(0x10)
75 UINT: Bank
Read Start Starts reading.
(0x4B) Number
76
- Read Stop Stops reading.
(0x4C)
83
- Error Clear Clears the error.
(0x53)
Acquires read data.
1
UINT: Result
(0x01) 85 Get Result Response data
Data Size
(0x55) Data UINT : Result Data Size
UINT: Offset
UINT : Rest Result Data Size
BYTE[] : Result Data
Clears the following information:
• Result Data Ready Count
86 Sequence • Result Data Update Count
-
(0x56) Reset • Main unit statistical information
• Buffering data
• Sequence bit
Read
90 Read completion notification and read
- Complete
(0x5A) failure notification clear
Clear

Identity Object Class ID: 1 (0x01)

 Service

Instance Service Service data


Name Description
ID code Data (Data type)

5
1 - Reset Executes hardware reset.
(0x05)

E N-L20 UM 28
7-4 Reference Programs  Message communication
• Error clear operation
R30700
Message communication
For the KV Series REQ start request
' Data are stored using the box script.

' Data can also be stored with the MOV command.
 Cyclic communication
DM0 = 192 ' IP address the first byte (arbitrary)
 Without handshaking DM1 = 168 ' IP address the second byte (arbitrary)
DM2 = 100 ' IP address the third byte (arbitrary)
(O) : Output Assemblies DM3 = 100 ' IP address the fourth byte (arbitrary)
(I) : Input Assemblies DM4 = 83 ' service cord (0x53)
DM5 = 105 ' class ID (0x69)
REQ DM6 = 1 ' instance ID (0x01)
(O) Read Request
Row 1 DM7 = 0 ' attribute ID (0x00)
DM100 = 0 ' Sent data in message communication
R30700 R31700
(I) Read Complete BMOV
Message communication Message communication
W06 DM1000 #100 REQ start request complete
Row 2 ↑ Result Data U_MSGSND KV-5500
↑ Message
Unit No. communication
#0 DM0
R30700
(I) Read Complete U_MSGSND KV-5500
(O) Read Complete Clear
Message
Row 3 Unit No. communication
#0 DM100

R30700
Row 1 : This starts Read Request and starts reading. Message communication
Row 2 : When Result Complete is ON, the data written to Result Data are start request

copied to DM1000.
Row 3 : When Read Complete is ON, Read Complete Clear turns ON.
The errors on the N-L20 are cleared. The following items are cleared.
• Buffer overflow
 With handshaking • General errors
(O) : Output Assemblies • Result Data Available
• Read data
(I) : Input Assemblies

REQ (I) Read Request


Row 1 • Software reset operation
R30700
Message communication
(I) Read Data Update Available (I) Read Data Update Complete (O) Read Data Update Permitted
REQ start request
Row 2 ' Data are stored using the box script.

' Data can also be stored with the MOV command.

(O) Read Data Update Permitted DM0 = 192 ' IP address the first byte (arbitrary)
DM1 = 168 ' IP address the second byte (arbitrary)
DM2 = 100 ' IP address the third byte (arbitrary)
DM3 = 100 ' IP address the fourth byte (arbitrary)
DM4 = 5 ' service cord (0x05)
(I) Read Data Update Complete BMOV
DM5 = 1 ' class ID (0x01)
W06 DM1000 #100
Row 3 ↑ DM6 = 1 ' instance ID (0x01)
DM7 = 0 ' attribute ID (0x00)
DM100 = 0 ' Sent data in message communication
(I) Read Complete R30700 R31700
(O) Read Complete Clear
Message communication Message communication
Row 4 REQ start request complete
U_MSGSND KV-5500
↑ Message
Unit No. communication
#0 DM0
Row 1: When the trigger (REQ) signal turns ON, Read Request turns ON. R30700
U_MSGSND KV-5500
Row 2: When Read Data Update Available turns ON and Read Data Update
Message
Complete turns OFF, Read Data Update Permitted turns ON. Unit No. communication

Read Data Update Permitted is self-retained. #0 DM100

* Read Data Update Available turns ON when read data is buffered in R30700
Message communication
the N-L20. start request

Row 3: When Read Data Reception Complete turns ON, the data for the
specified bytes are transferred from the read data to DM1000.
* Read Data Update Complete turns ON when the writing of read data
from the N-L20 to the PLC is complete. The N-L20 restarts.
Row 4 : When Read Complete turns ON, Read Complete Clear turns ON.

29 E N-L20 UM
Control Logix/Compact Logix (RSLogix 5000) For the Micro Logix (RSLogix 500)
 Cyclic communication  Message communication
 Without handshaking MSG
B9:0/0 N25:1/0 N25:1/1 Communication Command CIP Generic
Size in byte(Receive) 0
(O) : Output Assemblies Rung1 ONS / / Data Table Address(Receive) - ( EN )
(I) : Input Assemblies Size in byte(Send) 2
Data Table Address(Send) N11 ( DN )
Service Custom
REQ Service Code 4b(Hex) ( ER )
(O) Read Request Class 69(Hex)
Rung1 ( ) Instance 1
Attribute 0

(I) Read Complete MSG(MG22)


Source (I)Result Data[0]
T10:1/DN Communication Command CIP Generic
Rung2 ONS Dest READ_DATA[0]
Size in byte(Receive) 8
Length (I)Result Data Size Rung2 ONS Data Table Address(Receive) N25 ( EN )
Size in byte(Send) 0
(O) Read Complete Data Table Address(Send) - ( DN )
(O) Read Complete Clear Service Get Attribute
Rung3 ( ) Single Service Code ( ER )
E(Hex)
Class 69(Hex)
Instance 1
Rung1 : This starts Read Request and starts reading. Attribute 64

Row 2 : When Result Complete is ON, the data written to Result Data are Timer
( U )
copied to DM1000.
MSG(MG23)
Rung3 : When Read Complete is ON, Read Complete Clear turns ON. N25:1/0 Communication Command CIP Generic
Size in byte(Receive) 100
Rung3 ONS Data Table Address(Receive) N27 ( EN )
Size in byte(Send) 4
 With handshaking N25:1/1 Data Table Address(Send)
Service
N26
Custom
( DN )

Service Code 55(Hex) ( ER )


Class 69(Hex)
(O) : Output Assemblies
Instance 1
(I) : Input Assemblies
Attribute 0

REQ
(O) Read Request MSG(MG20)
Rung1 ( ) MG23:0/DN Communication Command CIP Generic
Size in byte(Receive) 0
Rung4 ONS Data Table Address(Receive) - ( EN )
(I) Read Data Update Available (I) Read Data Update Complete Size in byte(Send) 0
(O) Read Data Update Permitted Data Table Address(Send) - ( DN )
Rung2 / ( ) Service Custom
Service Code 5A(Hex) ( ER )
Class 69(Hex)
(O) Read Data Update Permitted Instance 1
Attribute 0

(I) Read Data Update Complete MSG (MG24)


B9:0/1 Communication Command CIP Generic
Source (I) Read Data [0]
Rung3 ONS Size in byte(Receive) 0
Dest READ_DATA[0] Rung5 ONS Data Table Address(Receive) - ( EN )
Length (I) Read Data Size Size in byte(Send) 0
Data Table Address(Send) - ( DN )
Service Custom
(I) Read Complete Service Code 4C(Hex)
(O) Read Complete Clear ( ER )
Class 69(Hex)
Rung4 ( ) Instance 1
Attribute 0

TON

Rung6 Timer T10:1


Time Base 0.01
Preset 100 ( DN )

Rung 1: When the trigger (REQ) signal turns ON, Read Request turns ON.
Rung 2: When Read Data Update Available turns ON and Read Data Update Description of the reference program
Complete turns OFF, Read Data Update Permitted turns ON.
Rung1 : When Read Complete and Read Failure are OFF, the read start
Read Data Update Permitted is self-retained. message is sent at the rising of B9:0:0.
* Read Data Update Available turns ON when read data is buffered in Rung2 : For each timeout of the timer, Get Attribute Single is performed for
the N-L20. Read Status.
Rung3: When Read Data Update Complete turns ON, the read data is The result is written to Read Status Res.
transferred to READ_DATA. Rung3 : Result Status Res[1].0(Read Complete) Executes obtain result data.
The result is written to Read Data Res.
* Read Data Update Complete turns ON when the writing of read data
Rung4 : Execute Read Complete Clear.
from the N-L20 to the PLC is complete. Rung5 : This starts B9:0/1 and sends the read end message.
Rung 4: When Read Complete turns ON, Read Complete Clear turns ON. Rung6 : The timer is being performed to perform Rung2.

Description of tags used in the sample Description of tags used in the sample

Name Data type Description Name Data type Description

REQ BOOL Bit to order to start/stop reading B9:0/0 Binary Bit to order to start/stop reading

READ_DATA SINT[256] Memory to store read data T10 Timer Timer


N11 Integer Memory that stores Bank No.
MG21 Message to perform Read Start
Message to perform Get Attribute Single for Read
MG22
Message Status
MG23 Message to perform Get Result Data
MG24 Message to perform Read Stop
Memory that stores Get Attribute Single result of
N25 Integer
MG22
N26 Integer Message command to receive the result data
N27 Integer Memory that stores Get Result Data result of MG23
RIX31 Extended Routing Information for MG21
Extended
RIX32 Extended Routing Information for MG22
Routing
RIX33 Extended Routing Information for MG23
Information
RIX34 Extended Routing Information for MG24

E N-L20 UM 30
• Error clear operation
MSG
8-1 PROFINET Overview
Communication Command CIP Generic
Size in byte(Receive) 0
ONS ( EN )
Data Table Address(Receive) -
Size in byte(Send)
Data Table Address(Send)
0
- ( DN ) What Is PROFINET?
Service Custom
Service Code
Class
53(Hex)
69(Hex)
( ER ) PROFINET is the open communication standard specified by PI (PROFIBUS &
Instance 1 PROFINET International). PROFINET compatible devices can communicate with
Attribute 0 each other regardless of vendor. The N-L20 is compliant with Conformance Class
A.
The errors on the N-L20 are cleared. The following items are cleared.
• Buffer overflow List of Supported PLCs
• General errors
• Result Data Available  Siemens PLCs
• Read data
PLC series Software Version
S7-300/400 STEP 7 V5.5.0.0 and later versions
• Software reset operation
S7-1200/1500 STEP 7 Professional TIA Portal V13 or later
MSG
Communication Command CIP Generic
ONS
Size in byte(Receive)
Data Table Address(Receive)
0
-
( EN ) N-L20 PROFINET Communication Specifications
Size in byte(Send) 0
Data Table Address(Send) - ( DN )
Service Custom Communication type PROFINET IO
Service Code 5(Hex) ( ER )
Class 1(Hex) Communication cycle 8 ms or more
Instance 1 GSDML file version 2.3
Attribute 0

Usable Functions
The N-L20 restarts.
Function Description
Controls timing input ON/OFF.
Timing input control Inputs can also be made when the parameter bank of the
SR-700 Series is specified.
Data handshake Whether to write read data to PLC can be controlled.
Errors that occurred on the main unit can be checked.
Error handling After eliminating error factors, the N-L20 can be restored from
the error state.
Statistical information
Read count and read data update count can be checked.
acquisition
Operation status acquisition Read data can be acquired and I/O status can be checked

31 E N-L20 UM
8-2 Cyclic Communication N-L20 Settings

1 Open the [Ethernet] tab.


 Cyclic communication
Cyclic communication is a high-speed communication method in which data is sent 2 Enter the [IP address] and [Subnet Mask] settings to assign to the
and received periodically at intervals ranging from milliseconds to tens of N-L20.
milliseconds. Also, you can control the N-L20 by referencing and updating variables
and devices within the PLC. This makes it easy to write PLC-side programs.
When communicating cyclically via PROFINET with the N-L20, N-L20 functions are
assigned to the PLC devices.

SIMATIC
S7-300

N-L20 information area N-L20 information area

Reading result Reading result

Handshake information Handshake information

Device status Device status


3 Start the [Setup Wizard].

Busy/error information Busy/error information 4 STEP 1 Select the trigger input method.
Statistical information
Communication cycle
Statistical information
5 STEP 2 Select [Field network/PLC].
Set with PLC
6 STEP 3 Select [PROFINET].

PLC instruction area PLC instruction area 7 STEP 4 Configure the detailed PROFINET settings.
Reading instruction Reading instruction

Handshake instruction Handshake instruction

Important • Communication settings such as the communication cycle and data


size are set in the PLC. When there is a large load in the network
which connects many devices including PROFINET devices, delays or
packet loss may occur. Perform thorough verification before Data handshake Set whether to implement handshake processing.
operation.
• The maximum read length is 246 digits. Device name Set the device name used with PROFINET.

8 Exit the [Setup Wizard].

9 Click [Send Configuration].

 PROFINET device name rules


• You cannot use the same device name for multiple devices on the same
network.
• Device name length is from 1 to 240 characters.
• Only [a to z] (lowercase alphabet characters) [0 to 9] (numbers), [-] (hyphen),
and [.] (period) can be used for device names.
• You cannot use device names in IP address format. (n.n.n.n, n = 0 to 999)
• The length of one label is from 1 to 63 characters.
• The [-] (hyphen) cannot be used at the beginning of labels.
• The [-] (hyphen) cannot be used at the end of labels.
• The first label cannot be named "port-xyz" or "port-xyz-abcde."
(a, b, c, d, e, x, y, z = [0 to 9] (numbers)).
• You cannot use labels that start with "xn-."
• You cannot use labels that start with a number.

E N-L20 UM 32
Q address output address PLC  N-L20
Memory Maps
 Bit area
I address input address PLC  N-L20
In the following areas, information is divided by bit.
Information is represented with 0 or 1.
 Bit area Module Bit
Slot Size Name Description Data contents Remarks
In the following areas, information is divided by bit. name address
0 (Reserved) Reserved area
Information is represented with 0 or 1.
01: Writing to
Module Bit result data This functions only
Slot Size Name Description Data contents Remarks Result data update
name address 1 Result Data Latch device when handshake is
permitted
0 : No error permitted enabled.
0 Error Error status indication 10: -
1 : Error
Read data The following error
0 : No read data Only when data statuses and data are
Result Data Transmission buffer
1 1 : Read data handshake is cleared.
Available retention status
available enabled*1 • Buffer Overflow
indication Latch and
01: Read data 10 1 byte Error Clear Error
Handshake Read data Control Bits • General error
update
and General 2 Result Data Strobe PLC update • Result data
1 1 byte complete
Error Status complete flag 01: Error clear
10: - 7 Error Clear Error clear acquisition
Bits 10: -
Buffer overflow error count
Buffer Overflow 0 : No error • Result data
6 Cleared by Error
Error 1 : Error
Clear Bit update count
SR operation failure • Result data
error 0 : No error stored in the
7 General Error
Cleared by Error 1 : Error transmission
Clear Bit buffer
OR of each BUSY 0 : No BUSY status Operation When specifying the
0 BUSY 01: Start reading
signal 1 : BUSY status 11 1 byte instruction 0 Read Request Reading start request bank, specify to Bank
10: Stop reading
BUSY Status 0 : No MODE BUSY Control Bits Number module.
2 1 byte
Bits Main unit in MODE status Read completion
3 MODE BUSY Completion
BUSY status 1 : MODE BUSY Read Complete Reading complete 01: Complete clear notification and read
status 12 1 byte Clear Control 0 Clear clear 10: - failure notification
Bits
Cleared when the clear
Read operation
Completion 0 : Incomplete status clear bit is set
3 1 byte 0 Read Complete completion
Status Bits
notification
1 : Complete or a subsequent  Word area/byte area
operation starts.
Input terminal 1 0 : OFF In the following areas, information is represented with the following units.
0 IN1 Status
status 1 : ON • Word areas: Areas where 0 to 65535 is represented as a 2-byte unsigned
Input terminal 2 0 : OFF
1 IN2 Status
status 1 : ON
integer
Output terminal 1 0 : OFF • Byte area : Areas where a character code such as ASCII code is represented
4 OUT1 Status
Terminal status 1 : ON
5 1 byte Module Word
Status Bits Output terminal 2 0 : OFF Slot Size Name Description Data contents Remarks
5 OUT2 Status name address
status 1 : ON
Output terminal 3 0 : OFF Bank Number
6 OUT3 Status • For reading start
status 1 : ON
Output terminal 4 0 : OFF Parameter request
7 OUT4 Status 13 2 byte Bank 0 Bank Number Bank Numberr 1 to 10 1 to 10:
status 1 : ON
Number Bank setting read
*1 Handshake is a communication procedure to make the permission system for read data Other than 1 to 10:
Alternate read
writing.

 Word area/byte area


In the following areas, information is represented with the following units.
• Word areas: Areas where 0 to 65535 is represented as a 2-byte unsigned
integer
Error List
• Byte area : Areas where a character code such as ASCII code is represented
Slot Size
Module Word
Name Description Data contents Remarks Error code Error Meaning
name address
0 No error Reading success/operation success
Operation General Error Refer to List of error
8 20 byte 8 General error code Error code Another operation instruction was received
Result Status Code codes.
Control instruction reception
Result Data Ready Result data reception 120 during operation. (Operation instruction is not
0 The number returns error
Count count completed.)
to 0 if it exceeds
Result Data Result data update 65535. The bank number specification is invalid
1 Update Count count 102 Bank No. error
• Read Data (other than 1 to 10).
Result data size
32Byte 3 Result Data Size Shortage of specified size (Result data and
(byte) 230 PROFINET data update error
• Read Data
• When append present data size is beyond the limit.)
8+ 64Byte
Byte area data has been
(data • Read Data
9 • 32 set, the append
size) 128Byte
byte bytes data is output.
• Read Data
• 64 • When the silent
246Byte
bytes Result Data Result data output
* Select one Result data output mode is set, this
(Array of bytes)
of them. • 128 area is not
bytes updated.
• 246 • NULL (0x00) is
bytes appended after
result data.

33 E N-L20 UM
Example 3) Trigger method: Level trigger. Handshaking: Enabled.
Operation Examples
Attribute Signal name When reading successful When reading fails
Example 1) Trigger method: Level trigger. Handshaking: Disabled. Output
→ Read request
Barcode/2D code
Input
← : PLC ← N-L20 Read Complete
Output Input Read Complete
→ : PLC → N-L20 ←
Output Read Complete Clear
Attribute Signal name When reading successful When reading fails →
Output Input Result Data Available
→ Read request

Barcode/2D code Output Result Data Latch
Read Complete →
Input Read Complete Input Result Data Strobe
← ←
Output Read Complete Clear Input OUT1 Status(OK)*1
→ ←
Input OUT1 Status(OK)*1 Input OUT2 Status(ERROR)*2
← ←
Input OUT2 Status(ERROR)*2 Input Read Data Ready Count *2 m m+1 m m+1
← ←
Input Read Data Ready Count *2 Input Read Data Update Count *2 m m+1 m m+1
← m m+1 m m+1 ←
Input Read Data Update Count *2 Input Result Data Read Data ERROR
m m+1 m m+1
← ←
Input Result Data
← Read Data ERROR
1 "Read request" is set to ON (1).
2 When "Read request" goes ON (1), the HEAD connected to the N-L20
 When reading is successful
starts reading.
1 "Read request" is set to ON (1).
3 When the code is read, "Read Complete" and "Result Data Available" go
2 When "Read request" goes ON (1), the HEAD connected to the N-L20
starts reading. ON (1).
3 When the code is read, its data is written into "Read Data." Then "Read 4 "Read request" is set to OFF (0).
Complete" goes ON (1). 5 It is confirmed that "Read Complete" is ON (1), and then "Read Complete
4 "Read request" is set to OFF (0). Clear" is set to ON (1).
5 It is confirmed that "Read Complete" is ON (1), and then "Read Complete 6 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to
Clear" is set to ON (1). OFF (0).
6 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to 7 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete
OFF (0). Clear" is set to OFF (0).
7 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete 8 It is confirmed that "Result Data Available" is ON (1), and then "Result Data
Clear" is set to OFF (0). Latch" is set to ON (1).
9 When "Result Data Latch" is set to ON (1), the data is written into "Result
Example 2) When an HR-100/BL-N70RK/BL-N70RKE or similar handheld Data." "Result Data Strobe" is set to ON (1).
scanner is connected to the N-L20. Handshaking: Disabled. 10 It is confirmed that "Result Data Strobe" is ON (1), and then "Result Data
Latch" is set to OFF (0).
Input : PLC ← N-L20
← 11 When "Result Data Latch" is set to OFF (0), "Result Data Available" and
Output : PLC → N-L20
→ "Result Data Strobe" are set to OFF (0).
Attribute Signal name When reading successful When reading fails
Trigger input
Point • The signal directions are indicated as shown below.
Barcode/2D code
Read Complete Input
Input Read Complete  : PLC  N-L20

Output
Output

Read Complete C

: PLC  N-L20
Input

OUT1 Status(OK) • The following describes OUT1 and OUT2 operation when operation
Input OUT2 Status(ERROR) settings of the HEAD connected to the N-L20 and Multi I/O settings are

Input
in their factory default settings.
Read Data Ready Count

m m+1 m
• The "Read Data Ready Count" and "Read Data Update Count" values
Input

Read Data Update Count m m+1 m may differ depending on the operation status and communication
Input Read data
frequency.
Result Data
← For example, when a code is read and then the reading of the next
code finishes before the updating of the PLC data finishes, the result
 When reading is successful data ready count will be larger than the expected value by one.
• "One-shot trigger" cannot be used on a code reader connected to the
1 Pull the handheld scanner's trigger to start reading. N-L20. Always use "Level trigger."
2 When the code is read, its data is written into "Read Data." "Read • When an HR-100/BL-N70 Series or similar handheld scanner is
Complete" is set to ON (1). connected to the N-L20, you cannot use the "Read request" bit. To
3 It is confirmed that "Read Complete" is ON (1), and then "Read Complete start reading, pull the handheld scanner's trigger.
Clear" is set to ON (1).
4 When "Read Complete Clear" is set to ON (1), "Read Complete" is set to
OFF (0).
5 It is confirmed that "Read Complete" is OFF (0), and then "Read Complete
Clear" is set to OFF (0).

E N-L20 UM 34
A-1 Specifications A-2 Dimensions
Unit: mm
 General specifications
Model N-L20 38.9
Power supply for the code 52
5 VDC ± 5% (650 mA)
reader
11 LEDs
35.9
Display (head RD, head SD, Ethernet Link, Power (capable of
multi-color representation), 6 I/O terminals, Error)
Ambient temperature 0 to 50C (No freezing)
Environment resistance

0
R4
Ambient storage
-20 to 60C (No freezing)
temperature 113
Relative humidity 35 to 85%RH (No condensation)
Operating 60
No dust or corrosive gases present ( 74.2 )
environment
10 to 55 Hz, complex amplitude 0.3 mm,
Vibration
2 hours in each of X, Y, and Z directions
Power voltage 24 VDC (+10%, -20%)
Rating

( 148.1 ) 3.5
Current consumption 380 mA or less
Weight Approx. 150 g

 I/O specifications
Number of inputs 2 (IN1 and IN2)
Input type Bidirectional voltage input
Input Input maximum rating 26.4 VDC
Minimum ON voltage 15 VDC
Terminal Maximum OFF current 1 mA
block Number of outputs 4 (OUT1 to 4)
Output format Photo MOS relay output
Output Rated load 30 VDC, 100 mA
Leakage current when OFF 0.1 mA or less
Residual voltage when ON 1 V or less

 Communication specifications
Connector 1 (12-pin round connector)
Communication
RS-232C compliant
standards

Head Communication rate 4800, 9600, 19200, 38400, 57600, 115200 bps
interface Data bit length 7/8 bits
Parity check None/even/odd
Stop bit length 1/2 bits
Flow control Hardware flow control (mandatory)
Connector 1 (RJ-45)
Communication
IEEE802.3 compliant 10BASE-T/100BASE-TX
standards
Ethernet
TCP, UDP, FTP, BOOTP, EtherNet/IP, PROFINET,
Supported protocols
KVSTUDIO, MC Protocol, OMRON PLC-Link
Total extended length 100 m or less
Connector 1 (Mini-B)
USB Communication
USB 2.0 Full Speed
standards

* For the configuration of N-L20 + NX-C08R + SR-700 Series, set the exposure
time to 120 μs or more

 Setup software (AutoID Network Navigator)


Model SR-H6W
Windows 10 Professional or later, 32 bit/64 bit
Windows 8 Professional or later, 32 bit/64 bit (excluding Windows
Supported operating
RT)
system
Windows 7 Professional or later, 32 bit/64 bit
Windows Vista Business/Ultimate SP2 or later, 32 bit*
Processor: 2.0 GHz or higher
Memory: 1 GB for 32 bit and 2 GB for 64 bit
Running environment
DVD-ROM drive: Required for installation
Screen resolution: 1024 × 768 or higher
* The SR-2000/G100 does not support Windows Vista.
• .NET Framework 3.5 SP1 or later must be installed in advance.
• When installing .NET Framework 3.5 on Windows 8/10, an Internet connec-
tion is necessary.
• Use Control Panel to install .NET Framework 3.5 on Windows 8/10.

35 E N-L20 UM
A-3 Troubleshooting Data is not output through the Ethernet interface
• Communication settings confirmation
Check that the settings for communication between the N-L20 and the host
When an error occurs on the L20 device are correct.
"3-2 Communication Settings" (page 6)
Check the POWER LED and ERROR LED on the N-L20 and the LED patterns. • Wiring
LED If you are using a hub or other intermediary device between the N-L20 and the
Operating status host device, remove the intermediary device to establish a direct connection,
POWER ERROR
and then check if it is possible to communicate.
Duplicate IP Address Flashing red Solid red
• Security settings
Send buffer overflow Flashing red Solid orange
Error Check whether communication is being blocked by the security settings of the
PLC link error*1 Flashing red Solid green
network devices.
Other errors*2 Solid green Solid red
• Head and N-L20 Settings
*1 Check the following three points. Check that the settings of the connected code reader and the RS-232C head of
• PLC and N-L20 communication channels (Example: check whether the the N-L20 are compatible.
Ethernet cable is disconnected)
• Check whether the PLC and the N-L20 are set up correctly.
• Check whether the specified N-L20 address exists in the PLC. "ER,**" in the output data
*2 Send the "%ERRSTAT" command to the N-L20 to check the response content.
This message is displayed when a the processing of a command sent to the
N-L20 or the connected head from a PC or PLC fails.
Connect the N-L20 to a PC with a USB cable, send an "%ERRSTAT" command
• Error details
using the AutoID Network Navigator terminal and check the response.
"5-1 Command Communication" (page 13)
 Measures to Handle Response Content

A-4
Message Remedy
file
factparam
Contact your nearest KEYENCE office.
Contact your nearest KEYENCE office.
ASCII Codes
csum Contact your nearest KEYENCE office.
An error occurred during PROFINET communication. Send the %DFLT
profinet command to initialize the settings, and then configure the settings again.
Check the communication between the N-L20 and the PLC. High-order 4 bits

An error occurred because the upper limit of the send buffer was Hexadecimal 0 1 2 3 4 5 6 7
exceeded.
over
Cycle power to the N-L20 or hold down the [FNC] button for at least 3 Binary 0000 0001 0010 0011 0100 0101 0110 0111
seconds.
0 0000 DLE (SP) 0 @ P ‘ p
A duplicate IP address is present on the network.
ip Configure the network settings so that no duplicate IP addresses are 1 0001 SOH DC1 ! 1 A Q a q
present.
An error occurred during an N-L20 firmware update. 2 0010 STX DC2 “ 2 B R b r
update
Cycle power to the N-L20, and then execute update again.
3 0011 ETX DC3 # 3 C S c s
A PLC link error occurred.
plc
Check the communication between the N-L20 and the PLC. 4 0100 EOT DC4 $ 4 D T d t
An error occurred during communication with a host device. Check for
hostconnect 5 0101 ENQ NAK % 5 E U e u
causes of unstable communication.
6 0110 ACK SYN & 6 F V f v
Low-order 4 bits

Unable to install AutoID Network Navigator or the N-L20 7 0111 BEL ETB ‘ 7 G W g w

driver 8 1000 BS CAN ( 8 H X h x

Check the following points, and then install the software again. 9 1001 HT EM ) 9 I Y i y
• Administrator rights A 1010 LF SUB * : J Z j z
To install the software, log on as a user with Administrator rights.
• Security software B 1011 VT ESC + ; K [ k {
The installation may be impeded by security software. Temporarily disable the C 1100 CL FS , < L \ l |
security software.
D 1101 CR GS - = M ] m }

E 1110 SO RS . > N ^ n ~
Unable to connect to AutoID Network Navigator
F 1111 SI US / ? O _ o del
• USB connection
"3-1 Connecting" (page 6)
• Ethernet connection
"3-7 Connect to AutoID Network Navigator over Ethernet" (page 9)

E N-L20 UM 36
A-5 Precautions on Proper Use A-6 Software License
Agreement
 UL certification
The N-L20 has obtained the UL/C-UL certifications.
NOTICE TO USER: PLEASE READ THIS SOFTWARE LICENSE AGREEMENT
• UL File No. E222809
(THIS "AGREEMENT") CAREFULLY. BY USING ALL OR ANY PORTION OF THE
• UL category QUYX/QUYX7
SR-H6W (THIS "SOFTWARE"), YOU ARE AGREEING TO BE BOUND BY ALL THE
TERMS AND CONDITONS OF THIS AGREEMENT. IF YOU DO NOT AGREE TO
Be sure to observe the following installation and environment conditions.
ANY TERMS OF THIS AGREEMENT, DO NOT USE THIS SOFTWARE.
• Pollution degree 2
• Indoor use only.
1. Definition
• Install at an altitude of 2000 m or less.
1.1 "use" or "using" means to access, install, download, copy or otherwise
• Caution - Do not connect directly to the branch circuit. This product benefit from using the functionality of this Software.
must be supplied power by a suitable, approved isolated transformer or 1.2 "This Software" means the software and all associated documentation
power supply not exceeding 200 VA max.
CAUTION • Attention - Ne raccordez pas l'unite directement au circuit de derivation. provided by KEYENCE.
Ce produit doit etre alimente par un transformateur adapte, isole et
approuve ou une alimentation ne depassant pas 200 VA. 2. Grant of License.
Use this product with one of the following power supplies. Conditioned upon compliance with all of the terms and conditions of this
• UL/CSA certified power supply that provides Class 2 output as defined in the Agreement, KEYENCE grants you a nonexclusive and nontransferable
NFPA70 (NEC: National Electrical Code) and CEC (Canadian Electrical license to install this Software on a single computer in order to use the
KEYENCE product. You may make one copy of this Software for backup or
Code).
archive purposes only.
• UL/CSA certified power supply that has been evaluated as a Limited Energy
circuit as defined in UL61010-1 and CAN/CSA-C22.2 No. 61010-1.
3. Restrictions.
• Ensure the circuits to be connected to the input/output terminals are SELV
3.1 Except for installation of updates or new functions provided by
Circuits.
KEYENCE, you may not modify or add any function to this Software.
 FCC regulations 3.2 You may not reverse engineer, decompile or disassemble this
Software.
The N-L20 complies with the following FCC EMI regulations.
3.3 You may not create derivative works based on this Software.
• FCC Part 15 Subpart B, Class A digital devices
3.4 Other than expressly stated by KEYENCE, you may not resell,
 Canada IC (Industry Canada) regulations retransfer, rent or otherwise redistribute this Software to any third
parties.
The N-L20 complies with the following IC EMI regulations.
• ICES-003, Class A digital apparatus
4. Intellectual Property Rights.
 CE marking Except as expressly stated herein, KEYENCE reserves all right, title and
interest in this Software, and all associated copyrights, trademarks, and
Keyence Corporation has confirmed that this product complies with the
other intellectual property rights therein.
essential requirements of the applicable EC Directive, based on the following
specifications.
5. Disclaimer.
Be sure to consider the following specifications when using this product in the
Keyence is licensing this Software to you "AS IS" and without any warranty
Member State of European Union.
of any kind. In no event will KEYENCE or its suppliers be liable to you for
• EMC Directive
any damages, claims, costs or any lost profits caused by using this
* The length of the communication and power cables should be less than 30 m. Software.
These specifications do not give any guarantee that the end-product with this
product incorporated complies with the essential requirements of EMC 6. Termination.
Directive. The manufacturer of the end-product is solely responsible for the 6.1 Your license under this Agreement will terminate automatically if you
compliance on the end-product itself according to EMC Directive. destroy this Software and the copy of this Software in your possession
or voluntarily return this Software to us.
 KC mark (Korea) 6.2 Your license under this Agreement will terminate automatically without
The N-L20 is a KC listed Product. any notice from KEYENCE if you fail to comply with any of the terms
Class A device and conditions of this Agreement. Promptly upon termination, you
This device is a commercial electromagnetic wave generating device (Class A) shall cease all use of this Software and destroy all copies, full or
and is intended for use in locations outside residences. Dealers and users partial, of this Software in your possession or control.
should be aware of this point. 6.3 You will compensate KEYENCE for costs or any lost profits caused by
your violation or breach of any term of this Agreement.
Ͳ匏͑匶匶͑
Ͳ匏 ͑匶匶͙͑櫋怺殯͑愯暧皻柦匶沖
櫋怺殯͑愯暧皻柦匶沖沲 ͚ 7. Governing Law.
7.1 This Agreement will be governed by and construed in accordance
決͑匶匶垚͑櫋怺殯 ͙Ͳ 匏 ͚͑洊沖砒洇穯匶匶嵢昢͑砖廪沖͑嬖垚͑斲殯沖垚͑決͑洖汊 with the substantive laws of Japan without regards to the principles of
渂汞穞柢匶͑愚岂彶 ͑͝儆洛歾汞͑滆櫳櫖昢͑斲殯穞垚͑冉汊͑徯洇求嵢͑穯城埪 ͟ conflicts of law.
7.2 If any part of this Agreement is found void and unenforceable, it will
not affect the validity of the balance of this Agreement, which shall
remain valid and enforceable according to its terms and conditions.

37 E N-L20 UM
A-7 Copyright indications WARRANTIES AND DISCLAIMERS
(1) KEYENCE warrants the Products to be free of defects in materials and
TOPPERS/JSP Kernel workmanship for a period of one (1) year from the date of shipment. If any
Toyohashi Open Platform for Embedded Real-Time Systems/Just Standard models or samples were shown to Buyer, such models or samples were used
Profile Kernel 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
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory samples. Any Products found to be defective must be shipped to KEYENCE
Toyohashi Univ. of Technology, JAPAN with all shipping costs paid by Buyer or offered to KEYENCE for inspection and
examination. Upon examination by KEYENCE, KEYENCE, at its sole option,
The above copyright holders grant permission gratis to use, duplicate, modify, or will refund the purchase price of, or repair or replace at no charge any Products
redistribute (hereafter called use) this software (including the one made by found to be defective. This warranty does not apply to any defects resulting
modifying this software), provided that the following four conditions (1) through (4) from any action of Buyer, including but not limited to improper installation,
are satisfied. improper interfacing, improper repair, unauthorized modification, misapplication
(1) When this software is used in the form of source code, the above copyright and mishandling, such as exposure to excessive current, heat, coldness,
notice, this use conditions, and the disclaimer shown below must be retained moisture, vibration or outdoors air. Components which wear are not warranted.
in the source code without modification. (2) KEYENCE is pleased to offer suggestions on the use of its various Products.
(2) When this software is redistributed in the forms usable for the development of They are only suggestions, and it is Buyer's responsibility to ascertain the
other software, such as in library form, the above copyright notice, this use fitness of the Products for Buyer’s intended use. KEYENCE will not be
conditions, and the disclaimer shown below must be shown without responsible for any damages that may result from the use of the Products.
modification in the document provided with the redistributed software, such as (3) The Products and any samples ("Products/Samples") supplied to Buyer are not
the user manual. to be used internally in humans, for human transportation, as safety devices or
(3) When this software is redistributed in the forms unusable for the development fail-safe systems, unless their written specifications state otherwise. Should any
of other software, such as the case when the software is embedded in a piece Products/Samples be used in such a manner or misused in any way,
of equipment, either of the following two conditions must be satisfied: KEYENCE assumes no responsibility, and additionally Buyer will indemnify
(a) The above copyright notice, this use conditions, and the disclaimer shown KEYENCE and hold KEYENCE harmless from any liability or damage
below must be shown without modification in the document provided with whatsoever arising out of any misuse of the Products/Samples.
the redistributed software, such as the user manual. (4) OTHER THAN AS STATED HEREIN, THE PRODUCTS/SAMPLES ARE
(b) How the software is to be redistributed must be reported to the TOPPERS PROVIDED WITH NO OTHER WARRANTIES WHATSOEVER. ALL
Project according to the procedure described separately. EXPRESS, IMPLIED, AND STATUTORY WARRANTIES, INCLUDING,
(4) The above copyright holders and the TOPPERS Project are exempt from WITHOUT LIMITATION, THE WARRANTIES OF MERCHANTABILITY,
responsibility for any type of damage directly or indirectly caused from the use FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT OF
of this software and are indemnified by any users or end users of this software PROPRIETARY RIGHTS, ARE EXPRESSLY DISCLAIMED.
from any and all causes of action whatsoever. IN NO EVENT SHALL KEYENCE AND ITS AFFILIATED ENTITIES BE LIABLE
THIS SOFTWARE IS PROVIDED "AS IS." THE ABOVE COPYRIGHT HOLDERS TO ANY PERSON OR ENTITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
AND THE TOPPERS PROJECT DISCLAIM ANY EXPRESS OR IMPLIED PUNITIVE, SPECIAL OR CONSEQUENTIAL DAMAGES (INCLUDING,
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, ITS APPLICABILITY TO A WITHOUT LIMITATION, ANY DAMAGES RESULTING FROM LOSS OF USE,
PARTICULAR PURPOSE. IN NO EVENT SHALL THE ABOVE COPYRIGHT BUSINESS INTERRUPTION, LOSS OF INFORMATION, LOSS OR
HOLDERS AND THE TOPPERS PROJECT BE LIABLE FOR ANY TYPE OF INACCURACY OF DATA, LOSS OF PROFITS, LOSS OF SAVINGS, THE
DAMAGE DIRECTLY OR INDIRECTLY CAUSED FROM THE USE OF THIS COST OF PROCUREMENT OF SUBSTITUTED GOODS, SERVICES OR
SOFTWARE. TECHNOLOGIES, OR FOR ANY MATTER ARISING OUT OF OR IN
CONNECTION WITH THE USE OR INABILITY TO USE THE PRODUCTS,
This software uses the following libraries: EVEN IF KEYENCE OR ONE OF ITS AFFILIATED ENTITIES WAS ADVISED
Lua: OF A POSSIBLE THIRD PARTY’S CLAIM FOR DAMAGES OR ANY OTHER
Copyrighy© 1994 -2014 Lua.org, PUC-Rio. 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
Revision History Buyer pertaining to the Products/Samples.
E 1101-3

Date of printing Version Revision contents


 BarcodeReader.com
October 2015 First edition http://www.barcodereader.com/
May 2018 2nd edition Errors have been corrected. You can download technical documents useful for BL/SR/RF introduction and
Description of compatible device models has been operation.
added. Download the latest manual from this Web page.

KEYENCE CORPORATION
1-3-14, Higashi-Nakajima, Higashi-Yodogawa-ku,
Osaka, 533-8555, Japan
PHONE: +81-6-6379-2211
AUSTRIA HONG KONG NETHERLANDS TAIWAN
Ph: +43-2236-378266-0 Ph: +852-3104-1010 Ph: +31-40-20-66-100 Ph: +886-2-2721-8080
BELGIUM HUNGARY PHILIPPINES THAILAND
Ph: +32-15-281-222 Ph: +36-1-802-73-60 Ph: +63-(0)2-981-5000 Ph: +66-2-369-2777
BRAZIL INDIA POLAND UK & IRELAND
Ph: +55-11-3045-4011 Ph: +91-44-4963-0900 Ph: +48-71-36861-60 Ph: +44(0)1908-696-900
CANADA INDONESIA ROMANIA USA
Ph: +1-905-366-7655 Ph: +62-21-2966-0120 Ph: +40-269-232-808 Ph: +1-201-930-0100
CHINA ITALY SINGAPORE VIETNAM
Ph: +86-21-3357-1001 Ph: +39-02-6688220 Ph: +65-6392-1011 Ph: +84-24-3772-5555
CZECH REPUBLIC KOREA SLOVAKIA
Ph: +420-220-1847-00 Ph: +82-31-789-4300 Ph: +421-25939-6461
FRANCE MALAYSIA SLOVENIA
Ph: +33-1-56-37-78-00 Ph: +60-3-7883-2211 Ph: +386-1-4701-666
GERMANY MEXICO SWITZERLAND
Ph: +49-6102-3689-0 Ph: +52-55-8850-0100 Ph: +41-43-455-77-30
Specifications are subject to change without notice.

*763GB-1*
A6WW1-MAN-1038

Copyright (c) 2018 KEYENCE CORPORATION. All rights reserved.


058130E 1068-1 763GB Printed in Japan
E N-L20 UM 38

You might also like