Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
513 stars 194 forks source link

How to test this ADS client? (two problems) #62

Closed lianhub closed 6 years ago

lianhub commented 6 years ago

Patrick, I got two problems for testing this ADS client.

First problem:

Second problem:

Please help me to solve the problems! Thanks,

Jerry

pbruenn commented 6 years ago

Hi Jerry, no, you don't need any hardware at all. You can just download the PLC project and ignore all the hardware configuration. Error LNK1104 cannot open file 'D:\myGithub\ADS\Debug\/AdsLibOOId.lib' Was a bug and should be fixed by eb9a25fd6362a427f435f5311bfd48f625ef7449

Error C1083 Cannot open include file: 'fructose/fructose.h': No such file or director Shouldn't occur if you only compile "example" and it's dependency "AdsLib". Fructose is just included by "AdsLibTest" and "AdsLibTestRef" and they indeed need another fix 59b42806baa3b6793223ff68a7e755214de09c91 You can install the Fructose C++ Unittest framework by running ./tools/10_get_fructose.sh in an UNIX environment like Cygwin, or just read the script and download + extract fructose manually.

Another side note: You stumbled up on AdsLibOOI. Which is an attempt to provide a more C++ like API to ADS. You find the latest work on branch dev-ooi-v2. It might be a better start to implement a full router and ADS server than the legacy C API. Right now, OOI is implemented on top of C API. If you are scared by that because of performance (and code style), I can absolutely understand, but be assured that the long term idea is to invert that and convert the whole AdsLib to C++ style with an C API on top to support legacy applications.

lianhub commented 6 years ago

Thanks Patrick;

Now I got a license problem when trying to activate configuration before downloading PLC-TestProject:

Any hint?

Jerry

pbruenn commented 6 years ago

I use "AdsLibtest" and "AdsLibTestRef" as regression test for AdsLib. Difference between them is AdsLibTestRef is linked against TcAdsDll.dll (our Windows only reference implementation)

I don't know a lot about TwinCAT and licensing, but from your screenshot I would expect something is wrong with your clock or date. For testing you should be able to just use a 1 week trial license

lianhub commented 6 years ago

I already regenerated 7 Days Trial license upon request.

Weird, it never happens before. I guess I should raise this issue to Beckhoff Support team.

lianhub commented 6 years ago

Hi, Patrick:

All my problems fixed. Testing "example" runs smoothly!

I think more details should be added to README file, as there are some untold tricks to be done, depending on the setup of testing platform. In my case:

Now I will move forward: study code, maybe hop on "OOI" version, surely more questions later. Thank again!