DankoCaboski / TIA-Openness-RPA

This project aims to create a user-friendly data input interface to automate project generation on the TIA Portal, through the TIA Openness API.
MIT License
5 stars 0 forks source link

Create project with assigned IP #2

Closed DankoCaboski closed 3 months ago

DankoCaboski commented 3 months ago

Create project with assigned IP address and wired ports for all devices as shown in the image

Captura de tela 2024-06-04 094129

DankoCaboski commented 3 months ago

GetService de NetworkInterface para a interface PROFINET

network_interface_type = hwf.NetworkInterface
print("Tipo network_interface_type: ", type(network_interface_type))
getServiceMethod = device.GetType().GetMethod("GetService").MakeGenericMethod(network_interface_type)
networkInterface = getServiceMethod.Invoke(device, None)

Faltam validações de condicionais más funciona

DankoCaboski commented 3 months ago

Usar a seguinte lógica para acessar o primeiro node do device

networkInterface.Nodes[0]