Set up Direct Drives Connectivity
-
Create or open a project.
-
From the toolbar, select
Template Libraries, and from the Scripts Library select the Direct Drive Connectivity script.
-
Drag the Direct Drive Connectivity script to the NetLogic folder in the project structure.
The
NetLogic folder is updated with the following objects:
- NetLogic[Folder]
- UpdateRateEnum[DataType]
- DriverTypeEnum[DataType]
- DirectDriveConnectivity[Folder]
- DriveConnectionDesignTimeNetLogic[NetLogic Script]
- DriveConnectionRuntimeNetLogic[NetLogic Script]
-
Navigate to the Product Compatibility and Download Center (PCDC), and select Download by Product.
-
In the search field, enter Optix
-
Select FactoryTalk Optix, and select Downloads.
-
Choose theSelect Files check box .
-
Download and extract the package Direct_Drive_Connectivity_v1.00.00.zip on the local drive.
-
Open config.xml, and modify required settings:
-
Provide the FactoryTalk Optix Studio location path.
-
Provide the FactoryTalk Optix Studio installation path.
For example:
<Settings>
<!--Enter proper path to your FT Optix Studio folder (for example: C:\Program Files\Rockwell Automation\FactoryTalk Optix\Studio)-->
<FTOptixStudioPath>C:\Program Files\Rockwell Automation\FactoryTalk Optix\Studio</FTOptixStudioPath>
<!--Enter proper path to your FT Optix project folder (for example: C:\Users\User1\Documents\Rockwell Automation\FactoryTalk Optix\Projects\NewHMIProject)-->
<FTOptixProjectPath>C:\Users\User1\Documents\Rockwell Automation\FactoryTalk Optix\Projects\NewHMIProject</FTOptixProjectPath>
</Settings>
where:
- C:\Program Files\Rockwell Automation\FactoryTalk Optix\Studio is the FactoryTalk Optix Studio location path.
- C:\Users\User1\Documents\Rockwell Automation\FactoryTalk Optix\Projects\NewHMIProject is the FactoryTalk Optix Studio installation path.
-
In PowerShell, run the install.bat script file.
Tip: You may need to adjust the Windows® PowerShell execution policy to enable the script.
The NuGet package is injected to your project defined in the config.xml file.