Lecture des infos du type de bloc DCB - TIAPortal

Fonctions pour DCC

ft:publication_title
Fonctions pour DCC
Product
TIAPortal
Version
V20
Publication date
01/2025
Language
fr-FR
Lecture des infos du type de bloc DCB

L'exemple suivant montre comment lire les informations d'un type de bloc DCB.

Lecture des infos du type de bloc DCB Copie le code de programme suivant dans le presse-papiers

 

DriveControlChartContainer chartContainer = ...

DcbLibraryComposition dcbLibraries = chartContainer.DcbLibraries;

DcbLibraryComposition testLib = dcbLibraries.Find("TestLib");

DcbBlockTypeComposition blockTypes = testlib.DcbBlockTypes;

DcbBlockType blockType = blockTypes.Find("test_all_pin_types");

System.Console.WriteLine($"Name: {blockType.Name}, Description: {blockType.Description});