Beckhoff TwinCAT 2 Driver (RS v6)

Forum Home Forums Development and Integration Beckhoff TwinCAT 2 Driver (RS v6)

Tagged: , ,

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #14793
    manjey73
    Participant

    DrvBeckhoff v.6.2.0.1

    !!!!!ATTENTION — The driver is ONLY for Windows with the TwinCAT2 development environment installed!!!!!

    Actually here. The driver was once made for a potential customer.

    The driver was tested on a virtual PLC (Windows CE), as well as on a real PLC at the facility, possibly with the same program as on a virtual one (I don’t remember already, I happened to be at the customer’s facility)

    I would like to draw your attention once again to the fact that the driver can only work in Windows OS — the library (almost) from Beckhoff is used TwinCat2.Ads.dll (original TwinCat.Ads.dll from the TwinCat2 kit, it is written for .NET Framework 4, the library included with the driver is adapted for .NET6 handles ) ?
    There are calls to Windows system libraries.

    Since there is no Routing support in the library, TwinCat2 requires TwinCAT System Manager, which is part of the development environment. Have you tried, can it be installed separately?

    Connection permission is also required on a real PLC. It is performed by means of Windows CE TwinCAT (who works with PLC data should know)

    The main purpose of this driver is to study the actual supply and demand.
    The price is 50$

    #14794
    manjey73
    Participant

    If you have any questions about keys, write to the email address specified in the driver.

    P.S. if you are interested in getting driver keys for free or even a key generator, look for an intelligent C++ programmer.
    Beckhoff has a library for Linux that needs to be given a mind so that it can be used in the driver.

    1. Make it dynamic (now it is completely static)
    2. Make the export of all functions for use in the C# code
    3. Make builds for ARM and Windows (now the library is only for Linux X86)

    something like that.
    p.p.s. and yet the Linux library should support not only TwinCAT 2 but also TwinCAT 3

    in the TwinCAT library.Ads for PLC data (TwinCAT 2 development environment) there is no concept of Ams Routing (appeared only in the library for TwinCat3, and this is another series of controllers.

    Routing is performed by means of TwinCAT System Manager.

    • This reply was modified 1 year ago by manjey73.
    #14822
    manjey73
    Participant

    There is probably no need to run TwinCAT System Manager for the driver to work. It is needed in order to find a virtual controller and write a program to it. At least I have closed all applications related to TwinCAT and deleted the services associated with it through the manager. Scada continues to poll the virtual controller properly.

    #14826
    Mikhail
    Moderator
    #16426
    hatien
    Participant

    Can this driver connect to almost Beckhoff controllers with TwinCAT 2 runtime(it runs on machinery)?
    Thanks!

    #16427
    manjey73
    Participant

    @hatien
    It is necessary to try, I had access to only one controller on Windows CE (I do not remember the series). If the controller uses a library from TwinCAT 2 – TwinCatAds.dll that’s quite possible.
    The library has been rewritten on NET6.
    Unfortunately, I do not know C++ to refine the library from Beckhoff in order to be able to use it in the driver code. At the moment, they have a library only for Linux X86 architecture and does not allow it to be used from C# code.

    If you need a key for testing, write to me and I will provide it.

    • This reply was modified 1 month, 1 week ago by manjey73.
    #16429
    manjey73
    Participant

    @hatien If you have a program for Beckhoff in TwinCAT, please send the *.tpy file from your project.

    #16431
    hatien
    Participant

    Dear Manjey73,

    I do not have anything including *TPY file, The controller was installed more than 10 years ago by the OEM. I just received the RFQ, and I will get data from it. The RFQ should get 1000 TC2 tags on CX5020.

    Regards,
    hatien

    #16432
    manjey73
    Participant

    You can try to poll the driver without the *.tpy file. Create an empty template, specify the NetID and port. As far as I know, it is necessary to allow connection to the controller through the administrative means of the controller so that the scada is in the allowed IP addresses.
    Next, set up a PLC Scan and start the line.
    Some series of controllers store a symbolic configuration inside the controller, others will simply output a list of variables without a symbolic configuration. We’ll figure it out next.
    You can also install the Twin Cat 2 Engineering version on your PC and try searching for your PLC to determine its NetID.

    #16433
    manjey73
    Participant

    I connected to a real PLC on WinCE, and the owner of the installation from the PLC went remotely to the PLC and added the IP of the computer from which we connected to the allowed ones. Without this, it is impossible to connect to a PLC. These are security measures. If you don’t have this option, you probably won’t be able to connect to your PLC.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.