Professional Documents
Culture Documents
Instructions for the CP 343-1 IT
Instructions for the CP 343-1 IT
References
D
SIMATIC NET
Support and Training
E
Glossary
F
Index
11/2000
C79000–G8976–C120
Release 03
Safety Guidelines
This manual contains notices which you should observe to ensure your own personal safety, as well as to
protect the product and connected equipment. These notices are highlighted in the manual by a warning
triangle and are marked as follows according to the level of danger:
Danger
! indicates that death, severe personal injury or substantial property damage will result if proper precautions
are not taken.
Note
! indicates that death, severe personal injury or substantial property damage can result if proper precau-
tions are not taken.
Caution
! indicates that minor personal injury or property damage can result if proper precautions are not taken.
Warning
draws your attention to particularly important information on the product, handling the
product, or to a particular part of the documentation.
Qualified Personnel
Only qualified personnel should be allowed to install and work on this equipment. Qualified persons are
defined as persons who are authorized to commission, to ground, and to tag circuits, equipment, and sy-
stems in accordance with established safety practices and standards.
Correct Usage
Note the following
Note
! This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers which
have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
Trademarks
SIMATICR , SIMATIC HMIR and SIMATIC NETR are registered trademarks of the SIEMENS AG.
Third parties using for their own purpose any other names in this document which refer to trademarks
might infringe upon the rights of the trademark owners.
IT-CP Startup CD
Instructions
This release of the Instructions describes the new IT-CPs, CP 343-1 IT for the
SIMATIC S7-300 and CP 443-1 IT for the SIMATIC S7-400 with their new
functions.
New features include:
S The standard HTML pages stored on the IT-CP have been extended.
S The FTP functionality has been greatly simplified. The information you require is
now in a separate chapter.
S The options for creating your own user-defined HTML pages with process
graphics have been extended and simplified considerably by the JavaBeans
concept.
We have extended the description as follows:
– The topic of JavaBeans is dealt with in a separate chapter.
– The appendix introduces additional beans that support you when you want to
create graphic displays.
S The Startup CD has also been modified to reflect the new functionality of the
IT-CP.
Additional Information
This manual is also part of the NCM S7 for Industrial Ethernet documentation
package. The following table provides you with an overview.
Title Contents
NCM S7 for Industrial This primer helps to familiarize you with the topic “Attaching and networking
Ethernet SIMATIC S7 stations with CPs on Industrial Ethernet” based on simple
Primer examples. The primer explains how to configure the communication calls in
the user program to allow you to use the services of the SEND/RECEIVE
interface.
The primer also illustrates how simple configuration of standard applications
with STEP 7 and the NCM S7 optional package can be.
NCM S7 for Industrial This manual serves both as an instruction manual and a reference work for
Ethernet configuring and programming Industrial Ethernet CPs.
When working with the configuration software, you can also refer to the online
help.
Manual The manuals on the Startup CD contain information about the performance,
S CP 343-1 IT installation, and interfacing of the CPs.
S CP 443-1 IT
Tip:
You should also refer to the recommended reading on the topics of the Web, HTML
etc. in the appendix of this manual.
This symbol draws your attention to useful tips throughout the instructions.
References /.../
References to further documentation are specified with documentation numbers in
slashes /.../. Based on these numbers, you can check the title of the documentation
in the list of references at the end of the manual.
-
Intranet / Internet
Bridge/router
Industrial Ethernet
HTML Editor
To create your own HTML pages, you require an editor. It is easier to keep to the
syntactic conventions for HTML pages if you use a suitable HTML editor. These
normally allow the input of formatted text and the inclusion of graphics. The
conversion to HTML syntax then takes place in the background. It is also normally
possible to change the view and make your input directly in the HTML form.
Examples:
S AOLpress
A powerful HTML editor that can be obtained as shareware and that has all the
features listed above.
S Netscape Composer
This is also an HTML editor providing functions comparable with AOLpress.
The Composer is included with the Netscape Communicator.
S Front Page from Microsoft (can only be used with restrictions)
A powerful HTML editor. Certain options can however lead to specific HTML
codes that can only be edited with the Internet Explorer from Microsoft.
Table 1-1
Figure 1-1 Password Query when Opening the “Status” System Page
Figure 1-2
In this tab, you specify which users should have which rights.
Under User, you will find a list in alphabetical order with the users already entered
for whom a password has already been recorded.
The “everybody” entry is present as default. This cannot be deleted. No password
can be assigned to it. As default, no rights whatsoever are assigned to this entry.
For service purposes, it is however possible to assign rights. Remember to cancel
the rights again following service!
Danger
! Make sure that you cancel any access rights assigned to “everybody”. Otherwise
you allow access to the corresponding services without any authorization
whatsoever.
With the “Add” or “Edit” buttons, you display the dialog box in which you can
specify or modify rights.
The dialog illustrated shows the possible settings.
Figure 1-3
General
Before you can access the IT-CP using your Web browser, you must make or at
least check certain settings. The settings are explained below based on the
example of the Netscape Navigator.
The settings shown here have been selected so that the execution of the S7
applets and S7 beans (JavaBeans) used on the IT-CP is possible.
Figure 1-4
Note:
If you make this setting when an HTML page is already loaded, the Java
applets contained in the page will not be executed even after making the
setting. The HTML page must first be loaded again so that the Java Interpreter
is started and the Java applets executed.
S Setting a Proxy Server
For more information, check with your system administrator.
Figure 1-5
When accessing the IT-CP using a Web browser, you use the HTTP or FTP
protocol to address the server on the IT-CP (Web server or FTP server):
You inform the CP of the IP address during configuration with STEP 7 (see Section
1.4). If you have an attachment from Industrial Ethernet to your intranet or to the
Internet, the CP can be contacted using the IP address in the intranet or Internet.
A detailed description of the structure of the IP address and the options of creating
subnets or subnet masks is beyond the scope of this manual. You will find more
detailed information in the STEP 7 online help and in the documentation listed in
the references, for example in /23/.
Figure 1-6
If you only enter the IP address without the file name (http://<IP_address>), the file
is searched for in the following order in the file system of the IT-CP:
1. /index.htm
2. “Display of the root folder”
Figure 1-7
Access Protection
The HTML system pages are protected by the access protection you configured on
the IT-CP. In the administration page shown, this affects the Send Test Mail
function.
Figure 1-8
Controller 1
Controller 2
Figure 1-9
What to Do
If you want to start with the existing start page, load this in your HTML editor and
add the additional instructions you require.
S The online option
Load the HTML start page from your IT-CP in your HTML editor and save it for
further editing locally on your PC.
S The offline option
You will also find the HTML start page in the Startup package. You can then
adapt your start page regardless of whether you have access to the IT-CP and
then download it to the IT-CP.
Points to Remember
Refer to the information in the manual of the IT-CP /1/ regarding the following
points.
S The number of files that can be stored is limited by the size of the file system
S The number of characters in the URLs to be specified is limited.
S The length of the file names is limited.
Including S7 Applets
Flexible access to distributed HTML system pages is one aspect of designing the
home page.
You have further opportunities for querying information if you include the S7
applets and S7 Beans in your HTML pages. This is explained in detail in
Chapter 3.
Examples:
Examples of various designs of HTML pages are included in the Startup
package.
As usual with electronic mail, a message can be sent alone or with attachments.
The form you choose depends on the amount of data and the properties of the
E-mail recipient you are using. It is sometimes necessary to send E-mails with
attachments, for example to transfer binary-coded information from the controller
for evaluation.
Further features:
S The IT-CP operates as an E-mail client. It supports the SMTP service (Simple
Mail Transfer Protocol).
S E-mails can be sent by the programmable controller but cannot be received.
To send E-mail in the user program of the S7 CPU, use the send call of the
SEND/RECEIVE interface (FC AG_SEND / AG_LSEND).
Procedure
...follow the steps outlined below:
Table 2-1
STEP 7 configuration
Mail server: server.local
User program
E-mail DB with the recipient address
plant.control@provider.com
server.local
provider.com
plant.control
Figure 2-2
Overview
To send E-mails, one E-mail connection must be set up per IT-CP. The E-mail
connection specifies the E-mail server via which all the mails sent by the IT-CP are
delivered.
Requirements
You can set up an E-mail connection after the IT-CP has been configured in the
station with STEP 7 HW Config.
3. Select the Addresses tab in the Properties dialog and specify the address
parameters.
4. Confirm your entry and close the dialog. After downloading the configuration
data, the user program can send E-mails on this E-mail connection.
Overview
To send an E-mail:
S Prepare the E-mail data in a data block.
S Use the function ( FC) AG_SEND or AG_LSEND in the user program.
Requirements
You can send E-mails if the E-mail connection was set up in the connection
configuration with STEP 7 (see Section 2.2). You use the ID specified in the
connection configuration for the FC AG_SEND/AG_LSEND call.
Data Block
The entire E-mail, in other words, the address information and the message itself,
is put together in a data block. Below, you will find an example of the DB structure
required based on an example in STL notation.
Use the LAD/FBD/STL editor for creating and entering the DB data.
STL Explanation
call fc 50 //AG_LSEND block call
ACT := M 10.0 //Bit for triggering job
ID := MW 12 //Connection ID (connection configuration)
LADDR := W#16#0100 //Module address 256Dec. In HW configuration
SEND := P#db99.dbx10.0 byte 278, //Address of the data block; DB length
LEN := MW 12 //Length of the data area to be sent
DONE := M 10.6 //Address for return parameter DONE
ERROR := M 10.7 //Address for return parameter ERROR
STATUS := MW 14 //Address for return parameter STATUS
Figure 2-3
Immediately after sending the test mail you receive a message indicating whether
the mail could be transferred to the configured mail server.
Remember the following restrictions regarding input in the fields:
S Length (TO) < 128 characters
S The rule for the total length is:
Length (FROM) + Length (TO) + Length (SUBJECT) + Length (TEXT)
< 220 characters
Figure 2-4
For further information about working with NCM diagnostics, refer to the NCM S7
for Industrial Ethernet manual /5/ and the online help.
-
Range of Functions
The FTP functions of the IT-CP support both FTP client and FTP server
functionality on the S7 station.
S7 Station with IT-CP in the FTP Client Role for CPU Data
The user program on the CPU can access the IT-CP as an FTP client for the
transfer of data blocks from or to an FTP server.
3.2 The IT-CP as FTP Server for the File System on the IT-CP
The IT-CP manages the predefined HTML system pages as well as the HTML
pages you have created yourself in a special memory area.
Using FTP (File Transfer Protocol) you have standardized access to the files
managed on the IT-CP.
Tip:
The readme.htm file contains information about the file system.
Figure 3-1
Available Memory
For more information about the total memory available in the file system, refer to
the manual of your IT-CP /1/.
S MS DOS Prompt
In the MS DOS prompt of Windows 95/NT, you can establish an FTP
connection and then execute all the FTP commands supported by the IT-CP.
The following example shows how you can find out which FTP commands are
available using the ’quote help’ command.
Figure 3-2
The functionality described here allows you to transfer data in the form of files to
data blocks or from data blocks of an S7 station using FTP commands. At the
same time, the conventional FTP commands for reading, writing and managing
files can also be used.
For FTP transfer, you therefore create data blocks in the CPU of your S7 station
that are known as file DBs due to their special structure.
When the IT-CP in the FTP server role receives an FTP command, it checks a file
allocation table (file_db.txt) to find out how the data blocks used on the S7 station
for file transfer are mapped to files.
Using the information in the file allocation table, it is possible to address data
blocks in one or more (up to 4) CPUs on an S7 station.
cpu1db30
cpu1db127
... File DBs
DB30
DB127 Header
DB244 User data
Example of Access
The following screen shot shows an example of a typical access sequence in the
MS-DOS window.
Table 3-1
Note
You cannot use a “rename” FTP command with the file DBs.
Note
If you specify a file for the transfer that is not included in the file allocation table,
the requested file system operation is executed on the current folder.
Meaning
In the FTP server role, the IT-CP requires information on how the data blocks used
in the S7 station for file transfer are mapped to files. You store this file allocation
table in a file file_db.txt in the file system on the IT-CP.
Structure
The file allocation table contains two areas in which the assignments are entered
row-oriented as shown in the example below:
S Rack/slot assignment of the CPU
S DB assignment
File transfer only uses the binary mode.
Note
Please note the use of lower-case letters. The files will otherwise not be
recognized.
Example:
# CONFIGURATION FILE for file transfer between an FTP client of a remote system
# and an S7-CPU using the FTP server of the IT-CP
# All lines that do not begin with “cpu” (lowercase AND no leading blanks)
# are interpreted as comment.
# Maximum length per line is 256 characters.
# Delimiters are (one or more) blanks or tabs.
# The following table defines the rack and slot of the CPU(s).
# Definitions of “cpu1”, “cpu2”, “cpu3” and “cpu4” are allowed.
# The following table defines pairs of file names and file DBs in the CPU.
# The maximum number of pairs is 100.
# The file name must begin with “cpuX” (where X = 1, 2, 3 or 4).
# Note that “cpuX” must be defined in the table above!
# The file name must consist of the characters “a-z”, “A-Z”, “0-9”, “_” or “.”
# It must not include a path. The maximum length of a file name is 64 characters.
If the syntax is incorrect, a message similar to the one shown below will be
displayed:
If an error was reported, check your system configuration and repeat the transfer.
You can check your configuration with the following command:
Note
Please note the use of lower-case letters. The files will otherwise not be
recognized.
Example
In contrast to a directory listing of the file system, when the CPU folders are
configured, not only the file name is displayed but also the number of the
corresponding file DB.
Note
It is possible to change from one folder to another on the CPU. Remember,
however, that only the commands listed in Table 3-1 can be executed.
3.3.4 Structure of the Data Blocks (File DB) for FTP Services
Table 3-2
Table 3-3
To transfer data using FTP, you create data blocks (file DBs) in the CPU of your S7
station (for structure, refer to Section 3.3.4).
Using special FCs (functions), the user program sends FTP jobs that are then
executed by the IT-CP in the role of FTP client.
The data are transferred on FTP connections. FTP connections are special TCP
connections that you configure in STEP 7 / NetPro.
In the job, you specify the IP address of the FTP server in an additional destination
parameter, the storage location of the file on the FTP server and the file name
along with access information.
FTP connection
File DBs
DB127 FTP_RETRIEVE
DB243 Header
DB244 User data
FTP_STORE
User program
CALL FTP_CONNECT
CALL FTP_RETRIEVE
CALL FTP_QUIT
Meaning
To run an FTP job sequence between the S7 station acting as the FTP client and
an FTP server, the IT-CP must establish a connection to the S7 CPU. This
connection is known as an FTP connection.
3.4.3 Structure of the Data Blocks (File DB) for FTP Services
How It Works
To allow the transfer of data with FTP, you create data blocks (file DBs) in the CPU
of your S7 station. These data blocks must have a specific structure so that they
can be used as transferable files by the FTP services. These blocks consist of the
following sections:
S Section 1: File DB header (has a fixed structure and a length of 20 bytes).
S Section 2: User data (variable length and structure)
Table 3-4
Example and Reference for the File DB Header: See Section 3.3.4
Block Library
The functions (FCs) described here are supplied along with the STEP 7 standard
package (V5.1 SP1 and higher).
The following list shows the numbers of the FCs as they are supplied with the
configuration tool. You can change these numbers.
The blocks are available after you have installed the NCM S7 for Industrial
Ethernet option.
Meaning
With this function call, the FTP client establishes an FTP connection to an FTP
server.
The IP address of the FTP server, the user identification (username) and (if
necessary) the password for user identification must be transferred to the FTP
server.
All further access by the FTP server is then based on this user identification if you
use the same FTP connection ID. Data is then exchanged with the FTP server
specified for this user.
Call Interface
FTP_CONNECT
STL Explanation
call fc 40 //FTP_CONNECT block call
LOGIN Parameter
This parameter record has the following content for FTP_CONNECT
Meaning
This function call transfers a data block (file DB) from the FTP client (S7 CPU) to
the FTP server.
Here, you specify the data block that contains the file. The path/file name with
which the file will be created on the FTP server must also be specified.
If the file (file DB) already exists on the FTP server, it is overwritten.
Call Interface
FTP_STORE
STL Explanation
call fc 41 //FTP_STORE block call
FILE_NAME Parameter
This parameter record has the following content for FTP_STORE
Meaning
This function call transfers a file from the FTP server to the FTP client (S7-CPU).
Here, you specify the data block in which the file will be stored. The path/file name
under which the file is located on the FTP server must also be specified.
If the data block (file DB) on the FTP client already contains a file, this is
overwritten.
Call Interface
FTP_RETRIEVE
STL Explanation
call fc 42 //FTP_RETRIEVE block call
FILE_NAME Parameter
This parameter record has the following content for FTP_RETRIEVE
Meaning
This function call deletes a file on the FTP server.
Call Interface
FTP_DELETE
STL Explanation
call fc 43 //FTP_DELETE block call
FILE_NAME Parameter
This parameter record has the following content for FTP_DELETE
Meaning
This function call closes the FTP connection identified by the ID.
Call Interface
FTP_QUIT
STL Explanation
call fc 44 //FTP_QUIT block call
Apart from the input parameters specific to the jobs started with each FTP block
call, the following general input parameters must also be set:
Note
Make sure that only one FTP client block is called per ID used as long as
ACT = 1 is set.
For example, FC STORE and FC RETRIEVE must not be active on the same FTP
connection at the same time. This corresponds to normal FTP functionality. If this
is nevertheless attempted, you cannot rely on the output parameters (DONE bit,
ERROR bit and STATUS word) being correct.
For status evaluation, the following parameters must be evaluated in the user
program:
For the meaning of this parameter in conjunction with the ERROR and STATUS parameters, refer to the
following table.
Example
During job execution, the FC returns the following codes:
S DONE = 0
S ERROR = 0
S STATUS=8181H
Note
For entries coded with 8FxxH in STATUS, refer to the information in the STEP 7
Standard and System Functions reference manual. The chapter describing error
evaluation with the RET_VAL output parameter contains detailed information.
Uses
With your own HTML pages, the following possibilities are open to you:
S Process visualization in the Web browser adapted to your particular plant
S Process data represented numerically or graphically in the Web browser
S The ability to include the results of status queries in the display
S The querying and representation of process data in one HTML page on several
S7 stations and on distributed systems.
Figure 4-1
How to...
...create or adapt your own individual HTML pages:
S Standard application:
You want to use the options of the HTML process control predefined for the
IT-CP without extensive programming.
S Extended application:
You want to use graphics options adapted to your application and create more
complex applets.
S Solutions of any complexity
You not only want to display your process data in the plant pictures but also
want to use the data, for example, for evaluation in a database.
A Word of Introduction
There is a considerable body of excellent literature dealing with the design of
HTML pages. Check the recommended literature dealing with the topics of Web,
HTML etc. in the appendix to this manual. This manual itself is deliberately
restricted to explaining how you can include the functions supplied with the IT-CP
in your HTML application.
With the information here, you should be in a position to create and run HTML
pages and use the S7 applets without needing a thorough study of HTML
techniques.
Experienced authors of HTML pages will be able to use the information about
assigning parameters for S7 applets in the following sections directly. For the less
experienced user, we have included a certain amount of information on the topic.
This information can then be extended by reading the literature mentioned above.
significantly increase the clarity. You can, for example, use frames to make sure
that the navigation menu remains visible while new areas are loaded.
Note also the information on the topic ”The number of applet instances in an
HTML page is limited” in Section 4.3.
S Embedding Applets
This is the main topic of this chapter which describes the use of the special S7
applets.
S Using JavaScript
With adequate experience, using JavaScript can extend the function of HTML
pages and the interaction with the user.
Tip:
The Internet itself is a treasure trove for HTML design. You can load HTML pages
in your HTML editor at any time, save them and use them as a template for your
own page design.
You can, for example, call up HTML pages you find particularly attractive in the
HTML editor and then save them. If you do this, all the data of the pages, including
the graphics are saved.
You should, however, remember that some HTML pages are protected by
Copyright. You cannot, naturally, use these pages for your own page design.
S7 Applets
With the S7 applets, you incorporate process data display and the input of process
data into your HTML page. The S7 applets are described in the following section.
4.3 S7 Applets
Meaning
S7 applets are special applets that allow read and write access to an S7 station via
the IT–CP.
The Web browser in which the applet was started is responsible for execution of
the applets. This activates the applet and assigns a frame to it within the current
HTML page according to the parameter settings.
The following example illustrates the situation where all the different S7 applets are
used within one HTML page. You can see that the S7 applets in this case are
embedded in an HTML table.
S7IdentApplet:
Identifies S7
S7StatusApplet: modules
Indicates the status
of S7 modules
S7GetApplet:
Reads process data;
here with graphic
output
S7PutApplet:
Accepts process
input
Figure 4-2
You will also find this HTML page in the Startup package.
The table below contains further information. The chapters that follow describe in
detail how to use and assign parameters for the S7 applets.
Table 4-1
S7 Applet Meaning
S7IdentApplet Identifies S7 modules based on the order number and version.
S7StatusApplet Displays the status of S7 modules
Example: Run/Stop
S7GetApplet Reads process data cyclically, for example memory words or data in a data
block.
The process data
S are addressed symbolically or in absolute form
S can be displayed graphically.
JavaBeans are used for graphic display.
S7PutApplet Enters process data in the HTML pages and transfers/writes them to the
controller, for example memory words or data in a data block.
The process data are addressed in symbolic or absolute form.
To support you when assigning parameters for the S7 applets, you can use various
parameter assignment tools. These ensure that reliable, syntactically correct
parameters are set for the S7 applets. The following tools are described:
S Input tool with the HTML editor
S Online parameter assignment for testing
The HTML pages available in the Startup package and on the IT-CP also provide a
simple, efficient way to reuse existing call parameters by simply copying and
pasting them.
Note: The disadvantage of this input tool is that you still need to type in the
parameter names correctly.
Figure 4-3
This function is intended primarily for testing. If you want to retain the modified
parameters after the HTML page call, they must be entered in the HTML page
using an HTML editor.
Access rights also apply during online parameter assignment.
Meaning
This is used to identify an S7 module in an S7 station. The applet reads the order
number and the version of the specified S7 module.
Example of a display:
Call Tags
CODE=“de.siemens.simaticnet.itcp.applets.S7IdentApplet.class”
CODEBASE=“/applets/”
ARCHIVE=“s7applets.jar, s7api.jar”
Parameter Assignment
In addition to the general parameters (see Section 4.3.1), the following parameters
for the specific function must have values:
Access Rights
With the user name used for access, the following access right must be available
(refer to the ”Edit User Entry” dialog in Section 1.4 ):
S “Query the order number of modules”
With the sample shown here, you obtain the identification code of an S7 module in
rack 0, slot 3 and display it in numeric format.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<APPLET CODE=“de.siemens.simaticnet.itcp.applets.S7IdentApplet.class”
CODEBASE=“/applets/”
ARCHIVE=“s7applets.jar, s7api.jar” NAME=“s7_MLFB” WIDTH=150
HEIGHT=35>
<PARAM name=”RACK” value=0> <PARAM name=”SLOT” value=3>
<PARAM name=”BACKGROUNDCOLOR” value=”0x00FFFF”>
<PARAM name=”EDIT” value=”true”>
</APPLET>
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Result:
Meaning
This queries the status information of the specified module.
Example of a display:
Table 4-7
Access Rights
With the user name used for access, the following access right must be available
(refer to the ”Edit User Entry” dialog in Section 1.4 ):
S “query the status of modules”;
Call Tags
CODE=“de.siemens.simaticnet.itcp.applets.S7StatusApplet.class”
CODEBASE=“/applets/”
ARCHIVE=“s7applets.jar, s7api.jar”
Parameter Assignment
In addition to the general parameters (see Section 4.3.1), the following parameters
for the specific function must have values:
The example shown here displays the status of an S7 module in rack 0, slot 3
graphically.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<APPLET CODE=”de.siemens.simaticnet.itcp.applets.S7StatusApplet.class”
ARCHIVE=”s7applets.jar, s7api.jar” NAME=”s7_status_3” WIDTH=80
HEIGHT=20>
<PARAM name=”RACK” value=0>
<PARAM name=”SLOT” value=3>
<PARAM name=”CYCLETIME” value=5000>
<PARAM name=”BACKGROUNDCOLOR” value=”0xFFFFFF”>
<PARAM name=”EDIT” value=”true”>
</APPLET>
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Result:
Meaning
The applet reads data or data areas cyclically according to the parameter
assignment from the S7 CPU. The S7 CPU must be specified in the relevant
S7ServerApplet. The variables can be identified using symbolic names or by their
addresses.
Using a format string that is explained later, you specify the output form of the
data.
The process values can be displayed either numerically or graphically.
Example of a display (numeric and graphic):
Requirements
The variables can be identified using symbolic names or by their addresses.
Symbolic access is only possible if symbols were configured on the IT-CP. If
symbolic access is used, access rights are checked according to the variable
configuration (see Section 4.4).
Access Rights
With the user name used for access, the following access right must be available
(refer to the ”Edit User Entry” dialog in Section 1.4 ):
S ”Use the symbol table” (with symbolic access)
S ”Read variables using absolute addresses” (with absolute access)
Call Tags
CODE=“de.siemens.simaticnet.itcp.applets.S7GetApplet.class”
CODEBASE=“/applets/”
ARCHIVE=“s7applets.jar, s7api.jar”
Parameter Assignment
In addition to the general parameters (see Section 4.3.1), the following parameters
for the specific function must have values:
Table 4-12 Parameters for Addressing Variables in Symbol Form (as an alternative to using
absolute addresses)
Table 4-13 Parameters for Indirect Variable Addressing using the ANY Pointer (as an alternative
to SYMBOL)
Note
Make sure that the format string exactly matches the bytes in the variable string.
The variables are read as a contiguous string of 6 bytes from the S7-CPU.
Following this, the format assignment assigns the various variable types and the
variables are displayed.
Format string:valve: \X(0, open, closed) tanklevel= \D mm temperature= \B _C
Variable string read (6 bytes):
An error message (refer to output in the Java Console in Section 4.5) is only
generated when there is an assignment conflict. Example: \D – a double word – is
defined in the format string, the variable read, however, is only 2 bytes long.
The two possible access methods using applet parameter settings are shown
below based on simple examples.
To access this variable and to display it on the HTML page, the following applet
parameter settings are required.
a) Access with symbolic addressing of the variable
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<P ALIGN=Center><APPLET
CODE=“de.siemens.simaticnet.itcp.applets.S7GetApplet.class”
To access this variable and to display it on the HTML page, the following applet
parameter settings are required.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<P ALIGN=Center><APPLET
CODE=”de.siemens.simaticnet.itcp.applets.S7GetApplet.class”
CODEBASE=”/applets/” ARCHIVE=”s7applets.jar, s7api.jar” NAME=”speed”
WIDTH=45 HEIGHT=30>
<PARAM name=”RACK” value=0> <PARAM name=”SLOT” value=3>
<PARAM name=”CYCLETIME” value=5000>
<PARAM name=”VARTYPE” value=5>
<PARAM name=”VARCNT” value =1> This info corresponds to
<PARAM name=”VARAREA” value=0x83> ANY pointer:
<PARAM name=”VARSUBAREA” value=0> P#MW12 INT 1
<PARAM name=”VAROFFSET” value=12>
Meaning
This applet receives variable values entered by the user and transfers them to the
S7-CPU.
According to the parameter settings in a format string, two fields are displayed in
the Web browser in which you select the data area and enter the variable value.
An additional button “Set” is used to trigger the write job.
Example of a display:
Requirements
The variables can be identified using symbolic names or by their addresses.
Symbolic access is only possible if symbols were configured on the IT-CP. If
symbolic access is used, access rights are checked according to the variable
configuration (see Section 4.4).
Access Rights
With the user name used for access, the following access right must be available
(refer to the ”Edit User Entry” dialog in Section 1.4 ):
S ”Use the symbol table” (only with symbolic access)
S ”Write variables using absolute addresses” (only with absolute access)
Call Tags
CODE=“de.siemens.simaticnet.itcp.applets.S7PutApplet.class”
CODEBASE=“/applets/”
ARCHIVE=“s7applets.jar, s7api.jar”
Parameter Assignment
In addition to the general parameters (see Section 4.3.1), the following parameters
for the specific function must have values:
Figure 4-4
Procedure
Open the Properties dialog of your IT-CP in STEP 7 HW Config.
Figure 4-5
Enter the symbols of the variables or structure elements you want to be able to
access with the Web browser. You can obtain detailed help on the dialogs at any
time with the online help.
Examples (see also syntax rules for symbols in the online help)
S Simple variables:
tank
temperature
S Structure elements
tank.pressure1
tank.temperature
You must first enter the symbols in the symbol table using the symbols editor of
STEP 7! Your entries will only be accepted if they match the entry in the symbol
table.
Figure 4-6
Table 4-20
In the next four chapters, you will find the Web pages in HTML code in which the
access to the S7Applets using JavaScript is illustrated in simple examples.
In these examples, the Event Handler onClick is used with which destination links
can be defined in forms. The Event Handler is then activated when the user clicks
on a form field in the HTML page.
The following HTML pages are included in the file system of the IT–CP in
Examples...
4.6.1 S7GetApplet
The parameters of the Applet are set so that it is not directly visible (WIDTH=”0”
HEIGHT=”0”); it is simply referenced by the JavaScript function “onClick...”.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<HTML>
<HEAD>
<TITLE>S7GetApplet and JavaScript</TITLE>
</HEAD>
<BODY BGCOLOR=”#FFFFFF”>
<CENTER>
<H1>Accessing S7GetApplet by JavaScript</H1>
<P>
<APPLET CODE=”de.siemens.simaticnet.itcp.applets.S7GetApplet.class”
CODEBASE=”/applets/”
ARCHIVE=”s7applets.jar, s7api.jar” WIDTH=”0” HEIGHT=”0” NAME=”Get”>
<PARAM name=”RACK” value= 0>
<PARAM name=”SLOT” value= 3>
<PARAM name=”CYCLETIME” value= 4000>
<PARAM name=”BACKGROUNDCOLOR” value=0x00FFFF>
<PARAM name=”VARTYPE” value=8>
<PARAM name=”VARCNT” value=1>
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Note
Please note that the value you obtain with mit getValue() from the S7GetApplet is
the value known to the S7GetApplet at this point in time. The value is not read
directly from the PLC!
4.6.2 S7PutApplet
HTML example for writing a value by JavaScript using the S7PutApplets. The
example also contains an S7GetApplet so that you can verify the written value.
The value set with the S7PutApplet can be displayed with the S7GetApplet.
The parameters of the Applets are set so that they are not directly visible
(WIDTH=”0” HEIGHT=”0”); they are simply referenced by the JavaScript function
“onClick...”.
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<HTML>
<HEAD>
<TITLE>S7PutApplet and JavaScript</TITLE>
</HEAD>
<BODY BGCOLOR=”#FFFFFF”>
<CENTER>
<H1>Accessing S7PutApplet by JavaScript</H1>
<P>
<APPLET CODE=”de.siemens.simaticnet.itcp.applets.S7GetApplet.class”
CODEBASE=”/applets/”
ARCHIVE=”s7applets.jar, s7api.jar” WIDTH=”0” HEIGHT=”0” NAME=”Get”>
<PARAM name=”RACK” value= 0>
<PARAM name=”SLOT” value= 3>
<PARAM name=”CYCLETIME” value= 10000>
<PARAM name=”BACKGROUNDCOLOR” value=0x00FFFF>
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Note
Please note that the value you obtain with mit getValue() from the S7GetApplet is
the value known to the S7GetApplet at this point in time. The value is not read
directly from the PLC!
The value you transfer with the S7PutApplet using setValue() is passed on
immediately to the underlying S7BeansAPI for transfer to the PLC.
S7GetApplet and S7PutApplet are two programs that exist separately and do not
communicate immediately with each other. This means that a value you wrote to
the PLC with the S7PutApplet does not need to be known to the S7GetApplet
directly.
4.6.3 S7StatusApplet
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<CENTER>
<H1>Accessing S7StatusApplet by JavaScript</H1>
<P>
<APPLET CODE=”de.siemens.simaticnet.itcp.applets.S7StatusApplet.class”
CODEBASE=”/applets/”
ARCHIVE=”s7applets.jar, s7api.jar” WIDTH=”68” HEIGHT=”40” NAME=”State”>
Note
Please note that the status you obtain with mit getState() from S7StatusApplet is
the status known to the S7StatusApplet at this point in time. The value is not read
directly from the S7 module!
Remember also that not all S7 modules have the same status repertoire. The CP
443–1, for example, distinguishes between several causes of STOP (for example,
STOP switch, internal STOP) while the CPU 416–1 outputs internal STOP in both
cases (since it does not distinguish the STOP switch).
4.6.4 S7IdentApplet
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
<HTML>
<HEAD>
<TITLE>S7IdentApplet and JavaScript</TITLE>
</HEAD>
<BODY BGCOLOR=”#FFFFFF”>
<CENTER>
<H1>Accessing S7IdentApplet by JavaScript</H1>
<P>
<APPLET CODE=”de.siemens.simaticnet.itcp.applets.S7IdentApplet.class”
CODEBASE=”/applets/”
ARCHIVE=”s7applets.jar, s7api.jar” WIDTH=”174” HEIGHT=”34” NAME=”Ident”>
<PARAM name=”RACK” value= 0>
<PARAM name=”SLOT” value= 3>
<PARAM name=”BACKGROUNDCOLOR” value=0x00FFFF>
<PARAM name=”EDIT” value=”true”>
</APPLET>
<P>
<FORM NAME=”form1”>
<INPUT TYPE=”text” SIZE=”20” NAME=”str”>
<INPUT TYPE=”button” VALUE=”Get identification”
onClick=”document.form1.str.value = document.Ident.getIdent()”>
</FORM>
</CENTER>
</BODY>
</HTML>
––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Figure 5-1
Standard Application: You can use S7 beans along with the S7GetApplet
Simply by using the “S7GetApplet” of the IT-CP, you can use a range of graphic
elements from the S7 beans class library for display on your HTML page using the
DISPLAY parameter (refer to the DISPLAY parameter in Section 4.3.7). The S7
beans to be used are marked in Table 5-2 in the following section.
Application: Startup CD
The S7 beans class library is on the startup CD. This also includes an extensive
tutorial that will familiarize you with the use of S7 beans step-by-step.
This also includes information about possible tools such as the BeanBox from SUN
Microsystems and VisualAGE from IBM.
Table 5-1 S7 Beans for Devices / Objects Package = API (included in the JAR file s7api.jar)
S7 Bean Function
S7CP This bean represents the IT–CP serving as the host. Any other IT–CPs that exist
must be addressed using S7Device.
This bean must be used with each applet for addressing and for saving the host
address.
S7 Device S7Device represents any intelligent S7 module such as a CPU, PROFIBUS CP,
Ethernet CP, other IT–CPs (however, under no circumstances the IT–CP serving as
host for the applets, to be addressed using the browser!)
Table 5-1 S7 Beans for Devices, Fortsetzung/ Objects Package = API (included in the JAR file s7api.jar)
S7 Bean Function
S7 Variable This bean represents variables in the S7 CPU.
CLTimer CLTimer is required for cyclic calling of methods of other beans.
Whenever you want to monitor the status of an S7 module or a process variable
continuously (cyclically), you require this bean.
Note: CLTimer has no graphic representation
Table 5-2 S7 Beans for the Client – Package = GUI (included in the JAR file s7gui.jar)
Table 5-2 S7 Beans for the Client, Fortsetzung – Package = GUI (included in the JAR file s7gui.jar)
Table 5-2 S7 Beans for the Client, Fortsetzung – Package = GUI (included in the JAR file s7gui.jar)
Table 5-3 S7 Utility Beans Package = UTIL (included in the JAR file s7util.jar)
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// S7–400 DEMO PROGRAM FOR ONE FTP CLIENT CONNECTION
//
// This program performs the following actions in an endless loop as long as
// no error occurs:
// FTP_CONNECT (FC40)
// FTP_RETRIEVE (FC42)
// FTP_QUIT (FC44)
//
// The code is located in FC199. It is called in OB31.
// To use this simple demo successfully, follow the steps below:
//
// 1.) Use STEP 7 V5.1.1.x and create an S7–400 project with at least 1 CPU
// and 1 IT–CP (6GK7 443–1GX11–0XE0)
//
// 2.) Create an FTP client connection by opening NetPro and creating an
// unspecified TCP connection and checking the option ’Use FTP protocol’.
// Enter the ID of this connection at the beginning of FC199. See also
// comment: ”user modification (1)”
//
// 3.) Obtain the LADDR of your IT–CP and enter this value at the beginning of
// FC199. See comment: ”user modification (2)”
//
// 4.) Some modification is required in DB40. This DB defines the login
// properties for the FTP server and the file that will be retrieved
// in this example.
//
// 5.) Run an FTP server on a network that can be reached by your IT–CP.
// Create a small file (a few hundred bytes) with the name you specified
// in DB40. Place it in the root of the user you also specified in DB40.
//
// 6.) Copy UDT1 and the FCs FC40 – FC44 from the SIMATIC_NET_CP library and
// insert them in your project. Compile this source, download
// FC40 – FC44 and all the objects created from this source to the CPU.
// These objects are: DB9, DB40, DB42, FC199, OB31.
// The compiler should not report any errors or warnings.
// Set MW400 to 0 to start the sequence.
//
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
DATA_BLOCK DB40
FAMILY : S7400
NAME : FTP_DATA
STRUCT
ip_addr : STRING [100 ]; // Do not change the lengths
user : STRING [32 ]; // of the following items.
password : STRING [32 ]; //
file_name: STRING [220 ]; //
END_STRUCT ;
BEGIN
ip_addr := ’142.11.41.50’; // IP address, user and password of the
user := ’eric’; // FTP server that will be used in this
password := ’clapton’; // example. Modify the items to match
file_name := ’testfile.dat’; // your environment.
END_DATA_BLOCK
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
DATA_BLOCK DB42
FAMILY : S7400
NAME : FTP_FILE
STRUCT
hdr :UDT 1;
filedata : ARRAY [0 .. 999 ] OF BYTE ;
END_STRUCT ;
BEGIN
hdr.exist := FALSE; // is set after the first FTP_RETRIEVE
hdr.locked := FALSE; // temp. is set and reset by FTP_RETRIEVE
hdr.new := FALSE; // is set after every FTP_RETRIEVE. Manual reset is necessary.
hdr.writeaccess:= FALSE; // write access: FALSE––>for FTP client on IT–CP, TRUE––>for server on IT–CP
hdr.act_length := L#0; // is set by FTP_RETRIEVE
hdr.max_length := L#1000; // initial value; change only if size of array ”filedata” is changed.
END_DATA_BLOCK
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
DATA_BLOCK DB9
FAMILY : S7400
NAME : FTP_BUFFER
STRUCT
b : ARRAY [0 .. 255 ] OF BYTE ;
END_STRUCT ;
BEGIN
END_DATA_BLOCK
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––– OB 31 ––––––––––
ORGANIZATION_BLOCK OB 31
TITLE = FTP–C–TRIGGER
VAR_TEMP
OB31_EV_CLASS : BYTE; // Bits 0–3 = 1 (event entering state), bits 4–7 = 1 (event class 1)
OB31_STRT_INF : BYTE; //
OB31_PRIORITY : BYTE; // 7 (priority of 1 is lowest)
OB31_OB_NUMBR : BYTE; // 31 (organization block 31, OB31)
OB31_RESERVED_1 : BYTE; // Reserved for system
OB31_RESERVED_2 : BYTE; // Reserved for system
OB31_PHASE_OFFSET : WORD; // Phase offset (msec)
OB31_RESERVED_3 : INT ; // Reserved for system
OB31_EXC_FREQ : INT ; // Frequency of execution (msec)
OB31_DATE_TIME : DATE_AND_TIME ; // Date and time OB31 started
END_VAR
BEGIN
NETWORK
call FC199;
END_ORGANIZATION_BLOCK
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
Note
The properties to be configured for the in the Property editor for the components
described here (see table below) all have German names. You will find the
meaning in English in brackets beside the name.
Properties of Rechteck
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-2
Properties of Rundrechteck
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-3
Properties of Kreis
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-4
Properties of Kreisegment
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-5
The Kreisbogen component draws a circular arc with the selected properties.
Properties of Kreisbogen
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-6
B.1.6 Ellipse
Properties of Ellipse
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-7
Properties of Ellipsensegment
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-8
The Ellipsenbogen component draws an ellipse arc with the selected properties.
Properties of Ellipsenbogen
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-9
Properties of Linie
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-10
B.1.10 Polygon
Properties of Polygon
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-11
The preview dialog supports two modes, the draw mode and the move mode. You
can change between modes by clicking the right mouse button. In the draw mode,
new points are added the polygon when you click with the left mouse button. In the
move mode, individual points can be selected by clicking with the left mouse
button. The selected point can then be moved. If you press the ”DEL” key, the
selected point is deleted. If you press the ”ENTER” key, all points are deleted.
Properties of Polygonzug
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-12
Stützpunkte property: The Stützpunkte (vertices) are not entered directly in the
Properties dialog but in a Preview dialog. This is activated in the Properties dialog
with the ”Change” button.
The preview dialog supports two modes, the draw mode and the move mode. You
can change between modes by clicking the right mouse button. In the draw mode,
new points are added the polyline when you click with the left mouse button. In the
move mode, individual points can be selected by clicking with the left mouse
button. The selected point can then be moved. If you press the ”DEL” key, the
selected point is deleted. If you press the ”ENTER” key, all points are deleted.
Using the Berechnung component, you can make simple math calculations.
Properties of Berechnung
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-13
Using the Logik component, you can make simple logical calculations.
Properties of Logik
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-14
Properties of Konstante
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-15
Properties of Ein–/Ausgabefeld
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-16
As default, the format corresponds to the Java class DecimalFormat from the
java.text package.
If a ’1’ character is found in the format string, the format is interpreted as binary
format. The number of ones (’1’) specifies the number of places in the display. A
preceding ’0’ means that leading zeros will be displayed.
If the ’f’ character is found in the format string, the format is interpreted as
hexadecimal format. The number of ’f’ characters specifies the number of places in
the display. A preceding ’0’ means that leading zeros will be displayed.
If the format is specified simply with ’abc’, the text is interpreted as a string; in
other word, practically unformatted.
Examples:
Value: Format: Display:
––––––––––––––––––––––––––––––––––
100 ####.00 100.00
100 ####.## 100
100 #0000.00 0100.00
100 111111111 1100100
100 0111111111 001100100
100 ffff 64
abcd ####.##
abcd abc abcd
––––––––––––––––––––––––––––––––––––––
Note:
One special feature of the decimal format of Java is that a format string consisting
only of ’0’ characters (for example, 000.000), is rejected as being invalid. If the ’#’
character is included at the start or end, the format is valid (#000.000, 000.000#).
Properties of Laufschrift
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-17
Using the Bildtabelle (image map) component, you can display various types of
images.
Properties of Bildtabelle
The following properties can be set using the Properties dialog in the IDE (for
example VisualAge):
Table B-18
1)
The parameters of the “Bilder” (images) property are set in a special dialog. This
dialog is displayed by clicking the ”Modify” button beside the Bilder property.
In this dialog, you can insert new images in the component with the ”New” button.
The image files must be of the type GIF or JPG! The ”Delete” button removes the
selected image from the table. The other two buttons allow you to reposition the
selected image within the table.
The “Aktuelles Bild” (current image) property specifies which image from the image
table is currently displayed.
If the component is used in an applet, the pictures can no longer be loaded during
runtime using their path.
During runtime, the images are therefore read using the URL. The URL depends
on the relative path parameter. The URL of the images is formed as follows:
CODE–BASE + relative path + image name
The relative path must be completed by ”/”.
If the relative path parameter starts with the ”http” string, it is interpreted as an
absolute path. The URL of the images is then formed as follows:
Relative path + image name
The relative path must be completed by ”/”.
Note
The properties to be configured for the in the Property editor for the components
described here (see table below) all have German names. You will find the
meaning in English in brackets beside the name.
All S7 Applets
S The name of the applet class, the CODEBASE parameter, or the ARCHIVE
parameter were not or incorrectly specified (check upper– /lowercase).
S The width and/or height of the applet was not specified or the value was too
high or low.
S The syntax of the parameter tag <PARAM NAME=”...” VALUE=”...”> is wrong.
S You have forgotten a parameter or written it incorrectly.
S The BACKGROUND parameter for the background color of the applet is
missing or is not in the valid range from 0x000000 to 0xFFFFFF.
S The user does not have rights to run the applet.
S The RACK and SLOT parameters for the rack number and the slot number do
not match the rack and/or slot in which the module is actually located.
S7GETApplet Only
S The format string has a syntax error (for example, an unknown formatting
character).
S The format string does not match the length of the data fetched from the CPU.
S The maximum and/or minimum value is not specified by the parameters
MINVAL and/or MAXVAL if an S7 bean is used.
S The value of the MAXVAL parameter is less than or equal to the value in the
MINVAL parameter.
S7PUTApplet Only
S The information in the SYMBOLNUM parameter and/or VARNUM does not
match the actual symbol specified or the ANY pointer.
S A specified symbol has the read–only attribute in the symbol table
S7StatusApplet Only
S The addressed module is not capable of supplying its module status.
S If you want to display the status of more than one module and the cycle time
selected is too short, you will often experience problems establishing the
connection.
/13/ SIMATIC S7
S7–300 Programmable Controller
Hardware and Installation
Manual
SIEMENS AG
/17/ TCP/IP
Internet–Protokolle im professionellen Einsatz
Mathias Hein
International Thomson Publishing
ISBN 3–8266–400–4
ITP Online–Center: http://www.ora.de
Order Numbers
The order numbers for the SIEMENS documentation listed above can be found in the
catalogs ”SIMATIC NET Industrial Communication, Catalog IK10” and ”SIMATIC
Programmable Controllers SIMATIC S7 / M7 / C7 – Components for Fully Integrated
Automation, Catalog ST70”.
You can obtain these catalogs and any other information you require from your
local SIEMENS branch and national subsidiary
The books marked with this symbol are on the Startup CD.
Nuremberg
Johnson City
Singapore
SIMATIC Hotline
The languages of the SIMATIC Hotlines are generally German and English, in addition, French, Italian and Spanish are
spoken on the authorization hotline.
Training Center
To help you become familiar with SIMATIC S7 programmable controllers, we offer
training courses. Please contact your regional training center or the central training
center in D 90327 Nuremberg.
Tel. 0911–895–3154
Infoline: Tel. 0180 523 5611 (48 Pfg./min), Fax. 0180 523 5612
Internet: http://www.ad.siemens.de/training
E–mail: Helga.bax@nbgm.siemens.de
Further Support
If you have further questions about SIMATIC NET products, contact your local
Siemens representative.
You will find the addresses:
S in our catalog IK PI
S on the Internet (http://www.ad.siemens.de)
-
F.1 General
Bus segment
Part of a –> subnet. Subnets can consists of bus segments and connectivity
devices such as repeaters and bridges. Segments are transparent for addressing.
Client
A client is a device or, in general terms, an object that requests a service from a –>
server.
Configuration Data
Parameters that can be set and downloaded to the –> CP with the NCM S7
configuration tool and that determine how the CP functions.
CP
Communications processor. Module for communications tasks.
CSMA/CD
CSMA/CD (Carrier Sense Multiple Access with Collision Detection)
FC (block)
STEP 7 logic block of the type ”function”.
Gateway
Intelligent interface device that interconnects different types of local area –>
networks at layer 7.
Frame
Message from one PROFIBUS/Ethernet node to another.
Frame header
A frame header consists of an identifier for the –> frame and the source and
destination address.
Frame trailer
A frame trailer consists of a checksum and the end identifier of the –> frame.
Industrial Ethernet
A bus system complying with IEEE 802.3 (ISO 8802–2)
Network
A network consists of one or more interconnected –> subnets with any number of
–> nodes. Several networks can exist one beside the other.
PG mode
A mode in PROFIBUS/Ethernet in which the SIMATIC S7–CPU is programmed,
configured or checked via PROFIBUS/Ethernet.
This mode is handled by S7 functions.
Protocol
A set of rules governing data transmission. Using these rules, both the formats of
the messages and the data flow during transmission can be specified.
Process image
The process image is a special memory area on the programmable controller. At
the start of the cyclic program, the signal states of the input modules are
transferred to the input process image. At the end of the cyclic program, the output
process image is transferred to the output modules as a signal state.
Segment
Synonym for –> bus segment
Server
A server is a device or generally an object that can provide certain services at the
request of a –> client.
Services
Services provided by a communication protocol.
SIMATIC NET
Siemens SIMATIC Network and Communication. Product name for –> networks
and network components from Siemens. (previously SINEC)
SINEC
Previous product name for –> networks and network components from Siemens.
Now: SIMATIC NET
Station
A stations is identified by the following:
S a MAC address on Ethernet
S a PROFIBUS address on PROFIBUS
Subnet
A subnet is part of a –> network whose parameters (for example on –>
PROFIBUS) must be matched throughout the subnet. It includes the bus
components and all attached stations. Subnets can, for example, be connected
together by –> gateways to form a network.
A –> system consists of several subnets with unique –> subnet numbers. A
subnet consists of several –>nodes with unique –> PROFIBUS addresses or –>
MAC addresses (with Industrial Ethernet).
System
All the electrical equipment within a system. A system includes, among other
things, programmable logic controllers, devices for operation and monitoring, bus
systems, field devices, actuators, cabling.
Transmission rate
According to DIN 44302, this is the number of binary decisions transmitted per
time unit. The unit is bps. The transmission rate used depends on a number of
conditions such as the end–to–end distance.
Transport layer
The transport layer is layer 4 in the ISO/OSI reference model for open
communication. The transport layer is responsible for reliable transmission of data
(raw information) from device to device. Transport connections are used for
transmission.
Transport interface
The transport interface of SIMATIC S5 means the access to the
connection–oriented services of the transport layer on the CP. The control program
sees the transport interface in the form of handling blocks (HDBs).
TSAP
Transport Service Access Point
Watchdog
A mechanism for monitoring operability of nodes.
API
Application Programming Interface: programming library.
Applet
–> Java applet
AWT
Abstract Windows Toolkit: A Java library containing the Java software components
for the GUI, for example Button, TextField, ...
Base address
Logical address of a module in S7 systems.
S PROFIBUS
The base PROFIBUS address is the address starting from which all
automatically calculated address within a project are assigned.
S Industrial Ethernet
The base MAC address is the address starting from which all automatically
calculated address within a project are assigned.
Bean
–> JavaBean
Composition Editor
The name of the editor for graphic programming in the Visual Age.
E–mail connection
An E–mail connection is a logical connection between an S7 CPU and an IT–CP. It
is essential for sending E–mails.
Firewall
Security device suitable for interconnecting a private network to a public network,
for example to the Internet, without anyone from the Internet obtaining access to
the private information of the private network without authority.
FTP
File Transfer Protocol
HTML
Hyper Text Markup Language is the name of an intermediate file format that is
understood by all browsers and makes data communication easier.
HTML page
A file created in HTML format that can be made available, for example on Web
servers and can be called in the intranet/Internet.
HTTP
Hyper Text Transfer Protocol
HTML tag
HTML tags identify structure elements of HTML documents; these documents
include for example titles, paragraphs, tables, or applet calls.
IDE
Integrated Development Environment: for example IBM Visual Age, Borland
JBuilder, ...
IP address
IP: Internet Protocol. An IP address is used to address a node in a network.
Example: 192.168.10.104
ISO–on–TCP
Communication connection of the transport layer (layer 4 communication
complying with ISO) mapped to TCP.
Messages can be exchanged bidirectionally on an ISO–on–TCP connection. TCP
provides data stream sequence communication without segmenting data in
messages. ISO on the other hand is message–oriented. With ISO–on–TCP, this
mechanism is mapped on TCP. This is described in RFC1006 (Request For
Comment).
ISO–on–TCP connections all program/event–controlled communication on
Ethernet from SIMATIC S7 to
S SIMATIC S7 with an Ethernet CP
S SIMATIC S5 with an Ethernet CP
S PC/PG with an Ethernet CP
S any other suitable system
JAR files
A file type containing the JavaBeans or Java classes in compressed form.
Java
Object–oriented programming language developed by the Sun computer company.
Java applets
These are small Java applications that are transferred from Web servers to clients
where they are run (in a Web browser with Java capability).
JavaBean
A JavaBean (or simply “bean”) is a reusable software object with a standardized
interface that can be linked with other JavaBeans in Builder tools to create an
application (for example a Java applet). Ready–to–use S7 beans are available for
IT–CP.
JavaScript
An object-based scripting language enabling Web developers to incorporate
dynamic functionality in Web pages.
MAC address
Address used to distinguish different stations attached to a common transmission
medium (Industrial Ethernet).
MIME
Multipurpose Internet Mail Extension
PING
Packet Internet Groper. This is a synonym for ICMP echo (Internet Control
Message Protocol).
Plugin compononent
A plugin is a program that extends the capability of the browser. It allows, for
example, the display of different file formats, in particular the representation of
multimedia elements.
Proxy server
A proxy server can increase the security in a network. Among other things, the
software can be used to check access or to deny access to particular pages or
documents as is also the case with the firewall. A proxy server can also serve as a
type of buffer so that web pages that have been called once do not always have to
be addressed again via the host. Waiting times can sometimes be greatly reduced.
RFC1006
–> ISO–on–TCP
S5–S5 connection
–> ISO transport connection
S7 applet
S7 applets are special Java applets that allow read and write access to an S7
station via the CP IT.
S7 beans
S7 beans are special JavaBeans supplied for the IT–CP in a class library. They
allow access to process data via IT–CP and display of the data in a Web browser.
S7BeansAPI
The S7BeansAPI is a software component library. It contains the S7 beans of the
IT–CP.
Sandbox
In the Web browser, Java applets run in the sandbox. This means that for security
reasons the Java applets cannot, for example, access the local file system and
cannot establish links to third parties (this is why the IT–CP from which the applies
were loaded can always be addressed but no other).
Startup
This is the name of a software package that can be obtained on CD–ROM or
downloaded from the Internet (as HTML pages), that is intended to help you to
become familiar with the IT–CP and the use of S7 applets.
Subnet mask
The subnet mask specifies which parts of an IP address are assigned to the
network number (–> ISO–on–TCP). The bits in the IP address whose
corresponding bits in the subnet mask are set to 1 are assigned to the network
number.
Subnet number
A system –> consists of several –> subnets with unique subnet numbers.
TCP
Transport Control Protocol, corresponds to layer 4 of the ISO 7–layer model.
TCP/IP
TCP = Transmission Control Protocol; IP = Internet Protocol
UDP
User Datagram Protocol. Datagram service for simple, internetwork data transfer
with no confirmation.
Web browser
Basic software for displaying multimedia offers of the World Wide Web (normally
simply : Web or WWW) on a PC, Unix workstation, Apple Macintosh, etc.
Web server
Term for a computer in the network that provides services to other computers in
the Web at the request of a client (–> Web Browser).
Workbench
This is the name of the main application of Visual Age that manages all the
projects.
-
N
H
NCM diagnostics, 2-11, 2-13
Home page, 1-20
NCM S7, 1-9, 2-6
HTML editor, 1-6, 4-7
Netscape Composer, 1-6
HTML forms, 4-6
Netscape Navigator, 1-5
HTML pages
Network connectivity, 1-9
creating your own, 4-2
Number of applet instances, 4-9
designing, 4-5, 4-6
linking, 4-6
number of applets, 4-9
testing and using, 4-40 O
HTML process control, 1-3 Online parameter assignment for testing, 4-14
HTML system pages, 1-17 Organizing files, 4-4
administration, 1-18 Original IT–CP file system, 3-4
status, 1-19
HTTP, 1-16
HW Config, 2-6 P
Parameter format, 4-24
Password, 3-5
I Password protection, 1-8
Internet technology, 1-2 Pictures, 4-6
Intranet, 1-3, 1-5, 1-16 Port, 1-6
IP address, 1-6, 1-9, 1-16, 2-6, 2-7 Printing the list of variables, 4-39
of the mail server, 2-6 Process visualization, 4-2
Properties dialog, 1-9, 2-6
Proxy server, 1-13, 1-14
J
Java Console, 1-15, 4-9, 4-11, 4-40
error messages, C-1 R
Java Development Kit, 1-5 Readme.htm, 3-4