1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 <2009> 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Remote I/O |
From: | Wesley Moore <[email protected]> |
To: | Paul Hamadyk <[email protected]> |
Cc: | EPICS Tech Talk <[email protected]> |
Date: | Fri, 18 Dec 2009 11:11:46 -0500 |
Paul Hamadyk wrote:
On Thu, 2009-12-17 at 09:07 -0500, Wesley Moore wrote:I'm using the CJ1's as well paired with the ETN21 Ethernet module. I believe one I'm using has the built in Ethernet but it's basically the same. The Ethernet driver uses the FINS protocol. I can read/write bits or words to the PLC. The memory areas I read/write to are DM, CIO, WR, and HR. I've found pretty quick that reading by word and splitting out the bits to individual bi and bo's was the way to go. Much faster that way. I've got the driver working in EPICS 3.13 and 3.14.WesleyI will be making a streams protocol file for FINS/UDP, using asyn's UDP/IP for the request and UDP/IP Server for the reply, if you're interested? Can you think of any advantages in using your Ethernet driver? We tend to use Data Memory (DM) with a bit of Core IO (CIO) and Auxiliary Registers (AR) for PLC status and error information. Paul.
Paul,I'd be interested in using that at a later date. The biggest part of why I went the driver route was that I started with one from KEK. The driver didn't work out of the box, parts of the FINS protocol were hard coded and some data types didn't work. One thing to be mindful of is the Gateway Counter. It's set to 2 or 7 I believe. Either way, the EPICS side just has to match. As far as memory areas, I use the HR area for interlocks that need to hold through a power cycle.
Wesley
begin:vcard fn:Wesley Moore n:Moore;Wesley org:Thomas Jefferson National Accelerator Facility;Free Electron Laser adr:Suite 19, MS 18;;12000 Jefferson Avenue;Newport News;VA;23606;USA email;internet:[email protected] title:FEL Computer Scientist tel;work:(757) 269-6033 tel;fax:(757) 269-6384 tel;pager:(757) 584-6033 url:http://www.jlab.org/FEL/ version:2.1 end:vcard