Cant connect online to pfc200 through codesys

basically i have updated the plc to the correct software version but now when i try and go online and login on codeys it give me this error invalid user authentication on the target. i cant seem to figure out what it is

ip address is correct as i can login to web ip address

Hi,

You are not using the original Wago runtime, but the CODESYS Control for PFC 200 SL runtime from Codesys. This runtime has a different authentication system. With the first login after installing the runtime you had to enter login data.

Check here how to reset the login data.

1 Like

Link not working if you could tell me what to search or send again thanks

Sorry, ther are spaces in the URL

https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_cmd_reset_origin_device.html

reset origin device

1 Like

so i cant login through codesys but i can login through web management. in codesys i clicked the button gto reset orgin device but nothing happens. for reference

it is right click and then scroll down the menu and it is last. is this being done correctly

Ok, I did not test it. It seems this option is only available when your are logged in :slight_smile:

This is now tested:

  1. Connect via ssh to the controller with the root user.
  2. stop runtime: sudo /etc/init.d/codesyscontrol stop
  3. cd /var/opt/codesys/
  4. rm .UserDatabase.csv
  5. rm .UserDatabase.csv\_
  6. rm .GroupDatabase.csv
  7. rm .GroupDatabase.csv\_
  8. rm .UserMgmtRightsDB.csv
  9. start runtime: sudo /etc/init.d/codesyscontrol start

With next connect to the controller you will asked to enter new credentials.

i redid last command due to spelling error, then after this went back into codesys and tried to connect to plc and still same issue

Hi,

You were still in the root user home directory.

cd /var/codesys/ vs cd /var/opt/codesys/

that’s why you get No such file or directory

you can check after cd command if the files are in the directory with either ls -la or ll

Im still new to this, so thank you for the help so far. So from what i can understand i need to go into putty connect to the pfc200 but the next step i dont understand how to change directory

cd means change directory

you need only to enter what is marked like this

rm means remove

You can also use WinSCP instead of ssh (Putty) to delete the files. But there you have set it to show hidden files with shortcut CTRL+ALT+h