Data transfer instructions can realize the transfer and copy of data between storage units. Mitsubishi PLC (FX2N for example) has about 6 transfer instructions for users to use, and Siemens PLC (S7-1200 for example) has about 4 (mainly depends on whether they are strictly distinguished). This article uses examples to explain Mitsubishi PLC's MOV and Siemens 1200's MOVE in detail.
1. Transmitting command function
The transfer instruction can transfer data to a specified target. It has a wide range of uses: the transfer instruction can be used to clear storage units, start and stop devices such as motors, transfer data to data registers for data processing (such as addition, subtraction, multiplication and division calculations, etc.), and transfer data to digital displays for digital display, etc.
2. Application Examples
(I) Taking Mitsubishi FX2N PLC as an example
For example: There are 4 motors, driven by Y0, Y1, Y2, and Y3 respectively. The start signal is X4 and the stop signal is X5. Please use the MOV instruction to start and stop the motors at the same time.
1. Task analysis:
To complete the task using the MOV instruction, you need to understand the format used by the MOV instruction:
Note: K represents a decimal constant; H represents a hexadecimal constant; KnX…KnS is described by K1Y000: K1Y000 represents 4*1 consecutive bits starting with Y0, namely Y0, Y1, Y2, Y3; T represents a timer; C represents a counter; D represents a data register; V/Z represents an index register.
2. PLC control program
3. Program comments
K represents a decimal constant. After power-on, M8002 is turned on, the decimal number 0 is converted to the binary number 0000, and stored in the data register D12, so that D12 is cleared; when X004 is started, the decimal number 15 is converted to the binary number 1111, and stored in the 4 bits starting from Y0: Y0, Y1, Y2, Y3, so that the motor starts; X005 is turned on, the binary number 0000 in D12 is stored in Y0, Y1, Y2, Y3, and the motor stops.
(II) Taking Siemens S7-1200 PLC as an example
For example: There are 4 motors, driven by Q0.0, Q0.1, Q0.2, and Q0.3 respectively. The start signal is I0.1 and the stop signal is I0.0. Please use the MOVE instruction to start and stop the motors at the same time.
1. Task analysis:
The format used by the MOVE instruction is:
2. PLC control program
3. Program comments
QB0 represents a byte starting from address Q0.0 (B represents BYTE), namely Q0.7, Q0.6, Q0.5, Q0.4, Q0.3, Q0.2, Q0.1, Q0.0. When I0.1 is turned on, it starts, and the binary number 1111 from the transmission source is copied to the output terminal QB0, so that the values of Q0.3, Q0.2, Q0.1, and Q0.0 are all 1, and the motor starts; when I0.0 is turned on, it stops, and the binary number 0000 from the transmission source is copied to the output terminal QB0, so that the values of Q0.3, Q0.2, Q0.1, and Q0.0 are all 0, and the motor stops.
3. Appendix
1. S7-1200 transfer instruction MOVE schedule
2. Comparison table of two instruction formats
Previous article:TEC control system based on DRV824X-Q1 series
Next article:The drawing method, composition and interpretation of PLC sequential function diagram
Recommended ReadingLatest update time:2024-11-16 11:40
- Popular Resources
- Popular amplifiers
- Huawei's Strategic Department Director Gai Gang: The cumulative installed base of open source Euler operating system exceeds 10 million sets
- Analysis of the application of several common contact parts in high-voltage connectors of new energy vehicles
- Wiring harness durability test and contact voltage drop test method
- Sn-doped CuO nanostructure-based ethanol gas sensor for real-time drunk driving detection in vehicles
- Design considerations for automotive battery wiring harness
- Do you know all the various motors commonly used in automotive electronics?
- What are the functions of the Internet of Vehicles? What are the uses and benefits of the Internet of Vehicles?
- Power Inverter - A critical safety system for electric vehicles
- Analysis of the information security mechanism of AUTOSAR, the automotive embedded software framework
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- 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
- [IoT Harmful Gas Detection Smart Device] Material Unpacking
- EEWORLD University Hall----Analog Integrated Circuit Design (Li Zhangquan, Shanghai Jiaotong University)
- Repair a weird HC-SR04
- Request a free ZVS buck-boost evaluation board!
- bq30z50/55 senc file export configuration process
- Three-cell lithium battery charging management IC-VAS5176 charging current test
- USB TYPE C interface problem urgent help
- Notice on the extension of ON Semiconductor and Avnet IoT Innovation Design Competition
- Can't find header file when compiling
- RTC timekeeping function + GPIO control LCD12864 display