Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant login on iTNC530E #70

Closed
David-Krizak opened this issue Jul 5, 2024 · 2 comments
Closed

Cant login on iTNC530E #70

David-Krizak opened this issue Jul 5, 2024 · 2 comments
Assignees
Labels
iTNC question Further information is requested

Comments

@David-Krizak
Copy link

However I try to connect to machine i get unknown or unsupported login
could not log in as user PLCDEBUG.
Tried it on multiple machines.
code:

import pyLSV2

con = pyLSV2.LSV2("192.168.125.101")
con.connect()
print(con.versions.control)
print(con.read_plc_memory(32, pyLSV2.MemoryType.MARKER, 15))
print(con.execution_state())
con.disconnect()

console:
iTNC530E [] 5 unknown or unsupported login could not log in as user PLCDEBUG unknown or unsupported login could not log in as user DNC
Am I doing something wrong?

@drunsinn
Copy link
Owner

drunsinn commented Jul 6, 2024

On which line do you get the error about the unsupported login?
If it is when trying to read from plc memory, it is because you need to disable the safe mode of pyLSV2. To do this, add safe_mode=False as a parameter to the line con = pyLSV2.LSV2("192.168.125.101").
The safe mode limits the accepted login type. This is meant to stop you from damaging the machine.

@drunsinn drunsinn self-assigned this Jul 6, 2024
@drunsinn drunsinn added question Further information is requested iTNC labels Jul 6, 2024
@David-Krizak
Copy link
Author

it was my fault, found it. Sorry....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
iTNC question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants