dangdang

Modbus RTU plc mitsubishi FX1N

7 posts in this topic

hi everyone, I have plc mitsubishi FX1N  and inverter  delta VFD-L. I want write frequency 50hz from plc to inverter use modbus rtu rs 485 bd. My inverter have address 1, function  code is 06h, starting data address is 2001h.Please help me code, thanks a lot.


 

Share this post


Link to post
Share on other sites

@dangdang For FX1N you cannot use Modbus RTU communication directly but you have 2 options

1. Create your own Modbus communcation and use RS Instruction (Please see more on link below).

http://dl.mitsubishielectric.com/dl/fa/document/manual/plc_fx/jy992d69901/jy992d69901e.pdf

2. Use GX Works 2 and find Modbus RTU Master function block on website (Download Modbus RTU function block from link below).

https://userscloud.com/q4eipg7omn6e

1 person likes this

Share this post


Link to post
Share on other sites
19 giờ trước, Wasan nói:

@dangdang  Đối với FX1N, bạn không thể sử dụng giao tiếp Modbus RTU trực tiếp nhưng bạn có 2 tùy chọn

1. Tạo hoa hồng Modbus của riêng bạn và sử dụng Hướng dẫn RS (Vui lòng xem thêm về liên kết bên dưới).

http://dl.mitsasonicelectric.com/dl/fa/document/manual/plc_fx/jy992d69901/jy992d69901e.pdf

2. Sử dụng GX Works 2 và tìm khối chức năng Modbus RTU Master trên trang web (Tải xuống khối chức năng Modbus RTU từ liên kết bên dưới).

https://userscloud.com/q4eipg7omn6e

this is my code, i use RS  instruction but it is not operation, can you help me check it, thanks a lot

modbus rtu.gxw

Share this post


Link to post
Share on other sites

@dangdang You need to config these options.

1. Change dip switch on Delta Inverter to use setting from external communication as this link belowat page 6 - 8.

https://www.deltaacdrives.com/wp-content/uploads/2012/06/VFD-L-User-Manual.pdf

2. You need to add Header (<STX>) and Terminator (<CR><LF>) to match with Delta VFD Protocol

3. For CRC checksum you need to sum data from D120 to D125 then calculate checksum to D126 in hex format.

I have modify your program then you should be test it (If it not working you shoul change send trigger from M8000 to other M that not always on).

FX1N_Modbus_RTU_V03.gxw

Edited by Wasan
Change program
1 person likes this

Share this post


Link to post
Share on other sites
On 26/1/2019 at 1:05 PM, Wasan said:

@dangdang You need to config these options.

1. Change dip switch on Delta Inverter to use setting from externalFX1N_Modbus_RTU_V02.gxw communication as this link belowat page 6 - 8.

https://www.deltaacdrives.com/wp-content/uploads/2012/06/VFD-L-User-Manual.pdf

2. You need to add Header (<STX>) and Terminator (<CR><LF>) to match with Delta VFD Protocol

3. For CRC checksum you need to sum data from D120 to D125 then calculate checksum to D126 in hex format.

I have modify your program then you should be test it (If it not working you shoul change send trigger from M8000 to other M that not always on).

FX1N_Modbus_RTU_V03.gxw

Thanks for your help but your program is  not working.

1. This is my manual inverter : Manual delta VFD-L https://prom-electric.ru/media/delta_vfd-l_manual_en.pdf, sorry for this

2. I think You have confusion  between  modbus ASCII mode and  modbus RTU mode of inverter  delta VFD-L,  you can see this at page 61 of manual delta VFD-L. I done with modbus ASCII mode,  it is  good working and this is my program  (see below)

3. Now I'm searching   modbus RTU mode, please help me!

modbus ASCII.gxw

Share this post


Link to post
Share on other sites

@dangdang OK I see that I confuse with Modbus ASCII Protocol. For Modbus RTU you need to set your inverter at Pr.9-04 on page 59 to d7 <8,E,1> and use this website to calculate your CRC.

https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/

I have modify communication parameter and CRC in your program as shown below.

FX1N_Modbus_RTU_V04.gxw

If it cannot work I recommend that you should be use Modbus Scanner software to check communication with Inverter. I have add some free software as link below.

http://www.baseblock.com/PRODUCTS/demosoftware.htm

1 person likes this

Share this post


Link to post
Share on other sites
1 hour ago, Wasan said:

@dangdang OK I see that I confuse with Modbus ASCII Protocol. For Modbus RTU you need to set your inverter at Pr.9-04 on page 59 to d7 <8,E,1> and use this website to calculate your CRC.

https://www.scadacore.com/tools/programming-calculators/online-checksum-calculator/

I have modify communication parameter and CRC in your program as shown below.

FX1N_Modbus_RTU_V04.gxw

If it cannot work I recommend that you should be use Modbus Scanner software to check communication with Inverter. I have add some free software as link below.

http://www.baseblock.com/PRODUCTS/demosoftware.htm

thank you very much, your program is good working, i solved my problem, have a nice day!

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now