Serial Communication Issue Between CoDeSys and PLC, with log

standeven

Member
Join Date
Feb 2015
Location
British Columbia
Posts
14
Hi everyone,

I'm trying to go online with an IFM PLC over a serial connection, using CoDeSys. Things were working fine for a while; I managed to upload a program to the PLC, and it is currently running on the PLC. However, I am now no longer able to connect to it over serial.

I repeatedly get Communication Error #0. I've tried using a different laptop, I've triple-checked all connections, I've switched comm ports and baud rates and am still receiving the error. I also used a line monitor to observe the serial connection, and observed that the received transmissions from the PLC appear strange. See the image below for details.

XA2XSUG.png


Any help is greatly appreciated! Thanks
 
If you not already have it then download the "Downloader" software from the IFM support site.

Use the "Downloader" software to try to connect. This software can scan at different baudrates and identify the unit.
 
Thanks MrQ. I tried using the IFM Download program, and it also couldn't connect at any baud rate or protocol.

I also tried a different serial cable, and a different PLC. Same problem. At this point, it must be an issue with my wiring. I'm going to try rewiring everything from scratch and retry. Meanwhile, if anyone has any ideas from that log, please let me know!

Thanks
 
From my experience of playing around with the CoDeSys 2.x protocol to make my own PLC command shell, I can tell you the RX data is garbage and after several attempts CoDeSys stops trying to connect.
I've tried using a different laptop, I've triple-checked all connections, I've switched comm ports and baud rates and am still receiving the error.
Were you using the same "Keyspan USB serial adapter"? It might have caused the problem. You should try some other device.
 
Any time I've seen replies from the controller that were mostly 0xFF, it meant the controller was transmitting at a slower serial data rate than I expected.

That matches shooter's note that both 57600 and 115200 data rates appear in the configuration log of the USB converter.

Glad you got it sorted out !
 
iam facing a problem like "communication error (#0):logout performe"in codesys
during communicate with abb(ac500-pm554-t)
i unable to find problem, any one can help me
 

Similar Topics

Currently,we are facing the communication go through with 422 tx+ and tx-. Mitsubishi fx5u series is used and using command rs2. But the package...
Replies
0
Views
100
I have wasted a week trying to figure out how to connect an SLC5/03 with my laptop. I do not have and can not Buy the 1747 UIC and PC3 cables. I...
Replies
14
Views
2,543
MELSEC A RS422 (25pin) <> iQR C24 Serial RS232 (9pin) - Simple PLC Communication Communication from a MELSEC-A Series CPU (RS-422 – DB 25 Pin)...
Replies
4
Views
1,035
Hey guys, I have a problem reading weighing data from AND AD4406 with OP-05 RS-232C Relay and Control input using Rockwell PLC Micro820. I already...
Replies
0
Views
940
I have a zebra barcode scanner connected to a ******* device master UP. They are connected by RS232. By checking the serial logs on the device...
Replies
3
Views
1,133
Back
Top Bottom