Single data transfer instruction
The single data transfer instruction is used to transfer a data. According to the different word lengths of the transferred data, it can be divided into byte, word, double word and real number transfer instructions. The function of the single data transfer instruction is to send the data in the unit specified by the IN terminal to the unit specified by the OUT terminal when there is input at the EN terminal (ie EN=1).
The description of single data transfer instruction is shown in Table 6-3.
Table 6-3 Single data transfer instruction description
The operands and their data types allowed for byte, word, double word and real number transfer instructions are shown in Table 6-4.
Table 6-4 Operands and data types allowed for byte, word, double word and real number transfer instructions
Byte transfer instruction
The function of the byte immediate transfer instruction is to immediately transfer a byte of data between the physical I/O terminal and the memory when there is an input at the EN terminal (enable terminal). The byte immediate transfer instruction can be divided into the byte immediate read instruction and the byte immediate write instruction, which cannot access the expansion module. The PLC uses a cyclic scanning method to execute the program. If an instruction in the program has just been executed, it will take a scan cycle to execute again. However, the immediate transfer instruction can be executed immediately without waiting when the input is ON.
Table 6-5 shows the description of byte immediate transfer instructions.
Table 6-5 Description of byte immediate transfer instructions
The operands allowed by the byte immediate read/write instructions are shown in Table 6-6.
Table 6-6 The operands allowed by the byte immediate read/write instructions
Data block transfer instructions
The function of the data block transfer instruction is to send the data in the N units of the first address specified by the IN terminal to the N units of the first address specified by the OUT terminal when there is an input at the EN terminal (enable terminal). The data block transfer instruction can be divided into byte block, word block and double word block transfer instructions. The description of the data block transfer instruction is shown in Table 6-7.
Table 6-7 Data block transfer instruction description
The operands allowed for byte, word, and double word block transfer instructions are shown in Table 6-8.
Table 6-8 Operands allowed for byte, word, and double word block transfer instructions
Byte swap instructions
The function of the byte swap instruction is to swap the high byte and low byte of the data in the specified unit at the IN terminal when there is input at the EN terminal.
The byte swap instruction description is shown in Table 6-9.
Table 6-9 Byte swap instruction description
Previous article:How to calculate the current of 220V motor and 380V motor?
Next article:PLC function instructions: data types and addressing methods
Recommended ReadingLatest update time:2024-11-16 09:17
- 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
- Today's live broadcast: Nexperia's efficient ESD solutions for connected car applications
- GPCE4064B cannot be programmed
- “a data verification error occurred, file load failed” feasible solution
- Zhouyi Compass Simulation Experiment 2——Environment and Routine Analysis
- Collection! 19 methods and techniques for converting 5V to 3.3V
- Embedded C code optimization
- ESP32-S2-Saola-1 Review—by dcexpert
- Thank you for being there, thank you for the colorful life in the year
- Does anyone know about ST's new MPU? The model is STM32MP157A
- BlueNRG-x Documentation - Free Development Compiler Tool