RheinhardtP27 Posted April 21, 2011 Report Posted April 21, 2011 (edited) Hi Gents, I am having the following problem. I hvae a FX3u-Enet module that communicates to a 3rd part pc. Underneath is my config. Initially after power up when i connect to my communication pair both connections are opened(Connection 2 & 3). The problem comes when this connection falls away and then tries to reopen these connection. At first it would only connect to the send connection when i disconnect and reconnect it only connects to the receive connection. I have attached Ethernet diagnostics. The screens are under following conditions. NXAutoConfigure.jpg -- Configuration settings NXAutoConnect.jpg -- Initial connection. Works 100%. Send and Receive NXAutoDisConnect.jpg -- Initial Disconnect from 3 rd party NXAutoConnect2.jpg -- When connecting a second time. Only Receive works. NXAutoConnect3.jpg -- When connecting a 3rd time. Only Send works. Afterwards it toggls between the two and i cannot get both open. I have tried to re-initialize using code but it does not make a difference. Any idea what could be causing this? Edited April 21, 2011 by RheinhardtP27
Gambit Posted April 22, 2011 Report Posted April 22, 2011 (edited) The ports are probably still open. You should turn on "existence confirmation" so the Enet module will close his ports when he cannot reach PC for a while. Edited April 22, 2011 by Gambit
RheinhardtP27 Posted April 29, 2011 Author Report Posted April 29, 2011 (edited) Hi Gambit, I have done this setting but it makes no difference the only time i am able to connect properly is after a power down and up. Any other possible ideas /routes. It even happens when i re-initialize the the Ethernet card. Rheinhardt Edited April 29, 2011 by RheinhardtP27
Gambit Posted April 29, 2011 Report Posted April 29, 2011 When I look at your screencaptures when everything is working ok. It only shows port2. When your trying to connect again after a disconnection. You see port 2 and 3. It lookes like your paring is not working anymore. I think there might be something wrong in your reinitiallisation code.
RheinhardtP27 Posted April 29, 2011 Author Report Posted April 29, 2011 (edited) Hi Gambit , i use the standard initialization block as supplied by Mitsubishi. See attached Edited April 29, 2011 by RheinhardtP27
Gambit Posted April 29, 2011 Report Posted April 29, 2011 (edited) Ok but I was looking for the port initialisation. Which FB are you using Edited April 29, 2011 by Gambit
Gambit Posted April 29, 2011 Report Posted April 29, 2011 Besides you should delete this FB because you are already using the FX configurator EN. Using this FB is redundant and might change some setting which are set correctly
RheinhardtP27 Posted May 2, 2011 Author Report Posted May 2, 2011 (edited) Hi Thank you for the advice. I dont initialize the port communication the 3rd party software initiates this. Do i not have to close this port using programming? Rheinhardt Edited May 2, 2011 by RheinhardtP27
RheinhardtP27 Posted May 5, 2011 Author Report Posted May 5, 2011 Hi Gents, What are my other options to communicate TCP to this computer. can i initialize a send receive ports through code on my side? Rheinhardt
RheinhardtP27 Posted May 5, 2011 Author Report Posted May 5, 2011 OK i found something very strange. When i download my settings and do a verify it seems not all parameters are being changed. How can i clear this data to ensure there are no mismatches. I think this might be part of my problem. Unless i completely leave out FX configurtor and do all this setup within the code.?? Attached is my verify screen
RheinhardtP27 Posted May 5, 2011 Author Report Posted May 5, 2011 FYI, I found the problem is using a seperate send and receive block.After using theFX3FixedBufferPairingUNpassive block all issues were resolved. i misunderstood gambit when he said port initialization as this still gets done by the 3rd part pc. Rheinhardt
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now