GithubHelp home page GithubHelp logo

Unable to set TC status about ads-rs HOT 6 CLOSED

birkenfeld avatar birkenfeld commented on August 24, 2024
Unable to set TC status

from ads-rs.

Comments (6)

gimmi avatar gimmi commented on August 24, 2024 1

absolutely, I think your driver is doing the right thing by exposing ADS api as is, then the fact that ADS protocol has strange quirks here and there is something that need to be handled by the application code

from ads-rs.

birkenfeld avatar birkenfeld commented on August 24, 2024

Thanks for the report, I reproduced this locally.

Using Wireshark I traced what the difference between the PowerShell and this library is, and found that PowerShell actually doesn't set the state to Run but to Reset.

Can you try that?

from ads-rs.

birkenfeld avatar birkenfeld commented on August 24, 2024

Also, there is Reconfig which must apparently be used to set to config mode, instead of Config.

from ads-rs.

gimmi avatar gimmi commented on August 24, 2024

Interesting, will try later

from ads-rs.

gimmi avatar gimmi commented on August 24, 2024

Confirm working, here is the full test

Starting from state Config

C:\temp>adstool.exe 127.0.0.1/192.168.15.4.1.1 state
Device: TwinCAT System 3.1.4024
Current state: Config

Go from Config to Run

C:\temp>adstool.exe 127.0.0.1/192.168.15.4.1.1 state Reset
Device: TwinCAT System 3.1.4024
Current state: Config
Set new state: Reset

Go from Run to Run (restart)

C:\temp>adstool.exe 127.0.0.1/192.168.15.4.1.1 state Reset
Device: TwinCAT System 3.1.4024
Current state: Run
Set new state: Reset

Go from Run to Config

C:\temp>adstool.exe 127.0.0.1/192.168.15.4.1.1 state Reconfig
Device: TwinCAT System 3.1.4024
Current state: Run
Set new state: Reconfig

Go from Config to Config

C:\temp>adstool.exe 127.0.0.1/192.168.15.4.1.1 state Reconfig
Device: TwinCAT System 3.1.4024
Current state: Config
Set new state: Reconfig

from ads-rs.

birkenfeld avatar birkenfeld commented on August 24, 2024

Great! I'll add some text to the help of the state command, but I don't want to change the behavior as long as I don't have full knowledge of what Beckhoff are doing, and I don't think it's documented. Ok?

from ads-rs.

Related Issues (18)

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.