Está en la página 1de 13

Studdy the lattest PLC network applications!!

Basic Knowledge of FA Ethernet


1. What is Ethernet?
2. What is the Relationship between Ethernet and FA?
3. Basic Knowledge of Ethernet
4. Basic Knowledge of Ethernet Configuration

FA Ethernet Applications
1. More Ethernet Applications
2. Data Link via Ethernet
3. Mastering Ethernet Mail Function 1: Sending/Receiving Emails
4. Mastering Ethernet Mail Function 2: Basic Email Configuration
5. Mastering Ethernet FTP Client Function
6. Mastering Ethernet FTP Server Function

FA Ethernet Easy Trouble Shooting


When Ethernet is not working properly
Basic
c Knowledge of FA Eth
hernett

1. What is Ethernet?

What is Ethernet?
Ethernet is the most widespread LAN standard, of which 10BASE-T and
100BASE-TX are the mainstream. A star network, LAN 10BASE-T uses
a twist-pair cable (STP/UTP cable) and has a communication speed of
10Mbit/s and a cable with maximum length of 100 m. 100BASE-TX is
even faster than 100Mbit/s. 10BASE-T and 100BASE-TX are compatible
with a large amount of equipment and support mixed environment.
Even a Gigabit Ethernet, which uses optical fibre cable to realise
communication speed of 1Gbit/s, has appeared recently.

Reasons behind the widespread use of Ethernet for intranet


LAN (Ethernet) is already included as a standard feature for business Printer Server
machines such as PCs and printers. Besides Ethernet, USB can be used
to connect to external devices; however, to connect multiple PCs and
printers and file servers, star network using a hub is more convenient
and is widely used in most offices.

What are the differences between Ethernet and other networking


technology?

Ethernet RS-232C USB


Connection distance 100 m (between devices) 15 m 5m

Communication speed 100 Mbit/s 115.2 kbit/s 12 Mbit/s

Networking technology n : n (Star network) 1:1 1:1

Requires IP address
Requires a communication
Others Simultaneous use of multiple Decrease in uses for PCs
driver
devices is possible

2
Basicss Knowledge of FA Ettherne
et

2. What is the Relationship between Etheernet and FA?

How popular is Ethernet in the FA industry?


Conventionally, communication technology under FA environment generally meant a one-to-one communication such as
PLC & a touch panel and PLC & a measuring instrument. A typical example is RS-232C serial communication. However,
increasing demand for traceability management and growing equipment size called for the introduction of LAN environment
which enables management/control/data acquisition of multiple lines. As a result, users of Ethernet are increasing in the FA
industry for its high usability and communication speed.
Responding to the increasing demand for Ethernet environment, we have introduced PLC KV-5000, which include Ethernet
port in the CPU as a standard feature. This made the Ethernet environment, which used to be expensive, to be more
affordable.

RS-232C (Serial) was the mainstream Ethernet has become widely used
Multiple connection is possible
One-to-one communication is the mainstream High speed communication is possible
Why? Many ports, affordable Why? Appearance of standard port (lower costs)
Reliability Improved reliability (performance, environment
resistance)

Applications of FA Ethernet
1. Debugging (Maintenance)
ADVANTAGES
Long distance (100 m)
Connectability to multiple devices (no need to replace
cables)
Configurable for multiple users
(Configuration, monitor)

2. Connectability to PCs (Data acquisition etc)


ADVANTAGES
Long distance (100 m)
Connectability to multiple devices (batched data acquisition)
High speed communication
Affinity with PC (includes ports as a standard feature)
(Data acquisition)

3. Connectability to external devices (i.e. touch panel, image sensor, etc)


Touch panel Image sensor
ADVANTAGES
Long distance (100 m)
Connectability to multiple devices (easy, low costs)
High speed communication
A wide variety of server applications

3
Basicss Knowledge of FA Ettherne
et

3. Basic Knowledge of Etherneet

Basic knowledge of Ethernet


The following explains the basic configurations when connecting KV-5000 Series to Ethernet.
It is basically the same items as those configured when connecting PCs to intranet (i.e. IP address, sub-net mask, etc).
Check with the system administrator when connecting KV-5000 Series to the intranet.

KV Series unit-editor

Assign IP address,
network to join as subnet
mask, and unique
identification number.

A part of Windows XP network configuration LAN configurations are


identical

IP address and subnet


mask are explained in
the next page.

Basic knowledge of Ethernet terminology

Default Gateway refers to a node that performs routing when transferring data from own LAN to
Default Gateway
other LANs.

Keep Alive refers to a function that investigates regularly at a fixed interval whether the
Keep Alive connection is maintained normally with devices with which the connection has established while
using TCP communication.

