Studio 5000 Modbus TCP Server Allen Bradley Controllogix Compactlogix

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • We are going to setup a Modbus TCP Server in Studio 5000 for the Allen Bradley Controllogix and Compactlogix PLC using Rockwell Automation's Modbus TCP Client Add On Instruction AOI sample program.
    I was surprised to find this add on instruction that requires no third party devices to communicate between Allen Bradley PLCs and Modbus TCP clients.
    Get the full details of this lesson at twcontrols.com/controllogix-c...
    Items used in this video:
    PLC Trainer twcontrols.com/plc-trainers
    The above links make these videos possible. Please use them!
    Support these videos while you advance your skills courses.twcontrols.com/
  • Věda a technologie

Komentáře • 50

  • @75blackviking
    @75blackviking Před rokem +1

    This vid was immensely helpful! Saved me weeks worth of work.

  • @alikara2799
    @alikara2799 Před rokem +1

    10:06 You are Great, i admire your energy, thanx for your videos:)

  • @murraymackenzie2892
    @murraymackenzie2892 Před 2 lety +1

    Hi Tim. Great video. I recently setup my Micro820 as a Modbus TCP Server via CCW and have VTScada picking up the data the way I need it.
    A question I have is if there is a way to continue to send data to a remote storage rather than local storage for keep the trends there all the time. I actually don't even know where the data is stored, if at all.
    Thanks Tim.

  • @nathanarmstrong2422
    @nathanarmstrong2422 Před rokem +1

    great video love you

  • @fikrimuhammadshiddiq1357
    @fikrimuhammadshiddiq1357 Před 2 lety +1

    if i use modbus for my interface can i use this method? and need to program ab-stratix too??

  • @bobbuilder2823
    @bobbuilder2823 Před 2 lety +1

    Hey Tim, I am currently trying to get 1769 L33ER Compact Logix connected a cloud. I am using Microsoft Azure and i set up an IOT hub along with an IOT edge device that acts as a gateway. Additionally, I installed a Modbus module on the edge device in hopes to use the server AOI to be able to communicate with it. Do I only need to plug in the PLC's IP address into the moudle (client) for this to work? Also is this the best way to go about it? Any help would be much appreciated thanks!

  • @huydoan1024
    @huydoan1024 Před 2 lety

    Hi Tim. I already setup a Modbus TCP Slave in Studio 5000 for the Allen Bradley Controllogix L73 using Add on via Ethernet module EN2T install with same controller rack at slot 2, so I set MBTU_EnetModulePort is $01$02. and now i plan to set up a Modbus TCP Master using Add on via other Ethernet module EN2T installing in Remote IO rack (Controlnet node 3, slot 16). In this case, I don't know how to set MBTU_EnetModulePort. Please give advice. Thanks

  • @Tigglebitties
    @Tigglebitties Před 2 lety +1

    Hey Tim, do you know if anything like this has been done on a micro 820? I'm trying to use an 820 to actuate a bank of relays, based on data from another widget that has modbus IP slave capability. Building a remote annunciator panel.

    • @TimWilborne
      @TimWilborne  Před 2 lety +2

      Here is one I did on a Modbus server for the Micro820.
      twcontrols.com/lessons/allen-bradley-micro800-modbus-tcp-server-micro820-micro850

  • @dyeyPiii
    @dyeyPiii Před 2 lety

    Hi! I’m quite new to PLC programming. I am currently making a program that is responsible for shutting a projector and knowing its power state. I have now program that can send the command. The problem now is that i cannot receive the whole feedback (response) from the projector because read response buffer length appears to be limited to 9.
    I have read that i should do multiple read socket to receive entire application message but i dont know how to implement it.

  • @lucasantonelo8560
    @lucasantonelo8560 Před rokem +1

    Hi Tim, I'm following your step-by-step guide to implement communication between a PLC and Studio 5000, however, my university computer does not allow the installation of Modbus Tools due to network vulnerabilities. Is there any alternative for me to complete the start of the Modbus server?

    • @TimWilborne
      @TimWilborne  Před rokem +1

      Sure, go ahead and connect a Modbus device. I used that device as a quick test for the video.

  • @bluntssmoking9362
    @bluntssmoking9362 Před rokem +1

    Thanks!

  • @richardowusuafriyie5427
    @richardowusuafriyie5427 Před 2 lety +2

    Hey Tim, I’m running the AOi on a the simulator rather than an actual controller, and when I set the server enable to 1, I get a sts fault

    • @TimWilborne
      @TimWilborne  Před 2 lety +1

      The simulator doesn't support open sockets, time to get some hardware.

  • @fazsltda
    @fazsltda Před rokem +1

    Excellent explanation, help please, if I want to communicate the 1769-L16R with a "HMI XXX" screen by modbus, the PLC must be a client or server? regards

  • @ScottDougherty96
    @ScottDougherty96 Před 6 měsíci +1

    So if I had tags I wanted to output over Modbus I could just copy the tag in another routine to the data.holdregister. Then using my other device point to that register and the PLC’s IP to read that tag data?

    • @TimWilborne
      @TimWilborne  Před 6 měsíci +1

      Yes, check out the AOI documentation when you download the sample code. It is very well documented.

  • @amarskills1299
    @amarskills1299 Před 2 lety +1

    Thanks tim. I need your help. How to change modbus server data type. All data INT type. But my value is 80000. INT value max max 32768. Now i need Real data type.
    Please share your solution 😊.

  • @ErwinDirecto
    @ErwinDirecto Před rokem +1

    Hi Tim, can i use this AOI on the studio 5000 emulate? Thank very much for this good video!

    • @TimWilborne
      @TimWilborne  Před rokem +2

      I don't know. I've never found Emulate to do exactly what a PLC would do.

    • @ErwinDirecto
      @ErwinDirecto Před rokem

      Thanks Tim, it's just out of curiosity since we can send and receive data on kepware so it pop-up on my mind that maybe we can use this AOI to command external devices.

  • @dbro3440
    @dbro3440 Před rokem +1

    Hi Tim, I have a Socomec (A30) power monitor on a project and it looks like the modbus client AOI would work for reading the data from the power monitor however the Modbus range starts at 50000 on the unit. Any idea how I could get the AOI to start at this range?

    • @TimWilborne
      @TimWilborne  Před rokem +2

      See if this video helps.
      czcams.com/video/ws_A9s_VFdo/video.html

    • @dbro3440
      @dbro3440 Před rokem +1

      @@TimWilborne Thanks Tim

  • @desifiedCanada
    @desifiedCanada Před rokem +1

    Thanks bro, i have one question how to display these modbus registers on hmi ??

    • @TimWilborne
      @TimWilborne  Před rokem +1

      As long as the HMI supports modbus, all you have to do is enter the IP and address number.

    • @desifiedCanada
      @desifiedCanada Před rokem

      I have used 1769 L24ER QB1B

    • @desifiedCanada
      @desifiedCanada Před rokem

      Can we use move command to move modbus data to plc memory tag and display to the hmi ?

  • @OldePhart
    @OldePhart Před 2 lety +1

    is using modbus from PLC to PLC a practical application or just for training purposes?

    • @TimWilborne
      @TimWilborne  Před 2 lety +2

      I wouldn't do it for AB to AB communications but it would allow you to easily communicate between an AB and an Automation Direct PLC or any other device that supports Modbus.

    • @OldePhart
      @OldePhart Před 2 lety +2

      @@TimWilborne ah, being an AB shop I didn't even think of other brands. I gotta get out more :-)

    • @TimWilborne
      @TimWilborne  Před 2 lety +2

      Makes it easier when it is only one brand 😁

  • @megrobelly
    @megrobelly Před 4 měsíci +1

    what if I need float32 data instead on some 4XXXX registers? is there a way to change that? how can I send a message (string: 'unable to accept request')

    • @TimWilborne
      @TimWilborne  Před 4 měsíci +1

      You would use a COP instruction to put the floating number into INTs then do the opposite on the destination PLC. Mainly pay attention to the length of the COP instructions. It is based on the destination. Here is a video where I'm doing something similar but with DINTs which are also 32 bit.
      czcams.com/video/o3OWV8Q_U7s/video.html

  • @starcio3030
    @starcio3030 Před 2 měsíci +1

    How about working with floating values ?

    • @TimWilborne
      @TimWilborne  Před 2 měsíci +1

      This is on my list of videos to make but use the CPS instruction to copy it to INTs then do the opposite in the other PLC. But pay attention to the length parameter in the help. It is based on the number of destination elements.

  • @OldePhart
    @OldePhart Před 2 lety +1

    I just came into the need to use Modbus RTU in the 5380. Not nearly as pleasant to work with. Address changes require re-downloading the program each time as the config seems to be stored in the module like scaling is in a analog module. Can't change it online. Very disappointing during the development phase when you are trying to figure out how the data is structured. Modbus TCP on the 5380l is just like this video.

    • @TimWilborne
      @TimWilborne  Před 2 lety +1

      I'm not following you. Are you saying if you use the AOI on a 5380 that it won't let you change the address without downloading? It should work exactly the same.

    • @OldePhart
      @OldePhart Před 2 lety

      @@TimWilborne if you use RTU (serial) you need the 5069-serial module and the addressing is then done in the module config and not in the tags. Seems like a step backwards, but ab is really trying not to support anything serial.

  • @mrfst450
    @mrfst450 Před 4 měsíci +1

    silly they changed it to server/client from slave/master

    • @TimWilborne
      @TimWilborne  Před 4 měsíci +1

      It depends on your region. Here is some additional information.
      www.rockwellautomation.com/en-us/company/about-us/sustainability/culture-inclusion-diversity/inclusive-terminology.html

    • @mrfst450
      @mrfst450 Před 4 měsíci +1

      @@TimWilborne Yes all in the name of "DEI". I have worked with many many non white techs and electricians and not one of them had an issue with the terminology of slave/master. Nevertheless, this video was great and very helpful.

    • @TimWilborne
      @TimWilborne  Před 4 měsíci +1

      In a few years, no one will notice, remember MMIs?
      Honestly, Master/Slave has never made much sense and caused a lot of confusion. Most people thought the Master held the data and controlled the slaves. The slaves were the smart devices that held the data and the master could only read and write to them.