Posted 10 Oct 2018 Hi all, i am using Q series plc Q06UDVCPU and serial card QJ71C24N-R4 and i want it to communicate it with fuzi PXF4 PID i did everything in my knowledge to make it work but failed please share if anybody know about it anything it would be really a great help and also what is the instruction in gx works 2 for modbus communication for q series plc Share this post Link to post Share on other sites
Posted 10 Oct 2018 You can use a QJ71MB91 module dedicated for modbus communication or use an FB for modbus on a standard C24 module. Another option is the pre-defined protocol support function. Share this post Link to post Share on other sites
Posted 11 Oct 2018 (edited) On 10/10/2561 at 5:11 PM, avik said: Hi all, i am using Q series plc Q06UDVCPU and serial card QJ71C24N-R4 and i want it to communicate it with fuzi PXF4 PID i did everything in my knowledge to make it work but failed please share if anybody know about it anything it would be really a great help and also what is the instruction in gx works 2 for modbus communication for q series plc As @Gambit said you can use QJ71MB91 to communicate with Fuji PXF4 but if you have only QJ71C24N-R4 you need to use predefined protocol as instructions below 1. Use Modbus scanner software (ModScan, Modbus Poll, etc) to read/write data from PXF4 (For PXF4 Modbus Communication check link below) https://felib.fujielectric.co.jp/download/ContentDownload.htm?dataid=16281277&site=global&lang=en 2. Wiring QJ71C24N on CH2 Only (Cannot use CH1 for Modbus Communication because it not have echo back function for RS-485) to PXF4 3. Use GX Works 2 to create project and add QJ71C24N-R4 to parameter 4. Go to menu on left select Intelligent Function Module -> QJ71C24N-R4 -> Switch Setting and config CH2 parameter to match with PXF4 parameters and use Predefined protocol 5. Go to Various_Control_Specification Select Echo Back to 1:Prohibited (If you use old PLC version you need to manual set this parameter in program as link below) http://forums.mrplc.com/index.php?/topic/35280-qj71c24n-ch2-echo-back-for-modbus-rtu-predefined-protocol/ 6. Select tool menu -> Predefined Protocol Support Function -> Serial Communication Module 7. Select New then click Add and select protocol Schneider Electric -> MODBUS -> 04: RD IN Registers 8. Click Variable Unset and config them to match with Modbus communication of PXF4 (I will descibe these later because I don't have module now) 9. Save then go to Module Read/Write and select Write to Module 10. Close Predefined protocol and create program to communicate with Predefined protocol as example link below at page 225 http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080006/sh080006u.pdf 11. If everything OK you should read data from PXF4 correctly Edited 11 Oct 2018 by Wasan change PXF4 manual link Share this post Link to post Share on other sites
Posted 11 Oct 2018 18 hours ago, Gambit said: You can use a QJ71MB91 module dedicated for modbus communication or use an FB for modbus on a standard C24 module. Another option is the pre-defined protocol support function. hello Gambit could you please tell me the dedicated name of FB used for Modbus communication Share this post Link to post Share on other sites
Posted 11 Oct 2018 4 hours ago, Wasan said: As @Gambit said you can use QJ71MB91 to communicate with Fuji PXF4 but if you have only QJ71C24N-R4 you need to use predefined protocol as instructions below 1. Use Modbus scanner software (ModScan, Modbus Poll, etc) to read/write data from PXF4 (For PXF4 Modbus Communication check link below) https://felib.fujielectric.co.jp/docfetch/CustomContentDownload.aspx?sid=A2814533ED4478AE441A9C0ED2DA3182871C3895A581E297&dataid=16281277&version=0&site=global&lang=en 2. Wiring QJ71C24N on CH2 Only (Cannot use CH1 for Modbus Communication because it not have echo back function for RS-485) to PXF4 3. Use GX Works 2 to create project and add QJ71C24N-R4 to parameter 4. Go to menu on left select Intelligent Function Module -> QJ71C24N-R4 -> Switch Setting and config CH2 parameter to match with PXF4 parameters and use Predefined protocol 5. Go to Various_Control_Specification Select Echo Back to 1:Prohibited (If you use old PLC version you need to manual set this parameter in program as link below) http://forums.mrplc.com/index.php?/topic/35280-qj71c24n-ch2-echo-back-for-modbus-rtu-predefined-protocol/ 6. Select tool menu -> Predefined Protocol Support Function -> Serial Communication Module 7. Select New then click Add and select protocol Schneider Electric -> MODBUS -> 04: RD IN Registers 8. Click Variable Unset and config them to match with Modbus communication of PXF4 (I will descibe these later because I don't have module now) 9. Save then go to Module Read/Write and select Write to Module 10. Close Predefined protocol and create program to communicate with Predefined protocol as example link below at page 225 http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080006/sh080006u.pdf 11. If everything OK you should read data from PXF4 correctly thanks a lot Wasan i m going with this way see if i could do it Share this post Link to post Share on other sites
Posted 11 Oct 2018 (edited) For Step 1 I have to correct that Sum check code is Exist. I will additional describe in step 8 . 8.1 Set Parameter for 04: RD IN Registers (Read Input Registers). 8.2 Set Parameter for NOR/04: RD IN Registers (Normal Response : D31 to D155 used for receive data from PXF4). 8.3 Set Parameter for 04: ERR IN Registers (Error Response). Then follow step 9 to write parameter to module. After that go to step 10 to create example program as shown below. I will describe about this program. First is echo back disable on RS-485 that I said in step 5 if your CPU are older. This section are describe Modbus sending parameter as setting on step 8.1 as D0 : Slave Address (In this program use address 1) D10: First input register address (use address 32001 to read PV "3" means Input Register) D11: Quantity of Register to read (In this program read 3 addresses) PXF4 Input Register addresses. Use GP.CPRTCL to operate Predefined Protocol by D202 used for select which protocol to use. U0 means Start address 0000 of QJ71C24N-R4 on Slot 0 (You can change to others to match QJ71C24N slot). If communication is complete M0 will on 1 cycle scan and M1 is off then data from D31 to D33 will move to D400 to D402 (because we select 3 addresses from D11). You can use D400 - D402 to if use in program.If M1 on means there are something error in communication. Edited 11 Oct 2018 by Wasan Share this post Link to post Share on other sites
Posted 12 Oct 2018 22 hours ago, avik said: hello Gambit could you please tell me the dedicated name of FB used for Modbus communication You can download them from eu3a.mitsubishielectric.com but you will need to have/create a mymitsubishi account. They we're made for GX IEC Developer but you should be able to use them for GX Works 2 aslo Share this post Link to post Share on other sites
Posted 12 Oct 2018 16 hours ago, Wasan said: For Step 1 I have to correct that Sum check code is Exist. I will additional describe in step 8 . 8.1 Set Parameter for 04: RD IN Registers (Read Input Registers). 8.2 Set Parameter for NOR/04: RD IN Registers (Normal Response : D31 to D155 used for receive data from PXF4). 8.3 Set Parameter for 04: ERR IN Registers (Error Response). Then follow step 9 to write parameter to module. After that go to step 10 to create example program as shown below. I will describe about this program. First is echo back disable on RS-485 that I said in step 5 if your CPU are older. This section are describe Modbus sending parameter as setting on step 8.1 as D0 : Slave Address (In this program use address 1) D10: First input register address (use address 32001 to read PV "3" means Input Register) D11: Quantity of Register to read (In this program read 3 addresses) PXF4 Input Register addresses. Use GP.CPRTCL to operate Predefined Protocol by D202 used for select which protocol to use. U0 means Start address 0000 of QJ71C24N-R4 on Slot 0 (You can change to others to match QJ71C24N slot). If communication is complete M0 will on 1 cycle scan and M1 is off then data from D31 to D33 will move to D400 to D402 (because we select 3 addresses from D11). You can use D400 - D402 to if use in program.If M1 on means there are something error in communication. thanks Wasan Share this post Link to post Share on other sites
Posted 2 Nov 2018 On 10/12/2018 at 11:34 AM, Gambit said: You can download them from eu3a.mitsubishielectric.com but you will need to have/create a mymitsubishi account. They we're made for GX IEC Developer but you should be able to use them for GX Works 2 aslo Dear sir Please share the link Share this post Link to post Share on other sites
Posted 2 Nov 2018 (edited) @MR.VK as @Gambit said you should register at https://eu3a.mitsubishielectric.com/fa/en/mymitsubishi first then go to Downloads -> Program Example and find for Modbus Example function. After you login please go to these links QJ71C24N Modbus RTU Master https://eu3a.mitsubishielectric.com/fa/en/mymitsubishi/download_manager?id=8638 QJ71C24N Modbus RTU Slave https://eu3a.mitsubishielectric.com/fa/en/mymitsubishi/download_manager?id=8638 QnUDE Modbus TCP Client/Server https://eu3a.mitsubishielectric.com/fa/en/mymitsubishi/download_manager?id=9097 https://eu3a.mitsubishielectric.com/fa/en/mymitsubishi/download_manager?id=9047 But if this is new project I recommend that you should use QJ71MB91 for Modbus RTU and QJ71MT91 for Modbus TCP for easier configuration. For QJ71MT91 you can config Modbus TCP by setting parameter as shown in this link at page 116 - 119 for Client(Master) (in GX Works 2 at Automatic_Communication_Parameter) and at page 120 - 130 for Server(Slave) (in GX Works 2 at MODBUS_Device_Assignment_Parameter). http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080446eng/sh080446engh.pdf Edited 2 Nov 2018 by Wasan 1 person likes this Share this post Link to post Share on other sites
Posted 27 Dec 2018 Hi Wasan, i commnunication QJ71MT91 as master and Qj71MT91 as Slave, but it is not ok, . Please help me. thank you very much Share this post Link to post Share on other sites
Posted 27 Dec 2018 @microiuhvietduc Please send your PLC Master and Slave parameter setting to us for check that are config correct or not? Share this post Link to post Share on other sites
Posted 16 Jan 2021 Dear all. Could you please help me? I following all instructions and modbus communication working perfect but after disconnect slave unit and connecting again communication of MelsecQ PLC is OFF (SD and RD dont flasing). After reset PLC communication working again. This is not OK for me because I use 3pcs slave units. Thank you. Share this post Link to post Share on other sites
Posted 17 Jan 2021 @maarek2 You should change time out in Pre-defined Protocol for recieve from 0 (infinite wait) to any number to change command to next communication whne time out. Share this post Link to post Share on other sites
Posted 17 Jan 2021 (edited) Dear Wasan. Thank you very much for quick reply. Everything works. Edited 17 Jan 2021 by maarek2 Share this post Link to post Share on other sites
Posted 28 Jul 2021 hi, i have the same plc function, and the program is running good, i have a plc r series "r04" and im using rj71c24-r4 with rs485 and serial modul with predefined protocol support function in ch2, im using half duplex and my slave modbus rtu has id:1, the problem is when i want to add another device with id:2 and i created another protocol, but only id:1 works the id:2 is no readed, actually my program is based in this example. someone who can guide me how to correctly register the second device thanks Share this post Link to post Share on other sites
Posted 17 Aug 2021 Hi, I am having problem with QJ71C24N module when doing Modbus RTU communication. When I read or write from the Predefined Protocol Support Function tool, it shows an unsupported message (as shown below). Can anyone help me? Thanks! Share this post Link to post Share on other sites
Posted 18 Aug 2021 Maybe your module is too old to support the function? Is there something in the manual for the card of software that indicates a minimum version? Features were added to the modules over time, and they have different lot codes that indicate the versions. The manual should list what lot codes are minimum for the functions. Pretty clear in that message that your module does not support the function. 1 person likes this Share this post Link to post Share on other sites
Posted 22 Aug 2021 Thanks, I replaced another QJ71C24N module with a higher version and it worked. Currently, I want to communicate Modbus between this QJ71C24N module and HMI GOT1000. In which, HMI is Master and PLC is Slave. Is there any library that supports Modbus Slave for this QJ71C24N module? Thank you! Share this post Link to post Share on other sites
Posted 22 Aug 2021 (edited) @NgocQuy If you connect GOT1000 with QJ71C24N you can use Mitsubishi serial driver on HMI for configuration and cable wiring diagram please check on GOt1000 Connect Manual (Mitsubishi Products) at link below on page 263 - 280. https://dl.mitsubishielectric.com/dl/fa/document/manual/got/sh080868eng/sh080868engag.pdf But if you need to use PLC to be Modbus Slave with other Modbus Device you should use QJ71MB91 instead of QJ71C24N. Edited 22 Aug 2021 by Wasan add slave data 1 person likes this Share this post Link to post Share on other sites
Posted 5 Jul 2023 Hi all, I followed the steps what @Wasan described earlier, but I can not estabilish connection with a DS60-RT 7 segment display unit. I need to create station numbering with these displays from 1 to 24. Anyone can help me with this please? DS_DA_RS485_EN_TCD210084AD_MODI_20221117_MANUAL_W.pdf Share this post Link to post Share on other sites
Posted 13 Sep 2023 Hi @dalmadi.norbert Could you connect with your device. If not please shared program on communication to us to help you find problem Share this post Link to post Share on other sites
Posted 24 Oct 2023 Hi all, @WasanI followed your steps to communicate scale indicator device mettler Toledo ind 320 using this module QJ71C24N-R4 by predefined protocal I also tired to communicate in CH1 with the G.INPUT instruction to communicate when the device in MT continue mode it does communicate but I dont know how to convert value Now by trying modbus communication predefined protocal works fine but i cannot read data the is no SD/RD transmission happening Can anyone help me with this Thank you Share this post Link to post Share on other sites
Posted 24 Oct 2023 (edited) Your using Read input registers but it looks like you want to read holding registers ??? D0 but i don't see it set up in your program. I guess you want to use D10 but in your settings it's still D0 D100 has the start adress which should be 0 but in your program it's 0 Try reading 0ne register first instead of three and see if you have an offset of 1,. Edited 24 Oct 2023 by Gambit Share this post Link to post Share on other sites