Search the Community

Showing results for tags 'modbus slave holding register not updating'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 266 results

  1. I'm writing a PLC program (Q Series Mitsubishi PLC, GXWORKS 2 Software) for a package sorting machine. The logic of the machine is the following:   Packages are induced in the conveyor. A barcode reader scanner gets the package barcode. Barcode is send to our SMS (sorting management system), it calcules the exit and send it back to the PLC. Package travels to the calculed exit, then is derived into the chute.   The tracking of the products is done by an encoder and a shift register. This means that every memory address represents a physical position in the conveyor. Then, the shift register move the bits representing the packages along the memory buffer, till the bit arrives to an address that represents an exit, so the package can be derived.   My problem is not the tracking of the product, but the product ID tracking:   When a package enters in the conveyor, an ID is set for that product (1,2,...,n). The idea is that this ID is used to track the state of that package, for example if the package was derived in the correct exit, if it has a damaged barcode, etc.   My question is, how can I track this ID along in an efficient way. I was thinking in use the same shift register not moving a sole bit, but moving a larger number for example |1|0000011|, where the first bit acts like a flag that represents the existence of a product and the rest of the numbers is the product ID. When the flag gets to the exit address I can substract 10000011 - 10000000 = 00000011, to get the product ID.   Is any more efficient way to do this ?
  2. CJ1M+ETN21 Modbus TCP

    Hello. I'm trying to use Omron ETN21 as master for ModbusTCP protocol. I can communicate with 1 SLAVE UNIT (standard modbusTCP slave) using FB MTCP_ETN_Client.zip  from https://www.myomron.com/index.php?action=kb&article=1245. It works perfectly. But I have three SLAVE UNITS to communicate to. I'm trying to do this using [524]Modbus_TCP_FB.zip sample. I have copied SECTION1 to SECTION2 and changed IP number and SOCKET number. But this doesn't work. I would realy appriciate a working sample where OMRON PLC is MASTER for THREE (or more) SLAVES. I'm attaching code file... Thanks. Best regards, Andrej. Modbus_TCP_FB.cxp Modbus_TCP_FB.opt
  3. Hello out there   I've searched for quite some time but unable to find any information helping me through this. I got a Omron PLC NX1P2 where im supposed to setup modbus communication over TCP/IP but so far i've only been able to find information regarding RTU setup. But seen forums mention its possible to setup via TCP/IP Anybody who can help. A program sample would be helpfull aswell. Im a trainee as automationengineer and this is my first encounter with Omron PLC and Modbus so quite new to the field.   kind regards Ivan T.
  4. Hello, I'm trying to connect a CJ1M-ETN21 as slave Modbus TCP with a Modbus/Dali Gateway. I download from Omron website some FB with ones should be possible.   https://www.myomron.com/index.php?action=kb&article=1245 The FB only can be used with the direction unit 0, but we can change some directions inside the FB and can be adjusted to other units. In the download I found this FB: MTCP_ETN_Connect, MTCP_ETN_Fn01, MTCP_ETN_Fn02, MTCP_ETN_Fn03 .... Supposed with connect we can establish the connection with the master, but the FB never make nothing. Should I make some special configurations to use this FB? I appreciate any help. Thanks
  5. Indusoft Web Studio

    i am using indusoft web studio for the modbus logging. program runs successfully but after a half day or a day it shows error " error initializing the driver modbu 10.10: invalid serial port "any suggestion will be appreciated.RegardsZubair Ahmed
  6. Modbus with CJ1W SCU31-V1

    Hi every one, I want communication Inverter mitsubishi D700 with module CJ1W SCU31-V1,  any one give me a correct solution and send any sample program. Thanks
  7. I'm trying to communicate with INVT PLC and DGM8002(grain moisture analyzer) via mobus RTU.   Can anyone explain about these Modbus address ? Please kindly see in picture . example working mode address K0 (0-stop ,1-manual,  2-Auto) Actual Moisture Address K6 What is meaning of K0,K1,K3,K6.  https://drive.google.com/file/d/1-mGzpEvw4UlewWhR9k3wOd1mO-uhsklL/view?usp=drivesdk Is that K0= 0000 K2 = 2000. K3=3000 ? Any suggestion please. I'm really appreciated your comments.❤️  
  8. - i'm from VietNam, Who can help me?? - I cannot communicate the RFID card reader with the FX3U PLC using the FX3U-485ADP-MB module; - register error D8438 = 3821; D8423 = 1025; D8422 = 212. - Here is the connection picture and my PLC code thanks !!!!
  9. Hello, I have an M2I Top RW (model: 1000WD) connected to a Schneider Modicon M221 PLC. The HMI is connected and I is working perfectly reading data from the PLC via ethernet. I can't seem to find a way to write to the PLC from the HMI. I would like to control the PLC from the HMI, I know this is possible with Fatek PLCs with the same HMI model. please help - how would I create a bit command from the HMI to the PLC? what registers? what inputs in the PLC? thanks
  10. Q03UDVCPU Modbus Setup

    Hi Guys, I need help to set up modbus tcp/ip parameter for Q03UDVCPU, i want to use the predifined protocol and built in ethernet port. do you guys have some usefull references how to setup modbus tcp/ip, or is there any example program from mitsubishi? Thanks
  11. Dear Engineerds,   My Master (non siemens) doesn't see the Holding Registers of the Slave (S7-1200) plc. However the Q coils are fine and all Diagnostics don't show errors. The Hardware: S7-1200 – CPU 1215C CM PtP – CB1241 RS485 (6ES7 241-1CH30-1XB0) - Half Duplex RS584   Firmware: Modbus_Comm_Load (V3.1) Modbus_Slave (V4.0)   I've tried with various DB, UDTs and manipulating HR_Start_offset parameter with no success. Could you advise what am I possibly missing? Modbus_Comm_Load_DB_Snapshot.xlsx Modbus_Slave_DB_Snapshot.xlsx
  12. From DM:   Hi; my name is Metin , I live in turkey. unfortunately I have a problem that I could not reach a conclusion here. I hope you can help. I need to communicate with CJ1W-ETN21 with a device via modbus tcp and read information. I downloaded ready-made protocols on omron site, connection is established but I cannot read. I tried the attached protocols. the device I am trying to communicate with :  https://www.gmweighing.com/products/weighing-indicator-m02  I will get the weight information from the weighing device. Thank you in advance for your help. MTCP_ETN_Client.zip
  13. Hi there, Im having issues controlling ATV 320 VSDs over Modbus RTU with a M221 plc, does anyone have any pointers for me to look at? I believe I Have set everything up correctly but when I run the program on the plc the atv's just stay in 'NST' state I have included screenshots if they are any use   My speed reference in this example is taken from the memory word %MW0 which I am inputting via a HMI   I have addressed all my ATVs accordingly in there setting with the correct Modbus parameters and selected Modbus under the FR1 configuration, am I missing anything?? Any help is appreciated as I am really struggling   Tom
  14. QM30VT2 BANNER WITH QJ71C24N

    Dear Sir. Can Anyone Help me,How To read  Holding Register QM30VT2 BANNER With QJ71C24N Mitsubishi ,With Rs 485 Communication.I Want To read Holding Register it,More than 2500 Register. Thank you for attention. Best Regards.
  15. Hi everyone I'm new bie, I try to control VDF-M via fx1n-485-db. please help!! Thanks.
  16. Hi everyone I'm new bie, I try to control VDF-M via fx1n-485-db. please help!! Thanks.
  17. hello expert i want ask some help So i tried to communicate my Omron PLC (cj2m cpu31) with SCADA from Schneider (power logic) on my omron side the comunnication on PLC already take to communication to NB so i add communication module CJ1W-SCU41-v1 I want asking how to open the communication if i want the scada become a master and my plc become slave i got this from omron website is that program compete for my case? i need configuration for scu41 module also to communicate or if you have suggestion i really open i just need to open port RS232c from scu41 so scada can read the data from my plc  tahnkyou for your help MRTU_CPU_Slave.zip
  18. Hi All need to convert a Decimal Value into Ascii code to send out on serial 485. eg. Weight comes in as Int 12345 i need to send it out in Ascii as 23 32 20 31 32 33 34 35. I have created an array 0 of 8 (Word) DB. Is there an easy way split the int into Digits convet in into HEX and slot the value into the various array positions? Array 0 of 8 = 23 means # Array 1 of 8 = 32 means 2 (Station ID) Array 2 of 8 = 20 means Space Array 3 of 8 = 31 means 1 Array 4 of 8  = 32 means 2 Array 5 of 8 = 33 means 3 Array 6 of 8 = 34 means 4 Array 7 of 8 = 35 means 5 Array 8 of 8 = D means CR    this sends the value of 12345 to Display ID 2 . need help to convert the decimal number in ascii. the decimal number will be max of 5 digits and less than 32000   any help will be greatly appreciated.
  19. CP1H Modbus issues

    From @Janaka Angampitiya: Hello, I have Three CP1H PLC with Cj1w scu31-v1. I need to send a Modbus command SCU unit through Modbus RTU compatible power meter. I use instruction TXDU and CMND but it's not working. My PLC Arrangement CP1H PLC  - CP1H-X40DT1-D    ver. 1.3 Option Board 1 mounted Cp1w-CI41   to NB HMI its work Option Board 2 Mounted CP1W-CIF12-V1 to PLC 1, PLC 2 and PLC 3 between communication Serial gateway mode it is work. CJ1W SCU31-V1  (ver.1.3) and Modbus compatible Power meter it's not working. Please help to how to connected and what is the use of instructions for this case. 
  20. Hello! I have one Controlllogix project that communicates with a modbus slave through modbus TCP, using a Prosoft module model MVI56-MNETR. Does anyone know what happens to the data polled in case the network fails? Do all variables go to zero or do they freeze in their last value (or something else entirely)? I couldn't find anything in the Prosoft manual. Thanks for any help!
  21. Hello There I need to set up communication PLC to PLC ( R08CPU to Fx5CPU) but i dont have the modbus library for  the R08  Does anyone have the library? or where can i get it? thank you.
  22. NX1P2 Modbus RTU Code and Write Up. View File This code is designed to implement Modbus RTU on an NX1P2 Controller using the NX1W-CIF11, NX1W-CIF12 or NX-CIF105 module (mounted to controller or EtherCAT coupler).  Created by an Omron Engineer. Submitter Michael Walsh Submitted 05/22/20 Category Tutorials and Quickstarts
  23. Version 2.12

    795 downloads

    This code is designed to implement Modbus RTU on an NX1P2 Controller using the NX1W-CIF11, NX1W-CIF12 or NX-CIF105 module (mounted to controller or EtherCAT coupler).  Created by an Omron Engineer.
  24. i am trying to communication my weintek HMI with Siemens Energy Meter PAC3200. I am using MODBUS TCP/IP Protocol but i am unable to read the data register of my energy meter. Somehow i got to read the 32bit data register but still unable to read the 64bit data register of my total KWHr Energy consumption. I have also attached the manual of my energy meter. Please guide how to read all the data registers of that energy meter. Please see the page 40 onwards for reference. The manual the about 7MB so i cannot attach the file. https://support.industry.siemens.com/cs/attachments/26504150/A5E01168664B-04_EN-US_122016_201612221316360495.pdf  
  25. Mitsubishi Fx5uc

    hello everyone, Im new with mitsubishi and  ive got a project with a Fx5uc but im stucked in communication protocol to communicate with a weintek HMI ive already tested easybuilder simulation with a modbus tcp ip symulator and it works but im completlely lost about mitsubishi, is there a way to communicate via Modbus TCP/IP? or which protocol would u recommend as i have to connect 2 drives as well. thank you in advance