jisotalo/ads-client

Is it possible to access the library created with TwinCAT?

Closed this issue · 3 comments

Is it possible to access the library created with TwinCAT?
when a library *.library is created, can it be accessed?

I'm not sure what do you mean.

If you have a library and then add it to a PLC project, you can read/write data from the library GVLs, programs etc.

I'm not sure what do you mean.

If you have a library and then add it to a PLC project, you can read/write data from the library GVLs, programs etc.

Hello @jisotalo,
Let me explain better, I would like to carry out unit tests of a *.library,

  • I do not want to install the *.library in any project, can this be done?
  • Another option could be to just install it in a project and make a reference in the project but not use it, having to call its FB in the project. Would this other option be viable?
  • The last option to carry out unit tests of a *.library I have to use it in the TwinCAT project by calling its FB and then it is the only way to carry out unit tests of developed libraries,
    I hope it is better understood.

Hi @runtimevic

  • I do not want to install the *.library in any project, can this be done?

    • No, because the library needs to be running in a PLC runtime
  • Another option could be to just install it in a project and make a reference in the project but not use it, having to call its FB in the project. Would this other option be viable?

    • That's totally possible, however the FBs need to be instantiated somewhere (for example GVL inside library)