Search the Community

Showing results for tags 'ethernet modbus tcp'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 466 results

  1. I am trying to establish a Modbus connection from a laptop to a Mitsubishi inverter (FR A-800 E series) (the manual for this connection can be found [here][1]) I am using pymodbus and I can establish a connection, but the problem comes when I try to read a register. I know I am connection because doing something like: from pymodbus.client import ModbusTcpClient client = ModbusTcpClient('192.168.15.10', 502) client.connect() results in a True response. Also, if I just print `client` it returns the details of the connection, which makes me confident the connection is properly establish. But, whenever I try to read a register (which I am confident exists, since it appears in the manual) : result=client.read_holding_registers(9,1,1) print(result) I would obtain: Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 8 bytes (0 received) and if I try again, Modbus Error: [Input/Output] No Response received from the remote unit/unable to decode response. Does anyone have any idea? I have tried with a bunch of addresses for the registers, I have tried including not including the 1,1) part when reading the register and got no luck.     [1]: https://dl.mitsubishielectric.com/dl/fa/document/manual/inv/ib0600628eng/ib0600628engd.pdf)
  2. I currently have two NX1P2 PLCs communicating back and forth over ethernet IP. However, I am looking to expand this project across multiple PLCs and I need a way for one PLC to see all other PLCs that are connected to the LAN network via Ethernet IP. I can use the _EIP_EstbTargetSta[255] function which is a boolean value that returns true if there is an established connection  to a device where the last octet of the IP is specified in the array [255].  This function works well but my PLCs are configured with the subnet 255.255.0.0. And I need to see the connection status based on the third octet. Is there an existing function that I can use, or is there a way to view the full structured text for the _EIP_EstbTargetSta[255] function and modify it to suite my specific application? 
  3. Dear Forum, I am working on a set of "drivers" for some VFDs and wondering about you guys experience with it. The system layout is as following: FX5UC RS-485: MODBUS-RTU RS-485, lets say with 1x Mitsubishi F840, could be other drives (one drive per FX5UC) Ethernetport: Connected to GT2510, using Freqrol driver Another setup is for some other reasons not possible. I want to have one PLC program for different connected VFDs, scheduled VFDs at the moment are: Mitsubishi F-840, ABB ACS880, Toshiba L.V. VFD, Toshiba T-300MVi.   What I want to do: Read & Write status information - done. Read monitoring values - done. I want to setup some VFD parameters via the HMI. Send the parameter to the PLC and from the PLC to the VFD. The parameters are "basic VFD parameters", every VFD should have, such as: Torque boost, accel/decel time, min/max frequency, base voltage/frequency, etc. Of course these parameters are not simple Pr.0 to Pr. 125 but spread all over the place. I want to check for min. and max. limits inside the PLC before transmitting the data to the VFD. Knowing "basic parameters" will turn out quickly to "VFD specific parameters", I want to be prepared on the programming side. The APSRW for read/write parameters are called through the program and hand shakes with other APSRW calls.   What would be a good approach do to the above?  I rather invest more time into the PLC programming rather complicated HMI-Handling. Reading simple 125 words and the next 125 words, then writing 125word and again the next 125 words? Reading / writing individual parameters? Reading / writing 125 parameters at once? Any other approach for implementation?   Best regards, MarkusR  
  4. Modbus PLC to PLC communication

    Has anyone done a Mitsubishi FX5U PLC Modbus interfacing with an Omron NX1P2 PLC? Trying to find that since no manuals exist on the Mitsubishi site as well as Omron. 
  5. Hi everyone! I am attempting to read EIP tags from an Allen-Bradley ControlLogix from an Omron NX1P2 using the Sysmac Studio function block "CIPUCMMRead." I have been successful in reading arrays and single variables no problem. However, when I want to read arrays from a structure in the Allen-Bradley PLC, I always get an error code in the CIPUCMMRead ErrorID of either 0400 or 1C00 for ErrorID and ErrorIDEx is FF00 2105 depending on what I enter in for Size on the function block (attaching screenshots with both error codes).   The errors show on multiple "read" function blocks at once but it only affects data coming out of the function block where I try to read in a BOOL array from a structure in the ControlLogix PLC. If I enter a UINT#1 for the Size, I get ErrorID 0400. If I enter UINT#2, 3, or 4, I get ErrorID 1C00 with ErrorIDEx being FF00 2105. I've been digging for a while and can't find that specific combo of codes, but it looks like it's a size issue. From what I can tell, the Size is in Bytes. So if I have 32 Bools it should be a Size of UINT#4 max, right? Any help would be greatly appreciated! The function block having issues is setup the exact same as the other two that read from the same structure; I even copied and pasted them from each other and just changed the FB name and the postfix in the SrcDat string (from MyBools to MyDints/MyReals). Here are the screenshot: 1. Allen-Bradley Structure 2. CIPUCMMRead Function Block with size 4 3. CIPUCMMRead Function Block with size 1
  6. PLC to PLC communication

    Hello everyone Does anybody knows how to estblish a communication between 2 Mitsubishi CPUS with modbus? THey are RCPU and FXCPU  
  7. Omron FINS/TCP Reconnecting

    Hey I'm trying to implement reconnecting for FINS/TCP protocol, according to W421 Omron documentation (link: https://assets.omron.eu/downloads/manual/en/v4/w421_cj1w-etn21_cs1w-etn21_ethernet_units_-_construction_of_applications_operation_manual_en.pdf ), but it not working. According to diagram in 7-4 section at 183 page, after connection lost and restore connection to the Internet, Client(PC) should again connect with PLC using the same Client(PC) FINS Node Id. PLC should detect connection error and response with error code 00000021 hexadecimal: Specified node is already connected. It works. After this should I close socket (created after restore connection) or this socket should be closed automatically by PLC? Then I should create new socket (third) and connect with the same Client(PC) FINS Node Id should be possible. But i've got "Specified node is already connected" error again. PLC dosn't forget before connection. Why? What I'am doing wrong?   // Client FINS Node id = 50, Server FINS Node id = 10. Standard communication works public void TestReconnect() { // connect on TCP Layer this.tcpClient.Connect(base.ipEndpoint); // NADS Frame - finsClientNode = 0 - autoallocation this.SendNodeAddressDataSend(); // Power interruption!!! // creating new socket, old socket is unavailable this.tcpClient = new TcpClient(); // connect on TCP Layer this.tcpClient.Connect(base.ipEndpoint); // NADS Frame - use finsClientNode autoallocated before // should return error "The specified node is already connected." this.SendNodeAddressDataSend(); // disconnect on TCP Layer, should i do this? this.tcpClient.Close(); // creating new socket, old socket was closed this.tcpClient = new TcpClient(); // connect on TCP Layer this.tcpClient.Connect(base.ipEndpoint); // NADS Frame - use finsClientNode autoallocated before // shouldn't return error "The specified node is already connected." // because connection with this node was closed before this.SendNodeAddressDataSend(); } private NodeAddressDataSendResponse SendNodeAddressDataSend() { /* byte clientNodeId = finsRequestDataProvider.GetClientNodeId(); byte[] header = new byte[] { F, I, N, S, // 'F' 'I' 'N' 'S' 0x00, 0x00, 0x00, 0x0C, // 12 Bytes expected 0x00, 0x00, 0x00, 0x00, // NADS Command (0 Client to server, 1 server to client) 0x00, 0x00, 0x00, 0x00, // Error code (Not used) 0x00, 0x00, 0x00, clientNodeId // Client node address, 0 = auto assigned };*/ var nodeAddressDataSendRequest = this.finsRequestFactory.CreateNodeAddressDataSendRequest(); var nodeAddressDataSendResponse = this.Execute(nodeAddressDataSendRequest); this.finsRequestDataProvider.StoreAutoallocatedNodeId(nodeAddressDataSendResponse.ClientNodeId, nodeAddressDataSendResponse.ServerNodeId); return nodeAddressDataSendResponse; }   Thanks for any help          
  8. Hi I need to get data from a modbus rtu device to Omron PLC NJ501. I am using SCU32 or SCU42 as serial gateway. I have tried using sendcmd function, but I am having problrm with the DstNetAdr Here's my setup Cpu NJ501 1400 ID262 OD263 AD041 V1 EIP21 SCU32 My sendcmd parameter DstNetAdr.NetNo:=USINT#0 DstNetAdr.NodeNo:=USINT#4 DstNetAdr.UnitNo:=BYTE#16#84 senddata array 02 03 00 6A 00 02 E4 24 Anyone has any idea on how to do it?
  9. Discrepancy TCP modbus reading

    Hello, i have a curios problem in a modbus tcp reading from a client.  The HC900's answer for the variable 20 (holding register 6375) is clear in the Hybrid Control Designer (the variabile is a simple counter of flow gas counter). The ammount of value is incremented every pulse from a digital input.  But when i send the request from a client modbus, the value's variable is different (completely). For example the value is frozen from this morning, probably when the machine started up.     The others value read directly from  analog inputs are correct. Only this value elaborate from some blocks show this problem. I can't understand the cpu's logic for elaboration the exchange area memory modbus.   Best regards, Ennio .
  10. QJ71E71-100 MODBUS TCP

    Hi, This is Kaviraj. I am using Q06udv cpu + 3 ethernet cards ( 1 eth card for kepware connect , other two cards for modbus tcp connecting 16 GOC43 devices through predefine protocol). I am getting the data to PLC but facing below issue.  Problem-01 (major) in 2nd and 3rd card i am facing X19 (Initial normal completion signal) bit OFF after some time randomly like 1 or 2 hours later. Problem-02 Connection ports are closing regularly like  1.5 sec to 2sec after port open status. so i am managing by executing port open instruction instantly after 200ms of port close status. Need help, pls support.     
  11. I am currently trying to connect my OMRON NX1P2 1040DT1 (Using CIF-105) to my Unitronics V570 PLC, With my OMRON PLC as Master. It seems as if Unitonics Rs485 only wants a six-wire connection type but my OMRON PLC wants a 2-wire or 4-wire connection, Wondering if anyone has a solution to my problem and can assist me.  
  12. Hi. what i've gathered, i need an EDS-file for the siemens s7-1200-system to be able to specify an ethernet connection in sysmac from the omron plc side to connect to the siemens ethernet/ip server. Anyone know where or how to get an EDS file for the siemens plc so i can import it into EIPprofiles in sysmac?
  13. HI, I'm reading values from an SBC SAIA PLC ( PCD2.M5540 model). My problem is that some values are 32 bit, while modbus return 16 bit values, of course. Registers are consecutive, so I cannot read for example 9008 and 9009 since they store 2 different information.To make it clearer I attach the PLC watch window. As you can see R9009 is a 32 bit value, but I can't require R9009 and R9010 via modbus since in R9010 register there is a different information. AS well as in R9008. Speaking with SAIA technical support, they explain me that their PLC registers are natively 32 bit, so in order to read them I need a 32bit modbus client. I cannot find anything like this, neither I can use standard modbus, since the buffer I get back is a 16 bit for each register. So 16bit for R9008, 16bit for R9009, 16 bit for R9010. What I can do?Thanks
  14. GOT2000 <-> Omron CJ PLC

    I have an application where I'm using GOT2000 to read data from the weighing unit using RS232 and I send this value to Omron CJ2M through Ethernet/IP. Some variables from that PLC are connected to the elements of the HMI. The problem is when writing the weight value to the PLC through script or Data Transfer is disabled, the RS232 reading works fine, it's fast, etc. However, when I enable the script which writes data to the PLC, the RS232 slows down by a lot, like it refreshes every 2-3 seconds. If i set the script to execute like every 1-2 seconds, it is working better (still slower compared to when the script is disabled) but I cannot leave it like this, because the weight is used to control some valves, pumps, etc. Enabling script doesn't slow down normal communication with PLC, because I tried to test it by displaying the value of seconds from PLC on the HMI and it refreshes every second. Does anyone have idea why such tiny script causes so many problems with RS232?
  15. I'm trying to exchange some data between two controllers. I've used a manual which describes Tag Datalink communication. Everything works fine on the Bradley side, which means I can read values from Omron without problems. However, on the CJ it isn't working. In the Network Configurator I get error every 10 sec (Tag data ling error, code 03D5) and cannot read any data from AB. When I open Connection Structure Tree I see that the input tagset from AB has 'Broken path (0000000000000)' and Unknown Device right next to IP address. I've tried using EDS from the Rockwell as well as uploading it from AB PLC directly - I don't know if it might be EDS issue. The only thing I noticed that inside CJ2M-EIP21 EDS it says that Ethernet/IP is Class 1 connection, however in the 1769-L35E EDS Ethernet/IP is Class 2 connection. Have anyone ever had such a problem?
  16. Has anyone have any experience getting a Wieland Safety plc (SP-COP1-ENI) communicate with an Omron Plc (NX102) via Ethernet/IP? EDS file installed, connection is set as per the documentation yet  I cannot get it connected.  
  17. Hello, everyone! I am following this YouTube tutorial where it teaches you how to add a block of Modbus server within Studio 5000 for communication with plc ControlLogix. The video: https://youtu.be/qcF4m7rPjkw However, according to a comment from the author of the video himself in my comment I can make such a connection through a Modbus device. How do I do this within ur5 and how can i access UR5 inside Studio 5000?
  18. Gx Simulator3 and TCP modbus

    Hi, I'm new to the Mitsubishi world, so may be anyone help me in a quick! I need to test a my client with the Mitsubishi MODBUS tcp.  To do this I would like to avoid use a real plc and use  the Gx Simulator3 that come with the Gx Works3. The question is: the Gx Simulator3 is capable to simulate a MODBUS tcp module? To be more specific I tried this: - created a project in  Gx Works3 with a FX5U CPU. - configured the FX5U built-in ethernet module with IP address of the hosting pc (also tried 127.0.0.1 with no success). - activated and configured the MODBUS muster to the built-in ethernet module. - wrote a trivial ladder program with a 1 input and 1 coil. I can download and run the project on the Gx Simulator3 but I cannot connect to tcp port 502 that I supposed opened by the MODBUS muster functionality of the build-in ethernet module. Do anyone know if the Gx Simulator is able to simulate modbus tcp functionality?   Thanks in Advance Luciano.       
  19. Modbus Tcp Ip Simulate

    Hi guys I need to test some code in an FX5U PLC,  but I don't have the PLC here so I'm trying to simulate it in melsoft gx works 3, but how I can test the Modbus tcp/ip if I do not have an IP address for the plc  someone has ever communicate both software, gx works 3 an som modbus master software ??
  20. Error **03 Special Parameter Error

    Hello I have a problem whit PLC mitsubishi FX3U thernet communication, we have a module  FX3u-ENET-ADP. and we have the error "**03 Special Parameter Error".  
  21. NB to CP1L-EM

    Has anyone connected a NB HMI to a CP1L-EM via ETHERNET NB = Node 2 IP 192.168.1.152 PLC = Node 1 IP 192.168.151 Using my Network Switch/HUB NB works fine when setup to com 1 on the PLC (Wrote the PRG using serial) NB says no response from PLC Is there a secret setting in the PLC i need ? ? Rob  
  22. FX5U Modbus-TCP Server (Slave)

    Hello everybody. I need a solution for Modbus-TCP server on the PLC. With the FX3U it would work with the FX3U-ENET module. The internal interface of the FX5U should actually be able to work with the library of the FX3U (FX3GModbusTCPServer_GW2_V100) or not? Because a socket connection is now possible. I would be happy about suggestions. Dave
  23. Hello All, I would like to control Powerflex 525 drive with Omron NJ301-1200 PLC via Ethernet/IP (Set speed, start, stop). I've gotten until the part where I downloaded the necessary .eds files of the drive and imported into my Sysmac studio. However, I'm stuck after this point while assigning target variables and Originator variables and eventually setting speed and controlling the vfd. I've attached images for your reference.
  24. I'm trying to understand the basics of using a serial to ethernet converter such as this Comtrol DM-EIP-2101, with Studio5000 code. Basically I have a weighing machine that only outputs data via RS-232 and I need to send that data to a PC that will process it through a Studio5000 program and have the data displayed on an HMI using FTview SE. Is it as simple as just connecting the serial and ethernet to the converter and it does all the work? Obviously checking ip addresses and firmware will need to be verified. The main thing I am unsure of is the process of passing the individual data packets from the machine to the Logix code on the PC,  things like what the weight of the item was, was it over weight or under, etc....  Would there be an AOI or tags built into the software for a machine like this Checkweigher? I've worked with much smaller items like Cognex Dataman cameras and I know you can just use their AOI that allows you to simply call a tag if you want to display information like if a scanned barcode was correct or whatever. If anyone has done something similar I'd appreciate any guidance. It can be difficult getting the information from the manufactures so I'm looking for answers anywhere I can. EDIT: I guess I should also clarify that only using one or the other (serial or E/IP) is not an option. It will be a serial connection from the Weighing machine to the converter and then Ethernet to the PC.
  25. Hello, I'm new to setting up my controllers and communication between devices.  We wanted to see if using Modbus TCP/IP to communicate to a load bank was the right path for us.  I was able to configure my Micrologix 1400 controller Channel 1 for Modbus and set the data files.  I set up a read holding register 03 message, two write single register 06 messages and one write multiple registers 16.  I was able to read the data from the load bank, but I was unable to send any write commands.  I didn't get any errors in the messages.  I was able to send write commands through my pc to the load bank and it responded properly.  So I was thinking I must of missed something in my set up in the PLC. I'm attaching the PLC Program and the command set from the manufacturer.  Any help would be greatly appreciated. BENCH_TEST.RSS ALx Series Input Command.pdf ALx Series PWR Command Page.pdf ALx Series Setpoint Command.pdf