0% found this document useful (0 votes)
592 views9 pages

N-L20 Siemens S7-1500 Series: Connection Guide: PROFINET Communication

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 9

540GB

N-L20 Auto-ID Technical Guide

SIEMENS S7-1500 SERIES

Connection Guide: PROFINET Communication


This manual explains how to use PROFINET communication to connect
to the N-L20 and the Siemens S7-1500 Series.
N-L20
SIEMENS S7-1500 SERIES

Chapter
CONFIGURING KEYENCE
Table of Contents 3 COMMUNICATION UNIT N-L20 SETTINGS
Use the Auto ID Network Navigator to configure the communication
Chapter 1 EQUIPMENT USED
settings for the N-L20.
Chapter 2 CONNECTION METHODS
Chapter 3 CONFIGURING KEYENCE COMMUNICATION UNIT
N-L20 SETTINGS 1 Use an USB cable to connect the PC and the N-L20.
Chapter 4 CONNECTING AND SETTING UP THE CODE READER
Chapter 5 CONFIGURING SIEMENS S7-1500 SERIES SETTINGS
PC
N-L20 (AutoID Network Navigator)
Chapter 6 EXECUTING READ REQUEST AND MONITORING
READING DATA

Chapter

1 EQUIPMENT USED USB cable

Prepare the following equipment.

CPU module S7-1500 Series PLC Communication Unit


N-L20 2 Start AutoID Network Navigator.

Double click the AutoID Network Navigator icon on your desktop.


When you start AutoID Network Navigator, it will automatically search
for the N-L20 on the network.

USB cable
OP-51580 (2 m)

When the connection completes successfully, the below image is


displayed .

Chapter

2 CONNECTION METHODS
3 Change the settings to those of the desired fixed IP
address.
Overall connection diagram Change the Ethernet settings on the "Ethernet" tab.
Connect the S7-1500 and the N-L20 as shown below.

N-L20 Ethernet hub S7-1500 Series

Ethernet cable

24 VDC
power supply

4 Click the “Start the setup wizard”, and set as shown


below.

2
N-L20
SIEMENS S7-1500 SERIES

Chapter
CONNECTING AND SETTING UP
4 THE CODE READER
■ For the SR-700 Series

1 Connect N-L20 and the SR-700 Series. Press the


head connection button and select SR-700.

Setting Item Setting Value


Data handshake Disabled
Device name n-l20
* The PROFINET device name is a setting required to perform communication with
the PLC. Make sure that this matches the name that you will set on the PLC side.
Also, do not use a name that already exists on the same network.

* The handshake function has the N-L20 output data synchronised with the data
output instructions of the PLC.
Enabled: The N-L20 does not send new data to the PLC until there is an instruction
from the PLC.
Disabled: The N-L20 sends new data to the PLC regardless of instructions from the
PLC. Here, disable this function.

2 When the message below is shown the connection


was successful. Configure the SR-700 settings.

5 Click the send settings button in the upper right


of AutoID Network Navigator to send the settings to
* The read screen cannot be displayed when settings are
configured via N-L20.
the N-L20.

3
N-L20
SIEMENS S7-1500 SERIES

■ For the BL-1300 Series Chapter


CONFIGURING SIEMENS S7-1500
Align the N-L20 communication settings with the BL-1300. 5 SERIES SETTINGS
* TIA Portal V.13 or later is required to configure PROFINET settings.

1 Align the N-L20 head RS-232C settings (settings


list) with the BL-1300 initial communication
settings, and send the settings. 1 Use TIA Portal to create a new project.

Start TIA Portal, and then click “Project view” in the lower left of the
screen.

Click the “new project” button to display the “Create a new project”
screen. Enter a project name, and then click “Create.”
Double-click “Add new device” under the new project that has been
added to the “Project tree.”

Double-click “Add new device” under the new project that has been
added to the “Project tree.”

