I have a question and i hope you can help me. I want to use Python (see Code below) to get the deviceadress of my CPU an than use this address to login into the CPU via the Test Manager.
If i use the code i get the right information out of the CPU but if i try to use " deviceaddress " out of Pythonscript in my Testscript, the Testmanager says the Format is invalid.
Is this error because the Address is of type "string", or do i have to use a other way to get the address out of the script?
# Find device object
found = projects.primary.find('PLC_AC500_V3',True) #('PLC_7', True)
assert(found and len(found) == 1, 'No or more than one device found')
dev = found
# ============== Find gateway
gw = online.gateways['Gateway-1']
deviceid = dev.get_device_identification()
devicegateway = dev.get_gateway()
deviceaddress = dev.get_address()
print (deviceaddress) # => Output 03C8.9000.2DDC.C0A8.090B