Giter Site home page Giter Site logo

ae-sortingline's Introduction

Sorting Line Application Example

Description

Sorting line by using the library WindowTracking

Layout

This example shows a small example of a sorting line with 4 exits.

Schematic overview of the line setup

How does it work

In this example every second, a TransportWindow will be created and one of 16 items in a list will be assigned to this window. Each item has one sort destination (exit point).

During the execution, a encoder will be simulated. This encoder will be incremented by 10mm every 10ms (corresponds 1m/s belt speed). In your application, the simulated encoder has to be replaced by a concrete one of type IEncoder.

The TransportWindow will be moved according the encoder values. When a TransportWindow reaches a VirtualTrigger, it will be activated and the event handler which belongs to the VirtualTrigger, will be executed.

  1. If the event handler is a SortDecisionEvent:

    The SortDecisionEvent check, if the assigned item in the TransportWindow is designated for the active TriggerPoint.

    If yes, the exit handler of the SortDecisionEvent will be executed. In your application, you've to implement your own exit handler (e.g. if the exit is another conveyor, it has to be startup).

    If not, nothing happened.

  2. If the event handler is a TerminateWindowEvent:

    In this case, the TransportWindow will be terminated. That has to be done at the end of the sorting line.

Execute the Application Example (AX Code local)

to use this application example you need to login into the GitHub registry. You'll find more information here

  1. Open a 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

    apax create @simatic-ax/ae-sortingline --registry https://npm.pkg.github.com ae-sortingline
    axcode ae-sortingline 
  3. If it is not open, open a terminal in AX Code (CTRL+SHIFT+ΓΆ)

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

  5. Install dependencies (if not yet done)

    apax install -L
    
  6. Update your dependencies (optionally)

    apax update -a
    
  7. If not done download a HWCN with the command:

    apax loadhwcn
    

    Result: a predefined HWCN from the folder hwcn will be downloaded. If the predefined HWCN (CPU 1516, FW2.8) is not compatible with your device, you've to create your own HWCN with TIA Portal and download it to the PLC/PLCSIM.

  8. Build in download the project to the PLC

    1. Download to a PLCSIM Advanced

      apax dlsim
      
    2. Download to a real hardware PLC

      apax dlhwplc
      

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

  9. Open the monitoring file mon.mon

  10. Go online

    Icon for going online on the PLC

  11. Watch the values

    Example for monitoring values 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-sortingline's People

Contributors

sjuergen avatar web-flow avatar kruegerfelix avatar simatic-ax-bot avatar thkindler avatar

Stargazers

 avatar

Watchers

Thomas Drosdzoll avatar Daniel avatar  avatar  avatar

ae-sortingline's Issues

Remove apax-lock files

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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.