Set up s7-1200 to IoT (MQTT)

rQx

Lifetime Supporting Member
Join Date
Oct 2010
Location
Trelleborg
Posts
1,051
Hi,
I'm not good at networking so bare with me.
What I want to do is connect a S7-1200 to AWS.
I have a s7-1200 and an ****** cosy 131 4G as the setup is now.

1. I have to use the eCatcher software on my computer to access the PLC. I guess that I have to open up the LAN side of my ****** Cosy to the internet so be able to communicate to the AWS. What risk comes with this? Or is there better solutions? I must use SIM card modem.

2. the s7-1200 can handle Publish MQTT, but Siemens also have it's CloudConnect 7 series to connect s7 PLC to MQTT. Why would I use that instead of the built in MQTT in the S7-1200?

3. I think ****** flexy can also be used to get data from the s7-1200 and then publish MQTT. I guess that with the flexy I get a better protection?

I'm trying to wrap my head around how to do this, PLC -> cloud connection thing :)
 
Hi,
Why would I use that instead of the built in MQTT in the S7-1200?


Part of it is what you said below:



I guess that with the flexy I get a better protection?


Having a gateway gives you some protection by preventing access to the PLC.


Also, the CloudConnect gateway is probably more configuration than programming, which could save time. I've heard getting all the necessary certificates to line up between the cloud and the PLC is a huge pain.
 
Part of it is what you said below:






Having a gateway gives you some protection by preventing access to the PLC.


Also, the CloudConnect gateway is probably more configuration than programming, which could save time. I've heard getting all the necessary certificates to line up between the cloud and the PLC is a huge pain.

Thanks!
 
1. I have to use the eCatcher software on my computer to access the PLC. I guess that I have to open up the LAN side of my ****** Cosy to the internet so be able to communicate to the AWS. What risk comes with this? Or is there better solutions? I must use SIM card modem.
You need to set FwrdToWAN = 1, that should allow LAN traffic on to the WAN. You are transmitting data out so I don't see any risk in this. Yes you will need to add a SIM to the e_WON and probably enter the SIM APN settings. The e_WON doesn't give you a DNS server so the data might have to go to a fixed public IP address, it depends on what is available in the S7-1200 MQTT software. A DNS server translates a human type website name to a computer type IP address, I don't know if MQTT needs a DNS server or if it always goes to known IP address.

2. the s7-1200 can handle Publish MQTT, but Siemens also have it's CloudConnect 7 series to connect s7 PLC to MQTT. Why would I use that instead of the built in MQTT in the S7-1200?
As ever with the S7-1200 the built in MQTT server will probably use a lot of resources and will be limited in scope. But it is free. Have no information on CloudConnect.

3. I think ****** flexy can also be used to get data from the s7-1200 and then publish MQTT. I guess that with the flexy I get a better protection?
I can't see that protection will be any different but it may be more flexible and easier to set up.
 
You need to set FwrdToWAN = 1, that should allow LAN traffic on to the WAN. You are transmitting data out so I don't see any risk in this. Yes you will need to add a SIM to the e_WON and probably enter the SIM APN settings. The e_WON doesn't give you a DNS server so the data might have to go to a fixed public IP address, it depends on what is available in the S7-1200 MQTT software. A DNS server translates a human type website name to a computer type IP address, I don't know if MQTT needs a DNS server or if it always goes to known IP address.

As ever with the S7-1200 the built in MQTT server will probably use a lot of resources and will be limited in scope. But it is free. Have no information on CloudConnect.

I can't see that protection will be any different but it may be more flexible and easier to set up.

Thanks for this also, I agree with that the build in code can require some more fiddling.
 

Similar Topics

I have a MicroLogix 1200 that has an 8 input and a 16 output. Every 6 months-year I get a fault and when online go to error it is something like...
Replies
3
Views
492
I'm having issues trying to Factory Reset my S7-1200 CPU. I purchased this controller used, so it came with an IP address already assigned and a...
Replies
8
Views
6,322
Hi Guys I have an s7-1200 just got it used...I am trying to connect to it directly with my pc. All the LED's are flashing. I am using STEP7 5.5 to...
Replies
19
Views
10,194
I have an application where we're using a Micrologix 1200, and there's a timer on that we use in our program where the preset value resets itself...
Replies
7
Views
1,856
hi to all; I need a help to set a real time clock on the ladder diagram TIA V13 best regards
Replies
5
Views
12,224
Back
Top Bottom