Skip to content

Simple Application Example for using Simatic AX LCE and Unified Elements.

License

Notifications You must be signed in to change notification settings

simatic-ax/ae-simplified-sorting-machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Machine Project

Project Overview

This project serves as a simple application example, providing a demo case for exploring the interaction between Control Logic Engineering and Unified Elements. It also covers the installation of GSD files and demonstrates hardware integration. Feel free to adapt and extend this project to implement additional functionalities according to your needs.

Overview

Table of Contents

Key Features

  1. Hardware configuration with support packages
  2. Hardware configuration with GSD files
  3. Software programming with preprocessor directives
  4. OPC UA exposed variables for visualization
  5. Advanced operational Visualization
  6. Commissioning capabilities (including scripts)
  7. Diagnostics capabilities (including scripts)

System Requirements

Overview_Hardware

Required Hardware

  • IPC: SIMATIC IPC PX-39A : 6AV7242-7AJ20-2AB0
  • PLC: S71516 PN/DP : 6ES7 516-3AP03-0AB0
  • SINAMICS G220 : 6SL4112-0CA05-0AF0

Required Software

The PLC program in this project was exclusively created using SIMATIC AX Logic Control Engineering. The visualization was exclusively developed in SIMATIC AX WinCC Unified Elements. Furthermore, the configuration of the SINAMICS G220 was not performed with SINAMICS Startdrive, but through its web configuration interface.

  • SIMATIC AX Logic Control Engineering - Download
  • SIMATIC AX WinCC Unified Elements - Download
  • SIMATIC S7-PLCSIM Advanced - Download

Usage Instructions

This application example repository can be cloned using Git. Additionally, a project template package is available for rapid AX project creation utilizing apax.

To use this application example, you need to log in to the GitHub registry https://npm.pkg.github.com/. You'll find more information here.

General Prerequisites

  • GitHub account and access token
  • Installed SIMATIC AX Logic Control Engineering and SIMATIC AX WinCC Unified Elements environments
  • Network configuration for PLC simulation or hardware

Local Simulation Setup

Hardware & Network Configuration for local Simulation

To ensure your local simulation runs smoothly, here's how to configure your hardware settings:

1. PG/PC Interface Setup

To correctly set up the PG/PC interface for local simulation, please follow these steps:

  1. Open "Set PG/PC Interface (32-bit)" in the Control Panel.
  2. Select "Siemens PLCSIM Virtual Ethernet Adapter.TCPIP.Auto.1" from the list.
  3. Confirm any warning messages with "Ok" and then close the window.

PG/PC Interface Configuration

2. IP Address Settings for local Simulation

For this local simulation example, the following IP addresses were used:

  • SIMATIC PLCSIM Advanced Instance: 192.168.0.1
  • Siemens PLCSIM Virtual Ethernet Adapter: 192.168.0.5

Important! If the IP address of the Siemens PLCSIM Virtual Ethernet Adapter is changed, it is crucial that the WinCC Unified Configuration is run again to apply the changes correctly.

WinCC Unified Configuration Step 1 WinCC Unified Configuration Step 2

Please note: These settings are provided as an example and can be adjusted to fit your specific setup. The critical aspects are ensuring the correct PG/PC interface is selected, that both the SIMATIC PLCSIM Advanced instance and the Siemens PLCSIM Virtual Ethernet Adapter reside within the same IP address range, and that the Unified Configuration has been executed at least once with active user management enabled.

3. S7-PLCSIM Advanced settings

The following shows an example configuration of PLCSIM Advanced.

SIMATIC PLCSIM Advanced Instance

SIMATIC AX Logic Control Engineering Steps

  1. Log in to SIMATIC AX:
    apax login
  2. Navigate to the desired folder.
  3. Load the application example:
    apax create @simatic-ax/simplified-sorting-machine --registry https://npm.pkg.github.com simplified-sorting-machine
    (Optional) Open in AX Code:
    axcode .
  4. Log in into the GitHub registry https://npm.pkg.github.com/ if not already done.
  5. Install dependencies:
    apax install
  6. Install certificates:
    apax setup_hw_certificates_and_user
  7. Compile and load S7-PLCSIM Advanced:
    apax compile_and_load_all
    When using S7-PLCSIM Advanced, a PLC instance needs to be started using TCP/IP Single Adapter or TCP/IP Multiple Adapter

SIMATIC AX WinCC Unified Elements Steps

  1. Ensure SIMATIC AX Logic Control Engineering steps 1–3 are completed.
  2. Navigate to your project folder.
  3. Open SIMATIC AX WinCC Unified Elements.
  4. Install dependencies:
    apax install
  5. Change IP locally:
    apax changeip_local
  6. Download the project:
    apax fulldownload

Physical Hardware Deployment

Hardware & Network Configuration for physical Devices

To ensure your physical devices are runing smoothly, here's how to configure your hardware settings:

1. PG/PC Interface Setup

To correctly set up the PG/PC interface for physical Devices, please follow these steps:

  1. Open "Set PG/PC Interface (32-bit)" in the Control Panel.
  2. Select the network adapter connected to the physical hardware.
  3. Confirm any warning messages with "Ok" and then close the window.

2. IP Address Settings for physical Devices

  • SIMATIC S7-1500 PLC: 192.168.0.1
  • SINAMICS G220: 192.168.0.2
  • SIMATIC IPC: 192.168.0.3
  • Network Adapter: 192.168.0.10

Please note: These settings are provided as an example and can be adjusted to fit your specific setup. The critical aspects are ensuring the correct PG/PC interface is selected, that all Devices are within the same IP address range, and that the Unified Configuration has been executed at least once with active user management enabled.

SIMATIC AX Logic Control Engineering Steps for Hardware

  1. Log in to SIMATIC AX:
    apax login
  2. Navigate to the desired folder.
  3. Clone the repository:
    git clone <repository-link>
    (Optional) Open in AX Code:
    axcode .
  4. Log in into the GitHub registry https://npm.pkg.github.com/ if not already done.
  5. Install dependencies:
    apax install
  6. Install certificates:
    apax setup_hw_certificates_and_user
  7. Compile and load S7-1500 PLC:
    apax compile_and_load_all

SIMATIC AX WinCC Unified Elements Steps for Hardware

  1. Ensure SIMATIC AX Logic Control Engineering steps 1–3 are completed.
  2. Navigate to your project folder.
  3. Open SIMATIC AX WinCC Unified Elements.
  4. Install dependencies:
    apax install
  5. Change IP locally:
    apax changeip_remote
  6. Download the project:
    apax fulldownload

Internal Readmes

Useful Links

License

LICENSE.md

About

Simple Application Example for using Simatic AX LCE and Unified Elements.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •