Accesso a DriveControlChartContainer tramite DriveObject - TIAPortal

Funzioni per DCC

ft:publication_title
Funzioni per DCC
Product
TIAPortal
Version
V20
Publication date
01/2025
Language
it-IT
Accesso a DriveControlChartContainer tramite DriveObject

L'esempio seguente mostra come accedere tramite un oggetto di azionamento a DriveControlChartContainer.

Accesso a DriveControlChartContainer Copia il codice di programma seguente negli Appunti.

using Siemens.Engineering.MC.Drives;

using Siemens.Engineering.MC.Drives.DCC;

Project project =  portal.Projects.Open("..."); //Destination folder to open the project

DeviceItem item = project.Devices[0].Items[0];

DriveObject driveObject = item.GetService<DriveObjectContainer>().DriveObjects[0];

DriveControlChartContainer chartContainer = driveObject.GetService<DriveControlChartContainer>();

//chartContainer can be null in case the DriveObject does not support DCC.