Arduino Modbus PLC with RS232 and Mango M2M HMI

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 21

  • @futurezero01
    @futurezero01 10 ปีที่แล้ว

    Thanks again for your help! I successfully got modbus rtu rs232 working thanks to your tutorial. I'm controlling servo positions with both modbus registers and a pot. The pot is the manual override which copies the register to the analog output to the servo. Only problem is that my loop doesn't write to the servo quick enough (more than 50ms round trip) so it constantly returns the servo to 0 position.
    I got the official Ethernet shield so now it's just a matter of figuring out a good library for modbus tcp and modifying my code to accommodate for the new library.
    For now, I'm running the mango HMI server locally and opened it to the LAN for remote control.
    Btw, you have the best walk through I've seen on here.

  • @Jarjarbean75
    @Jarjarbean75 10 ปีที่แล้ว

    Cool stuff, love it. Also the cat was cute too.

  • @MirkoBjelica
    @MirkoBjelica 10 ปีที่แล้ว

    I am sure that you know but for the others who maybe don't, 4:56 Arduino (or any other derivative) is not a microcontroller.

  • @VahidMohammadi1992
    @VahidMohammadi1992 8 ปีที่แล้ว

    Ur pet reacts like he knows everything :)

  • @GregEva
    @GregEva 9 ปีที่แล้ว

    Great video and subject! Technically speaking however you cannot call an Arduino a PLC due to the fact that it is not rugged or designed for harsh environments... which is a key differentiator between a PLC and another type of computer or control system.

    • @NikolaosLedZeppelin
      @NikolaosLedZeppelin 9 ปีที่แล้ว

      plasti dip or epoxy the arduino and here is it for harsh enviroments

  • @paulvonbenecke2650
    @paulvonbenecke2650 2 ปีที่แล้ว

    Hi, thank you for tge video. Please help.
    I need to convert digital inputs to modbus rtu ans tcp. This needs to interface with an Omron Nx1p plc.
    Please help with what I all need, I know the plc side of things, just the arduino.

  • @averycox1429
    @averycox1429 6 ปีที่แล้ว

    Could I use this to control allen Bradley flex io instead of an allen bradley controller

  • @milek021
    @milek021 9 ปีที่แล้ว

    1) arduno at 9600baud -> PC (usb) (not working with QModMaster)
    2) atmega32 (with few code mods) at 19200baud with modbus lib -> FT232bm -> PC (usb)
    I have tested all this on two PC's, this one (desktop) and another one (notebook), with QModMaster (only atmega32) and ScadaBR (both)
    - Result: INPUT's are little slow, lazy. I see that same delay on input status change here when you hit dip switches but "led" on your tablet came up after second or two.
    I'm not sure what cause this delay but it's little bit annoying when input status is not changed fast as output or analog inputs value. Also FAST inputs changes are not registered at all so if you have some sensor on input with "short" output signal there is big chance that this RTU will miss it completely!
    It's same for direct mcu pin connection (with pull-down) as with opto-isolated input (4n35)
    Oh yes, i did tried to change update period all the way down (to 10ms !!!), i see tx/rx led's (on arduino) going wild bcs fast scan rate but inputs are still lazy. Anyone else having same problem ?

  • @farmsidney
    @farmsidney 10 ปีที่แล้ว

    Another thing that would be really cool is to change the status of the digital door just by clicking the led. Without having to write, agree?

    • @Electronhacks
      @Electronhacks  10 ปีที่แล้ว

      Absolutely, the old free Mango has some cool features but there are some serious limitations too. This is one of the reasons that I must continue testing out other HMIs trying to find something that has all the features I want but also at an affordable cost! I know of some really powerful industrial HMIs that could do it but my funding is not adequate for something like that. :(

    • @farmsidney
      @farmsidney 10 ปีที่แล้ว

      Glad you replied. I use a derivative of mango called ScadaBR.
      It is totally free and has a group that develops applications for it. We are now working on this integration with S240 pigeon equipment. Take a look on the internet to see what I'm talking about. We have several other plans. But your idea is very cool. Be sure to post. I'm already communicating with the entire community to submit your channel.Give me an example of what the application would like the mango did.

  • @thomasspitznas7576
    @thomasspitznas7576 10 ปีที่แล้ว

    Any experience connecting via MODBUS TCP instead of RS232?
    I'm currently in the process of building a very basic PLC for a batch mixer project and need to communicate over the network rather than locally connected via serial.

    • @Electronhacks
      @Electronhacks  10 ปีที่แล้ว +1

      I used a Netduino for Modbus TCP and it worked well. If you are going with Arduino you will want to pick up an Ethernet or wifi shield and have to add the library for the shield. Be careful as the cheapest shields you get on ebay may be hard to use, I messed up by buying the cheapest thing I could a few years ago and I never got it to work.

  • @rakanasghar
    @rakanasghar 10 ปีที่แล้ว

    i have a question.
    why didnt u use rs232 shield insted of going through 485 and 232??
    and would it work with if i just connect the arduino to a max3232??

    • @Electronhacks
      @Electronhacks  10 ปีที่แล้ว

      You can use RS485 or RS 232, which ever you prefer, RS232 is easier and uses three wires, RS485 can go much further and uses two wires but can be more temperamental to set up. A MAX3232 would work and would be cheaper but is not as convenient as you can just plug the RS232 shield in and it works.

  • @lordblah88
    @lordblah88 9 ปีที่แล้ว

    loved the video

  • @farmsidney
    @farmsidney 10 ปีที่แล้ว

    I do not believe I have to post videos. I want to see. This subject calls my attention. I have here in the city of Goiânia, Goiás, Brazil, a network that uses a derivative of mango on an RS485 network using the Modbus RTU serial protocol. The library I use is the JPZOMETA. I am now trying to connect an Arduino with an ethernet shield using the MODBUS IP. For this I will use a library called MUDBUS. Now my challenge is to make a remote connection with a GSM / GPRS device, but it requires a password to access the data and the mango does not allow this.

  • @NikolaosLedZeppelin
    @NikolaosLedZeppelin 9 ปีที่แล้ว

    something for profibus?

  • @cucciolo182
    @cucciolo182 10 ปีที่แล้ว

    Wondering if ITS POSSIBLE to control a 1-Hp 3-Ph 460V 815-RPM AC Electric Motor with Arduino + MANGO

    • @Electronhacks
      @Electronhacks  10 ปีที่แล้ว +1

      Sure, an option is use Arduino+Transistor+Relay to switch on and off the motor. If you want to make an AC motor variable speed though, there is no easy way to do it without expensive hardware called a VFD(Variable Frequency Drive) but still, Mango or Arduino could control the VFD.