Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol

1. First, change the serial line to Modbus_IOScanner (Modbus IOScanner) and set the frequency converter accordingly.

1) Set the communication mode to Modbus given.

2) Set the slave address (1...247) to match the setting in the software.

3) Set the communication rate to 19.2K, which should match the setting in the software.

4) Set the communication format to 8E1, with 8 data bits, even parity, and 1 stop bit.

Note: After setting, power off and then power on the frequency converter for the parameter settings to take effect.

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图

2. Right-click on Modbus_IOScanner (Modbus IOScanner), click Add Device, and add a slave device.

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图1

3. After adding the slave device, add the slave address in the Modbus slave configuration.

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图2

4. Add channels in the Modbus slave channel as shown below.

(16#0C81=3201, frequency converter ATV71 ETA status word)

(16#0C82=3202, frequency converter ATV71 Freq_Feed frequency feedback)

(16#2135=8501, frequency converter ATV71 CMD control word)

(16#2136=8502, frequency reference set for frequency converter ATV71 Freq_Ref)

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图3
Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图4

5. Add variable names in the Modbus master I/O mapping, ensuring they correspond to the descriptions

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图5

6. Write a program in POU

to manually set the control word CMD to 6 (16#0006), indicating the frequency converter is ready

manually set the control word CMD to 7 (16#0007), indicating the frequency converter is stopped,

manually set the control word CMD to 15 (16#000F), indicating the frequency converter is rotating forward

manually set the control word CMD to 2063 (16#080F), indicating the frequency converter is rotating in reverse

set the frequency reference Freq_Ref, and the frequency of the frequency converter's rotation is HZ=Freq_Ref/10

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图6

7. When the Modbus slave device is powered on and off, a "triangle" symbol will appear before the slave device in the PLC. In this case, the human-machine interface can also be used to clearly see which Modbus slave the PLC has not read!

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图7

8. At this time, the PLC needs to send a reset signal to itself to ensure normal communication. The reset procedure is shown in the figure

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图8

9. Reset steps and effects after resetting

Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol插图9

Note: This is only a reset of the PLC to itself. If the Modbus slave device itself has a fault, or if a slave device reports a Modbus fault, it cannot be reset!

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

《 “Method of controlling a frequency converter using Schneider M218 PLC via Modbus protocol” 》 有 5 条Comments

Leave a Reply

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