TCP refers to a network protocol that establishes a connection to the other devices. TCP has
TCP capabilities to control responses and orders by using the sequence number and avoid duplicate
and missing data. Compared to UDP, it is more reliable protocol in general.

4
Basicss Knowledge of FA Ettherne
et

4. Basiic Knowledge of Ethernet Confiiguration

Basic knowledge of Ethernet configuration: IP address


IP address is a 32bit identification number assigned to each device in the network. Communications via TCP/IP sends data
based on this address.
IP address constitutes of two parts: network address and host address. Network address represents a whole network to
which the device belongs. A host address is allocated to each device in this network.

32 bit

Router
IP address
Network address Host address
Hub

Indicates network

Indicates a unique terminal

Host 1 Host 2 Host 3 Host 4

* IP address is partitioned into 4, each contains 8 bit, separated by ., and expressed by numbers from 0 to 255 (decimal
base).

Basic knowledge of Ethernet configuration: Subnet mask


Subnet mask is used to separate network address part and host address part. Like IP address, subnet mask is 32bit
numbers separated into 4 by . (e.g. 255.255.255.0). Network and IP address can be figured out from multiplying subnet
mask by IP address expressed in binary digit.

EXAMPLE Applying 255.255.255.0 to 165.123.2.1 and 165.123.10.1 yields 165.123.2.0 and


165.123.10.0 respectively. That is they belong to different networks.

165.123.2.1 = 10100101 01111011 00000010 00000001


255.255.255.0 = 11111111 11111111 11111111 00000000
10100101 01111011 00000010 00000000 = 165.123.2.0
165.123.10.1 = 10100101 01111011 00001010 00000001
255.255.255.0 = 11111111 11111111 11111111 00000000
10100101 01111011 00001010 00000000 = 165.123.10.0

5
FA
A Ethernet Applicatio
ons

1. More Etheernet Applications

Typical applications include debugging via Ethernet and connecting to touch panel. In addition, uses for data acquisition
by connecting to a control PC and other applications using various servers such as FTP have been increasing lately.
In what follows, Ethernet applications employing KEYENCEs PLC KV-5000/3000 Series are explained.

Ethernet application: Data acquisition

1. Data acquisition via special software (KV COM+)


Requires only a simple setup. It acquires PLC data and displays/saves it on Excel.

PC (KV COM+) KV-5000 KV-5000


No programming
required

Ethernet

Uses Data acquisition, PLC data overwrite

PLC program Not required

Saving format CSV/Excel

- No communication programming is required for PC


Others
- Communication Library Version (ActiveX, DLL) is also available

2. Data acquisition via host link commands


It is compatible with host link command communication/MC protocol communication command and sends back the
responses to commands sent from PC.
PC
(Communication program) KV-5000 KV-5000

Command

Response

Ethernet

Uses Data acquisition, PLC data overwrite

Keep alive Not required

TCP Communication program is required for PC

6
FA
A Ethernet Applicatio
ons

2. Data Lin
nk via Ethernet

Ethernet application: PLC-to-PLC link

1. PLC-to-PLC using simplified PLC link function


With simple setups, it detects PLC-to-PLC link without programming. It eliminates the need for network socket programming
which used to be necessary.

KV-5000 KV-5000 (Other network) PLC (Other network)


No programming No programming
required required

Ethernet

Uses Data link between PLCs

PLC program Not required for all linked PLCs

KV-5000/KV-5000 Ver.1.1 (Ethernet port with a built-in CPU)


KEYENCE Corporation
KV-LE21V, KV-LE20V
Compatible PLCs
(other networks) QnUDE(H) (Ethernet port with a built-in CPU),
Mitsubishi Electric
QJ71E71-100 (Ethernet unit for Q series),
Corporation
A1SJ71EN3-T (Ethernet unit for A series),

2. Linking PLCs via host link commands


It is compatible with the host link command communication/MC protocol communication command and sends back the
responses to commands sent from the PLC.

Other PLCs
(Communication program) KV-5000

Command

Response

Ethernet

Uses Data link between PLCs

PLC program CSV/Excel

Others Communication programming is required for the other PLC side

7
FA
A Ethernet Applicatio
ons
3. Masteering Ethernet
Mail Function 1: Sendingg /Receivingg Emails

Ethernet application: Sending/receiving emails


KV-5000 Series mail function enables email exchanges between PLCs and external PCs/mobile phones.

1. Sending email from PLC


PLC sends email when the alarm went off and other arbitrary occasions. Equipment malfunction can be monitored from
personal mobile phones without changing existing infrastructures.

Intranet/Internet

