-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connection Timed out #3
Comments
Device in use is FX3GE-24M. The code is as follows: var variables = { TEST1: 'D0', // 5 words starting at D0 conn.initiateConnection({port: 5556, host: '192.168.1.250', ascii: false}, connected); function connected(err) { function valuesReady(anythingBad, values) { function valuesWritten(anythingBad) { |
Can you please edit mcprotocol.js on line 38 at set effectiveDebugLevel to 99 instead of 0, and re-post the output from running your code after that? Also, please post your Ethernet configuration from GXWorks2, this could be something really simple, like ASCII/binary mismatch. I haven't tested with an FX3GE but everything I read suggests it should work no problem. |
I managed to get it working. Apparently there was a fault in the plc and it had not changed the port to the one I was trying to connect on. Thank you so much for your response! And happy new year |
Rebooting the PLC helped resolve the issue. |
Hi. I do have the same problem. I restarted the plc twice, now.
I do use the example without writing but with an Address I know exists. |
Has the PLC ever responded at all? It looks like node is sending it a packet but getting nothing back. Can you post a pic of the Ethernet configuration in the Mitsubishi software? |
It looks like it should work. What is different between this and when you first reported the issue in January, when it was resolved by cycling power? It looks like the PLC just is not responding at all. |
I was not the one reporting this issue in December/January |
Sorry, I am not sure how I misread that but it's obvious now. What is the model of CPU? I don't have a Q series, but other users have reported it to work with no issue. Maybe only certain models of Q support the 1E frames used by this driver? But I thought from earlier reading that they all did. Do any other HMI applications talk to this PLC, or are there any others you could try? |
I am not sure what else to say on this. It seems like everything is set up right but the PLC just is not answering. My only other suggestion would be to try ASCII instead of binary. |
I had a look at a few more manuals and according to this the QnU PLCs may only support them with newer serial numbers. So unfortunately I think that is why it worked for one user with a different Q CPU. (It would help if I was a Mitsubishi expert, but I'm not) One manual says this: and another this I am curious how your serial number compares to these. But since everything else looks right, yours almost certainly does not support these frames. |
Sorry for the late awnser. I just checked my Serial Number and it starts with 12. Is there any way I can get this to work. Are the protocols that different or could I possible get it to work with little changes. Thanks a lot for all your help |
I think the only way this will work with your CPU is if we add support for 3E frames. (Or another type, but 3E looks like it would support the most additional CPU types). I would be willing to do a bit of work on this but I don't have a test CPU other than an FX3U so I think the only way we could make this work is if someone else had some time and a test CPU to help get it working. |
Sorry I could have updated the Issue. Thanks a lot for trying to help me. |
OK I pushed a new version to the repository (but not to npm), and it seems to send the right packet in both ASCII and binary to read device memory using 3E frames. To activate the new code add connection options frame: '3E' and it would help if you added debug: true as well. Use care in testing on a real PLC. I've tried to be careful but I have no way of testing these frames on a real CPU. |
Ok. I tested it and it didn't work.
For me this seems like nothing has changed (which I think is strange) |
The packet in your log looked correct even when re-reading the Mitsubishi documentation, so I downloaded the library you linked and requested M1003 through it as well. The packet it sent out was nearly identical, with only a slight difference in offset, so I think something else is different on your end between the NodeJS and the C#. Is there any way you could post pictures or a log of a Wireshark trace of the working C# program as well as this library not working from the same computer? It just seems really strange that the PLC would allow the connection, but wouldn't send any reply packet at all. |
I thought I will update the issue. |
Hey, I can set up the connection with the device on an specific ipadress and port (5556).
However,
I get an error mentioning 'Timed out' as can be seen from the screenshot
My code is displayed as well.
Let me know if this is an issue with the PLC configuration or improper addressing of the data.
Test.txt
The text was updated successfully, but these errors were encountered: