The Siemens S7-1200 communicates with the TCP Debugging Assistant

Create Date: 2024-8-30 12:03:23|Source: Siemens/Siemens

TCP and debug assistant

The S7-1200 supports the standard TCP protocol and can communicate with other devices or software as a client and server. By calling TSEND_C, TRCV_C, TCON and other commands, you can communicate with the partner

TCP connection is established. Using the Network Debugging Assistant on a PC to establish TCP communication with the S7-1200 is an easy way to debug.

The software and hardware environment used in this example:

  ① TIA Portal V16

(2) TCP/UDP Socket debugging tool

  ③ CPU1214C DC/DC/DC(6ES7 214-1AG40-0XB0),V4.4

  ④ PC

(5) Ethernet cable

Communication tasks to be completed:

(1) The S7-1200 acts as a client and debugging assistant for data communication

(2) The S7-1200 acts as a server and debugging assistant for data communication

S7-1200 as client

Create a TCP server

1. Open the debugging software, select the TCP Server on the left, and then click the "Create" button.

2. The software pops up the listening port input box and enters the communication port number.

3. After entering the listening port, the software will automatically start the TCP Server Socket to listen on the specified communication port.

Create a TCP client

1. Open TIA Portal V16, create a new project, add CPU1214C DC/DC/DC V4.4 and set the IP address of the CPU.
The Siemens S7-1200 communicates with the TCP Debugging Assistant
  2. Add TCP communication commands.

3. Configure the communication.

4. Write sending and receiving instructions and download them

Note: When the S7-1200 is used as a client, the CPU will automatically periodically send TCP connection requests until the server listens for the TSEND_C and the TCP connection is established.

5. Confirm the connection.

6. Sending and receiving data.

Note: In this example, the debugging assistant is sent according to ASCII, so send 12345678, and the S7-1200 will display hexadecimal, which is 16#3132333435363738.

S7-1200 as a server

Create a TCP server

1. Open TIA Portal V16, create a new project, add CPU1214C DC/DC/DC V4.4 and set the IP address of the CPU.

2. Add TCP communication commands.

3. Configure the communication.

4. Write sending and receiving instructions and download them.

Note: When the S7-1200 is used as a server, the CPU will automatically enable listening to the specified port until a TCP connection is established after the TSEND_C is called and downloaded.

Create a TCP client

1. Open the debugging software, select the TCP client on the left, and click the "Create" button.

2. The software pops up an input box, enter the server IP address and communication port number.

3. After confirmation, the software will not automatically connect to the TCP Server, click the "Connect" button to connect to the TCP Server.

4. Confirm the connection.

5. Data sending.

Note: In this example, the debug assistant is sent according to ASCII, so send 123456789a, and the S7-1200 side will show hexadecimal, that is

  16#31323334353637383961。

More on that
Three classifications of the internal storage area of the Siemens S7-1200 Three classifications of the internal storage area of the Siemens S7-1200

The internal storage of the S7-1200 is divided into three types: working storage area, loading storage area, and maintenance storage area. Loading storage area: is a non-volatile store. Used to store user project files (user programs, data, and configuration). If you don't use a memory card, use ...

Siemens joins hands with Chery to stimulate new momentum for the development of the automotive industry Siemens joins hands with Chery to stimulate new momentum for the development of the automotive industry

Chery is a leading manufacturer of self-owned brand cars in China and one of the largest passenger car exporters in China. In recent years, Chery has actively practiced the core strategy of "Digital Chery", and built an intelligent and connected "factory of the future" in Wuhu, Anhui Province, accelerating the transformation from "traditional cars" to "smart cars".

Selection of Siemens medium-voltage frequency converters Selection of Siemens medium-voltage frequency converters

In the application of steel rolling mills, electric propulsion of ships, hoists of coal mines, etc., Siemens now mainly promotes the medium voltage engineering inverter 3.3KV SINAMICS SM150;   In the application of fans, pumps, compressors, mixers, etc., Siemens now mainly promotes medium pressure general-purpose inverters 6KV, 10KVSi ...

