N-L20 Siemens S7-1500 Series: Connection Guide: PROFINET Communication
N-L20 Siemens S7-1500 Series: Connection Guide: PROFINET Communication
N-L20 Siemens S7-1500 Series: Connection Guide: PROFINET Communication
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
USB cable
OP-51580 (2 m)
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.
Ethernet cable
24 VDC
power supply
2
N-L20
SIEMENS S7-1500 SERIES
Chapter
CONNECTING AND SETTING UP
4 THE CODE READER
■ For the SR-700 Series
* 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.
3
N-L20
SIEMENS S7-1500 SERIES
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.”)
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.
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.
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.”
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.
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.
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.
Right-click
here.
6
N-L20
SIEMENS S7-1500 SERIES
When PROFINET communication is established between the N-L20 1 Operation instruction Control Bits
I address 7 6 5 4 3 2 1 0
B284
B285 Result Data
B286
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.)
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.
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