g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: RE: CRC issues using Modbus/asyn on 64bit Linux
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Emma Shepherd'" <Emma.Shepherd@synchrotron.org.au>, "'Ralph Lange'" <Ralph.Lange@gmx.de>, EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Thu, 1 Mar 2012 22:13:07 +0000
Folks,

I would like to figure out if this is a problem with bad CRC being generated by the devices, or whether my code is incorrectly computing the CRC on the received message.

Can anyone report whether they are using Modbus/asyn with serial RTU without getting CRC error messages?  If so, then it would seem like Emma and Ralph have devices that are generating an incorrect CRC.  But if everyone is getting errors then the problem is likely in my driver.

I don't have any serial RTU devices I can use for testing.  However, when I originally wrote the driver I did buy some inexpensive Modbus server emulation software, and the driver worked OK including CRC with serial RTU and LRC with serial ASCII.

Mark


-----Original Message-----
From: Emma Shepherd [mailto:Emma.Shepherd@synchrotron.org.au] 
Sent: Thursday, March 01, 2012 3:54 PM
To: Mark Rivers; 'Ralph Lange'; EPICS Tech Talk
Subject: RE: CRC issues using Modbus/asyn on 64bit Linux

Hi Mark,

I've had a similar experience with a chain of West 2300 temperature monitors (also serial RTU on RS-485).  In my case the IOC was running on vxWorks, but like Ralph I was seeing persistent modbus CRC errors on the IOC console, although the data itself was good.  I thought it was probably something wrong in my setup but didn't have time to do much investigation.

Emma



-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Mark Rivers
Sent: Friday, 2 March 2012 4:47 AM
To: 'Ralph Lange'; EPICS Tech Talk
Subject: RE: CRC issues using Modbus/asyn on 64bit Linux

I should add that the CRC is only used on Modbus serial RTU, not on Modbus TCP or Modbus serial ASCII.

So 2 questions:

1) Has anyone successfully run Modbus/asyn serial RTU on 64bit Linux?

2) Has anyone run the Wave P6100 temperature controller with Modbus/asyn serial RTU on any architecture?

Mark


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Ralph Lange
Sent: Thursday, March 01, 2012 11:30 AM
To: EPICS Tech Talk
Subject: CRC issues using Modbus/asyn on 64bit Linux

Hi,

I am reliably getting CRC errors on the device's answer when reading
more than two parameters (Modbus code 3) through serial RTU on RS-485
from a Wave P6100 temperature controller. The data itself looks good and
reasonable.
One or two word access (Modbus code 1 or 3) seems to work fine.
The IOC runs on 64bit Linux, using Mark Rivers' Modbus on ASYN driver.
(All from synApps 5.5)

Has anyone seen similar behaviour?
Does anyone successfully run Modbus/asyn on 64bit Linux? (To rule out 64
bit issues in the CRC checking part.)

Thanks for any help,
~Ralph


<br>This message and any attachments may contain proprietary or confidential information. If you are not the intended recipient or you received the message in error, you must not use, copy or distribute the message. Please notify the sender immediately and destroy the original message. Thank you.


Replies:
RE: CRC issues using Modbus/asyn on 64bit Linux Vesna Samardzic-Boban
References:
CRC issues using Modbus/asyn on 64bit Linux Ralph Lange
RE: CRC issues using Modbus/asyn on 64bit Linux Mark Rivers
RE: CRC issues using Modbus/asyn on 64bit Linux Emma Shepherd

Navigate by Date:
Prev: Re: BOY FAQ Benjamin Franksen
Next: RE: CRC issues using Modbus/asyn on 64bit Linux Vesna Samardzic-Boban
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: RE: CRC issues using Modbus/asyn on 64bit Linux Emma Shepherd
Next: RE: CRC issues using Modbus/asyn on 64bit Linux Vesna Samardzic-Boban
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·