Dserver  v1.0 (Build 0010)

 

Allgemein:

 

Der DeviceServer (DServer) bildet die Schnittstelle zwischen DDE basierten Applikationen wie Intouch-Visualisierung und den lokalen oder entfernten Devices. Unterstützt werden derzeit: VIPA CP143 TCP/IP, VIPA CP243 TCP/IP und die Kachelkommunikation über den VIPA IndustriePC. Tests wurden mit bereits unterschiedlichen Kundenapplikationen durchgeführt.

 

 

 

Leistungsmerkmale:

 

 

 

Was wurde noch nicht umgesetzt:

 

 

 

Unterschiede zum M.A.P –  und anderen DDE-Servern:

 

 

 

Installation:

 

-DebugLevel0  Protokolliert Zustände, die nicht durchlaufen werden sollten, aber gehandelt werden.

-DebugLevel1  frei

-DebugLevel2  frei

-DebugLevel3  Protokolliert Fehler bei der Initialisierung, API des WW Toolkit, und schließt Level 0..2 ein.

 

 

Inbetriebnahme:

 

 

 

S5 Item Definitionen:

 

Datenbaustein: DB

x=1..255, y=0..2047, n=0..2047, m=0..2046, z=0..15, v=2..max DB size

Data Format

Item

Suffix

Type

Range

Bit

DBx Dy.z

 

Discrete

0, 1

String

DBx Sy.v

 

Message

2..max

Left Byte

DBx DLy

 

KF

Integer

Integer

0..255

-128..127

Right Byte

DBx DRy

 

KF

Integer

Integer

0..255

-128..127

Word

DBx DWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

DBx DDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Erweiterter Datenbaustein: DX

x=1..255, y=0..4095, n=0..4095, m=0..4094, z=0..15, v=2..max DX size

Data Format

Item

Suffix

Type

Range

Bit

DXx Dy.z

 

Discrete

0, 1

String

DXx Sy.v

 

Message

2..max

Left Byte

DXx DLy

 

KF

Integer

Integer

0..255

-128..127

Right Byte

DXx DRy

 

KF

Integer

Integer

0..255

-128..127

Word

DXx DWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

DXx DDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Merker: M/F

x=0..255, y=0..255, n=0..254, m=0..252

Data Format

Item

Suffix

Type

Range

Bit

Mx.y, Fx.y

 

Discrete

0, 1

Byte

MBx, FBx

 

KF

Integer

Integer

0..255

-128..127

Word

MWn, FWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

MDm, FDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Eingänge: E/I

x=0..127, y=0..7, n=0..126, m=0..124

Data Format

Item

Suffix

Type

Range

Bit

Ex.y, Ix.y

 

Discrete

0, 1

Byte

EBx, IBx

 

KF

Integer

Integer

0..255

0..127

Word

EWn, IWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

EDm, IDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Ausgänge: A/Q

x=0..127, y=0..7, n=0..126, m=0..124

Data Format

Item

Suffix

Type

Range

Bit

Ax.y, Qx.y

 

Discrete

0, 1

Byte

ABx, QBx

 

KF

Integer

Integer

0..255

-128..127

Word

AWn, QWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

ADm, QDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

(Erweiterte) Peripherie: P/O

x=0..255, y=0..7, n=0..254, m=0..252

Data Format

Item

Suffix

Type

Range

Bit

Ox.y

 

Discrete

0, 1

Byte

OBx

 

KF

Integer

Integer

0..255

-128..255

Word

OWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

ODm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Zähler: Z/C

x=0..255

Data Format

Item

Suffix

Type

Range

Word

Zx, Cx

 

Integer

0 .. 999

 

Timer: T

x=0..255

Data Format

Item

Suffix

Type

Range

Word

Tx

 

Real

0.0 .. 999.3

 

 

Bekannte Fehler:

 

 

 

 

ABC I T

Ahrens & Birner Company

Informations Technologie GmbH

Vilstalstr. 163

D-92245 Kümmersbruck

 

fon

+49 (0)911-5075454

fax

+49 (0)911-5075429

mobil

+49 (0)172-8109613

mailto:info@abcit.de

http://www.abcit.de/

 

 

 

 

 

 

 

 

 

 

 

 

 

 

General details

 

The DeviceServer (DServer) makes an interface between the DDE based application such as Intouch-Visualisation and the local or remote devices. The VIPA CP143 TCP/IP, VIPA CP243 TCP/IP and the backplane communication are presently support via the  VIPA Industrial PC. Tests have been already carried out in various customer applications.

 

 

