Omron CP1H PLC AdvancedHMI Communication

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024
  • We will now use AdvancedHMI to communicate to our Omron CP1H controller. Advanced HMI is a powerful, adaptable HMI/SCADA (Supervisory Control and Data Acquisition) development package that takes advantage of Visual Studio. There is no coding required and you can simply drag and drop items onto the page. The best thing is that the software is free. We will look at using AdvancedHMI with the Omron CP1H PLC.
    Our sample CP1H PLC program will use buttons and indicators to control a start/stop jog circuit. An analog input into the PLC will be scaled and displayed on a gauge on our AdvancedHMI screen. We will also write information to our 7 segment display on the CPU from our AdvancedHMI screen. This communication will be done using Omron serial host link protocol over an RS485 serial cable. The AdvancedHMI package will run on a windows PC and communicate out the port using a USB to RS485 adapter.
    AdvancedHMI can communicate to many devices. The CP1H PLC can communicate Host Link (C Mode Commands) Serial - RS232, RS485, RS422. It can also communicate Ethernet FINS via a communications module. Communications drivers currently included in AdvancedHMI are as follows. These drivers are fully accessible via VB or C# code:
    • Allen Bradley DF1 RS232 Driver
    • Allen Bradley Ethernet/IP Driver for SLC, MicroLogix, ControlLogix, and CompactLogix
    • Beckhoff TwinCAT Driver
    • ModbusTCP Driver
    • Modbus RTU Driver
    • Omron Ethernet FINS Driver - Ethernet for newer controllers such as CP1H with Ethernet module
    • Omron Serial FINS Driver - Serial (RS232 / RS485) for newer controllers such as CP1H
    • Omron Serial HostLink Driver - Serial (RS232 / RS485) for controllers such as CQM1, C200H, K-Series (C28K), C200, etc
    More information can be obtained at our website. This includes all of the links mentioned in this video.
    accautomation....
    Previously in this Omron CP1H series, we looked at the following:
    System Hardware
    accautomation.c...
    CX-Programmer
    accautomation....
    Establish Communication
    accautomation....
    Omron CP1H Setting, Forcing and Online Editing
    accautomation....
    Omron CP1H Numbering Systems and Addressing
    accautomation....
    Omron CP1H Timers
    accautomation....
    Omron CP1H Counters
    accautomation....
    Omron CP1H Data Movement
    accautomation....
    Omron CP1H Compare Instructions
    accautomation....
    Omron CP1H Data Shifting Instructions
    accautomation....
    Omron CP1H Math Instructions
    accautomation....
    Omron CP1H Data Conversion Instructions
    accautomation....
    Omron CP1H Program Control Instructions
    accautomation....
    Omron CP1H Table Data Instructions
    accautomation....
    Omron CP1H Data Control Instructions
    accautomation....
    There are several reasons why we are using the Omron CP1H Controller. Here are just a few.
    - Standalone PLC with built-in I/O
    - Communication ability - Ethernet Port, RS232, RS485 - support for protocols such as Modbus, Host Link, ASCII (No Protocol)
    - Built-in Analog inputs and outputs
    - 4 axis control of motion
    - 4 high-speed counters
    - powerful instruction set (similar to CS and CJ series)
    - Ability to expand the system with a variety of modules
    The Omron CP1 series of programmable logic controllers consists of three different units. CP1E is the cost-effective unit, CP1L is the high performing controller that can come with embedded Ethernet and the CP1H is the position control and comprehensive programmable logic controller.
    We will be looking a the CP1H for this series, but a majority of the information can be applied to the CP1E and the CP1L controllers as well.
    www.accautomat...

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

  • @Trungkienelectronic
    @Trungkienelectronic 7 ปีที่แล้ว +2

    In this video you are using PLC Omron CP1H specific code? Is it the CP1H-X40DT? I will use a PLC like you to test

    • @ACCautomation
      @ACCautomation  7 ปีที่แล้ว

      I am using the CX-Programmer to program the Omron CP1 Series PLC. The model number is CP1H-X40DR-A with a CP1W-CIF11 RS-422A/485 Option Board.
      The USB-485M adapter is used from the computer to the Omron option board. It is from automation direct.
      accautomation.ca/usb-to-rs485-pc-adapter-installation/
      Regards,
      Garry

  • @abdoughezali8260
    @abdoughezali8260 6 ปีที่แล้ว +1

    Thanks for the explanation
    Please I want to learn how to program and control stepper motor with CP1H-X40DT

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

      Thanks for the comment Abdou.
      Here are some reference links to help get you started.
      instrumentacionycontrol.net/wp-content/uploads/2017/11/IyCnet_OmronCP1HtoOmron-SmartStep.pdf
      forums.mrplc.com/index.php?/topic/21613-cp1h-step-and-direction/
      There is also allot of information under the instructions in the CP1H manual.
      www.ia.omron.com/products/family/1778/specification.html
      Regards,
      Garry

    • @abdoughezali8260
      @abdoughezali8260 6 ปีที่แล้ว +1

      thank you for the response
      but why not download video how to do this operation

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

      If I had the equipment, motors and drivers this would not be a problem. I have done projects in the past with teaching position points using stepper motors with the Omron PLC.
      The Omron manual is good at giving you the basic requirements to do the motion control.
      Thanks Abdou,
      Garry

  • @jasonchristopheraguillon4988
    @jasonchristopheraguillon4988 4 ปีที่แล้ว +1

    Hi sir Can you.make a video tutorial for Cx designer . Just like what u did in omron cp1h series , I known you will have more follower and subscriber in your channel if you would do this because i check out some videos here on youtube for cx designer and no one didnt from basic design and how to use it , Thank u so much for your videos was uploaded here , it's a big help for students and beginners.

    • @ACCautomation
      @ACCautomation  4 ปีที่แล้ว +1

      Hi Jason,
      CX Designer is for the Omron HMIs only. This is why I utilize AdvancedHMI software. It has a broader audience and better features that would extend the logging and network communication with the Omron equipment.
      AdvancedHMI runs on Visual Studio and is a free download.
      I would consider adding an Omron touch screen and using the Omron software if I get an opportunity to use the product again. I have not used the Omron HMI since the NT31 and NT600 series.
      Thank you for the comments.
      Garry

    • @ACCautomation
      @ACCautomation  4 ปีที่แล้ว +1

      I have done additional series on the C-More Micro HMI and the C-More HMI units.
      accautomation.ca/series/c-more-micro-hmi/
      C-More Micro are inexpensive HMI units that offer connectivity to several brands of PLCs. They also have Modbus TCP and RTU protocols. The software is a free download.
      accautomation.ca/series/c-more-hmi-series-panel/
      The C-More series is very common in the industry. They offer a wide variety of protocols for many PLC manufacturers. FTP, Data Logging, and Email are standard features of this unit. They also offer free remote mobile software for android and IOS operating systems.
      The headless HMI version will also allow you to add your own monitor via an HDMI.
      Just a thought.
      Regards,
      Garry

  • @Trungkienelectronic
    @Trungkienelectronic 7 ปีที่แล้ว +1

    I do with plc CP1E-N30 then address 21.0; 22.0; 23.0 have to change again. I still can not control the plc through the computer. I use USB to RS485

    • @ACCautomation
      @ACCautomation  7 ปีที่แล้ว

      Hi Tran,
      Can you communicate to the PLC using CX-Programmer and the USB to RS485 converter? This will prove that the serial unit is working.
      Regards,
      Garry

  • @jdalsania
    @jdalsania 5 ปีที่แล้ว +1

    how to read double integer or floting point values?

    • @ACCautomation
      @ACCautomation  5 ปีที่แล้ว

      Hi Jaydeep,
      I have not tried this out with the Omron Driver but in AdvancedHMI use the following to read:
      D0@F will read a 32 bit floating point
      D0@L will read a 32 bit integer
      www.advancedhmi.com/forum/index.php?topic=1952.0
      I have tested the following:
      Modbus drivers uses an address prefix letter for non-typical registers.
      L40001 will read a 32 bit integer
      F40001 will read a 32 bit floating point
      Regards,
      Garry

  • @UmitDurupinar
    @UmitDurupinar 4 ปีที่แล้ว +1

    Hi Garry, I am using "CP1L EM" plc. (communication pc and plc via ethernet) I create a interface in Visual Studio, and I start program in visual studio. In this situation there is no problem with communication between PC and PLC. After everything is ok, I publish program and create a setup file. When I install program in pc(my PC or other pc) program opens successfully but there is no communication pc and plc. What is the wrong I do. Please help me.

    • @UmitDurupinar
      @UmitDurupinar 4 ปีที่แล้ว +1

      My email address is umit.durupinar@gmail.com

    • @ACCautomation
      @ACCautomation  4 ปีที่แล้ว

      Hi Umit,
      When you create a setup program, you must include all of the source code.
      www.advancedhmi.com/forum/index.php?topic=1092.0
      What I usually do is to copy the entire program directory and provide a link to the exe file on the desktop.
      accautomation.ca/deploying-an-advancedhmi-project/
      www.advancedhmi.com/forum/index.php?topic=1441.0
      Here is another tip that will start AdvancedHMI if the windows machine is not shut down properly.
      www.plctalk.net/qanda/showthread.php?t=102394
      I hope this helps you out.
      Regards,
      Garry

    • @UmitDurupinar
      @UmitDurupinar 4 ปีที่แล้ว +1

      @@ACCautomation Dear Garry thank you for rapid answer. I will try your tips I hope it help too ;). I will inform you.

    • @mukhlisrifai8777
      @mukhlisrifai8777 4 หลายเดือนก่อน

      Hi Sir, Can you help me step by step communicating Omron Ethernet Fins with advanced HMI? I Have Tried and cannot caommunicating.

  • @KD_Puvvadi
    @KD_Puvvadi 5 ปีที่แล้ว +1

    Hay Garry, can you do the same with NX1P with EthernetIP

    • @ACCautomation
      @ACCautomation  5 ปีที่แล้ว

      Hi KD,
      I do not have the hardware for the Omron NX1P. AdvancedHMI will not support EthernetIP on the Omron controllers. You can only use FINS communication.
      www.advancedhmi.com/forum/index.php?topic=778.0
      "The Ethernet/IP drivers only support specific commands for the ControlLogix/CompactLogix/Micro800 PLCs. Unless your device supports the same commands, it will not work."
      Regards,
      Garry

  • @bendylee860
    @bendylee860 5 ปีที่แล้ว +1

    Can I have this sample program?
    Thanks.

    • @ACCautomation
      @ACCautomation  5 ปีที่แล้ว +1

      Hi Bendy,
      Here is a link to download the sample program.
      www.dropbox.com/s/tilb955yf67u7c8/Omron%20CP1H%20AdvancedHMI%20Communication.zip?dl=0
      This can also be found on our website with more detail contained in the video at the following URL:
      accautomation.ca/omron-cp1h-advancedhmi-communication/
      Let me know if you have any questions.
      Regards,
      Garry