Error: Ausführen des Skripts '.\test.py' erzeugt Ausnahmefehler _3S.CoDeSys.Core.Online.InvalidVarRefException: Traceback (most recent call last):
 File "C:\Tmp\test.py", line 87, in <module>
Exception: Ungültiger Ausdruck
this code dont work:
try:
  testInt = onlineapp.read_value("PLC_PRG.testInt") # testInt dont exists!
except _3S.CoDeSys.Core.Online.InvalidVarRefException:
  print("Variable not found")
Error:
Error: Ausführen des Skripts '.\test.py' erzeugt Ausnahmefehler IronPython.Runtime.UnboundNameException: Traceback (most recent call last):
 File "Tmp\test.py", line 87, in <module>
NameError: name '_3S' is not defined
Regards,
adv
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
i want to catch the following exception:
this code dont work:
Error:
Regards,
adv
nobody?!?
3S user should know this