Utilize Panasonic (FPG) programmable controller (MTRN) RS-485 communication command to realize serial communication control of single controller and multiple Xiamen [Yudian] AI instruments, and can detect the running status of each instrument in real time.
Summary:Using Panasonic (FPG) programmable controller (MTRN) RS-485 communication command, realize single-controller and serial communication control with multiple Xiamen [Yudian] AI instruments, and can detect the operation of each instrument in real time. status.
Keywords: programmable controller MTRN communication command RS-485 communication protocol AI instrument control Introduction: In industrial occasions, some instruments are often used to control, such as temperature, liquid level, flow rate, etc. In some occasions, one control is required. Flexible control of multiple instruments for design control purposes.
This paper uses the Japanese Matsushita Programmable Controller (MTRN) RS-485 communication command to conveniently realize serial communication with multiple Xiamen [Yudian] AI instruments. It has successfully realized the flexibility of using multiple controllers for multiple instruments. control.
The programmable controller allows up to 101 [U-power] instruments to be connected to one RS-485 communication interface. When the instrument is larger than 60, an RS-485 repeater is required. The communication distance of the RS-485 communication port is up to 1KM. the above.
First, the serial communication protocol of Yudian AI instrument for the AI ​​instrument its communication mode is RS-485, (1 start bit, 1 or 2 stop bits, 8 bits of data, no parity) communication to transmit data waves Special rate (1.2K 2.4K 4.8K 9.6K 19.2K can be set in the instrument parameter baud)
Second, the overall design of the system Figure 1 is the overall design block diagram of the system, here highlights the programmable controller and AI instrument RS-485 interface part. In the industrial field, RS-485 communication is a kind of communication method with more applications. In the figure, the programmable controller is connected with multiple AI instruments through RS-485 communication interface, up to 101 units, each instrument is given its own The address code is used to identify the identity. (The address code can be set in the instrument parameter Addr.) The RS-485 communication port of the programmable controller can control all the instruments hanging under the communication line through the communication line.
Figure 1: Overall block diagram of the system |
Third, the communication protocol for receiving and transmitting by the instrument is as follows: (1) Communication protocol for AI instrument receiving control
åNumber code: For an 8-bit data, occupy one byte. For details, see å 代ç 代ç 代ç ä¸ ä¸ ä»£ç è¡¨æ ¼ è¡¨æ ¼ 读写 读写 读写 : : : : : : : : : : : : : : : : : : : : : : : : : : Hexadecimal) 52H write = (hexadecimal) 43H
The number of parameters to be written: a 16-bit data, occupying two bytes. For example, SV value, upper limit alarm, lower limit alarm, Ctrl control mode, etc.
Check code: It is a 16-bit data, occupying two bytes. Check code=ADDR+å code*256+Read/write command+Number of bytes to be written Example: Instrument address=1 To write the code 00H, the number of parameters to be written SV set value = 1234 (hexadecimal = 4D2) The formula is as follows:
01H+(00HX256)+43H+4D2 =516H check code
(2) AI meter returns communication protocol Whether reading or writing the meter returns the following data
PV measurement value: 1 16-bit data, occupying two bytes SV setting value: 1 16-bit data, occupying 2 bytes of output value MV: 1 8-bit data, occupying one byte alarm status : is 1 8-bit data, occupies one byte to read/write å value: 1 16-bit data, occupies two bytes of check code: 1 16-bit data, occupies two bytes of check code For details, please refer to the specifications of the U-Telecommunication Agreement.
Fourth, AI instrument and programmable controller wiring diagram
[宇电]AI instrument ------Panasonic Panasonic FPG programmable controller
Five, AI instrument and programmable controller communication application example program
Example: Write the parameter 00H, (SV set value) to the address 1 meter, and read the PV measurement value of the address 1 meter.
(1) Instrument communication format setting 1 start bit, 1 stop bit, 8 bits of data, no parity.
Set the baud rate of communication transmission data baud=19.2K
Set the meter address Addr=1
Check code is automatically calculated
(2) Programmable controller communication format setting Figure 2
Note: Figure 2 turns ratio must be set to be the same as the meter
figure 2 |
image 3 |
Changing the DT32710 in the program is equivalent to changing the SV setting.
(4) Data transmission Figure 4
Figure 4 |
(5) Data reception Figure 5
Figure 5 |
Under normal communication status, the com light on the instrument panel will flash “on†and “offâ€.
Conclusion:
This paper uses Panasonic programmable controller and AI instrument for RS-485 communication, realizes the task of controlling multiple AI instruments by a single controller, and can detect the running status of each instrument in real time. The whole system is flexible and convenient to control, and the scheme is simple. Low development costs and short cycle times ensure stable operation even in harsh industrial environments.
references:
(1) Panasonic FP Series Programmable Controller Manual ARCTIF313C-2 '04.09
(2) Xiamen Yudian AI Instrument V6.0 Serial Communication Interface Protocol AI Instrument Description http://news.chinawj.com.cn Edit: (Hardware Business Network Information Center) http://news.chinawj.com.cn
Welded Wire Mesh can be supplied in rolls,sheets or panels,and cut-to -size.
Wedled wire mesh offers better strength,intergration and longer work time compared with other wire mesh products.Welded wire mesh is durable,corrosion resisting and firm in structure.
Finish of welded wire mesh can be PVC coated ,sprayed,hot-dipped plated or electric-galvanized.
Welded wire mesh call be classified into several kinds according to the wire material and surface treatment:
- Stainless Welded Wire Mesh
- Welded before hot-dipped galvanized
- Welded before electro galvanized
- Welded with electro Galvanized Wire
- Welded with cold galvanized wire
- Pvc Coated Welded Wire Mesh
WELDED WIRE MESH SPECIFICATION:
Surface | Hot-dipped/Electro/PVC/Stainless Welded Wire Mesh |
Materials | High quality low carbon wire/Stainless steel wire |
Wire Gauge | BWG22-BWG12(customized with customers'special requirements) |
Roll Width | 0.5m-2.5m |
Roll Length | 20m-30m |
Mesh Hole | 1/4" 1/2" 3/4" 1" 1-1/4" 1-1/2" 2" 3" 4" |
Weld Mesh Roll,Welded Wire Mesh Rolls,Pvc Coated Wire Mesh Rolls,Galvanized Welded Wire Mesh Rolls
Anping Bochuan Wire Mesh Co., Ltd. , https://www.wiremeshbocn.com