Coder Social home page Coder Social logo

ae-trafficlight's Introduction

Application Example Traffic Light

Description

This application example shows how to use the state framework of the package @simatic-ax/statemachine. In this example a simple traffic light will be realized.

statechart

Execute the Application Example (AX Code local)

  1. Open a command line interface (CLI) and switch to the target folder like:

    D:
    cd \Git
  2. Install the application example on your local PC

    Run the following commands in a CLI

    if you use apax V1.2.0

    apax create @simatic-ax/ae-trafficlight --registry https://npm.pkg.github.com ae-trafficlight

    if you use apax V1.3.0

    apax create @simatic-ax/template-ae-trafficlight --registry https://npm.pkg.github.com ae-trafficlight

    Open AxCode with

    axcode ae-trafficlight 

    and install the dependencies with:

    apax install -L
  3. If not open, open a terminal (CTRL+SHIFT+ΓΆ)

  4. Start a PLCSIM Advanced Instance (IP: Address 192.168.0.1). To change the IP you'll find information here

  5. If not done, download a valid hardware configuration (FW >= 2.9 and IP address 192.168.0.1) to the PLCSIM Advanced Instance. The recommend way is using TIA Portal.

  6. Install dependencies

    apax install -L
    
  7. Build in download the project to the PLC

    apax dlsim
    

    The project will be compiled and downloaded to the PLCSIM Advanced instance

  8. Open the monitoring file mon.mon

  9. Go online

Tips and tricks

Change the IP address for the downloader

To change the target IP address, open the apax.yml and search the entry IP_ADDRESS, Enter the IP address for your target.

Change the IP address for the online debugging and monitoring

To change the IP address for the debugging, open the file ./vscode/launch.json and search the entry ip, Enter the IP address for your device.

Contribution

Thanks for your interest in contributing. Anybody is free to report bugs, unclear documentation, and other problems regarding this repository in the Issues section or, even better, is free to propose any changes to this repository using Merge Requests.

License and Legal information

Please read the Legal information

ae-trafficlight's People

Contributors

sjuergen avatar kruegerfelix avatar johannes-b-stock avatar thkindler avatar web-flow avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.