trm

FX3U-ENET send / recieve how

17 posts in this topic

Hi ! 1. I read all pdfs about FX3U-ENET and as far as i understood i have to use the FROM/TO instructions to receive/send data. But i don't know the address of the special function module :? 2. Also i have another problem with initialization and configuration. I used the FX Configurato EN, but i want it to be from sequence program ! And i have the following problem: LD= U1\G27 H1 compiles fine, programs fine, runs fine with no error led on from the PLC, but when i check Diagnostics (from Debug menu) i have an operation error :| :? MOV U1\G28 K4M110 also compiles fine, programs fine, runs fine with no error led on from the PLC, but when i check Diagnostics i again have an operation error :( ---- The first( 1 ) point is more important to me. If you can help me i will be very happy Thank you in advance.

Share this post


Link to post
Share on other sites
The address of the special function modules on the FX-series start at 0. So if your ENET module is placed directly on the right side of the PLC, the address will be 0. If you have some other module first, then the ENET module, it will have the address 1 and so on..... Try to correct your program (U*) and see if you get operation errors...

Share this post


Link to post
Share on other sites
Yes, that helped ! Thanks a lot 1. But do you now something about the FROM/TO instructions. and 2. I also have 2 RS485-ADP modules on the left side , what numbers are they ? And again Thank you kaare_t

Share this post


Link to post
Share on other sites
Download this: JY997D18101-D 6.24MB PDF FX3U-ENET Users Manual http://www.meau.com/eprise/main/sites/publ...amp;ManualType= There are examples. They work, that's what I am using. The RS485-ADPs are addressed by the RS2-instruction and setting M842x. No need of a From/To instruction.

Share this post


Link to post
Share on other sites
I have read this document many times and i can only think that you refer to sections: 5, 6, 7. I'm using unpassive or fullpassive, ALWAY WAIT FOR OPEN, TCP, no procedures, pairs, no confirm connection. I'm now trying to make actual communication ... Thanks for your reply. btw: in this manual they say that you have to use FROM and TO instructions, but the example they use MOVP :| :? ... --- i'm doing this MOVP K1 U0\G2688 BMOVP D1000 U0\G2689 K1 MOVP H1 U0\G1611 MOV U0\G1610 D101 And it does not send :| Any ideas ? Edited by trm

Share this post


Link to post
Share on other sites
If you are trying to communicate from a PC, all you need to do is use FX Configurator-EN, set the IP address, set at least one port for TCP MELSOFT Connection, download to the module, and reset the PLC. Nothing to it. All the stuff about passive, unpassive, fullpassive, that's for communicating from one PLC to another. The manual number for programming an FX3U is JY997D16601. This contains all the information you need to know about TO and FROM. But if you are using the U\G addresses, you don't need TO and FROM. Add to that the manuals on the FX3U-ENET and it's pretty basic setup.

Share this post


Link to post
Share on other sites
0. First i want to thank you a LOT (!) for bringing such much light on my issue(s). The most importnat thing i understand from your post is that un/fullpassive and active is for comm. between PLCs, which i haven't see anywhere to be mentioned :| 1. As of now when i for first time read your post I have set all the settings i think i need for my connection using FX Configurator-EN (i'm using fullpassive). I have ping, also when i send TCP packages or ping to the PLC i see the led for RX blinking. 2. Isn't MELSOFT some kind of type connection or protocol of Mitsubishi. I want to use standart TCP , because I will use TCP modbus over my Ethernet. But yes i have to communicate with a PC. 3. Also no matter that unpassive, fullpassive, active are for comm. between PLCs atleast i had to see the TX led blinking on my ENET module :? I'm not right ? 4. I have this manual ( JY997D16601) and also i have read about the instruction i need. I now open the pdf again and checked the info about the TO instruction. Here it is what it says: TOP K0 K27 H0 K1 === is the same as === MOVP H0 U0\G27 5. And by reseting the PLC you mean restarting it (but this is done by the FX Configurator(-EN) , it actually asks for this ). --- Thank you again for your anwser (it brings much light to my problem) and your time.

Share this post


Link to post
Share on other sites
That module is designed for Mitsubishi Ethernet, not Modbus TCP. The purpose of that module is to connect FX3U PLCs to PCs or FX3U PLCs to each other on Ethernet. MELSOFT Conncetion is used by OPC servers, Mitsubishi programming software, and HMI.

Share this post


