Definitions

The document describes the user interface D2000 KomAPI available for Windows and Linux.

The version of the protocol interface is 1.26.

Demonstration files (contained on D2000 System installation DVD) have been created in the development environment Microsoft Visual C/C++ v5.0 and v6.0. In the environment during creation of the project, there were set the parameter „Struct member alignment = 8 bytes“, except the structures, which use explicitly stated „pragma Pack“.
On Linux, GCC 6.2.1 was used to compile a template shared library (on Centos Linux 7.2).


Introduction

The user interface D2000 KomAPI allows creating a communication protocol (thereinafter protocol DLL) using sets of functions contained in the dynamic library (DLL). The communication process D2000 KOM calls the functions and also it supports the user by providing call-back functions, which use features of D2000 system communication objects (line, station, I/O tag).

For users, there are available the files definitions.h, OEM_Prot1.c, modbus.c and modbus.h (located on D2000 system installation DVD*), which can be used as examples for programming own protocols. The given example implements the protocol MODBUS according to the Modicon specification (see the documentation at http://www.modicon.com/techpubs).

* Note: Installation DVD D2000 Developer


Configuration of communication lines and stations

  • Protocol DLL interface can be used for communication lines of  ASYNC and EXTKOM category.
  • Usable station protocols: OEM_Prot1 up to OEM_Prot8.
Napíšte komentár