Close
(0) Shopping cart
You have no items in your shopping cart.
Shopping Categories
    Filters
    Preferences
    Search

    How to Program HMI and PLC?

    ATO HMI touch screen can be connected to industrial control equipment such as programmable logic controller, inverter, DC speed regulator and instrument. Its display shows that the digital device that realizes the interaction of human and machine information through input unit to write working parameters or input operation commands. Now let’s program and test the HMI and PLC.

    This is a Delta HMI (Human Machine Interface).

    Human machine interface HMI

    Wiring

    1. Connect the 24VDC power supply.
    2. The Omron PLC CO1E N40DT-D also requires 24VDC power supply.
    3. Connect the dedicated communication line (RS232 interface).
    4. Connect with PC.

    Program

    Program HMI and PLC

    1. Open the HMI software, create a new project, and select the corresponding HMI model.
    2. Set up the PLC that needs communication (OMRON PLC CP1E N40DT-D).
    3. Set the communication parameters required for communication with PLC. (link2, RS232, 8, 1, 38400, Even).
    4. Click the right mouse button to create a new button/ Set Value.
    5. Double-click the drawn button, and then Main/ write address/ link2/ D/ 100. (Corresponding to the internal storage area of the PLC D100).
    6. Text, enter Set Value.
    7. Picture the button style.
    8. Click the right mouse button to create a new button/ Maintained/ WB/ 000 (corresponding to PLC internal virtual relay W0.00).
    9. Text/ Set W0.00.
    10. Choose the button style.
    11. Compile the project to see if an error is reported.
    12. Download the project to the HMI.
    13. After the download is complete, the HMI display screen is the same as the screen in the project software.

    Omron PLC software operation

    Omron PLC software operation

    1. Create a new PLC program project
    2. Select the corresponding PLC series.
    3. Set the communication parameter information corresponding to HMI.
    4. 38400, 8, 1, e, the default host link mode.
    5. Clear the storage area of D100 and D200 (MOV #0000 D100 & MOV #0000 D200).
    6. Establish W0.00 virtual intermediate relay and wait for the state of MOV instruction. (MOV #1234 D200).
    7. Monitor D100 and D200 storage area data.

    Compile the program.

    Test

    1. Connect the PLC and download the program to the PLC. (Note that setting is checked.)
    2. Restart the PLC. At this time, the PLC and HMI have been communicated. And the PLC communication light is always on.
    3. View D100 and D200, the data is 0.
    4. Click the button Set Value on the HMI to set parameter 543. At this time, the data in the D100 storage area is 021F Hex.
    5. View the decimal value as 543.
    6. Pay attention to observe W0.00 on PLC.
    7. When you press Set W0.00 on the HMI, W0.00 on the PLC is turned on.
    8. #1234 was transferred to the D200 storage area.
    9. View D200, the value is 1234 Hex.
    10. Reset the button on the HMI, W0.00 is reset.

    The communication example between HMI and PLC is completed.

    View the video below to learn more details about HMI and PLC programming and testing.

    Leave your comment