2 Connect N-L20 and the BL-1300 Series. Press the On the “Add new device” screen, click the S7-1500 Series that you will
head connection button and select BL-1300. use, and then click “OK.” (You can specify an arbitrary value for
“Device name.” Here, we have used “PLC_1.”)

3 When the message below is shown the connection


was successful. Configure the BL-1300 settings.
* AGC cannot be lifted and tuning cannot be performed using
AutoID Network Navigator. To perform tuning, use N-UB or
N-R2 and AutoID Navigator.

2 Set an IP address on the PLC.

Open the “Online access” branch in the “Project tree,” and then click
the network card of the PC that the S7-1500 Series is connected to.

Double-click “Update accessible devices” to automatically scan for


and display the devices that can be accessed from the selected
network card.
* If a firewall is enabled, the scan may not be performed correctly. In this situation,
temporarily disable the firewall.

When the scan completes


successfully, the devices on
the network are displayed.

Open the detected PLC, and then double-click “Online & diagnostics.”

4
N-L20
SIEMENS S7-1500 SERIES

Click “Assign IP address” under “Functions,” set the IP address and Double-click a PLC device from within the list of PLC devices.
subnet mask, and then click “Assign IP address.” Double-click “Devices & networks.”

* If the PLC has already been set, you may not be able to assign the IP address. In
this situation, click “Reset to factory settings” to return the PLC to its factory default
status, and then return to step 2 of this procedure.

3 Register the GSDML file (definitions file for N-L20


PROFINET) for the N-L20 to TIA Portal. In the “Hardware catalog” field, click “Other field devices,” “PROFINET IO,”
* The GSDML file is in the AutoID Network Navigator installation folder. “Sensors,” “KEYENCE CORPORATION,” “Keyence Code Readers,” and
then check that N-L20 is selectable.
• 64-bit version:
C:\Program Files (x86)\KEYENCE Applications\AutoID\GSDML
\N-L20
• 32-bit version:
C:\Program Files\KEYENCE Applications\AutoID\GSDML
\N-L20

On the “Options” menu, click “Install general station description file


(GSD).”

Specify the folder that contains the GSDML file for the “Source path.”
Select the check box of the corresponding GSDML file, and then click
“Install.”

4 Add N-L20 to the Network view.

In the “Devices & networks” field, click the “Network view” tab, and
then drag “N-L20” from the catalogue to this tab.

Click “Project view” in the lower left of the screen, and then click
“Open” on the “Project” menu.
Click on a project, and then click “Open.”
After the “Open existing project” screen is displayed, click a project,
and then click “Open.”

5
N-L20
SIEMENS S7-1500 SERIES

Click the green box in the upper left of the N-L20 to create a line, and Under “Advanced options,” click “IO cycle,” and then set “Update time”
then extend this line to the green box in the lower left of the PLC. to 64.000 ms and “Accepted update cycles without IO data” to 16.
* Adjust these parameters to match your operation environment.

This connects the N-L20 and the PLC.

6 Set the PLC IP address.

5 Configure the N-L20 settings. Click the “Network view” tab, and then double-click the PLC image.
On the “General” tab, click “Profinet interface,” click “Ethernet addresses,”
On the “Network view” tab, click the N-L20 image. and then set the IP address of the PLC.
In the “Device overview” window of the “Device view” tab, enter into
the top of the table the Profinet device name that you set with AutoID
Network Navigator.

7 Transmit the setting information to the PLC.

Click the “Network view” tab, right-click the PLC, point to “Compile,”
Double-click the N-L20 image, click the “General” tab, click and then click “Hardware and software (only changes)” to execute the
“PROFINET interface,” click “Ethernet addresses,” and then set the IP compilation.
address of the N-L20.
Right-click
* If you attempt to specify the IP address that belongs to the PLC that you will set here.
later, the warning “The IP address is not unique within the subnet.” will be displayed.
Change the address of the PLC or N-L20.
* f the IP address that you set for the N-L20 on this screen is different from the IP
address that you set with AutoID Network Navigator, the IP address will be forcibly
changed to the one that you set here.

