Technical data

Linkage with PLC
CP 486 00/14 VIPA GmbH 183
6.5 Access on the CP386COM from WINDOWS
From the tool disk version 2.2 onwards a programme library for MS-WINDOWS 3.1 with the
following data is available:
The header file CP386WIN.H and the OBJ-file CP386WIN.OBJ.
The file CP386WIN.H contains the necessary definitions for an operation on WINDOWS.
The file CP386WIN.OBJ contains the communication functions on WINDOWS. The functions
have to be called as described in chapter 6.4 for DOS (exception: CP_stat_AG)
Changes in the function call:
CP_stat_AG: CP_stat_AG(byte r) with r = Order number.
New functions:
CP_init(void): Creates a data area for the communication on Dual Port RAM and
returns a pointer on this area.
CP_exit(void): Sets free the data area. This command has to be called at the end of the
programme.
Note: In the SYSTEM.INI under the section [386Enh] the Dual Port RAM area has to be
excluded with the command EMMExclude = ... from the WINDOWS memory
management in addition to the entry in the CONFIG.SYS!
(This is valid for all cases where the CP486 runs on WINDOWS 3.1 because WINDOWS
does not exclude the Dual Port RAM independently!)
Tool disk 2.2 contains an example for the operation under Windows.