Link to post
Share on other sites
Are you sure ? Cause our Official Mitsubishi Dealer (for our Region) sells us this module for TCP Modbus ?!. Also why it can\'t be used for Modbus TCP ?!. It supports TCP and TCP modbus it\'s just a software working on/over TCP ... :? So far i haven\'t been able to send any bytes, except ones i actualy send 3 bytes, but i was unable to capture them :| edit: i checked all my configuration and status registers and i find out the following: 1. My active open system connections stay in stand by mode 2. My unpassive and fullpassive connection stay in Open request or Listen being processed. and 3. G20480 which shows the open complete signal is 0 , which means non of the connections has open completed So my questions are two: I. How from Open request/Listen (0x0003) the connection goes to Open Status (0x0005) ? II. Why note even one of my connection have completed it\'s \'opening\' -> btw this is very strange. ----- I have conf. my FX3U-ENET module like this: (see attached file below) because i want to be able to test all connections just by changing the program only, not changing the ENET configurationn through FX Conf.-EN Thank you in advance for you time and answers ! Edited by trm

Share this post


Link to post
Share on other sites
I made the receiving work ! In the FX3U-ENET User's MANUAL there is a MISTAKE. The registers/BFM after 1602 are wrong. The Decimal values are wrong and the Hex are true, so i calculated Hex -> Dec and use it as U0\G_Dec_ and it works perfectly ! Now i will correct and the registers in my test sending program and will see what will happen :) :P :) I'm very happy, thank you for all your help so far ! ps: I really need to know if FX3U-ENET can not be used for TCP Modbus, it will be very strange and unlogical.

Share this post


Link to post
Share on other sites
Modbus TCP is a PROTOCOL. The module has no built in support for that protocol. It has no built-in method to make packets in the Modbus TCP format. From what I have been told, there is no way to create them manually. If your vendor told you there is, then ask him for sample code. I don't think it can be done. And what manual are you looking at? What version? If there's an error, then I can forward your info to Mitsubishi. I've checked the hex/dec in the manual for many, and they all match up. I am using the latest version, JY997D18101-D.

Share this post


Link to post
Share on other sites
I have this manual: JY997D18101 MODEL CODE: 09R716 Am ... well i don't see any problem to make the TCP Modbus function manually , also i have a sample code of TCP modbus software implementation , i.e no Ethernet init,conf or send/recieve 'functions'. Just TCP Modbus functions. (and they are in ladder for GX IEC Developer, which i'm using). Thank you yet again for your opinion and help. ;) :) ps: i'm programing in LIST/IL edit: I get FX3U-ENET error code 0054 :( and i can't understand what it means. Also i get COMM ERR and "Open processing abnormally completed". edit: check this -> Edited by trm

Share this post


Link to post
Share on other sites
OK. I have done it At last ... Here is the test code: LD M8000 MOV U0\G1614 D100 MPS AND= D100 H1 MOV U0\G5760 D101 ADD D101 H1 D101 DIV D101 H2 D103 BMOV U0\G5761 D10 D103 MPP AND= D100 H8 INCP D102 LD= D100 H1 OUT M2 MOV H2 U0\G1614 LD M8000 MOV U0\G28 D300 LD M2 AND= U0\G1607 H5 OR M200 ANI M201 ANI M202 OUT M200 MPS MOV K49 D10 MOV K50 D11 MOV K51 D12 MOV K52 D13 MOVP H8 U0\G6784 BMOVP D10 U0\G6785 H4 MOVP H1 U0\G1615 MOV U0\G1615 D200 AND D200.2 OUT M201 MPP AND D200.3 OUT M202 And here is the FX3U-ENET config: FX3ENET_working_passive.rar Edited by trm
1 person likes this

Share this post


Link to post
Share on other sites
You cannot run the 'standard' Modbus/TCP on the FX3U-ENET. Standard Modbus port number is TCP-502 (this is the official assignet port number for Modbus/TCP), and the FX3U-ENET cannot open any ports below 1024! So unless you can assign your own ports for the Modbus/TCP device(s) you are going to communicate with you have a big problem.....

Share this post


Link to post
Share on other sites
I can do a port forward from port TCP-X to TCP-502 :) Thanks for the info

Share this post


Link to post
Share on other sites
See presentation.All work.

Share this post


Link to post
Share on other sites
Yep, i have the same sample/example code for TCP Modbus ;) without the FX3U-ENET configuration And they are using port 1248 for both send/receive :) I guess they are using port forward on the router or on the PC (like I will do) Thank you a lot for your help, the topic is finished/"closed". Now is left to make the TCP modbus implementation work :) Bye for now and again BIG THANKS TO ALL WHO helped me and take some of their time to write to me ! // i'm new to the PLC world so your support was crucial to me :P hh

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now