OPC UA with Siemens S7-1200 Safe PLC

I have a Siemens S7-1214FC that i would like to get on data from. I tried getting it added to devices, but without luck.
I tried opening a connection to it with TCP, which worked.

I have this from the logs

Just an update, tried connecting the same PLC to my own laptop/ignition server, as my work PC is pretty locked without admin rights, and Im getting a different log.

"Connection Refused" is a pure network error. Either the target device is not listening on the expected port, or a firewall is blocking the traffic to make it look that way.

Is the Siemens PLC configured to allow legacy connections (as described in the IA docs)?

In your config you have the port as 4840. Are you trying to connect to the opcua server of the S7-1200? The default port is 102 for the driver.

If using the driver to connect (not opcua) there are some considerations to note see the ignition Manual

When trying to connect using opcua use this for reference

The driver page is for direct connections which is different than connecting to the opcua server of the S7-1200

1 Like

I swapped to my personal laptop and disabled firewall, as my work laptop is locked. I set the port to 102, as its the driver id like to use. Now i get the following.

In TIA should i change the OPC UA port to 102? Its currently set to the default 4840

No. The Siemens driver does not connect to the PLC's OPC UA server. It connects using the S7 protocol.

Alternatively, you can create an OPC UA connection.