testcode_s15_e.pdf

(367 KB) Pobierz
Titel aus Datei-Info
Process Communication based on Web Technology:
Web-Browser, E-mail and FTP
(with S7-200 and CP 243-1 IT)
Micro Automation Set 15
V1.1 (Issue 11/2003)
Preamble
Micro Automation Sets are fully functional and tested automation configurations based
on A&D standard products for simple, fast and inexpensive automation tasks for small-
scale automation. Each of these Micro Automation Sets covers a frequently used
subtask of a typical customer automation task in the low-end range.
The sets help the customer answer the following questions for these subtasks: “Which
products do I need?” and “How do the products work together?”
However, depending on the requirements of the system, a variety of other
components (e.g., other CPUs, power supplies, etc.) can be used to implement the
functionality on which this set is based. See respective SIEMENS A&D catalogs for
these components.
Warranty/Disclaimer of Liability
These software samples do not purport to cover all details or variations in equipment, nor do
they provide for every possible contingency. The software samples are no customer specific
solution. Every user is responsible for proper operation of the described products. These
software samples do not relieve you of the responsibility to use sound practices in application,
installation, operation and maintenance. By using these software samples, you acknowledge
that Siemens shall not be liable under any theory for damages or personal injury resulting from
such use.
Siemens reserves the right to make changes in these software samples at any time without
notice or obligation. Should a conflict arise between the suggestions in these software samples
and other Siemens publications such as the S7-200 Programmable Controller System Manual
or the SIMATIC S7 / M7 / C7 Programmable Controllers Catalog ST 70, the other publication
shall take precedence.
Copyright© 2000 Siemens A&D. Any form of duplication or distribution of these software
samples or excerpts hereof is prohibited without the expressed consent of Siemens Energy &
Automation, Inc.
404963924.003.png
Simple Process Communication based on Web Technology: Web-Browser, E-mail and FTP
(with S7-200 and CP 243-1 IT)
1
Required Components
Products
Component
Type
MLFB / Order informaton
No. Manufacturer
S7-200 CPU
S7-CPU 222 (DC)
6ES7212-1AB22-0XB0 *
1
Siemens AG
IT-CP
CP 243 -1 IT
6GK7243-1GX00-0XE0
1
Current Supply
LOGO! Power 24V
1,3A
6EP1331-1SH02 *
1
Standard PC with Ethernet
connection
SIMATIC Field PG
(with Ethernet
connection)
6ES7710-xxxxx-xxxx * or any PC
with Ethernet connection
1
Optional: Router
X1200
2 BINTEC
Accessories
Component
Type
MLFB / Order informaton
No. Manufacturer
Cross-Cable
(If the IT-CP is connected directly to
the PG)
6XV1850-2HH10
or standard Cross-Cable (2x RJ45-
connector)
1 Siemens AG
Configuration software/tools
Component
Type
MLFB / Order informaton
No. Manufacturer
Connection
cable
PC/PPI-cable
6ES7901-3CB30-0XA0
1
SIEMENS AG
USB/PPI-cable
6ES7901-3DB30-0XA0
S7-Micro/Win
From 3.2 SP4
6ES7810-2BC02-0YX0
1
PC SOFTWARE COMPONENTS
HTTP communication for Web-Browser
Component
Type
MLFB / Order informaton
No. Note
Manufacturer
Standard web
browser
Tested on the
Internet-Explorer
V5
1
System
environment for
visualization
Microsoft
Java
development
environment
Borland
JBuilder 8 SE
Borland JBuilder 8 SE
or any other current
Java development environment
1
Java
development
environment
Borland
HTML editor
Microsoft
Frontpage
There are lots of freeware/shareware
and professional programs, e.g.
Microsoft Frontpage
AOLPress V2.0 (Freeware)
1
For possible
modification of
the delivered
HTML pages.
Microsoft
Optional:
Java plugin for
web browser
SUN Java Plug-In
For using Java applets, designed in a
Borland JDK >1.1.8 development
envirionment, an additional plugin is
requred for the web browser
1
Web-browser
supplement for
running Java
programs
SUN
* in other performance/version available
Rev. A - Endgültig 17.11.2003
2/7
404963924.004.png 404963924.005.png
Simple Process Communication based on Web Technology: Web-Browser, E-mail and FTP
(with S7-200 and CP 243-1 IT)
E-mail (not realized in test/configuration code)
Component
Type
MLFB / Order informaton
No. Note
Manufacturer
E-mail server
IMail Express V8
Free of charge for up to 10 users,
alternatively: Using an internal company
E-mail server
1
Program which
distributres e-
mails via
Internet /Intranet
IPSwitch
FTP (not realized in test/configuration code)
Component
Type
MLFB / Order informaton
No. Note
Manufacturer
FTP-Server
WS_FTP Server
V 7
free 4-week test version; or other FTP
server
1
Make files,
directories
available to
intranet/internet
users for
down/uploading
IPSwitch
Optional:
FTP client
program
e. g. WS_FTP Pro of Ipswitch
or similar shareware program
As standard the console program
“FTP.EXE“ is available on each
operating system
1
Programm
zum Zugriff
auf FTP-
Server über
Inter-/Intranet
IPSwitch
2
Layout Diagram
Figure 1-1
Layout diagram of the Micro Automation Set 15
Rev. A - Endgültig 17.11.2003
3/7
404963924.006.png
Simple Process Communication based on Web Technology: Web-Browser, E-mail and FTP
(with S7-200 and CP 243-1 IT)
3
Method of Function
In this configuration, an S7-222 CPU with Industrial Ethernet
communication processor CP 243-1 IT is directly connected with a network.
Optionally, the S7-222 CPU with CP 243-1 IT can also be connected with a
network or e.g. a mobile service via router 1 .
Note
Set 14 describes, how in one system several CPUs can exchange data via a TP40
Switch.
The communication is based on the TCP/IP protocol. As opposed to the
standard CP 243-1, the CPU can via CP 243-1 IT communicate in three
different ways (on top of normal S7-communication):
HTTP communication to the Web-Browser
The HTTP-Server answers questions from HTTP-Clients (e.g.
Standard-Web-Browser). It is possible to simultaneously establish up to
4 connections from different clients to the server.
Suitable parameterization/programming (Java Applets 2 ) enables filing an
HMI in the IT CP by means of HTML pages, which can be displayed by
means of any standard web-browser (password protected).
E-Mail communication (not realized in the test/configuration code)
For the IT CP up to 32 E-mails can be configured, which are sent event
controlled from the CPU to an E-mail server. The E-mail server in return
sends the e-mails to the receiver specified in the configuration.
In the message text, the E-mails may contain configured process values.
1 A router has a bridging function between different networks.
2 Standard S7-Applets (parameterizing) or user generated Java applets using S7-beans
(programming)
Rev. A - Endgültig 17.11.2003
4/7
404963924.001.png
Simple Process Communication based on Web Technology: Web-Browser, E-mail and FTP
(with S7-200 and CP 243-1 IT)
FTP communication (not realized in the test/configuration code)
Via the IT CP, the CPU can send data blocks (or parts of it) to other
computers (e.g. PCs) as files, or read and delete files of other
computers. Communication via FTP is possible with by means of almost
any operating systems (Unix, Windows, Linux).
4
Configuration/Test Code
Functionality of Configuration/Test Code
Using wiring and configuration described in the document the web-site
displayed below communicates with the S7-200 CPU.
Note
Configuration setup and generating the configuration/parameterization are merely
for function testing (there is no technological task involved!).
Rev. A - Endgültig 17.11.2003
5/7
404963924.002.png
Zgłoś jeśli naruszono regulamin