arduino

Viewing 11 posts - 16 through 26 (of 26 total)
  • Author
    Posts
  • #3487
    Mikhail
    Moderator

    What mgsmodbus allows you to do, in short?

    #3494
    Pieter
    Participant

    Arduino library to use arduino as modbus device.

    “The library gives the program the possibility to be a master, a slave or both on a TCP network.
    The Modbus functions 1, 2, 3, 4, 5, 6 15 and 16 are implemented.”

    I have used this library successfully with kepserver enterprise and Kepware to communicate with Rockwell Factory talk view SE and panel views.

    #3500
    Mikhail
    Moderator

    Thank you!
    Does it work with Arduino Nano and Uno?

    #3503
    Pieter
    Participant

    I have used it with arduino mega and uno using w5100 ethernet shield.
    I have not tested it with nano.

    #3558
    Pieter
    Participant

    I suppose it would work with a nano aswell via serial coms.
    I have one sonewhere, will find it and test.

    #3562
    Mikhail
    Moderator

    Thank you.

    #3635
    Pieter
    Participant

    Update: I can confirm that the Nano v3, and the Uno aswell as the Nano loaded with optiboot can work with Rapid scada via modbus RTU.
    I can not remember where I downloaded the modbus slave library.
    I suppose any modbus slave library should work.
    I will try to locate it in github.
    MGSmodbus does not support rtu.

    • This reply was modified 5 years, 11 months ago by Pieter.
    • This reply was modified 5 years, 11 months ago by Pieter.
    #3643
    Mikhail
    Moderator

    Useful, thank you 🙂

    #3648
    Pieter
    Participant

    I found it. I used this modbus slave labrary here.

    It was a bit difficult to set it up first because I was used to mgsmodbus.

    #3990
    Ninse
    Participant

    Hi everybody!!!

    The slave library provided by Pieter works just fine, i am doing some test with an Arduino UNO and communicating with the MODBUS RTU (via serial/COM3) and the board broadcast information to the Rapid Scada Communicator….

    The Problem now (not a very big deal) is getting a Device Templete for Arduino…

    Do Somebody have one??? it would be very helpfull!!!, even a screenshoot!!

    Thanks a lot

    Diego

    • This reply was modified 5 years, 8 months ago by Ninse.
    #4143
    ArnyLogan
    Participant

    Hi..i dont think you need to use RS485 for this. Just connect a PC straight up to your freshly programmed arduino, and run some sort of MODBUS master or test software, using the register number as listed in the code. Remember, in the SCADA software do not use the whole address number, for instance, to access pin 2, you would be reading a COIL on Slave 1 at address 2, not address 10002. Some SCADA packages use ZERO offsets, so subtract 1, so the address for pin 2 would be 1.

Viewing 11 posts - 16 through 26 (of 26 total)
  • You must be logged in to reply to this topic.