n      The DServer is usable in existing systems according to client-application Plug&Play.

n      The connection of further devices is possible due to the modular structure.

n      The parameterization of the DServer must be made with VIPA WinNCS.

n      The DServer, which has the function of intelligent process communication as an integral element, represents a distributed system with the goal of reducing the system load.

 

Performance features:

 

n      Supports the VIPA TCPIP/H1 - Controller with the protocol TP4 (H1), TCP/IP and furthermore direct PLC access via the VIPA-IPC (backplane communication via standard data handling blocks).

n      The parameterization of the DServer is made with the WinNCS-Tool and incorporates itself in the VIPA communication packet. This results in all the advantages of a Windows based parameterization tool and the local and likewise remote parameterization of the DServers.

n      The CP143 TCP/IP supports reading and writing in the most current version with one virtual connection. Until now it was necessary to parameterize one connection for the reading and writing of data respectively. The DServer supports this feature whereby a noticable relief of the complete system is reached.

n      The complete scope of the intelligent process communication (IPC) is supported. The polling of data is no longer necessary. In general, the system load sinks up to  90%! This results in the following advantages: cost reduction through use of existing resources (cabling, HUBs, ...) and problem free integration of further visualization in an already existing network. The expensive change to 100Mbit – and Switch-Technology is more or less avoided.

n      The synchronized structure of the DServer prevents data inconsistency

n      Integration of the DServer as WinNT – Service.

n      The scalability of the DServer and the connected software protection is carried out via an identity entry in the registry of WinNT.

 

What is still not realized:

 

n      Dynamic topic select and deselect. Functions via COM/DCOM-Mechanism are planned for this and are in preparation.

n      IPC can still not be run via TP4 (H1). This function, when necessary, is to be integrated beforehand in the CP143 TCP/IP.

n      Item-Diagnosis via COM/DCOM.

n      Installation of the Server + DLLs via a corresponding installation-Wizzard.

 

Difference to M.A.P and other DDE-Servers.

 

n      The data communication is dealt with via one virtual connection. A corresponding release of the TCPIP/H1 - Controller is necessary for this.(as of Version v135 for the CP143 TCP/IP).

n      The write and read functions in the polling operation are synchronized (.. waiting for answer). The values which are to be written are handled with high priority.

n      The Client-Interface of the DServer supports the communication via DDE, Fast-DDE (Intouch) and Suite-Link (Intouch).

n      Multiple topic definition with different update-times is not supported. This function is no longer necessary in distributed systems with IPC.

 

Installation:

 

n      The installation of the DServer is relatively easy due to the copying of the necessary data into a corresponding pre-assigned directory.

n      A directory is assigned, eg.. C:\ABCIT\DServer. Afterwards an image of the disk/CD is copied into this directory (DServer.exe, H1DLLNT.dll, CPWKNT.dll, ATL.dll).

n      A corresponding path can be carried out under, system controller/system/ environment. This is necessary when the Intouch-viewer automatically starts the DServer.

n      The Server is registered for the system by the calling of the Server with the parameter -RegServer. In the registry, entries for COM/DCOM and authentication are carried out. With the ‚regedt32’ service program from WinNT the entries can be viewed.

n      Under „HKEY_LOCAL_MACHINE\Software\ABCIT\DServer” keys can be found such as ‚Authentication/AuthKey’ and ‚Authentication/UserKey’. The ‚AuthKey’ is  given by the system. With this key the ‚UserKey’ can be aquired from ABCIT (per E-Mail or Telefon). This key is necessary for the release of an unlimited run-time license.

n      However, even without the corresponding ‚UserKey’ it is possible to put the server into operation immediately. In Demo-Mode the DServer is active for approx. 24 hours.

n      If a server is no longer needed or if it is to be installed then all register entries can be deleted with the parameter -UnregServer. All settings will be deleted!! A new licensing is necessary because "AuthKey" and "UserKey" are unique.

n      The DServer is started without any parameter. The process can be observed with the Task Manager.

n      The DServer can be installed as WinNT Service with the parameter-Service. This is active after a reboot of the PC.

n      Debug information of the DServer is written in the Wonderware Logger. Here the server discriminates four debug levels (0 to 3). With the start of the DServer the following parameters can be entered:

-DebugLevel0 Logging states, which should not pass through but which should be dealt with.

-DebugLevel1 free

-DebugLevel2 free

-DebugLevel3 Logging error with the initialization, API of the WW Toolkit, and includes Level 0..2.

 

System start-up:

 

n      Make a directory, eg.‚C:\DServer’ and copy all files on the diskette into this directory.

