Hey Factory IO team,
Im having multiple problems with both Siemens Tia V20 and Codesys with connecting to your Program.
In Codesys I get a error message right when I want to Configurate the OPC Client:
I get the message: The secure channel has been closed: Remote side closed connection.
With Tia V20 and PLCSIM V20 I cant download your template to the device and get an error here. I tried it with my own programs for PLCSIM and dont have any problems.
What can I do to fix both issues? I would like to use your program as an simulation tool but its sadly not useable right now.
Regards
Hendrik
Hello @h.steinbach.1,
Welcome to the forum!
The error when connecting to Codesys indicates that an OPC server can’t be found at that URL. To fix it, do the following:
1 - If Codesys Control Win is running, please close it.
2 - Start Codesys Control Win V3 on a terminal:
- Find the server URL displayed in the terminal window
- In Factory I/O, Go to FILE > DRIVERS > CONFIGURATION and enter the URL in the OPC Server input field and press Enter to connect:
- Save the scene to keep your changes.
Regarding TIAPortal and S7-PLCSIM:
What error are you getting when downloading the template to PLCSIM?
We have run some tests with TIAPortal V20 and PLCSIM V20, and we were able to download the template to PLCSIM without any issues. We did note that Factory I/O will connect to PLCSIM if you use S7-1200, but currently, it can’t connect to S7-1500. We are looking into this issue and will update you once we have more information.
I’ve also tested TIAPortal V20 with PLCSIM V19, and it worked perfectly, so this could be an alternative. With PLCSIM V19, you can use either S7-1200 or S7-1500.
I hope this helps.
Thank you for your reply, I tried it your way in Codesys but the error message is the same as before.
The secure channel has been closed: Remote side closed connection
In TIA V20 I get following error
I can only put one media per post but I hope this helps
Thank you for your help
The error you are getting in TIAPortal indicates it’s a problem with the CPU you are emulating. I went back to test this; the cause is the CPU version. You have to update it. To do so, in the Project Tree on the left side of the screen, select Device Configuration. Right click on the PLC and select Change device
Choose the CPU you want to use and select the most recent version.
Once you click OK, a window will appear to configure the PLC security settings.
Set up a password and note it down as you’ll probably need it when you try to download to the PLC or SoftPLC. Make sure to disable access control in the PLC access protection section, so that Anonymous login is allowed.
Now you should be able to download to PLCSIM.
I hope this helps.
Thank you, that fixes the problem with PLCSIM.