This article describes how you can get a connection, a TSAP list and symbols from a PLC in usage of a Machina Gate and a S7-LAN-Adapter.
I will complete this article and add any screenshots about the default setting of TIA Portal when we will get a PLC which has only one MPI interface and no ethernet interfaces.
Table of Contents |
---|
Set your S7 LAN- adapter correctly
...
Info | ||
---|---|---|
| ||
Always in Bus: please activate this option, makes the connection much faster Use bus config from PC: in my test cases it makes no difference, you will have a good connection with or without this setting Baudrate: very important! Check your Baudrate in your SIEMENS settings / TIA Portal settings! The settings have to be the same there as here. Highest station address: important! You will get a TSAP list in all station addresses, but it has to be the same there as here. If there are different addresses, it takes a lot of time to get a TSAP list. PG/PC is the only master: important! deactivate this option. If you are using a PLC you can be sure that the PLC is the master. |
S7 LAN settings | SIEMENS TIA Portal settings |
Info | ||
---|---|---|
| ||
You can also change the settings in TIA Portal, but it makes more sense to adjust the S7- LAN- Adapter settings. The PG communication, OP communication or S7 basic communication does not have an influence to the connection between the PLC, the S7- LAN- Adapter and the cloud. The parameter "S7 basic communication" indicates with how many participants the PLC has to communicate. I tested it with CPUs from SIEMENS: S7 313C and SIEMENS S7 315F. |
...
check the settings of the S7- LAN- Adapter
- is “mode” DP or MPI? On SIEMENS S7 connections you should have a MPI connection!
- is "Enable DHCP" deactivated?
- are you using the correct IP address? The IP address may only be assigned once in your network
- is the subnetmask (scenario 1) the same as the 2nd ethernet of Machina Gate or (scenario 2) the same as your company?
is “Always in the bus” activated?
are you using the correct Baudrate? Compare with your SIEMENS settings in TIA Portal!
is the highest station address correct? Compare with your SIEMENS settings in TIA Portal!
- "PG/PC is the only master" must be disabled
check the settings of the Machina Gate
log in to your Machina Gate
Code Block language cpp ifconfig
- check the subnetmask and the IP address of the interfaces
check if you have a connection to the S7- LAN- adapter
Code Block ping <IP-ADDRESS OF S7- LAN- ADPATER>
check if you have a connection to the cloud
Code Block sudo /opt/azeti/SiteController/run_SiteController.py status
if not, look at your configuration file:
Code Block sudo nano /opt/azeti/SiteController/config/SiteController.cfg
restart the SiteController
Code Block sudo nano /opt/azeti/SiteController/run_SiteController.py restart
check the follow settings
Code Block host=broker.azeti.net port=8883 user_id password organization name tls_enable=True tls_version=PROTOCOL_TLSv1_2
check the DeviceConfig.ini
Code Block sudo nano /etc/Tani/DeviceConfig.ini
- there should be 2 default entries:
Check the follow parameter
Code Block IsActivated=Yes
- there should be a third entry with your connection which you set on the cloud
- if there are more entries of other connections, you can delete these connections
- there should be 2 default entries:
Check your SIEMENS settings to compare with the S7- LAN- adapter
in my test case it has no influence if the S7- Basic communication =0 or =1, the default value is ‘0', try it and check a '1’
this parameter indicates with how many participants the PLC has to communicate
- check the "Transmission speed" / Baudrate
- check the "Highest address"
...