n      Register the ATL.DLL with the command ‚regsvr32 atl.dll’.

n      The DServer will be completely remote controlled. The connection and topic definition occurs using the tool WinNCS. A server is exactly parameterized like the appendant CPs. It is important to take into account that the connection name corresponds to the topic name! With WinNCS it is possible to project and parameterize the complete installation. The DServer needs the Ssnr(interface number) and Anr(order number) for the management of the individual connections and for diagnosis.

n      It is important to know that with the CP143 TCP/IP firmware version v135 that reading and writing of data can occur on one connection. The Dserver makes use of this feature. To define a complete topic a point to point connection is necessary.

n      A DServer read and write topic is defined in the WinNCS TCP/IP connection mask with order type: fetch active and order type: single order, a CP143 TCP/IP connection with the order type: fetch passive and order type: single order. To establish a corresponding IPC-connection, the order type must be changed in both the orders in the IPC.

n      If the IPC function is activated, then the DServer will not carry out any further settings. With the acquisition of the corresponding server-license then this function is already activated. The CP143 TCP/IP makes this function available in that it activates it under ‚Sysconfig/IPC active’. The amount of the lists conform to the size of the application, whereby the value of 100 should be sufficient at first. Under ‚Connections/Systemparameter’ there is the possibility for further settings.

 

 

S5 Item Definition:

 

Datenbaustein: DB

x=1..255, y=0..2047, n=0..2047, m=0..2046, z=0..15, v=2..max DB size

Data Format

Item

Suffix

Type

Range

Bit

DBx Dy.z

 

Discrete

0, 1

String

DBx Sy.v

 

Message

2..max

Left Byte

DBx DLy

 

KF

Integer

Integer

0..255

-128..127

Right Byte

DBx DRy

 

KF

Integer

Integer

0..255

-128..127

Word

DBx DWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

DBx DDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Extended Datenbaustein: DX

x=1..255, y=0..4095, n=0..4095, m=0..4094, z=0..15, v=2..max DX size

Data Format

Item

Suffix

Type

Range

Bit

DXx Dy.z

 

Discrete

0, 1

String

DXx Sy.v

 

Message

2..max

Left Byte

DXx DLy

 

KF

Integer

Integer

0..255

-128..127

Right Byte

DXx DRy

 

KF

Integer

Integer

0..255

-128..127

Word

DXx DWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

DXx DDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Flag: F/M

x=0..255, y=0..255, n=0..254, m=0..252

Data Format

Item

Suffix

Type

Range

Bit

Fx.y, Mx.y

 

Discrete

0, 1

Byte

FBx, MBx

 

KF

Integer

Integer

0..255

-128..127

Word

FWn, MWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

FDm, MDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Input: I/E

x=0..127, y=0..7, n=0..126, m=0..124

Data Format

Item

Suffix

Type

Range

Bit

Ix.y, Ex.y

 

Discrete

0, 1

Byte

IBx, EBx

 

KF

Integer

Integer

0..255

0..127

Word

IWn, EWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

IDm, EDm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Output: Q/A

x=0..127, y=0..7, n=0..126, m=0..124

Data Format

Item

Suffix

Type

Range

Bit

Qx.y, Ax.y

 

Discrete

0, 1

Byte

QBx, ABx

 

KF

Integer

Integer

0..255

-128..127

Word

QWn, AWn

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

QDm, ADm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

(Extended) Peripherie: P/O

x=0..255, y=0..7, n=0..254, m=0..252

Data Format

Item

Suffix

Type

Range

Bit

Ox.y

 

Discrete

0, 1

Byte

Obx

 

KF

Integer

Integer

0..255

-128..255

Word

Own

 

KF

BCD

KC

Integer

Integer

Integer

Integer

0..65535

-32768..32767

-999..999

0..999

Double Word

ODm

 

BCD

KG

Integer

Integer

Real

-2147483648..2147483647

-9999999..9999999

floating point

 

Counter: C/Z

x=0..255

Data Format

Item

Suffix

Type

Range

Word

Cx, Zx

 

Integer

0 .. 999

 

Timer: T

x=0..255

Data Format

Item

Suffix

Type

Range

Word

Tx

 

Real

0.0 .. 999.3

 

 

Known errors:

 

 

 

ABC I T

Ahrens & Birner Company

Informations Technologie GmbH

Vilstalstr. 163

D-92245 Kümmersbruck

 

fon

+49 (0)911-5075454

fax

+49 (0)911-5075429

mobil

+49 (0)172-8109613

mailto:info@abcit.de

http://www.abcit.de/