L5Sharp.Catalog
1.0.0
dotnet add package L5Sharp.Catalog --version 1.0.0
NuGet\Install-Package L5Sharp.Catalog -Version 1.0.0
<PackageReference Include="L5Sharp.Catalog" Version="1.0.0" />
<PackageVersion Include="L5Sharp.Catalog" Version="1.0.0" />
<PackageReference Include="L5Sharp.Catalog" />
paket add L5Sharp.Catalog --version 1.0.0
#r "nuget: L5Sharp.Catalog, 1.0.0"
#:package L5Sharp.Catalog@1.0.0
#addin nuget:?package=L5Sharp.Catalog&version=1.0.0
#tool nuget:?package=L5Sharp.Catalog&version=1.0.0
L5Sharp.Catalog
A .NET library for managing and querying Rockwell Automation module definitions, providing a robust infrastructure for discovering hardware configurations and creating Module instances for L5Sharp.
Overview
L5Sharp.Catalog decouples the core Logix model from the underlying hardware database. It provides a searchable repository of module definitions (catalog numbers, revisions, communication details, and connection templates) that can be seeded from multiple sources, including L5X project files, Rockwell's internal Catalog Services database, or custom definitions.
By using L5Sharp.Catalog, developers can easily discover valid module configurations and instantiate Module objects with all necessary attributes and child elements pre-configured, mirroring how they would be created within RSLogix/Studio 5000.
Features
- Unified Module Catalog: A single interface (
IModuleCatalog) to query and retrieve module definitions by catalog number and revision. - Fluent Builder API: Easily configure and seed your catalog using
ModuleCatalogBuilder. - Multiple Data Sources:
- Embedded Defaults: Includes a built-in library of common Rockwell Automation modules for immediate use.
- L5X Integration: Extract module definitions directly from existing L5X project files.
- Rockwell Database Support: Read directly from the local Rockwell Automation Catalog Services database.
- Strongly-Typed Revisions: Manage multiple versions of the same hardware with semantic revision support.
- Module Factory Methods: Create fully initialized
Moduleinstances directly from the catalog.
Installation
Install L5Sharp.Catalog via NuGet:
Install-Package L5Sharp.Catalog
Quick Start
Building a Catalog
Use the ModuleCatalogBuilder to aggregate definitions from various sources:
var catalog = new ModuleCatalogBuilder()
.WithDefaultModules() // Load built-in common modules
.WithModulesFromL5X("StandardTemplates.L5X") // Seed from a project file
.WithModulesFromRAD() // Load from local Rockwell database
.Build();
Creating Modules
Once built, use the catalog to create new Module instances for your L5X project:
// Create the latest revision of a ControlLogix processor
var controller = catalog.Create("MainController", "1756-L83E");
// Create a specific revision of an I/O module with custom configuration
var inputModule = catalog.Create("Input_Slot1", "1756-IB16", new Revision(2, 1), m =>
{
m.Description = "Main Intake Sensors";
m.ParentModule = "Local";
m.ParentPortId = 1;
m.Slot = 1;
});
Querying Definitions
You can also browse the catalog to find available hardware:
// Get all definitions for a specific catalog number
var revisions = catalog.Definitions("1756-IB16");
// Find a specific definition
if (catalog.TryGetDefinition("1756-EN2T", out var definition))
{
Console.WriteLine($"Found {definition.CatalogNumber} with {definition.Ports.Count()} ports.");
}
Requirements
- .NET Standard 2.0 or .NET 8.0+
- L5Sharp.Core
License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- L5Sharp (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 79 | 3/20/2026 |