How to erase the password using a memory card How to erase the password using a memory card

If the customer has forgotten the password of the S7-1200 that was previously set, the program and password inside the S7-1200 cannot be erased through "Factory Reset", and the only way to erase the password is to use a memory card. The detailed steps are as follows: Power off the S7-1200 device Insert a ...

Siemens Intelligent Power Distribution won the "Samsung Supplier" of the 2022 Supplier Composite Index SCI Siemens Intelligent Power Distribution won the "Samsung Supplier" of the 2022 Supplier Composite Index SCI

On July 5th, the 8th Global Shenzhen Business Conference and Mining and Construction Consortium Conference was successfully held in Shenzhen, and the results of the 2022 Supplier Induction Index SCI evaluation were released on the spot.

Siemens joins hands with Hisense to explore the home appliance industry Siemens joins hands with Hisense to explore the home appliance industry

Siemens recently signed a strategic cooperation agreement with Hisense Group Holding Co., Ltd. (Hisense). The two sides will be based on Siemens' preemptive digital business portfolio, as well as the successful practice of digital transformation, to promote Hisense's digital construction together, and explore the development of intelligent production in the home appliance industry.

Siemens 3RW44 soft starter commonly used fault diagnosis methods Siemens 3RW44 soft starter commonly used fault diagnosis methods

(1) The soft starter display will display fault information (2) Soft starter ES software diagnostic menu (3) read data record 92, and data record 92 is diagnostic information (4) Call the function block SFC13 to read out the fault information of the soft starter, but the premise is that the fault information of the soft starter is read out in the Soft St ...

Siemens CEO Philip Boleren delivered a speech at the opening ceremony of the World Artificial Intelligence Conference Siemens CEO Philip Boleren delivered a speech at the opening ceremony of the World Artificial Intelligence Conference

The 2021 International Artificial Intelligence Conference (WAIC) was officially opened, and Roland Busch, Chairman of the Board of Directors, President and CEO of Siemens AG, was invited to attend the opening ceremony and deliver a speech.   Bo Leren pointed out that digital transformation is the key to all shopping malls and even social and economic ...

Daimler Trucks and Siemens have partnered to build a digital integrated engineering platform Daimler Trucks and Siemens have partnered to build a digital integrated engineering platform

Siemens Digital Industries and Daimler Trucks have announced a new collaboration to leverage Siemens Xcelerator industrial software and services portfolio to build an advanced digital engineering pipeline. The channel will enable Daimler Trucks to explore the innovations of commercial vehicles.

The S7-300/400 communicates with SINAMICS S120 via the DP bus The S7-300/400 communicates with SINAMICS S120 via the DP bus

1. Overview of DP bus communication function S7-300/400 and SINAMICS S120 can carry out periodic and non-periodic data communication through DP bus. Using the standard S7 function block SFC14/SFC15, the S7-300/400PLC can change the control word 1 (CTW1) ...

What is the main impact of the Siemens S7-1200's processing speed on digital quantities? What is the main impact of the Siemens S7-1200's processing speed on digital quantities?

The S7-1200's digital processing speed is limited by several factors: A. Input hardware delay (from the moment the state of the input signal changes to the time when the CPU is able to recognize the change when the input image area is refreshed) B. CPU's internal processing time, package ...

Innomotics, Siemens' industry-leading electric motor and large drive company, is about to be founded Innomotics, Siemens' industry-leading electric motor and large drive company, is about to be founded

Innomotics, an industry-leading electric motor and large drive company, is about to be established from the ground up. Siemens is in the process of consolidating its activities in the areas of low- to high-voltage motors, gear motors, medium-voltage drives and motor spindles into the company. Its business portfolio includes innovative solutions, digital products ...

