PLBRUN Solution
The PLBRUN product is released as a Microsoft Visual Studio 2005 solution named 'plbrun.sln' that includes a PLBNET library and the required source modules that can be used to create a PLBNET runtime. The PLBRUN solution requires the Microsoft Visual Studio 2005 or later to allow a PLBNET runtime to be compiled by an end user.
Note:
Licensing is the responsibility of any Assembly that is loaded by the runtime. The runtime has implemented licensing as defined for a License Manager/Provider using standard Microsoft guidelines. Using these guidelines the following simplifies the expected process:
The .NET Assembly provides the required licensing data when the Assembly is loaded in design mode. A .NET Assembly is loaded in the PLB Designer in a design mode.
The PLB Designer/runtime stores the license information in a PLF form file.
As the PLF form file is compiled into a PLC program, the licensing information is saved into the PLC program.
When a PLF form is loaded by a PLC program, the .NET Assembly is loaded in a runtime mode. As the .NET Assembly is loaded, the Assembly is expected to retrieve the licensing data as it was stored into the PLF. At this time, the .NET Assembly can validate the licensing information.
The Licensing process as described in step (1.) is implemented by the majority of third party Assemblies. However, there are some third party assemblies that shortcut the normal Microsoft guidelines and require direct access to License data that is imbedded into the execution module of an application that loads the Assembly. This shortcut approach by some third party Assemblies requires that the Licensing data must be imbedded into the 'plbrun.exe' runtime.
The PLBRUN solution is being provided to allow the Licensing data to be imbedded into a 'plbrun.exe' runtime because a .NET third party Assembly uses the shortcut approach to access the Licensing data as an imbedded license resource.
Compiling the PLBRUN Solution without a license:
Install the PLBRUN files into any target directory using the Sunbelt Plbrun Installation procedure.
Start the Microsoft Visual Studio 2005.
Open the 'plbrun.sln' solution from the target directory.
Enter F7 to build the 'plbrun.sln' solution.or Ctrl+Alt+F7 to rebuild the 'plbrun.sln' solution.
The final execution module named 'plbrun.exe' can be found in the 'release' sub-directory in the target directory. The final execution module is named 'plbrun.exe'.
Compiling the PLBRUN Solution with a third party .NET assembly license.
Install the PLBRUN files into any target directory using the Sunbelt Plbrun Installation procedure.
Start the Microsoft Visual Studio 2005.
Open the 'plbrun.sln' solution from the target directory.
In the Visual Studio, under the Menu\Project entry, select the 'plbrun properties'.
Select 'Common Properties\References'.
Select the 'Add New Reference' followed by the 'Browse' tab.
Select the third party .NET Assembly to be referenced when building the 'plbrun.sln' solution.
Exit the 'plbrun properties'.
In the Visual Studio, under the Menu\Project entry, select the 'Add existing item' entry. Select the license '.licx' file that provides the license information required for the third party .NET Assembly that was referenced in step (G.). Enter F7 to build the 'plbrun.sln' solution or 'Ctrl+Alt+F7' to rebuild the 'plbrun.sln' solution.
The final execution module named 'plbrun.exe' can be found in the 'release' sub-directory in the target directory. The final execution module is named 'plbrun.exe'.
See Also: PLBCLI Solution
![]() |