KB ARTICLE
Overview
This article describes how to install the PLC-CFX Gateway.
Prerequisites
-
Download and install the .NET 6 Hosting Bundle from https://dotnet.microsoft.com/en-us/download/dotnet/6.0.
-
A new local or domain user account with local administrator rights on the target machine.
-
Microsoft SQL Server Management Studio (SSMS) access.
Installation procedure
-
Obtain the latest version of the PLC CFX Gateway installation package.
-
On the target machine, create the folder C:\Program Files (x86)\Aegis\PLCGateway\.
-
Copy all installation package contents into the newly created PLCGateway folder.
-
Configure the database (see the Database configuration section).
-
Create a new local or domain user account with local administrator rights on the target machine.
-
Create the ASP.NET Core service (see the Creating the ASP.NET Core service section).
-
Right-click PLCGateway\AegisCFXGateway.pfx and select Install PFX. Select Local Machine. When prompted for a password, enter GatewayAdmin123*. Select Place Certificate in the Following Store, then select Trusted Root Certification Authorities.
-
Edit the appsettings.json file in the PLCGateway folder to set the database connection string and PLCCFXGateway server details (see the Appsettings.json configuration section).
-
Open services.msc, navigate to Aegis PLC Gateway Service, then start the service.
-
Navigate to https://localhost:5251 and log in using the username admin and password GatewayAdmin123*.
Database configuration
-
Open Microsoft SQL Server Management Studio.
-
Create a new database and add the AegisSQL user.
-
Open the PLCGateway\EFSQLScripts folder and open the SQL script.
-
Run the SQL script against the new database created in the previous step.
Create the ASP.NET Core service
-
Open PowerShell ISE.
-
Edit the service creation script with the following values for your environment:
-
Execute the script. The service will be created.
$exeFolder = "C:\Program Files (x86)\Aegis\PLCGateway\"
$exePath = "C:\Program Files (x86)\Aegis\PLCGateway\Aegis.CFX.Gateway.Web.Server.exe"
$userName = "[ComputerNameOrDomain]\[UserName]"
$serviceName = "Aegis PLC Gateway Service"
Note
If you receive an error stating that scripts cannot run, use the Set-ExecutionPolicy command to adjust the execution policy to allow scripts.
Appsettings.json configuration
Edit appsettings.json in the PLCGateway folder, replacing all bracketed placeholders with actual values for your environment.
|
Setting |
Value format |
|---|---|
|
|
|
|
|
|
|
|
|