Mitsubishi FX2N RS485 communication

Jirrr

Member
Join Date
Jan 2009
Location
Czech
Posts
167
Hello,
I would like to use RS function for communication with another PLC....
I have FX2N-485BD modul....connected two wires
Sending from PLC works but receiving no,it always received data I sent and wait to reset flag M8123 is there any way to get rid of this echo???
/M8120 = H6F,receive buffers set 4 bytes/

Thanks a lot....
 
If the other PLC is a FX2N or FX1N you can interchange data using Parallel Link and then you don't need to use RS instruction.

Anyway D8120 has 16 bits and with H6F you only specify 8 bits and if I remember well you need to put to one some of the high bits to specify RS485, look at the manual.
 
Thanks a lot....

I woud like to use 2-wires because there is 2-wires network and 2-wires hardware....(there are some some termocouplers transmitters and siemens S7-1200s)

with D8120 You are right there is different meaning for computer link and non-protocol....I set it to H0C6F (modem mode rs485)...now I can receive but only 1 byte a time(after 4 bytes received bit M8123 goes up)..I need 4....so now I must send each byte separately,if I try send 4 bytes in one message I got error 6301 /Parity, overrun or framing error/...
RS have send and receive buffers both set to 4....Is it possible that I overlooked something??

Thanks....J
 
to be more precise...I need to send from FX2N 485BD this "#01A" and receive from transmitter 8 numbers(separated by comma) from 8 thermocoupler channels....all this using RS function...sending is OK but still I have no way to receive answer...(this is no problem with simatic or any PC terminal program but my hardware is FX2N mitsubishi)....

Thanks for any suggestion....
 
- Are you trying to communicate with an Advantech 4000 series module or similar?

- if that protocol uses characters such as # then it surely transmits and receives ASCII characters, so if you need to transmit 0 then the ASCII representation of zero must be sent and not a byte equal to zero.

- if a protocol sends and receives ASCII characters it will probably use data length 7bit and not 8bit, it is also rare that you choose 2bit stop, I have never seen it before.

- Data length, stop bits, parity and baud rate must be exactly the same on both sides of the communication.

- Note that the 485BD module is not isolated, that can cause problems if the module and the PLC do not share exactly the same common power. Use of an insulator module between both would be highly recommended. I installed in the past hundreds of FXnN PLC connected to Advantech modules but I always use an RS232 BD FX module port connected to an RS232 to RS485 isolation converter.

- if you have to receive 8 numbers separated by commas you are using a reception buffer too small
 
Thanks a lot...

Yes...it is some Chinese version of IPCCON i-7018.....as for comm parameters,I tested it with PC terminal it worked (send ##05$0D from PC...received >+25.111+25.123...etc./no comma separator/]

Not working this way with FX2N....so I tested it with PC terminal...
FX2N works like this for me:
1.from PLC sent "TEST",on PC I received "TEST"
2.as echo(TEST) is immediately in PLC buffer I reset bit M8123
3.sent "1234"from PC..on PLC I got error 6301 /Parity, overrun or framing error/
4.reset error..then sent "1" from PC and received "1" in PLC D8123 counts 1
repeated sent 3 more times D8123 counts 4(RS send and receive buffer set to 4) and M8123 went 1...

So my problem is why PLC can receive only 1 byte a time without error a no more??

PS:thanks Peter..I will look at it later....
 

Similar Topics

Dear All, Some body know Mitsubishi PLC FX2N with module RS485ADP - FX-485PC-IF-SET setting & to connect to Intouch Wonderware I/O server...
Replies
1
Views
8,486
I've worked on one Mitsubishi PLC in the past 40 years. Now, it looks like I get to tackle another one...using GX-WORKS3-C1 software which I...
Replies
3
Views
949
I have been asked to work on a Mitsubishi Melsec FX2N-80MR PLC but have no experience with Mitsubishi at all. The hope is to get online to find...
Replies
4
Views
1,334
Hi all IÂ’ve never worked with Mitsubishi PLCÂ’s or software, but a customer at our branch has requested the PLC program for future...
Replies
0
Views
780
Hi all IÂ’ve never worked with Mitsubishi PLCÂ’s or software, but a customer at our branch has requested the PLC program for future...
Replies
8
Views
1,634
Back
Top Bottom