Mail server
KV-5000

Ethernet

Uses Equipment alarm monitoring, data acquisition

PLC program Not required (Required when transmitting via ladder programming)

Automatically sends email when acquiring saved logging/trace data.


Others Transmission of emails to multiple addresses is possible. Up to 8 groups of email addresses can
be registered.

2. Sending/receiving command emails to PLC


PLC operates according to the commands that are written in and sent by email from the external devices. PLC can be
operated from the outside because it sends back responses by email.

Intranet/Internet Display device value


Overwrite device value
Bit manipulation
Mail server
KV-5000
Command

Response

Uses Remote maintenance, monitoring, data acquisition

PLC program Not required

Special software Mail Command Maker enables a creation of email sending program without
Others
special knowledge.

8
FA
A Ethernet Applicatio
ons
4. Masteering Ethernet
Mail Function 2: Basic Email Configguration

Basic email configuration


The following explains the items required for the basic configuration of KV-5000 Series mailing function. Configure the
mail server to be used. Consult with a system administrator when using it for Intranet.

Configure the senders name for outgoing mail.

Configure the mail server to be used.

Configure the POP server to be used.

Basic knowledge of email terminology

Simple Mail Transfer Protocol (SMTP) is a protocol to send emails as well as exchanges emails
SMTP
between servers.

Post Office Protocol (POP) is a protocol to receive emails from servers where the emails are
POP
saved. First thing POP does when connecting to sever is user authentification.

Transmission method that is invented to prevent unauthorised use of SMTP server. It conducts
POP-Before-SMTP
user authentification with POP before sending emails by SMTP.

9
FA
A Ethernet Applicatio
ons
5. Masteering Ethernet
FTP
P Client Funcction

Ethernet application: FTP client function


KV-5000 Series FTP function enables file exchanges between PLC and external PCs (or FTP server).

Uploading/downloading files via FTP client function


KV-5000s FTP client function enables files saved in SD memory card to be uploaded to/downloaded from the external FTP
server such as PCs.

KV-5000 FTP server


Uploading

Downloading

Ethernet

Uses Data acquisition, display/overwrite device values, changeover of data file process

PLC program Required (not required when uploading the logging data automatically)

- Configurable up to 4 servers
Others
- Wild cards (i.e. *, ?) can be used to specify files.

Basic configurations of FTP client function


The following showed the items required for using KV-5000 Series FTP client function. Set the FTP server to be accessed.

Set FTP server address and


user ID and password that
are required to access the
FTP server.

10
FA
A Ethernet Applicatio
ons
6. Masteering Ethernet
FTP
P Server Function

Ethernet application: FTP server function

Accessing from PCs using FTP server function


KV-5000s FTP server function enables access to files saved in SD memory cards from external systems.

KV-5000 (FTP server) PC (Client)

Uploading

FTP client software


(e.g. Internet Explorer)
Downloading

Ethernet

Uses Data acquisition, display/overwrite device values, changeover of data file process

PLC program Not required

Others Password configurable

Basic configurations of FTP server function


The following explains the items required for using KV-5000 Series FTP server function. Only one user ID can be
configured.

KV Series unit-editor
Only need to select on/off
for FTP server function and
set the password.

11
FA Etherrnet Easy Trouble Shootiing

When
n Ethernet is not working prooperly

KV Series: Ethernet communication trouble diagnosis


The following are ways to isolate trouble sources easily when Ethernet connection can not be established at a ramp-up
period, etc.

Narrow down the causes of the troubles by using Ethernet ports pilot lamp
The below are ways to isolate trouble sources using pilot lamps that are used for checking the connection status.

When link lamp does not turn on, KV Series is not recognised as Ethernet equipment.
LINK
Check cables and communication equipment for errors.

ACT lamp turns on when transmission of communication data is in progress.


ACT
1. ACT lamp does not turn on even when the client is sending out the data.
The client failed to transmit the data
Errors in communication configurations such as IP address

2. ACT lamp does not turn on when transmitting the data from KV Series.
Errors in the transmission program

3. ACT lamp turns on when the data transmission from KV Series is in progress but no response is
returned.
Errors in the IP address of the client that is receiving the data.
Configuration errors of the clients IP address
Response processing errors on the clients side

KV Series: Ethernet configuration on-site


Confirmation and modification of the network configuration are possible from access window on-site during the ramp-up
period.

CONFIGURABLE ITEMS
IP address, subnet mask, gateway, individual port number,
receive timeout, and keep alive

12
www.keyence.com

Copyright (c) 2010 KEYENCE CORPORATION. All rights reserved. KVEthernet-AS-EN1207-E 1120-1 E 600899