Brief details of this edition and previous editions are listed below.
The status of each edition is shown by the code in the "Remarks" column.
Status code in the "Remarks" column:
A ...........................New documentation.
B ...........................Unrevised reprint with new Order No.
C ...........................Revised edition with new status.
EditionOrder No.Remarks
06.946FC5198-3AA70-0BP0A
11.946FC5198-4AA70-0BP0C
12.956FC5198-5AA70-0BP0C
04.966FC5198-5AA70-0BP1C
07.976FC5198-6AA70-0BP0C
01.996FC5198-6AA70-0BP1C
09.016FC5198-6AA70-0BP2C
This manual is included in the documentation on CD-ROM (DOCONCD)
EditionOrder No.Remarks
10.016FC5 198-6CA00-0BG2C
Trademarks
SIMATIC
, SIMATIC HMI, SIMATIC NET, SIROTEC, SINUMERIK and SIMODRIVE are
registered trademarks of Siemens AG. Other brands mentioned in this publication might be trademarks
whose use by a third party for his own purposes could violate the rights of the proprietors.
Further information is available on the Internet under:
http:/www.ad.siemens.de/sinumerik
This publication was produced with Microsoft Word V 7.0
and Designer V 4.0.
The reproduction, transmission or use of this document or its contents
is not permitted without express written authority. Offenders will be
liable for damages. All rights, including rights created by patent grant
or registration of a utility model or design, are reserved.
Siemens AG 2001. All rights reserved
Other functions not described in this documentation might be
executable in the control. This does not, however, represent an
obligation to supply such functions with a new control or when
servicing.
We have checked that the contents of this document correspond to the
hardware and software described. Nonetheless, differences might exist
and therefore we cannot guarantee that they are completely identical.
The information contained in this document is, however, reviewed
regularly and any necessary changes will be included in the next
edition. We welcome suggestions for improvement.
Subject to change without prior notice.
Order No. 6FC5198-6AA70-0BP2Siemens-Aktiengesellschaft
Printed in the Federal Republic of Germany
09.01
Preliminary Remarks
Notes for the reader:The SINUMERIK documentation is organized in 4 parts:
• General Documentation
• User Documentation
• Manufacturer Documentation and
• Service Documentation
This manual is intended for OEM customers and manufacturers of
machine tools who use the SINUMERIK 840C OEM Version for
Windows.
The software of the integrated MMC of the SINUMERIK 840C OEM
Version for Windows includes the operating systems:
• MS-DOS 6.22
• MS-Windows for Workgroups 3.11 (WfW 3.11)
• FlexOS
The control can be started up both under Windows for Workgroups
3.11 and FlexOS. If FlexOS is booted, the control is functionally
identical with the SINUMERIK 840C/CE (basic version).
Booting under WfW 3.11 provides the OEM customer or machine
manufacturer with a way of integrating his own technological expertise
into the control under a widely used operating system platform.
Moreover, with MS Windows it is possible to make use of the wide
range of inexpensive software for technical and industrial applications
on the control.
This manual describes the method of operation and parameter options
of the internal software modules of the integrated MMC and provides
the user with the information required to develop and integrate his own
applications into the software system.
This manual is intended to be introductory, so the reader does not
need any special knowledge except for experience of NC technology
and a basic knowledge of how to program the MS Windows operating
system.
For the acquisition or improvement of knowledge of these subjects, we
recommend the training courses provided by SIEMENS. Please
consult your local SIEMENS branch office or national company for
further information.
09.01
The Manufacturer Documentation for the 840C control is subdivided
into the following parts:
• Interface
- Part 1: Signals
- Part 2: Connection Conditions
• PLC 135 WB/WB2/WD Planning Guide
• Function Macros
• Planning Guides
- Package 0: Basic Functions
- Package 1: Tool Management
- Package 4/5: Computer Link
- Package 7: Code Carriers
- Package 8: PLC Controlled Data Input/Output
There are also SINUMERIK publications that apply to all SINUMERIK
controls (e.g. Measuring Cycles, CL 800 Cycle Language)
You can obtain more details from your local Siemens branch office or
national company.
When using SINUMERIK Safety Integrated (SI) in connection with
OEM applications for 840 C Windows, please observe the notes
given in the Safety Integrated documentation.
This manual only applies to the control
SINUMERIK 840C, OEM Version for Windows,
Software Version 4, 5 and 6
For more detailed information on the MS DOS and MS Windows
operating systems, please refer to the original documentation of the
Microsoft Corporation
MS-DOSis a registered trademark of the Microsoft Corporation
is a registered trademark of the Microsoft Corporation
MS
Microsoft
is a registered trademark of the Microsoft Corporation
Windows
Visual Basic
Visual C++
ROBOHELP
is a trade name of the Microsoft Corporation
is a trade name of the Microsoft Corporation
is a trade name of the Microsoft Corporation
is a registered trademark of the Blue Sky Software Corporation
09.01
Warning notes
The following warning notes with varying degrees of severity are used in the documentation:
Danger
Indicates an imminently hazardous situation which, if not avoided, will
result in death or serious injury or in substantial property damage.
Warning
Indicates a potentially hazardous situation which, if not avoided, could
result in death or serious injury or in substantial property damage.
Caution
Used with the safety alert symbol indicates a potentially hazardous
situation which, if not avoided, may result in minor or moderate injury or
in property damage.
Caution
Used without safety alert symbol indicates a potentially hazardous
situation which, if not avoided, may result in property damage.
Notice
Used without the safety alert symbol indicates a potential situation
which, if not avoided, may result in an undesirable result or state.
More and more often machine tool manufacturers are faced with the task not only of developing
standardized machine tools but also special solutions for manufacturing technology. In particular,
higher and higher demands are being placed on the functionality of a CNC control. The demands are
often machine-specific and cannot be fully covered by standard products.
On the other hand, there is a desire to use the freedom afforded by the control to give it its own
appearance and/or include technological know-how. Previous man-machine interfaces (MMC) were
mostly based on control-specific software systems and demanded special knowledge of the solution in
question. A further disadvantage of such systems is their "closed" character which often means that
function expansions can only be included with great effort.
Today, there is a demand for "open-ended" control systems. This applies not only to the user interfaces
and the operating system but also to the entire computer hardware. To meet this demand, SIEMENS
has developed the SINUMERIK 840C OEM Version for Windows, an AT compatible MMC that is based
on the "open" operating systems MS-DOS 6.22 and MS Windows for Workgroups 3.11.
The MMC variation permits the use of numerous commercially available hardware modules in
conjunction with the AT box and therefore the integration of existing hardware solutions directly into the
control. The applications of such solutions include:
• Remote diagnostics
• Measuring data acquisition for quality assurance and process control
• MDA/PDA systems (machine and production data acquisition)
• DNC systems (program management and transmission)
Moreover, it is possible to benefit directly from the advantages of the broad range of industrial and
commercial software available. This means that the same programming workstation software with the
same user-friendliness can be used both on an external PC during work preparation and directly on the
control.
For customer developments, Windows for Workgroups 3.11 provides a reliable and stable platform and
a minimization of compatibility problems in the future. Moreover, this operating system ensures great
flexibility and cost-effective network-capability for the entire control system. With the pr ogramming tools
available on the market, the machine-tool manufacturer has the option of developing his own
applications and integrating them into the control.
With Visual Basic for Windows, Microsoft has developed a programming tool that cleverly combines the
advantages of Windows with the programming language Basic. There is scarcely another programming
system with which it is so easy to write Windows programs. Using predefined "Custom Controls", even
a beginner can develop professional Windows user interfaces in a simple way. Windows and menus
can be opened and closed with simple program commands and the input and output of the program
user can be managed and visualized.
However, anyone aiming at professional development cannot do without Visual C++. C++ is currently
the first choice when it comes to solving complex programming problems in a simple way. With visual C
it is possible not only to write programs for Windows but also under Windows, and that faster and more
easily then ever before. Integrated tools such as AppWizard and ClassWizard save the programmer a
lot of time-consuming and error-prone administration work, allowing him to concentrate on the actual
problem to be solved.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA701-1
SINUMERIK 840C OEM Version for Windows (BN)
1 Introduction
09.01
Windows applications can exchange data with the NCK, PLC and 611D via the DDE interface defined
by Microsoft (Dynamic Data Exchange). Via the DDE server, which is also part of the OEM package,
data are transferred from the applications and from and to the NCK, PLC and 611D. The methods
"POKE" (write data), "REQUEST" (read data) and "EXECUTE" (commands for file transfer) are
implemented. Towards the PLC the "ADVISE" method is also implemented. The data that can be
accessed via the DDE server include machine data, setting data, PLC data blocks, part programs etc.
Simply by entering applications in an initialization file, they are integrated into the area switchover and
can be started either automatically when the control is booted or by the user by means of softkey or
PLC command. Examples of such customer applications include:
• Tool management and visualization
• Pallet management
• Job management
• Machine diagnosis
With the OEM package, the machine-tool manufacturer obtains not only the DDE server and a few
library routines but also a complete simulation and test environment for an external PC. With a
commercially available programming tool (e.g. Visual Basic, Visual C++, etc.) the machine-tool
manufacturer can develop and test his own applications on an external PC.
The following section of this documentation deals with the requirements for and the installation of the
OEM test environment and the OEMFORM alarm tool.
Chapter 3 provides a system description of SINUMERIK 840C OEM Version for Windows. This
description includes both the hardware architecture of the control and the method of operation and
parameterization of the Siemens basic modules.
The alarm concept described in previous editions in Chapter 4 has been taken out to form a separate
documentation from the current software version on.
The next section contains a brief introduction to the method of operation of the Windows DDE and a
detailed discussion of the various communications options of OEM applications with the NCK and PLC.
The DDE section is completed with a description of some sample programs that show the reader how
to integrate his own applications and serve as a guide for the development of custom applications.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
2 Overview and Installation
09.01
2 Overview and Installation
The OEM package comprises a PC test and simulation environment of the SINUMERIK 840C with
which customer applications can be tested before they are loaded into the control. The package also
contains several test utilities and sample programs including all the source files and resources to
introduce you to program development for SINUMERIK 840C OEM Version for Windows. You can also
load the sample programs directly into the control, for example, to perform runtime measurements of
the data transfer between the MMC and the NCK or the MMC and the PLC. You will find the simulation
and test environment on the four diskettes labeled:
"SINUMERIK 840 C/CE OEM Package Windows DISK x V06.04.01"
The installation programs will expand each of the necessary files and copy them into the correct
directory so that the programs function correctly.
If you have any questions regarding installation, please contact you local Siemens branch office or
Siemens national company.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA702-1
SINUMERIK 840C OEM Version for Windows (BN)
2 Overview and Installation
09.01
2.1 System requireme nts
Your PC must fulfil the minimum requirements listed below if the test environment is to function
correctly.
Hardware:25 MHz 386 or larger
Memory:4 MB RAM, approx. 21 MB free space on the hard disk
Monitor adapter:VGA resolution (640
Operating system:MS Windows 3.1 or MS Windows for Workgroups 3.11, Windows 95,
Windows NT
MS-DOS 6.22 or higher
You must also enter the Windows directory in the PATH of the AUTOEXEC.BAT. Please note that in
addition to the OEM package you will also need a programming tool for pr ogramming under Windows
(e.g. MS Visual Basic, MS Visual C++, Borland Pascal, etc.) to create your own applications which you
must purchase on the open market. Please consult the documentation supplied with it for the system
resources required (processor, RAM and hard disk memory, operating system etc.).
×480 pixels)
2.2 Installation proce dure
The OEM test environment is installed under menu guidance under the Windows operating system.
1.First start Windows if it is not yet active.
2.Place installation diskette 1 (labeled: OEM Package Windows V06.01.01) in your disk drive.
3.Read the README.TXT file and perform the installation according to the specifications.
Caution:
If a new database that has been created with OEMFORM is to be linked into the test
environment, after copying the requested databases into directory c:\oem\<language>, the
program DBTXTUPD.EXE must be called up in a DOS box (or directly under DOS) in the
directory C:\MMCWIN\PE with the selected language as parameter, e.g. DBTXTUPD for
German.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
2 Overview and Installation
09.01
2.3 Additional notes on the OEM t est environment
• When you copy the keyboard drivers you might find that Windows is currently using one of
these drivers. You can acknowledge the message that appears on the screen with the
button "IGNORE".
• The font in the editor "WEdit" might differ slightly from the font on the control. An
equivalent font is not loaded in the test environment.
• The OEM test environment has been developed for a VGA resolution of (640×480 pixels).
If you use a higher resolution, the OEM test environment uses an equivalent portion of the
full screen. The OEM test environment is, however, still fully functional.
• The softkey bar that displays the menu list for the application currently active can be
hidden by calling the softkey manager SOFTMAN.EXE again in directory C:\MMCWIN\PC.
• The appearance of several applications can be altered in the installation file SIN840C.INI
(see Section 3.5) in directory C:\MMCWIN\PC. The window size and foreground/
background behavior of applications can be altered with the following options:
-Window always on top:topmost=on/off
-Window size:position[ ... ]
• In the MACHINE basic display of the test environment, the 1st softkey on the NC control
panel corresponds to function key F2. In all other applications, the 1st softkey corresponds
to function key F3.
Machine basic display:
[∆]
F1 [M]
Other applications:
• You can switch between test environment tasks using the standard MS Windows mecha-
Siemens AG 2001. All Rights Reserved 6FC5198-6AA702-3
SINUMERIK 840C OEM Version for Windows (BN)
2 Overview and Installation
PCMCIA
h
09.01
2.4 Directory structure of the OEM test environment
When you have installed the OEM test environment you will find the following directory structure on
drive C: of your hard disk:
mmcwin
—
— PC
englis
The OEM test environment contains the following subdirectories:
• Directory "local". This directory contains the workpieces that have been created
(subdirectories) together with all the files (mpf...,spf..., toa, etc.) required for machining a
workpiece. This directory is also part of the system software of the contr ol. After installation,
only the workpiece with the name "standard" exists.
• Directory "md" usually contains the machine data of the control. As no real NCK or PLC exist
in the OEM test environment, the associated subdirectories are "empty", i.e. they only contain
the obligatory "dummy" files. Both the workpieces and the directory with the machine data
can be selected and edited under the data management of the OEM test environment.
• Directory "mmcsrc" contains a number of sample programs including all the source and
resource files. These sample programs are intended to provide you with help in developing
your own applications.
The sample programs have either been developed with Microsoft Windows 3.1 SDK or
MFC 2.0 (C:\MMCSRC\MSC) or with Microsoft Visual Basic 3.0 (C:\MMCSRC\VB). They are
available either as executable *.EXE files or as entire projects with resources, source code,
libraries and header files.
The sample programs VSASER.EXE, ADVTEST.EXE and TACHO.EXE are already linked
into the OEM test environment and can be started directly from it. You will find a
description of the sample programs in Chapter 6.
• Directory C:\MMCWIN\PCMCIA contains 3 com driver floppy disks, XIRCO M driver floppies
and PC-CARD HD Patch.
• Directory C:\MMCWIN\PC contains all the basic modules of 840C OEM Version for Windows.
This directory exists both in the OEM test environment as well as in the contr ol. In addition to
the basic components such as area switchover, data management, the editor "WEdit" etc.,
this directory contains the actual DDE server (DDESRV.EXE) for linking Windows
applications to the NCK, PLC and 611D. This directory also contains a multiport RAM
simulator (MPRSIM.EXE) for PC use. You will find a description of the basic modules in
Section 3.3.
• Directory \mmcwin\pc\bild contains the machine displays that are displayed in the OEM test
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
3 System Structure of 840C
3.1 Overview
The product SINUMERIK 840C OEM Version for Windows provides the machine-tool manufacturer
with a sophisticated and modern control which is used as a basis for integrating additional function
expansions and customer-specific solutions.
3.1.1 Hardware concept
The following hardware configuration was chosen to meet the demands for "open architecture" and
adaptability.
External
programm ing
MMC
device or
Comm unication
NCKPLC
A T-compatib le PC
Fig. 3.1: Functional st ructure of SINUMERIK 840C OEM Version for Windows
The CNC 840C control can be divided into the following three components:
MMC=PC:With this integrated AT-compatible PC with the operating system Windows for
Workgroups 3.11, the machine-tool manufacturer can make individual
adaptations and develop his own solutions on all levels of the user interface
(MMC=Man Machine Communication) including communication with the NCK
and the PLC. The AT box of central controller 3 also provides the user with open
architecture hardware.
NCK:The actual NC kernel works with a 32-bit word size and an NC memory of 1 MB.
Up to 6 spindles can be operated from its 15 servo loops. Several programs can
be executed simultaneously due to its channel structure. Data can be exchanged
with the MMC and the PLC via the DDE interface and the VDI interface. Using
program package WS800 A, machine displays can be configured in the NCK
and customized machining cycles created and the control therefore adapted to
the individual tasks of the machine tool.
PLC:The PLC section of the SINUMERIK 840C is responsible for the entire machine
control and always contained the essential know-how of the machine-tool
manufacturer. 1024 inputs and outputs, a 256-KB user memory and a
processing speed of less than 1 ms per 1000 instructions are the salient features
of the freely programmable PLC.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA703-1
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
3.1.2 Software structure of the integrated PC
The system software of the CNC control 840C OEM Version for Windows comprises the 840C system
software basic version (FlexOS) which has been expanded by a Windows MMC. The OEM test
environment essentially consists of modified MMC Windows software installed on the hard disk which
enables simulation of the Windows SINUMERIK 840C interface on an external PC. The diagram below
shows the distribution of the entire control software on the hard disk.
Fig. 3.2: Main divisi on of the software on the hard disk of the 840C OEM Version for Windows
1. The installation functions (MD dialog, drive/servo installation) in the Diagnosis area can only be
executed under MMC FlexOS. The operating system FlexOS can be selected in the
backup/restore menu.
2.
Common software includes DOS, Valitek and NCK, PLC and drive software. This software r uns
with the Windows MMC without any restrictions.
The Windows MMC consists of the operating system Windows for Workgroups 3.11 and a
3.
Windows basic system (basic modules) which, like the basic version (FlexOS), is responsible for
the basic functions of the Windows control panel and operation. The user can also install the
software in the five standard languages (English, German, French, Italian and Spanish) and
switch between the individual languages.
4.
The DDE server (Dynamic Data Exchange) is the data interface to the NCK, PLC and 611D. The
DDE server is both part of the OEM package and the control software. However, it can only be
executed with the library MEMBER.DLL supplied with the OEM package.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
The user area can be used both by the machine-tool manufacturer and the end user. The OEM
5.
can use the part of the hard disk that is not used by Siemens which is paid for when the MMC
Windows licence is purchased. A memory size of at least 40 MB is guaranteed. As it is possible
to integrate OEM software under Windows, space on the hard disk is provided for customized
programs that can be developed using commercially available tools.
6.
The user area can also be used for end user data such as part pr ograms, measurement data,
order data, MDA/PDA data etc.
The individual operating system components, as well as the Siemens basic modules and the OEM
applications can interact as shown below and exchange information with the NCK/PLC and the 611- D.
Fig. 3.3. clearly shows the interaction between the Windows system software and the basic modules
and OEM applications.
NCK/PLC service
NCK programming
Parameters
Machine operation
1
V24 parameterization
Data management
Area switchover
235
WEdit
Basic system
DOS / WINDOWS
NCK / PLC / 611-D
Fig. 3.3: Interaction bet ween M M C Wi ndows and OEM applications
OEM appl.
< . . . . > . exe
4
DDE
server
1. The machine displays created in the NC kernel with WS800 A are passed directly to the user
interface via a graphics converter (NCK task), i.e. the operator receives the information directly
from the NCK/PLC and 611-D. Conversely, (nearly) all the entries made via the keyboard on the
control panel or the MF2 keyboard are passed onto the NCK.
2.
In addition to the NCK task, other Siemens basic modules carry out numerous functions in the
MMC area. The area switchover is therefore used to start additional applications and the data
management to manage the files on the hard disk and to transfer data between the MMC and
the NCK or peripheral device.
3.
The OEM applications like the Siemens applications (e.g. machine operation, parameters, etc.)
are initiated via the area switchover. Some of the basic modules also contain special function
calls (e.g. workpiece transfer via serial interface) which can also be used by OEM applications.
The OEM applications can be operated in the usual way via the operator panel or keyboard.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA703-3
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
Data on NCK, PLC, 611D is accessed using the DDE server via the DDE interface defined by
4.
Microsoft. This interface is supported by nearly all Windows programs (EXCEL, WORD, etc.) and
development tools (MS-Visual Basic, Visual C++, etc.) and guarantees a high degree of
development safety and stability due to its fixed definition and widespread use.
5.
OEM applications can also directly access services in the DOS/Windows oper ating system. File
manager, printer, Windows API (Windows Application Programmers Interface), etc. calls can be
used in the usual way.
3.1.3 Basic modules
The MMC Windows basic system together with the operating system are r esponsible for operation of
the integrated PC. The MMC Windows basic modules and the OEM test environment are largely
identical. All the standard modules have a compatible structure and a uniform appearance which can
be modified by making entries in the initialization files. Basic modules that run in the background (e.g.
multiport RAM driver, keyboard driver, DDE server etc.) are configured in such a way that they do not
appear in the task list. This ensures that the user only accesses applications that he can see in the task
list.
The following diagram provides an overview of the most important modules in the basic system
840C WINDOWS Basic system
Start up
Area switchover
Graphics converter (NCK task)
Data management ASCII editor
V24 parameterization
Alarm module
NCK/PLC communication
Softkey manager
Keyboard driver
Backup/Restore
Fig. 3.4: Basic system OEM Version for Windows
•The start-up module (AUTOEXEC.BAT, REG_AUTO.CFG) organizes the loading of the MPR
server, the booting of the PLC/NCK and 611-D software. The user can also define in the
initialization file C:\MMCWIN\LOAD840C.INI which user files are to be transferred to the NCK
during start-up.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
•Individual applications can be started by the operator via softkey with the area switchover
(REGIE.EXE) which replaces the Windows program manager. It is activated via the data area
key. As far as the area switchover is concerned, the Siemens areas, "Machine", "Par ameter", ...,
are ordinary applications.
The menu line and the entries in the associated pull-down menus including the application to be
initiated (*.EXE files) can be freely defined in the initialization file (REGIE.INI). Applications can
also be protected with a password, keyswitch position and cycle disable. The area switchover is
preconfigured by Siemens and can be changed as necessary (e.g. removing the Machine area
and adding OEM applications). It can be operated either via the control panel keys, softkeys or
mouse.
•NCK task (NCKTASK.EXE) groups together the entire control of the NCK. Th is includes both the
display of graphic information that is processed in the NCK area as well as the transfer of
keyboard entries to the NCK. NCK task is also responsible for managing the current menus of
the various data areas of the NCK. In the OEM test environment where ther e is no link to an
NCK, NCK task visualizes machine displays that are stored on the hard disk.
•The data manager (DATENMAN.EXE) contains a user interface for transferring files between the
MMC, NCK, diskette drive and serial interface. A workpiece manager and an editor "WEdit"
(WEDIT.EXE) with which part programs can be edited directly in the NCK memory are also
provided.
With the workpiece manager it is possible to integrate network drives, making transparent
selection of workpieces that are stored on a remote computer possible. "Part program execution
from the hard disk or network" is also implemented. Files can also be edited directly in the NCK
memory with the editor.
•With the Parameterization V24 module (PAR_V24.EXE), serial interfaces can be par ameterized
for the transmission of data in tape format. Up to 10 interface settings can also be managed.
•The alarm module (ALARM.EXE) accepts alarms and messages from the NCK/PLC/drive,
visualizes them in the alarm or message line and lists the current alarms and messages in the
alarm window. The position at which the alarm is displayed on the screen is defined in the alarm
text database. An OEM application can obtain the current active alarms and messages via the
Windows DDE mechanism (Dynamic Data Exchange) and initiate its own.
•The NCK/PLC communication essentially consists of the DDE server (DDESRV.EXE) and the
MPR server (SERVER.EXE) which allow the modules described above and the OEM
applications to exchange data with the NCK/PLC and the 611D. In the OEM test environment,
the multiport RAM server is replaced by an MPR server simulator (MPRSSIM.EXE).
•The softkey manager (SOFTMAN.EXE) displays the menu line of Windows applications and the
buttons of non-system modal dialog boxes on the horizontal softkey bar. It is thus also possible
to operate any Windows application via softkey.
•The keyboard driver (KYRU.EXE) converts signals coming from the 840C operator panel into
codes which can be evaluated by Windows or DOS. This same thing happens when a full MF2
keyboard is connected to the operator panel. A keyboard can only be connected to the central
controller for OEM servicing because of the lack of EMC of the keyboard connection.
The user can also freely assign various keys on the NC operator panel.
•Data can be saved and read back in via the Valitek streamer or via PC link as on the 840C Basic
Version. The streamer is connected to the parallel interface of the MMC CPU module. You must
close Windows and return to the MS DOS level to operate the streamer.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA703-5
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
3.1.4 NCK / PLC / SIMODRIVE 611-D interface
Data/files of the NCK/PLC/611D are accessed via the DDE interface (Dynamic Data Exchange) defined
by Microsoft for Windows applications. The DDE server collects the data and makes them available to
the applications. The functions "POKE" (write data), "REQUEST" (read data) and "EXECUTE"
(commands for file transfer) are implemented. The function "ADVISE" is also implemented for the PLC.
Data exchange with standard Windows programs such as Excel, Visual Basic, etc. is possible via this
interface. The DDE server can access, for example, machine data, setting data, PLC data blocks, part
programs and current values.
. . .
BORLAND C++
VISUAL C++
VISUAL BASIC
E X C E L
1
= NC DDE NCK PLC ! NC_0X125_1_1_2_2_0
2
3
AB
100
Speed
50
spindle
0
Read and write
data, programs
DDE server
NCK/PLC/611-D
Fig. 3.5: Data exchange via DDE server
The DDE server converts the data request into an I code protocol and passes it on to the NCK. There,
a software module sends the requested data to the DDE server.
Two function blocks exist in the PLC, FX74 (read data from DDE server and write to a data block) and
FX73 (read data from a data block and write to the DDE server). The user can fr eely select the for mats
and the protocols. For this, he must write a function block that reads out the data with the help of FX74,
interprets them and writes back the requested data with FX73.
Service and drive data can be accessed for the SIMODRIVE 611-D. The DDE server is only used for
data exchange and is not a control interface.
You will find a detailed description of the DDE server and the I code interface with its various features
in Chapter 5 and Appendix A1.
Siemens AG 2001. All Rights Reserved 6FC5198-6AA70
SINUMERIK 840C OEM Version for Windows (BN)
3 System Structure of 840C
09.01
3.2.2 Integrated PC
The PC is integrated into the system and is a system component that communicates via the internal
link bus.
Visualization and communication tasks and database functions are chiefly performed on this industrial
PC.
SINU M E RIK 840 C
Link bus
Multiport RAM
MMC
PLC CPU
CPU
(SBC)
NCKCPU
NCK local bus
Servo
loops
Fig. 3.7: MMC in the hardware of the 840C
Computer
link
PLC local bus
Int. EU
MSTT
CSB
AT 96
INT
MMCATBox
Operator
panel
The PC integrated in the 840C OEM Version for Windows provides all the functions of an AT
motherboard. The entire set of chips of an AT is integrated on one printed circuit board, which gives
rise to the name SBC (single board computer). The SBC is an industry-standard and noise-fr ee ver sion
of an integrated industrial PC. It is linked to the internal SINUMERIK bus via a dual-por t RAM and via
this link is able to exchange data with the NCK, PLC and SIMODRIVE 611-D.
An MMC interface module can be slotted into the central rack directly next to the MMC CPU module via
the AT96 bus. This module has two additional serial interfaces, two PCMCIA slots (type II) and a floppy
bus extension for connecting diskette drive FD-E2.
Central controller 3 also contains an AT box whose ISA bus is linked to the AT96 bus. A maximum of 3
standard 16-bit PC cards can be slotted into this AT box, providing the user with many options for
connecting peripherals (networking via standard PC modules) or integrating existing external solutions
directly to the control (measuring computer for quality assurance).
In contrast to a standard PC, however, the integrated SBS of the SINUMERIK 840C does not have a
loudspeaker.