Professional Documents
Culture Documents
Table of Contents
Safety Information for N-L20 ............................................................. 2
Precautions on Proper Use ............................................................... 2
Communication unit
Ethernet connection type Part 1 Basic Operation
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
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
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
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
Ͳ匏͑匶匶͑
Ͳ匏 ͑匶匶͙͑ 櫋怺殯͑愯暧皻柦匶沖
櫋怺殯͑愯暧皻柦匶沖沲 ͚
決͑匶匶垚͑櫋怺殯 ͙Ͳ 匏 ͚͑洊沖砒洇穯匶匶嵢昢͑砖廪沖͑嬖垚͑斲殯沖垚͑決͑洖汊
渂汞穞柢匶͑愚岂彶 ͑͝儆洛歾汞͑滆櫳櫖昢͑斲殯穞垚͑冉汊͑徯洇求嵢͑穯城埪 ͟
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.
1. USB port
PLC IN1
5. Power LED
Input
6. ERROR LED
KV
-B1
6X
C
7. FNC button
HUB
3. Ethernet connection
port
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-100B/101B
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.
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
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
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
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
20 mm 20 mm A B
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 (50C), 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 (50C).
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
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).
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.
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.
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
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.
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.
1 Click [Terminal].
Terminal
1 Click [Terminal].
2 Type a command in the command input field, and then press Enter.
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
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
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
E N-L20 UM 12
5-1 Command Communication Command Communication Process
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
Configuration confirmation
Send command %RN,m
Normal process OK,%RN,n
Response
Abnormal process ER,%RN,ee
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
6-2 Settings
N-L20 Settings
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
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.
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
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
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.
21 E N-L20 UM
7-2 Cyclic Communication 8
9
Exit the [Setup Wizard].
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-L20PLC:Data transmission
• PLCN-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-L20PLC: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)
CJ Series settings
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.
E N-L20 UM 22
Control Logix/Compact Logix Series settings Memory Maps
*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.* 01: 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
*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 01: Writing read data is
handshake.
0 1 Update permitted.
This displays whether read data
Permitted 10: -
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 01: Clear
0 7 Transmission • Read Result Ready Count 10: -
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 01: Reading start
0 8 The HEAD Series starts reading. *1
This represents OUT1 terminal 0 : OFF Request 10: 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 01: 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
←
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
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.
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
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
Service
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
(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 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
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 )
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
TON
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
REQ BOOL Bit to order to start/stop reading B9:0/0 Binary Bit to order to start/stop reading
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
SIMATIC
S7-300
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
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.
01: 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 10: -
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
01: 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 01: Error clear
10: - 7 Error Clear Error clear acquisition
Bits 10: -
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 01: Start reading
signal 1 : BUSY status 11 1 byte instruction 0 Read Request Reading start request bank, specify to Bank
10: 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 01: Complete clear notification and read
status 12 1 byte Clear Control 0 Clear clear 10: - 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.
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 50C (No freezing)
Environment resistance
0
R4
Ambient storage
-20 to 60C (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
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
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.
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