Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. adjust your network settings on your Machina Gate

    • log in on the Machina Gate 
    • connect your Machina Gate to your company network switch on the first ethernet interface

    • check your network settings 

      Code Block
      languagecpp
      ifconfig


    • you can change the settings in

      Code Block
      sudo nano /etc/network/interfaces


  2. Set your S7 LAN- adapter correctly 

    • 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


  3. connect the S7- LAN- adapter to your company network
    • now you can check the connection from Machina Gate to S7- LAN- adapter 

      Code Block
      ping <IP-ADDRESS OF S7- LAN- ADPATER>


    • after that you should have a solid connection between your Machina Gate and your S7-LAN-adapter

    • connect your S7- LAN- adapter with your PLC over the MPI interface

  4. get a TSAP list

    • log in on azeti.cloud.net  

    • go to → Management → PLC Setup → Init PLC
    • fill the IP adress of the S7-LAN-adapter, also if your PLC has an own IP- address

    • get a TSAP list (if there is an error, look at the bottom "Troubeshooting")
    • if you have a SIEMENS S7-300 or a S7-400 you can NOT get symbols by click on "GET Symbols" → "Request Symbols for Unselected" !
    • if you have a SIEMENS S7-300 or a S7-400 you have to create a .symbol file by Tani "Symbolimport S7"
    • load your .symbol file up to the cloud by click on "SET Symbols", after that you can click on "GET Symbols" → "Request Symbols for Unselected"

...

  • 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
      languagecpp
      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



  • 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"



...