After the compilation is finished, right-click the PLC, point to


“Download to device,” and then click “Hardware and software (only
changes)” to transmit the compiled programme to the PLC.

Right-click
here.

6
N-L20
SIEMENS S7-1500 SERIES

On the “Extended download to device” screen, select the interface Chapter


EXECUTING READ REQUEST AND
that is connected to the PLC. Click the target PLC, and then click 6 MONITORING READING DATA
“Load.”
This chapter explains how to start HEAD reading through PROFINET
and how to check that the reading results are written to the data map.
(An example without handshaking is explained.)
* In order to read a code, please connect HEAD to N-L20 and make sure that the
RS-232C settings are compatible. For details, see the N-L20 User's Manual.

1 Set the PLC tags.

To check the address of the PLC device assigned to the N-L20, on


the “Network view” tab, click the N-L20, and then click the “Device
view” tab.
* For details on assigning functions to each module, see the N-L20 User's Manual.
* The addresses are assigned to each module automatically (you can assign these
addresses manually). The assignments shown in the image below are used in the
explanation that follows.

If “Different modules” is displayed on the “Load preview” screen,


select “Accept all,” and then click “Load.”

Module names Process memory assignments

Operation instruction Control Bits_1 is assigned to Q address 1. Set


bit 0 of Operation instruction Control Bits_1 to “TRUE” to start N-L20
reading.

Read Complete is assigned to bit 0 of I address 2.


The data of the code read by the N-L20 is written starting from I
address byte 284.
Q address: output address (PLC ➝ N-L20)
I address: input address (PLC N-L20)

After the “Load results” screen is displayed, click “Finish.” Q address 7 6 5 4 3 2 1 0

When PROFINET communication is established between the N-L20 1 Operation instruction Control Bits

and the PLC, the S7-1500 ERROR LED turns off.


Read Request (starts reading)

I address 7 6 5 4 3 2 1 0

2 Completion Status Bits

Read Complete (reading complete)

B284
B285 Result Data
B286

Read Data (reading result data)

7
N-L20
SIEMENS S7-1500 SERIES

3
Register this address information to PLC tags.
Under “PLC tags,” double-click “Add new tag table.” Switch to online mode and start monitoring.
* You cannot open new tag table in Online mode. Click to switch to
Click to switch to online mode.
Offline mode.
On the “Online” menu, click “Monitor all.”

Tag table_1 is added. Enter the arbitrary names of the data in the
“Name” column, the data types in the “Data type” column, and the
device addresses in the “Address” column. Set the mode selector switch to “RUN” on S7-1500.
As shown below, you can easily set the number of Result Data bytes
by using the mouse to drag the lower-right corner of the Result Data
cell.

In the Watch table, right-click the value in the “Monitor value” column
Use the mouse to for “Read Request”, point to “Modify,” and then click “Modify to 1” to
drag this corner start reading.
down.
Right-click

2
here.
Register devices to the Watch table.

Click “Watch and force tables,” and then double-click “Add new watch
table.”

When the sample code is read, the data read is stored in the “Result
Data” area as shown below. Also, you can check whether reading is
complete by checking whether “Read Complete” has changed to
“TRUE.”
In Watch table_1, enter the tag names registered to PLC tags in the
“Name” column. For each reading result (Result Data) entry, change
the value in the “Display format” column to “Character.” (When you
write a name registered to PLC tags in the “Name” column, the data
is written to the other columns automatically. You can also copy data
from the Tag Table.)

To complete reading without reading the code, use “Modify to 0” to


set “Read Request” to “FALSE.”

Sample code

KEYENCE

8
„ BarcodeReader.com
http://www.barcodereader.com/
You can download technical documents useful for BL/SR/HR introduction
and operation.
Download the latest manual from this Web page.

Specifications are subject to change without notice.

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

Copyright (c) 2015 KEYENCE CORPORATION. All rights reserved. 058125E 1119-3 540GB Printed in Japan

You might also like