Professional Documents
Culture Documents
Opc para Scada
Opc para Scada
Introduction...................................................................................................................................................... 2
OPC server for SAPI S7 ........................................................................................................................... 2
OPC server for MPI S7 ............................................................................................................................. 2
OPC server for S7 – Emulated TCP/IP..................................................................................................... 2
OPC server for MPI – Emulated ............................................................................................................... 2
Configuration ................................................................................................................................................... 3
Fast Spa server activation procedure ......................................................................................................... 12
Execution........................................................................................................................................................ 12
Diagnostic ...................................................................................................................................................... 12
System requirements .................................................................................................................................... 14
Introduction
These OPC Servers have been developed and produced by Fast SpA and allow, from a PC with Microsoft
Windows operating system, the reading and writing operations in Data Blocks memory areas on Siemens
S7-300 and S7-400 families PLCs.
The data from/to the devices are made available to any OPC Client through a standard OPC DA Server
interface version 2.05.
Like all Fast OPC servers, the OPC DA servers for Siemens successfully passed the
“OPC Compliance Test”, resulting certified according to OPC DA specifications.
For further information about OPC standard, please refer to OPC Foundation official documentation,
available on the web site www.opcfoundation.org or www.opceurope.org .
Fast is an OPC Foundation member since 2000.
The Fast OPC DA servers for Siemens S7 package includes four different servers, each one dedicated to
the specific communication interface chosen for data exchange between the supervision PCs and the PLCs
network.
For further info about Siemens PLCs and their configuration please refer to Siemens official documentation.
Running the configuration tool, you can create a new configuration file or modify an existing one. To create a
new tags list choose the File > New Configuration menu. Choosing this option you are asked to specify what
kind of configuration file you want to create:
To modify an existing tags list please select File > Open Configuration, and specify the name of the XML file
previously saved.
The configuration procedure will be the same for all the four servers, except for the parameters related to the
addressing the PLCs themselves, that are described herebelow.
Concerning the SAPI S7 and S7 Tcp/Ip Emulated, the first thing to do is to setup the name of the interface to
access the PLCs; in case of SAPI S7 OPC server, that lays on the Siemens Sofnet layer, the name must be
the same as the Access Point name in the Siemens configuration, visible through the “Set PG/PC Interface”
application. For these general settings, please use the Object/Global Settings menu o the corresponding
button on the toolbar.
Master Id
It is the identifier of the supervision master unit, that is the PC where the OPC server is running. Please
avoid using the 0 code, since it is usually reserved for Siemens programming and maintenance.
Port name
Identifies the computer COM port.
Baud Rate
Parity
Number of Data bits
Number of Stop bits
Parameters related to serial communications.
The OPC server for Profibus DP-MPI lays on the Siemens Prodave software layer, that’s why the
configuration of the physical communication interface should not be included in the OPC server configuration
but it should be setup through the Siemens “Set PC-PC Interface” tool in Windows Control Panel.
At this point, selecting the main node on the tree view on the left side of the main window, you can access
the configuration of the PLCs’ network.
To add a new PLC to the list, use the Objects > Add PLC menu or the corresponding button on the toolbar;
to modify an existing one double click on the corresponding node on the tree view.
Once a PLC has been set up and the corresponding node has been selected in the tree view, you can set up
the tags (or items) list where all the PLC data are included.
The Fast OPC servers allow to organize the tags list following an hierarchical structure that makes easier the
management of a big amount of items. They can be arranged in a tree-like structure where the items can be
placed at different levels like leaves.
The main node is of course the PLC node that can include in its hierarchy other lower level (intermediate)
nodes (the “branches” of the tree structure) down to the items (the “leaves”).
The first step is the creation of the intermediate nodes, called "branch". For this purpose, use the Objects >
Add Branch menu or the corresponding button on the toolbar being sure to be placed, in the tree view, on
the node that will be the parent node for the new one.
To modify an existing branch, double click on the node in the tree view and change the branch name in the
dialog box as shown herebelow.
The configuration tool allows the easy and quick creation of a big amount of items.
Once you have filled the dialog box above with the required parameters, it is possible to use it as a template
for the creation of a group of items with similar properties.
While the “Add and Exit” button allows to insert the configurated element as a single item, the “Add and
Increment” button inserts the specified item in the configuration and fills out the fields of the dialog box with
the values of a similar item placed immediately after in the memory blocks. This way you just have to set the
“Item Name” and “Comment” fields to quickly create a group of similar items.
The “Add Group…” button instead permits the insertion of a group of items of the same kind, just specifying
the number of items to be added. Warning: no automatic controls are made on items placement in the
memory areas, so be careful to avoid datablocks overlapping or overflow.
Since the items created this way have the default names and the comment is the same for all of them, you
can customize the “Item Name” and “Comment” fields importing them from a data sheet like Excel.
If a list of the tags to be added in the OPC Server configuration file is available and if this list includes the
“Item Name” and “Comment” columns, just copy and paste them to replace the default values.
A summary box, as shown below, will summarize the texts replacement and ask for confirmation:
Anyway, you can also modify each single item double clicking on it both in the tree view on the left or in the
list view on the right of the main window. The same dialog box used for item creation will be opened :
Left clicking on any existing branch on the tree view on the left, you can get the list of the items belonging to
that branch in the list view on the right side of the window.
It is also possible to sort the tags list using one of the columns as order key just clicking on its header. To get
the tags sorted as they are placed in the PLC memory areas use the “Index” column.
After being installed, the Fast SpA OPC server runs in demo mode.
The application running in demo mode remains active for 30 minutes, then a reminder window appears on
the screen advising this software copy has not been licensed and will be terminated.
The Fast SpA OPC Server copy is NOT licensed and NOT free to be used until registration occurs.
A single copy is licensed to be installed in one workstation only. Changing computer or changing some
important components (the hard disk, for instance) will cause the license to be invalid and you will need to
ask Fast SpA for a new activation.
By registering your Fast SpA OPC Server copy you are entitled to receive technical assistance as well as
information about the product and about new releases.
To complete the activation process, after the software has been installed, you need to get your own system
key (following the procedure described below) and then send it to Fast SpA which will then send you back
the Enable Key code.
For further installations of Fast SpA OPC Server on other workstations or on the same workstation after
some components have changed, you will need to ask Fast SpA for a new Enable Key code.
From Fast SpA OPC Server main window select the Help > Enable Full Version menu. The Enable Full
version dialog box will appear as shown here above, where the System Key is shown.
Communicate the System Key number to Fast SpA which will send you the Enable key code, to be typed in
the Enable Key field. Then press ok and the program will be automatically activated.
Execution
You can run Fast OPC server directly from the shortcut in the Windows Start menu in Program files group. In
most cases this is not necessary since OPC servers are automatically run by any OPC Client asking data
through the MicroSoft COM/DCOM communication technologies.
Diagnostic
Fast OPC servers thanks to their ease of use do not require a complex user interface, anyway the File >
Comm. Status menu supplies a precise diagnostic tool to test communication with the PLCs network.
In case of errors on read/write operations from and to the PLC, the status of OPC items is set to BAD and an
error message appears in the server main window, specifying the error description.
For the OPC servers relying on Siemens communication libraries these messages are part of the diagnostic
tool of the libraries themselves, so please refer to Siemens documentation about Sofnet or Prodave
packages. In particular the S7 MPI OPC server lists the messages in the “error.eng” file included in one of
the Prodave package installation folders. This file should be copied in the OPC server execution folder
(where the .exe file resides) and renamed as “error.dat”.
Hardware error
The PC where the server is running has hardware problems on the serial port.
Incorrect ID
The PC Adapter can not transmit the received data to the PLC at the specified address.
Connection not estabilished
Connection error
It is not possible to communicate with the PC Adapter
Incorrect PDU size
The reply sent by the PC Adapter has not the correct format of the PC/MPI serial protocol.
Timeout error. Check interface
The PC Adapter did not reply in a 2000 ms interval. Please verify the serial parameters specified for
configuration are the same as set in the device, in particular check the baud rate.
Data field error
Block size overrun, check amount
Block does not exist
The specified databyte and /or datablock address are not correct
Unknown error
An exception not known by the PC Adapter occurred
Fast Spa OPC servers have been developed to be installed and used on machines with Intel Pentium or
similar processors, with operating systems like Microsoft Windows 2000 or XP.
The SAPI S7 OPC server requires the Siemens Simatic Net IE SOFNET-S7 version 3.3 or upper software
package and the hardware communication board according to the chosen SAPI S7 interface. For example,
for Profibus DP the required Siemens device is the CP5611 with product code 6GK15611AA00, while for
Ethernet the PC only needs a standard Ethernet card.
The MPI-S7 OPC server requires the Siemens PRODAVE version. 5.02 or upper and an hardware
communication board for Profibus DP or MPI, for example the already mentioned CP5611 or PC Adapter.
The Tcp/Ip S7-Emulated OPC server does not require software from other suppliers but only a standard
Ethernet card on the PC where it is running to communicate with Siemens PLCs.
The MPI-Emulated does not require software from other suppliers but as hardware parts it requires the
Siemens “PC Adapter” whose product code is 6ES7-972-0CA23-0XAO.