Develop a Communication Driver
- Last UpdatedNov 08, 2024
- 2 minute read
-
Open Visual Studio 2022 as administrator.
-
Click File > New > Project.
The New Project window appears.
-
In the New Project window, under Installed > Visual C++, select OI Server as a project type.

-
In the Name field, enter the name of the Communication Driver that you want to create. Ensure that the name:
-
does not exceed 15 characters.
-
does not contain any special characters like _, $, #, @, etc.
-
is not prefixed with 'OI'.
-
does not have any spaces.
-
-
Click OK.
In the Solution Explorer, an empty but working solution of the Communication Driver is created.

-
Find and replace all instances of $VENDORNAME$ in the entire solution with the correct name of the vendor of the Communication Driver and save the solution.

-
To replace the default splash screen of the Communication Driver, go the location where you have saved the output folder (refer to step 5), and open [Communication Driver] / [Communication Driver]ProductInstall / Support and replace the SplashScreen.bmp file with your own splash screen. This is an optional step and can be followed only if you want the splash screen to contain the branding of your Communication Driver.
-
In release mode, right-click on each project in the Solution Explorer and click Build. Ensure that you build the projects in the following order:
-
[Communication Driver]
-
CFG_[Communication Driver]_PORT
-
CFG_[Communication Driver]_PLC
-
[Communication Driver]ConfigtimeMsm
-
[Communication Driver]RuntimeMsm
-
[Communication Driver]ProductInstall
-
-
After all the project builds are completed, open the output folder in the location that you had provided while creating the new project. Go to Stage > Install and copy the CD-[Communication Driver] folder on the machine where you want to install the Communication Driver.
Note: The Communication Driver can be installed only on a machine which has Communication Drivers Pack 2023 R2 SP1 or above.
-
Double-click and run the Setup-OI-[CommunicationDriver].msi file and click Install.
You can see the newly installed Communication Driver in OCMC with the default configuration options.

If you want to add additional configuration parameters, refer to the section below on 'Add a new configuration parameter.'