1. Configuration of TIA Portal A
Create a new project in the TIA Portal software. In this case, S7-300 is selected, and its model is 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 a master station.
Step 1: Add G file.
In the TIA Portal software, click "Options", "Manage General Site Description Files" as shown below:
Select the GSD file and click Install. The installation may take some time.
Step 2: Double-click "Device Configuration" and switch the view to view, as shown below:
Step 3: Enter anybus in the search bar in the "Directory" function bar on the right, and the following search results will appear:
Step 4: Expand Anybus-CC PROFIBUS DP-V1, hold down the left mouse button, and drag it to the network view, as shown below:
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:
At this point, the hardware configuration of the PLC is complete. In order to ensure the accuracy, we need to check the addresses of the master and slave stations. 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:
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:
Step 2: Under the "Configuration" menu, expand PROFIBUS Internal Anybus Device, as shown below:
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:
In the Name field, enter the name, and in the Input Size (bys) 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.
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:
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:
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:
At this point, all the configurations have been set.
The final step: add the following program to the Main program block:
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:
Review editor: Tang Zihong
Previous article:Bearing knowledge: the role of bearing axial clearance
Next article:In the next five years, humanoid robots will achieve a "triple jump"
- Popular Resources
- Popular amplifiers
- Using IMU to enhance robot positioning: a fundamental technology for accurate navigation
- Researchers develop self-learning robot that can clean washbasins like humans
- Universal Robots launches UR AI Accelerator to inject new AI power into collaborative robots
- The first batch of national standards for embodied intelligence of humanoid robots were released: divided into 4 levels according to limb movement, upper limb operation, etc.
- New chapter in payload: Universal Robots’ new generation UR20 and UR30 have upgraded performance
- Humanoid robots drive the demand for frameless torque motors, and manufacturers are actively deploying
- MiR Launches New Fleet Management Software MiR Fleet Enterprise, Setting New Standards in Scalability and Cybersecurity for Autonomous Mobile Robots
- Nidec Drive Technology produces harmonic reducers for the first time in China, growing together with the Chinese robotics industry
- DC motor driver chip, low voltage, high current, single full-bridge driver - Ruimeng MS31211
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Can MSP430FR2633 be connected to an external 7.3728MHz crystal?
- STM32+W25Q64 failed to read and write external flash
- How do you calculate the current gain of this circuit?
- Why does the LED not go out?
- Brief Introduction of Ultra-Wideband (UWB) Development
- [GD32E503 Review] Simple Oscilloscope Experiment (Continued 2)
- Application of TPS61046 dual output in optical communication
- A generation of "mobile phone overlord" may lay off 10,000 employees. Someone around you must have used its mobile phone!
- High-speed circuit design
- The pin is floating but the voltage is still output?