Function and application examples of PLC data transmission instructions

Publisher:HeavenlyLoveLatest update time:2023-06-20 Source: elecfansKeywords:PLC Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

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:

poYBAGQRdPCAR1FrAAByv5YZ3HU675.png

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

pYYBAGQRdP-ACa37AAA9AHXPtgE461.png

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:

poYBAGQRdQ-AUKrgAABwWe-pekY259.png

2. PLC control program

wKgaomQRdMmAOZsGAABTlUXINNY12.jpeg

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

wKgaomQRdMqASvK2AAMQ2PicYO8771.png

2. Comparison table of two instruction formats

pYYBAGQRdSSACceQAACikChEg40999.png


Keywords:PLC Reference address:Function and application examples of PLC data transmission instructions

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

Application experience of PID function block of Siemens S7-300PLC
1. Automatic adjustment can be performed in the software; 2. The automatically adjusted PID parameters may not be the best for the system, so they need to be adjusted manually based on experience. If the P parameter is too small, it will take too long to reach dynamic balance; if the P parameter is too large, i
[Embedded]
Which programming method does Mitsubishi FX series PLC support?
Mitsubishi FX series PLC is a programmable logic controller widely used in the field of industrial automation. It has powerful functions and flexibility, and supports a variety of programming methods to meet the needs of different users. This article will introduce in detail the programming methods supported by Mits
[Embedded]
What are the types of PLC and how to deploy them
Technology deployment PLC data acquisition and processing is based on the data analysis and control of the remote server configuration software. The data is transmitted to the server through wireless 4G, so that multiple project points can be centrally managed and controlled. Due to different application scenar
[Embedded]
HMI and PLC integration accelerates digital transformation of smart factories
In the field of contemporary automation applications, programmable logic controllers (PLC) and human-machine interfaces (HMI) are the two most important devices. With the popularization of smart factories, the first step to realize the Industrial Internet of Things (IIoT) is to visualize the information of PLC devic
[Embedded]
HMI and PLC integration accelerates digital transformation of smart factories
Lihe Micro PLC IoT enables massive terminal intelligence and solves the "last mile" problem of the Internet of Things
Lihe Micro PLC IoT enables massive terminal intelligence and completely solves the "last mile" communication problem of the Internet of Things In the Internet of Things (IoT) device communication market, the interconnection between devices is no longer limited to computers and mobile phones. More and more devices wi
[Internet of Things]
Lihe Micro PLC IoT enables massive terminal intelligence and solves the
10 Practical Tips on PLC (Part 2)
6. Label input and output Convenient maintenance PLC controls a complex system. What you can see are two rows of staggered input and output relay terminals, corresponding indicator lights and PLC numbers, just like an integrated circuit with dozens of pins. Anyone who does not look at the schematic diagram to r
[Embedded]
How does the PLC data acquisition gateway realize data acquisition and remote program upload and download of Mitsubishi PLCs such as FX3SA/FX3GA/FX3G/FX3U?
With the development of industry, PLCs produced by Mitsubishi manufacturers can be used in various industrial equipment. These PLC devices can use the corresponding Wutong Bolin PLC data acquisition gateway to collect data. By connecting the PLC data acquisition gateway and the Mitsubishi PLC controller, data collec
[Embedded]
How does the PLC data acquisition gateway realize data acquisition and remote program upload and download of Mitsubishi PLCs such as FX3SA/FX3GA/FX3G/FX3U?
What are the types of Mitsubishi FX series PLC auxiliary relays?
Mitsubishi FX series PLC is a programmable logic controller widely used in the field of industrial automation. In the FX series PLC, the auxiliary relay is an important soft component used to implement various control logics and functions. Basic Concepts of Auxiliary Relays Auxiliary relay is a v
[Embedded]
Latest Embedded Articles
Change More Related Popular Components

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号