How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Click “Industrial Control Learning Community” to follow us!

Many students are learning skills related to communication with Weintek touch screens. Generally, communication with PLCs is straightforward, such as M area addresses, V area addresses, and Q area addresses. However, when it comes to DB block addresses like those in S7-1200, we often don’t know where to start. So how do we establish the connection? Let’s take a simple approach to achieve this.

1. Write the PLC Program

Step 1: (Create a DB block and write the address)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (Create a variable table address)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 3: (Write the forward and reverse interlock program in OB1 main program)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 4: (Double-click CPU properties—Protection—Connection mechanism—Check allow communication access using PUTIGET from runtime partners (PLC, HM, OPC, etc.))

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 5: (Download the program to the PLC and monitor)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

2. Weintek Touch Screen Configuration

Step 1: (System parameter settings)

Device Type—Siemens S7-1200/S7-1500 (Absolute Addressing) (Ethernet)

Interface Type: Ethernet

IP Address: Enter the S7-1200 PLC IP address (192.168.0.144)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (Click to get tag information—Select all and click confirm)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

3. Design Weintek Touch Screen Interface

Step 1: (Associate button DB addresses)

Forward start address S7-1200 PLC: %DB1.DBX0.0 corresponds to Weintek touch screen: DB1Bit0 Reverse start address S7-1200 PLC: %DB1.DBX0.1 corresponds to Weintek touch screen: DB1Bit1

Stop address S7-1200 PLC: %DB1.DBX0.2 corresponds to Weintek touch screen: DB1Bit2

Parameters for forward start button are as follows:

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Parameters for reverse start button are as follows:

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Parameters for stop button are as follows:

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (Associate indicator light addresses)

Parameters for forward running indicator light are as follows:

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Parameters for reverse running indicator light are as follows:

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

  1. Design the Weintek screen

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

4. Run Demonstration

Step 1: (Run forward start)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (Run reverse start)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 3: (Stop running)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

The demonstration and communication were successful. At this point, everything is complete. Some students may encounter issues in the steps mentioned above, so I will list common problems for your reference:

Common Problems and Solutions:

Problem 1: If the online automatic tag acquisition fails or cannot be obtained, how to solve it?

Answer: You can choose to manually import tags. The method is as follows:

Step 1: (Click the export button in the upper left corner of the variable table to export variables)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (Select the location and name for exporting variables)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 3: (Variable export successful)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 4: (System parameter configuration)

Device Type—Siemens S7-1200/S7-1500 (Absolute Addressing) (Ethernet)

Interface Type: Ethernet

IP Address: Enter the S7-1200 PLC IP address (192.168.0.246)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 5: (Click to import tags)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 6: (Import tag selection—Import Files (d;*db) Linear)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 7: (PLC tags—Location to store exported PLC variable table)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 8: (Select all—Click confirm)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 9: (Tag import successful)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Problem 2: If the DB block in PLC has no address or no DB offset address, how to solve it?

Answer: Cancel block access optimization and recompile. The method is as follows:

Step 1: (Select the DB data block—Right-click properties)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Step 2: (DB block—Right-click properties—Cancel optimized block access)

How to Easily Communicate Between S7-1200 PLC and Weintek Touch Screen

Source: Jicheng Training Network, Author: Jicheng – Xu Chenshuang, Unauthorized reproduction is prohibited.

Scan to Get MaterialsHow to Easily Communicate Between S7-1200 PLC and Weintek Touch ScreenScan the QR code aboveto receive Siemens materials for freeHow to Easily Communicate Between S7-1200 PLC and Weintek Touch ScreenClick “Read the Original Text” for continuous improvement!!

Leave a Comment