Closed simonschmeisser closed 3 years ago
Sidenote: I'm super willing to implement the improvements I'm talking about myself, will be in offline in June however
Now wouldn't it be great if this text would be printed out somehow?
Absolutely! Currently, I am working on something else, but please keep this issue open until we show a better error message. Regarding, why you see this error in the first place: Is your PLC in RUN mode?
Nice! I think there was actually no PLC with that port running (you can see the port in the settings window of the PLC (e.g. Untitled1)), I now re-started with a full example project and it has indeed a PLC at port 851. But I didn't know that PLCs could have a different port
Now I'm seeing error 1827 which pyads describes as ADSError: access denied (1827)
, when executing the same command directly from the windows pc with pyads I get symbol not found (1808)
however?? ( The GVL has the attribute qualified_only
set and therefore I'm trying to read a variable as GVL._ui_i1_Mikado_ErrorCode
)
Update: Now I can access it from the same machine by reading name_of_GVL.variable_name
, but I still get the access denied from my linux machine
Thanks :+1:
I'm a total beginner when it comes to ADS and TwinCat in general. I started my exploration based on the example code. Now I get this log output when I try a couple of read operations
Having a look with wireshark as suggested in other issues I can see very clearly
ErrorCode: TARGET PORT NOT FOUND (0x00000006)
Now wouldn't it be great if this text would be printed out somehow? Also, what to do about this error? I downloaded TwinCat3, created an example project and imported a GVL given by our customer. I assume this should then be AMSPORT_R0_PLC_TC3 right?
(I'm running twincat3 on a windows7 pc and my code on ubuntu 18.04 on a separate pc)