Introduction

In modern industrial control system, the comprehensive application of PLC and inverter is the most common. The traditional application is to use the output contact of PLC to drive the intermediate relay to control the start, stop or multi speed of the inverter; More accurately, PLC and D / a expansion module are generally used to continuously control the operation of the inverter or the synchronous operation between multiple inverters. But for large-scale automatic production line, on the one hand, the number of frequency converters is large, on the other hand, the distance of motor distribution is inconsistent. Using D / a expansion module for synchronous motion control is easily affected by the fluctuation of analog signal and the inconsistent attenuation of analog signal due to the inconsistent distance, which reduces the stability and reliability of the whole system. The use of RS-485 communication control, only through a communication cable connection, can complete the inverter start, stop, frequency setting; And it is easy to realize the synchronous operation between multiple motors. The system has the advantages of low cost, long signal transmission distance and strong anti-interference.

Hardware composition and connection of the second system

The hardware composition of the system is shown in Figure 1, which is mainly composed of the following components;

084447ajzz68jubqbvjlai.jpg

Figure 1: system hardware composition

1. Fx2n-32mt-001 is the core of the system.

2. Fx2n-485-bd is the communication adapter of FX2N system PLC, which is mainly used to send and receive data between PLC and inverter.

3. SC09 cable is used for data transmission between PLC and computer.

4. The communication cable is made of five core cable.

The following describes the manufacturing method and connection mode of communication cable:

The definition of interface terminal block when Pu interface of frequency converter is used for RS485 communication is shown in Figure 2 below: (from the bottom of frequency converter)

084447gc3xrret56ecprra.jpg

Figure 2: definition of inverter interface terminal block figure 3: schematic diagram of communication connection between PLC and inverter

According to figure 3, the user defines that one end of the five core cable is connected to fx2n-485bd, and the other end (as shown in Figure 2) is connected to the Pu port of the inverter by crimping the five core cable with a special interface( Remove the fr-du04 panel.)

485 communication protocol and data definition between PLC and inverter

For communication between PLC and frequency converter, the communication specification must be set in the initialization of frequency converter. If there is no setting or an error setting, the data will not be able to communicate. After each parameter setting, the inverter needs to be reset. Make sure that the setting of parameters takes effect. After setting the parameters, data communication will be carried out according to the following protocol( (see Figure 4)

084447p2iz11k2k9fq13a2.jpg

Figure 4: RS485 communication protocol diagram

1 communication request data from PLC to inverter

084448hh86s7me0bs7g6h6.jpg

2. Response data from inverter to PLC when data is written

084448v5veknqkhbvb4zvq.jpg

3. Response data from inverter to PLC when reading out data

084448q1b6h3qfq13d3f4m.jpg

4. Send data from PLC to inverter when reading data

084448yx6xz1c99ks0sakx.jpg

The definition of communication data is as follows:

1 control code

084448in86y73jh4460qsa.jpg

2 communication data type

All instruction codes and data are sent and received in ASCII (hexadecimal). For example: (frequency and parameters) according to the corresponding command code to determine the definition of data and set range.

IV. software design

In order to realize the communication control of PLC to inverter, PLC must be programmed; Through the program, the PLC can control the operation of the inverter and collect the data. PLC program should first complete the initialization of fx2n-485bd communication adapter, the combination of control command words, code conversion and the processing of inverter response data. The design process of PLC communication operation program is shown in Figure 5 below

084448q4avf3by0vyvyth7.jpg

Figure 5: PLC communication flow chart

PLC control inverter operation through RS-485 communication program example: (in the form of instruction list).

0LDM8002

1MOVH0C96D8120

6LDX001

7RSD10D26D30D49

16LDM8000

17OUTM8161

19LDX001

20MOVH5D10

25MOVH30D11

30MOVH31D12

35MOVH46D13

40MOVH41D14

45MOVH31D15

50MPS

51ANIX003

52MOVH30D16

57MPP

58ANIX003

59MOVH34D17

64LDPX002

66CCDD11D28K7

73ASCID28D18K2

80MOVK10D26

85MOVK0D49

90SETM8122

92END

When the above program is running, PLC starts the converter by RS-485 communication program, and stops by X3 terminal. The control commands are shown in the table below

084448t5mj746l0c4k5vtv.jpg

Five conclusions

This paper discusses the programming and application of RS-485 communication function between Mitsubishi PLC and its frequency converter through examples, which is helpful for readers’ further research and application. The application of this program is easy to connect with Mitsubishi’s f900 series touch exhibition. It will further expand the flexibility of the application.



Editor in charge: LQ

Leave a Reply

Your email address will not be published. Required fields are marked *