Hello, I have a question about establishing a connection between the AXC F 2152 controller and an external server to transfer files - using port 443 (HTTPS). In the help for the Solarworx library, I got acquainted with the TLS communication issue and the section on data transmission to meteocontrol portals. My question is: How should you establish a connection to another external portal (server)? Can I make a connection to “my portal” using the example of the blocks used to connect to the meteocontrol portal? Is the connection to another external portal different? Kind regards, Kacper
Hi Kacper, I’m afraid that I’m not familiar with the implementation details of the SolarWorx library. But for the general question of how to communicate with a remote server using TLS from a PLCnext Engineer application: There is a set of function blocks in PLCnext Engineer version 2021.3 - TLS_SOCKET, TLS_SEND and TLS_RECEIVE. These can implement TLS communication to a remote server. If you want to transfer files using HTTPS: Unfortunately we don’t have any HTTPS function blocks available for PLCnext Engineer at the moment, so you could either: [list] [] implement the HTTPS protocol on a TLS Socket yourself (not easy), or [] use a Linux Shell FB (from the PLCnextBase library) to call something like curl to transfer files via HTTPS, or [*] do it some other way that I haven’t thought of. [/list] If your application can include C++ components, then there will be more possibilities - e.g. a C++ component could transfer files via HTTPS based on a trigger from a GDS variable. I hope this information is helpful. ~ Martin.



