C++
User Mode Only for User Mode, not for Real-Time. |
Preparation of Visual Studio
This section explains how to include the files required for IPC diagnostics for programming in C++ in Visual Studio 2010.
The files can be found in the IPC diagnostics installation directory (Windows: C:\Program Files (x86)\Beckhoff\IPC-Diagnostics\API\C).
- 1. Start Visual Studio and create a new Visual C++ Win32 console application.
- 2. Confirm the default settings of the project wizard.
- 3. Open the project properties.
- 4. Enter MDPApi.lib (from C:\Program Files (x86)\Beckhoff\IPC-Diagnostics\API\C\Lib\Win32) as additional dependency.
- 5. Add the MDPApi header:
#
include"C:\Program Files
(x86)\Beckhoff\IPC-Diagnostics\API\C\Include\MdpApi.h"
- 6. The program now has the following structure:
Prerequisites
Required | MDP version | Beckhoff Automation | Beckhoff BIOS |
---|---|---|---|
MDPApi.lib MdpApi.h | Current MDP version | Current BA Device Driver | Current Beckhoff BIOS |