Siemens and ABB robots communicate based on Profibus-DP

Publisher:玉树琼花Latest update time:2023-04-17 Source: elecfansKeywords:Siemens Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Configuration of TIA Portal

Create a new project in the TIA Portal software. In this case, Siemens S7-300 PLC is selected, and its model is CPU 313C-2DP. This PLC is an integrated PLC with its own PROFIBUS-DP port. It can be used as a master station or a slave station. In this case, the PLC acts as the master station.


Step 1: Add the GSD file.

In the TIA Portal software, click "Options", "Manage General Site Description Files" as shown below:

f858add4-bc71-11ed-bfe3-dac502259ad0.png

Select the GSD file and click Install. The installation may take some time depending on the computer.

Step 2: Double-click "Device Configuration" and switch the view to network view, as shown below:

f86bb1e0-bc71-11ed-bfe3-dac502259ad0.png

Step 3: Enter anybus in the search bar in the "Hardware Catalog" function bar on the right, and the following search results will appear:

f8961d0e-bc71-11ed-bfe3-dac502259ad0.png

Step 4: Expand Anybus-CC PROFIBUS DP-V1, hold down the left mouse button, and drag it to the network view, as shown below:

f8b435dc-bc71-11ed-bfe3-dac502259ad0.png

Step 5: Press and hold the left mouse button to select the DP port of PLC_1 and connect it to the DP port of slave_1, as shown in the figure below:

f8c62738-bc71-11ed-bfe3-dac502259ad0.png

At this point, the hardware configuration of the PLC and the robot has been completed. In order to ensure the accuracy, we need to check the addresses of the master station and the slave station. By default, the PLC is the master station, and its address is 2. The default address of Slave_1, which is the robot side, is 3, as shown below:

f8dbd998-bc71-11ed-bfe3-dac502259ad0.png

2. Robot side settings

Step 1: In the "Configuration" menu of the teach pendant, make sure that the system supports Industrial Network, expand Industrial Network, and make sure that PROFIBUS_Anybus exists in the system, as shown in the following figure:

f8e944c0-bc71-11ed-bfe3-dac502259ad0.png

Step 2: Under the "Configuration" menu, expand PROFIBUS Internal Anybus Device, as shown below:

f90114ce-bc71-11ed-bfe3-dac502259ad0.png

Step 3: If PB_Internal_Anybus appears in the second step, you do not need to add it. If it does not appear, add it, as shown in the following figure:

f91fea3e-bc71-11ed-bfe3-dac502259ad0.png

In the Name field, enter the name, and in the Input Size (bytes) and Output Size (bytes), enter the corresponding communication capacity, which supports up to 512 bits, or 64 bytes. The rest of the content does not need to be changed. After adding, click OK.

f937990e-bc71-11ed-bfe3-dac502259ad0.jpg

3. Writing of PLC communication program

The communication procedure on the PLC side is relatively simple. It only requires moving the corresponding bit value to the corresponding address. In this case, the PLC and the robot did not input or output a byte from the communication.

Step 1: Expand the distributed I/O under the project tree on the left, expand them one by one, find the device configuration, and double-click it. As shown below:

f94f09a4-bc71-11ed-bfe3-dac502259ad0.png

Step 2: In the hardware directory menu bar on the right, find "Input 1 byte" and "Output 1 byte", and double-click them respectively to make them appear under Slave_1 on the left. This step tells the PLC to send and receive data with the robot in units of one byte each time. As shown in the figure below:

f976cb60-bc71-11ed-bfe3-dac502259ad0.jpg

Step 3: Determine the communication address of the PLC. This step is crucial and is related to how the address in the program is determined. Select "Input 1 byte" and "Output 1 byte" respectively and right-click, select "Properties", and use their respective default addresses, as shown below:

f98ad466-bc71-11ed-bfe3-dac502259ad0.png

At this point, all the configurations have been set.

The final step: add the following program to the Main program block:

f99dcb52-bc71-11ed-bfe3-dac502259ad0.png

This program means that the PLC sends the status value of 1.0-1.7 of channel 1 to 256.0-256.7, where 256.0-256.7 corresponds to the first byte of the receiving end of the robot. We can monitor it in the IO monitoring interface of the robot teaching pendant as shown below:

f9b0f6be-bc71-11ed-bfe3-dac502259ad0.png


Keywords:Siemens Reference address:Siemens and ABB robots communicate based on Profibus-DP

Previous article:9 tips for daily application of PLC programmable controller
Next article:Advantages and disadvantages of variable frequency motors Matters needing attention when using variable frequency motors

Recommended ReadingLatest update time:2024-11-16 10:29

Siemens 200/300 PLC connects CHNet-200/300 and LABVIEW via OPC communication case
With the help of Xingda Easy Control CHNet-S7300MD module, through NI OPC Servers and CHNetS7 OPC, the measurement and control software NI LABVIEW realizes communication and monitoring with Siemens S7-300. Connecting via NI OPC Servers (1) Edit OPC 1. Open the NI OPC Serve
[Embedded]
Siemens 200/300 PLC connects CHNet-200/300 and LABVIEW via OPC communication case
How to convert Modbus in Siemens S7-200Smart
In non-standard industrial automation systems, it is often necessary to collect PLC data to the PC-side upper software. Direct collection of PLC data requires a lot of software development and debugging work, and even requires the purchase of software drivers and then development. Many upper computers support the Mo
[Embedded]
How to convert Modbus in Siemens S7-200Smart
A brief discussion on the communication technology of Siemens plc200, 300 and 400
(1) What settings are required when Siemens 200 PLC uses MPI protocol to communicate with KingView? 1) The STEP7Microwin3.2 programming software provided by Siemens needs to be installed on the machine running Kingview. Our driver needs to call the MPI interface library function provided by the programming soft
[Embedded]
When learning PLC for the first time, should I learn Siemens or Mitsubishi?
There are many types of PLCs, and most brands are divided into European, Japanese, and American brands. German PLCs are mainly Siemens, Japanese PLCs include Mitsubishi, Omron, Panasonic, etc., and American PLCs include Rockwell (AB), General Electric (GE), and Modicon. The PLC technologies of the United
[Embedded]
Siemens acquires Culgi to bring multiscale chemistry models to Xcelerator
Siemens has signed an acquisition agreement for computational chemistry software company Culgi. Culgi previously focused on multi-scale simulation in the process industry. After joining Siemens Digital Industry Software, Culgi's solutions will further enhance the simulation capabilities of Siemens Xcelerator™, and its
[Embedded]
Siemens acquires Culgi to bring multiscale chemistry models to Xcelerator
Siemens PLC counting instructions
Each time the Siemens PLC's up count input switches from off to on, the up count (CTU) counts up from the current value of the counter. The counter is reset when the reset input turns on or a reset instruction is executed. The counter stops when the maximum value (32,767) is reached. The up/down counter (
[Embedded]
Global Enterprise Intelligent Manufacturing Patent Ranking: IBM, Siemens, and Mitsubishi Electric Top Three
The "Global Enterprise Intelligent Manufacturing Patent Ranking (TOP100)" list recently released by Zhihuiya, a technology innovation intelligence SaaS service provider, shows that American and Japanese companies have obvious advantages in the field of intelligent manufacturing. Among them, IBM, Siemens and Mitsubishi
[Embedded]
Latest Embedded Articles
Change More Related Popular Components
Guess you like

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号