Escolar Documentos
Profissional Documentos
Cultura Documentos
System Configuration 2
Functionality 3
PM-OPEN HOST/S
Connectivity Tools for SAP® R/3®
Edition: 2009/01/05
PM-CONTROL System Description
Table of Contents
7 Sample Project
7.1 WinCC sample project Page 7-1
1 Overview
PM-OPEN HOST/S offers a future-oriented, flexible The R/3 System connectivity tool supports a wide variety
communication solution between the automation level of scenarios in the communication between the
and SAP R/3. With PM-OPEN HOST/S, tasks in the area automation system and SAP R/3:
of vertical system integration in industrial companies can
be implemented in a efficient, flexible and economical
• Transmitting production or process jobs from the
way.
SAP R/3 Modules PP and PP-PI to the automation
system.
PM-OPEN HOST/S uses the openness of the process • Transmitting production data such as produced and
visualization system SIMATIC WinCC to receive data consumed material from the automation system to
from and to send data to the automation system. The the module SAP R/3 MM.
communication with SAP R/3 is based on the SAP
standard technology Remote Function Calls (RFC). RFC • Transmitting random sample values from the
is the base technology for the integration of several SAP production via the automation system to the module
systems and can also be utilized for bi-directional SAP R/3 QM.
communication with external systems. The remote
function call technology is a standard interface that • Transmitting machine data, especially machine
enables the execution of function modules in remote SAP conditions, from the report and alarm modules of the
systems. Function calls can also be initiated from external automation system to the module SAP R/3 CS.
systems.
A wide range of additional scenarios can also be
implemented. For all of these scenarios, the additional
PM-OPEN HOST/S contains connectivity tools that
development of customer specific ABAP/4 programs is
support different scenarios represented in SAP R/3 or
required.
business processes with data from automation systems.
1 Overview
1.2.1 Conception of R/3 System Connectivity Tool To transmit data from SAP R/3 into WinCC tags, these
values are entered into the OutputTable. This occurs via
As shown in the following diagram, parameter data sets
customer specific ABAP/4 code that subsequently
(e.g. production data) can be bi-directionally exchanged
initiates the transmission of the data by calling the
between WinCC and SAP R/3.
interface module RFC Send.
For the transmission of values from WinCC to SAP R/3,
INPUT-Tables, OUTPUT-Tables and RFC modules are
the contents from WinCC tags are entered into the
included in the scope of supply of PM-OPEN HOST/S as
InputTable via the interface module RFC receive. From
data dictionary objects.
there, the distribution and further processing of the data
takes place via customer specific ABAP/4 code.
1 Overview
1.3 R/3 PM Connectivity Tool via an RFC module of the SAP standard interface PM-
PCS. In the SAP R/3 system the operating hours and
The R/3 PM Connectivity tool uses the SAP standard
switching cycles are stored as operating points which are
interface PM-PCS and supports the SAP scenario
linked to equipments or functional locations.
„Measure values/counter values“ as well as the creation
of maintenance reports.
Integration of this machine data allows the creation of
performance-based maintenance plans in SAP R/3 PM.
1.3.1 Conception of R/3 PM Connectivity Tool
2 System Configuration
2.1 System Configuration with SIMATIC WinCC Connecting automation systems from various plc
manufacturers is easily possible through the availability of
PM-OPEN HOST/S is executable on a WinCC single
numerous communication channels of the WinCC
station system or on a WinCC server.
system.
On a redundant WinCC/PCS7 server pair, PM-OPEN
HOST/S has to be installed on both servers with a
separate license. The synchronization of the configuration
data between the two installations as well as the master
management in the case of a failover has to be
implemented separately..
3 Functionality
The PM-OPEN HOST/S system software consists of two The Applicationserver runs as a background component
software modules and the data dictionary objects for data and processes the configured transfer jobs for the data
exchange: exchange between WinCC and SAP R/3. The application
has no user interface. Status reports for the processing of
• PM-OPEN HOST/S Configuration
the transfer jobs are displayed in the user interface.
The configuration components
• PM-OPEN HOST/S Applicationserver
The runtime components
• Data Dictionary Objects
Transfer files for communication between
WinCC and SAP R/3 Figure: PM-OPEN HOST/S Applicationserver
4.1 General The name of the client on the SAP R/3 destination
system to which the data should be transmitted is entered
The complete configuration of PM-OPEN HOST/S is
in the tab SAP R/3 Connection. The logon data used by
done in the software module PM-OPEN HOST/S
the PM-OPEN HOST/S Applicationserver for the logon to
Configuration. The configuration mode is activated by a
the SAP R/3 system is entered in the fields Username
password protected button.
and Password. The Username must be a CPI-C or a
Logon information for the communication with SAP R/3 dialog user in the SAP R/3 Customizing. The data of the
must be set up for the R/3 System Connectivity Tool and SAP R/3 destination system is configured in the area
for the R/3 PM Connectivity Tool. The details about the System.
data transfer are defined as transfer jobs.
4.2.2 Transfer job for sending tag contents The contents of several WinCC tags can be transmitted
in a transfer job. The WinCC Tag Management allows the
Transfer properties and transfer values for sending tag
selection of the tags. The entry of a secondary index as a
contents are configured in a transfer job.
text attribute for each WinCC tag allows a direct
Each transfer job has a unique name. PM-OPEN allocation to a destination database cell in SAP R/3.
HOST/S automatically generates a unique job number.
The entry of a Destination Module ID allows the allocation
of a transfer job to a specific SAP R/3 module or SAP
scenario.
The execution of the transfer job can occur either
cyclically depending on an adjustable cycle period or
based on a changed WinCC tag value.
The receive interface consists of the RFC module RFC ENTRY_NO Unique entry number (Primary Key)
Receive (ZPM_OPEN_RECEIVE) and the Input Table generated by the SAP R/3 System
(ZPM_INPUT). These data dictionary objects are
ENTRY_DATE Date stamp from PM-OPEN HOST/S (=
included in the scope of supply of PM-OPEN HOST/S.
date of measurement)
Customer specific ABAP/4 code is required to read out
the received parameters and to dispatch the values to the ENTRY_TIME Time stamp from PM-OPEN HOST/S (=
destination modules within SAP R/3. time of measurement)
The transmission of parameter values from SAP R/3 to A record is stored in this table for each parameter to be
WinCC tags occurs via the Output Table. The Output sent. The grouping of the parameters is achieved by
Table is filled via customer-specific ABAB/4 code and the using identical Transaction ID’s (attribute TAID).
module RFC Send is called to trigger the transmission to
Attribute Description
the WinCC process image.
ENTRY_NO Unique entry number (Primary Key)
The parameter values are written directly into the
generated by the SAP R/3 System
specified WinCC tags. This writing procedure can be
blocked by means of a configurable blocking tag. TAID Transaction ID generated by the SAP
R/3 system
The Data Dictionary objects ZPM_OUTPUT and
ZPM_OPEN_TRANSMIT are included in the scope of RFC_DEST RFC Destination the parameter set
supply of PM-OPEN HOST/S. should be transmitted to
4.3.2 Transfer job for transmitting counter readings Access to the WinCC tag management allows the
selection of the tags.
Transfer properties and transfer values for transmitting
meter readings of switching cycles or operating hours are
configured in a transfer job.
Each transfer job has a unique name. PM-OPEN
HOST/S automatically generates a unique job number.
The entry of a Destination Module ID allows the allocation
of a transfer job to a specific SAP R/3 Destination Module
or SAP scenario.
The execution of the transfer job can either occur
cyclically depending on an adjustable cycle period or be
triggered by a changed WinCC tag value.
Attribute Description
Shorttext Comment
The parameters of the function and the mapping to the TCHAR* Endmlfndate,
corresponding SAP data fields are described in detail in
TCHAR* Endmlfntime,
the PM-OPEN HOST/S online help.
TCHAR* Breakdown,
TCHAR* Longtext
);
Messages to send to SAP R/3 The RFC Trace can be activated for diagnostic purposes
in the case of a problem or for startup. All sent and
received data between PM-OPEN HOST/S Application-
Errors that may have occurred during data transmission server and the SAP system is logged when the Trace is
are displayed in the message with the appropriate RFC activated. The RFC Trace should not be activated during
error code. normal operation for performance reasons.
The data of the RFC interface can also be logged in the
SAP system. Authorization problems of the interface user
5.2.2 Data reception in WinCC from SAP R/3 can be diagnosed with this.
Each parameter value that is received in WinCC is logged
in a message. SAP R/3 generates the HOST-TAID for
this parameter and this HOST-TAID is part of the
message. Parameters with the same HOST-TAID are
grouped into one parameter record.
ZPM_D_C32 Domain for a 32 character string ZPM_OUTPUT Tables containing the SAP
parameters from the receive
ZPM_D_NC10 Domain for a 10 character module that are transmitted to
numerical string PM-OPEN HOST/S
ZPM_D_NC2 Domain for a 2 character ZPM_LOGTAB Tables that the diagnosis entries
numerical string from the receive and send
ZPM_D_DATS Domain for an 8 character date modules are entered into
string (format: YYYYMMDD, ZPM_HELP Test-Table
year, month, day)
• Z_PMOPEN_GET_LOG_STAT
Checks if the Event log is activated and if events should
be written into the table ZPM_LOGTAB.
6.5.2 Function modules of the send module of 6.5.3 Function modules of the receive module of
PM-OPEN HOST/S: PM-OPEN HOST/S:
• Z_PMOPEN_RECEIVE • Z_PMOPEN_PCS_RCV
This function is called by the R/3 System Connectivity Function description of the receive module of PM-OPEN
Tool to transmit parameters from WinCC to the table HOST/S. This function is called by
ZPM_INPUT. Z_PMOPEN_TRANSMIT to transmit parameters from the
• Z_PMOPEN_RECEIVE_ERR_LOG_ON table ZPM_OUTPUT to PM-OPEN HOST/S and to write
tag values into WinCC.
The logging of error events into the table ZPM_LOG_TAB
within the SAP R/3 system can be activated with this • Z_PMOPEN_TRANSMIT
function. This function is called within the SAP R/3 system and
• Z_PMOPEN_RECEIVE_ERR_LOG_OFF transmits the contents of the table ZPM_OUTPUT to the
function Z_PMOPEN_PCS_RCV located in PM-OPEN
The logging of error events into the table ZPM_LOG_TAB
HOST/S. PM-OPEN HOST/S writes these parameters to
within the SAP R/3 system can be deactivated with this
WinCC tags.
function.
• Z_PMOPEN_TRANSMIT_ERR_LOG_ON
• Z_PMOPEN_RECEIVE_LOG_ON
The logging of error events into the table ZPM_LOG_TAB
The logging of events into the table ZPM_LOG_TAB
within the SAP R/3 system can be activated with this
within the SAP R/3 system can be activated with this
function.
function.
• Z_PMOPEN_TRANSMIT_ERR_LOG_OFF
• Z_PMOPEN_RECEIVE_LOG_OFF
The logging of error events into the table ZPM_LOG_TAB
The logging of events into the table ZPM_LOG_TAB
within the SAP R/3 system can be deactivated with this
within the SAP R/3 system can be deactivated with this
function.
function.
• Z_PMOPEN_TRANSMIT_LOG_ON
The logging of events into the table ZPM_LOG_TAB
within the SAP R/3 system can be activated with this
function.
• Z_PMOPEN_TRANSMIT_LOG_OFF
The logging of events into the table ZPM_LOG_TAB
within the SAP R/3 system can be deactivated with this
function.
7 Sample Project
PM-CONTROL
Recipe/Product Data Management,
Job Control
PM-QUALITY
Job/Batch-oriented Archiving and
Recording
PM-MAINT
Intelligent Maintenance Management
System
PM-ANALYZE
Analysis of Alarms and Process Data
PM-OPEN
Solutions for Communication and
Integration
Your authorized
WinCC Competence Center Mannheim
Siemens AG Subject to change without prior notice The information provided in this catalog contains descriptions or
Siemens Deutschland characteristics of performance which may change as a result of further
Industry Sector development of the products. An obligation to provide the respective
Industry Solutions Division characteristics shall only exist if expressly agreed in the terms of contract.
WinCC Competence Center Availability and technical specifications are subject to change without
notice.
Dynamostraße 4
All product designations may be trademarks or product names of Siemens
D-68165 Mannheim AG or supplier companies whose use by third parties for their own
purposes could violate the rights of the owners.