Cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting S7-1500 to Mindsphere through Mindconnect IoT 2040

Experimenter
Experimenter

Hello! Our basic setup seems to be working fine. The device is onboarded and online with a static IP Address from the plant's segment. To test out data mapping we created a simple integer variable in a fresh datablock. However, we don't seem to be able to read this simple variable. We get the following information from the log file:

 

2019-07-11 12:51:40,210 | : Agent onboarding is in progress...
2019-07-11 12:52:01,964 | : Agent onboarded successfully.
2019-07-11 12:52:07,602 | : Cloud connection is successful.
2019-07-11 12:52:19,198 | : Agent onboarded successfully.
2019-07-11 13:16:12,079 | : Connection successful PLCPlant_8fb059bf-084
2019-07-11 13:16:12,646 | : External data source read failure PLCPlant_8fb059bf-084

 

Any idea on what could be the problem? Must the read variable be part of a dynamic process?

 

Thanks in advance.

4 REPLIES 4

Betreff: Connecting S7-1500 to Mindsphere through Mindconnect IoT 2040

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi @PaoloAgVa,

 

I think we need a little more Information about your configuration and the settings of your PLC Program.

 

I can list you some Problems, I have in the past.

  1. If you use S7-Communication: Have you activate the Put/Get communication?
  2. If you use S7-Communication: Have you an not optimized Data-Block? You need the adress of the Variable (DB1.DBW0)
  3. If you use OPC-UA: Have you activate the OPC-UA Server?
  4. Is the Variable visible over the OPC UA?
  5. Have you the right nodeId? (ns=3;s=...)
  6. Have you some security settings, with user and password at your OPC UA Server?

Maybe you can send us some Screenshots, than we have mor Information, and give you a detailed answer.

 

See you,

Steffen1

Betreff: Connecting S7-1500 to Mindsphere through Mindconnect IoT 2040

Experimenter
Experimenter

Hi @Steffen1 !

 

Thanks a lot for replying.

1. Im using S7, PUT/GET communication is enable. I attached a screenshot.

2. The address im using is for variable TString (although it is actually an integer) with the address DB1.DBW2.  Also with a screenshot.

 

3. I dont have any security additional security settings. Attached is also a screenshot of the PLC's security tab.

 

NodeId is only relevant in case I was using OPC UA, right?

 

Please let me know if you have any ideas or if you need something else from my setup.

 

Thanks again!

 

 

 

 

ADDRESS.pngPUTGET.pngsecurity.png

Betreff: Connecting S7-1500 to Mindsphere through Mindconnect IoT 2040

Siemens Valued Contributor Siemens Valued Contributor
Siemens Valued Contributor

Hi @PaoloAgVa,

 

thanks for the Screens.

I have some more questions to you

  • Which FW-Version is running on your Mindcoonect IoT?
  • Can you send me a screenshot from the configuration of the DataSource and the configuration of the Datapoint in MindSphere?
  • The X1-Port of the MC-IoT is connected to the Internet and the X2 to the Network with the PLC?
  • Do you have a static IP-Adress in at the Web-Interface or have you a DHCP-Server running?

 

Highlighted

Betreff: Connecting S7-1500 to Mindsphere through Mindconnect IoT 2040

Experimenter
Experimenter

Hi @Steffen1 !

 

Thanks for the reply. Your first point fixed it. I loaded the latest available firmware and it did the trick.

 

Thanks for the tips!