The Siemens Green and Low-Carbon Forum was held in Wuxi The Siemens Green and Low-Carbon Forum was held in Wuxi

Recently, the "Tsinghua Wuxi Institute-Siemens Green and Low-Carbon Forum" was held in Wuxi, sponsored by Siemens and Wuxi Institute of Applied Technology of Tsinghua University, and guided by Wuxi Development and Reform Committee, Science and Technology Bureau, Science and Technology Association, and Binhu District People's Government.   Wuxi City ...

Siemens supports the transition to sustainable infrastructure with new digital solutions Siemens supports the transition to sustainable infrastructure with new digital solutions

Siemens unveiled its face at the 2022 Lighting and Construction Electrical Exhibition in Frankfurt, Germany under the theme of "Smart Infrastructure Can Continue Infrastructure". During the exhibition, Siemens Essentials underlined its digital vision as the infrastructure needed to address climate change and global sustainability challenges.

Siemens supports the machine tool industry in exploiting the potential of data Siemens supports the machine tool industry in exploiting the potential of data

This year, Siemens will present itself at the EMO 2021 in Milan under the theme of "Digitalization of Machine Tools – Data Empowerment and Unlimited Opportunities", and at the Siemens Machine Tool Days held at the same time, it will fully demonstrate how the machine tool profession can fully exploit the potential of data to improve production efficiency. By putting practice ...

Siemens launches the Zero Carbon Pioneer Program in China Siemens launches the Zero Carbon Pioneer Program in China

Siemens China today officially launched the "Zero Carbon Pioneer Program", announcing the company's clear policy and action plan for low-carbon development. Siemens proposes to use digital innovation and cross-domain knowledge and experience to work with all parties to create a green ecology in China and empower the creation of end-to-end zero-carbon ...

Siemens joins hands with Sanning: Ensuring safe production and contributing to green chemical industry Siemens joins hands with Sanning: Ensuring safe production and contributing to green chemical industry

The industrial site of Sanning Chemical Co., Ltd. (Sanning Chemical) is simply unattended, and the production meets various national environmental protection goals, and the park is as beautiful as a garden, and the company's vision is written on the tower, "to build a beautiful chemical industry, to build a century-old Sanning".   Back in 2017, ...

Siemens S7-200 SMART Analog FAQ Siemens S7-200 SMART Analog FAQ

1. Can the S7-200 SMART Normal Analog Module connect 4-20mA signals? Yes, the S7-200 SMART CPU analog module can detect standard current signals from 0 to 20 mA and 4 to 20 mA. Wiring of two current signals, in the STEP 7-Micro/WIN SMART ...

How to choose the right Siemens soft starter according to the load characteristics and user requirements How to choose the right Siemens soft starter according to the load characteristics and user requirements

As a device to control the start/stop of three-phase asynchronous motor, the soft starter is mainly used to effectively reduce the starting current and control the shutdown process. Its main working principle is to control the starting voltage by controlling the conduction angle of the thyristor on the main circuit. Since the starting voltage is close to the starting current, the starting voltage is close to the starting current.

Siemens builds a super digital factory for small pots of tea Siemens builds a super digital factory for small pots of tea

In June 2022, with the help of Siemens, the super factory built by Xiaocan Tea with an investment of 1.5 billion yuan in Huangshan, Anhui Province was officially put into operation, providing a modern demonstration model for Chinese tea enterprises and leading the arrival of the "Tea Industry 4.0" era. As the first tea profession in China to start with "...

CATEGORIES BYPASS
Customer Service Center

Online Consultation:QQ


ContactContact

Contact: Manager Huang

Contact QQ: 3271883383

Contact number: 13522565663


Scan the code to add WeChat (please save the picture first on the mobile phone)

working hoursworking hours

Weekdays: 9:00-17:00

Holidays: Only emergencies are handled

Contact us

Contact us

Contact number QQ consultation
QQ consultation

3271883383

Company address
Back to top