Omron Fins Driver (Ethernet)

Forum Home Forums Development and Integration Omron Fins Driver (Ethernet)

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #11376
    gabeirinhas
    Participant

    Hello,

    I’m quite new to this, so I’m asking for advice from the community,

    I have seen that you have been able to develop drivers for other protocols,

    I would like rapid scada to be compatible with the omron fins protocol,

    I found this library on github,

    https://github.com/lammertb/libfins

    Could anyone tell me how I could make it possible,

    Or if it would help me with the development,

    Thanks in advance,

    #11377
    manjey73
    Participant

    You need to build this library with the ability to export functions, then it is possible to use functions in C code#

    #11378
    manjey73
    Participant

    You can see an example of calling C or C++ functions in the C# code for the 5th version of RapidScada in the driver sources for using GPIO on Raspberry Pi

    https://github.com/Manjey73/OpnenKPs/tree/master/KpRpi3

    Well, use by analogy

    #11379
    manjey73
    Participant

    The key there is this

    [DllImport(“libwiringPi.so”, EntryPoint = “wiringPiSetup”)]
    public static extern int Setup();

    and so on

    #11380
    gabeirinhas
    Participant

    Hello,

    Thank you very much,

    I’ll get on it,

    I hope I get it, it would be great,

    Thanks for your help

    #11381
    manjey73
    Participant

    Perhaps it will help you how it is implemented for another PLC in C code.

    https://github.com/libplctag/libplctag

    There is an export of functions in the source code and they are used differently in builds for Linux and Windows libraries. If it helps for understanding.

    #11382
    gabeirinhas
    Participant

    It sure helps,

    You’ve made my day,

    Thanks

    #11409
    gabeirinhas
    Participant

    Hello,

    I think I have found a better way,

    I have seen the following development in visual studio,

    https://www.codeproject.com/KB/system/878194/mcOMRON_demo.zip

    And I have seen the following link from rapid scada

    https://rapidscada.org/device-drivers-development/

    >

    I have tested the project in visual and it works correctly,

    This development could be implemented as a rapid scada driver ?.

    Could you help me with the development ?,

    Thank you,

    #11410
    gabeirinhas
    Participant
    #11423
    Mikhail
    Moderator

    This development could be implemented as a rapid scada driver ?

    If the source code is available, it can be used in Rapid SCADA driver. In general, I recommend to separate logic and user interface by put them in different classes.

    #11429
    gabeirinhas
    Participant

    Hello,

    This is as far as I have got,

    The development of the memory areas that are read and written must be written to the dll.

    I hope it helps those of you who know more about this to do it better,

    https://drive.google.com/file/d/1NdM3AiUi2aXZfQgFRhetR87KOEv-2O0o/view?usp=sharing

    Thank you, best regards

    #11443
    Mikhail
    Moderator

    Hello,
    Thank you.
    Do you use GitHub? If so, you could add the development to a public repository.

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