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.
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 |
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. |
connect your Machina Gate to your company network switch on the first ethernet interface
check your network settings
ifconfig |
The IP- address of the 2nd interface could be e.g. 172.16.xxx.xxx
you can change the settings in
sudo nano /etc/network/interfaces |
Connect your S7-LAN-adapter to your computer and check that the S7-LAN- adapter are in the same network and subnetmask as the second interface of the Machina Gate
please follow the instruction on the top of this documentation
now you can check the connection from Machina Gate to S7- LAN- adapter
ping <IP-ADDRESS OF S7- LAN- ADPATER> |
after that you should have a solid connection between your Machina Gate and your S7-LAN-adapter
log in on azeti.cloud.net
fill the IP adress of the S7-LAN-adapter, also if your PLC has an own IP- address
connect your computer to your company network
connect your Machina Gate to your company network switch on the first ethernet interface
check your network settings
ifconfig |
you can change the settings in
sudo nano /etc/network/interfaces |
Connect your S7-LAN-adapter to your computer and check that the S7-LAN- adapter are in the same network and subnetmask as the first interface of the Machina Gate
please follow the instruction on the top of this documentation
now you can check the connection from Machina Gate to S7- LAN- adapter
ping <IP-ADDRESS OF S7- LAN- ADPATER> |
after that you should have a solid connection between your Machina Gate and your S7-LAN-adapter
log in on azeti.cloud.net
fill the IP adress of the S7-LAN-adapter, also if your PLC has an own IP- address
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!
log in to your Machina Gate
ifconfig |
check if you have a connection to the S7- LAN- adapter
ping <IP-ADDRESS OF S7- LAN- ADPATER> |
check if you have a connection to the cloud
sudo /opt/azeti/SiteController/run_SiteController.py status |
if not, look at your configuration file:
sudo nano /opt/azeti/SiteController/config/SiteController.cfg |
restart the SiteController
sudo nano /opt/azeti/SiteController/run_SiteController.py restart |
check the follow settings
host=broker.azeti.net port=8883 user_id password organization name tls_enable=True tls_version=PROTOCOL_TLSv1_2 |
check the DeviceConfig.ini
sudo nano /etc/Tani/DeviceConfig.ini |
Check the follow parameter
IsActivated=Yes |
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