EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: question about s7-plc driver by Dirk
From: Dirk Zimoch <[email protected]>
To: [email protected]
Cc: tech-talk <[email protected]>
Date: Wed, 12 Nov 2008 15:40:53 +0100
Hi,

This should not happen. I will check this. Please send me the configuration line
from your startup script.

When no output record processes, nothing should be sent to the PLC. However, if
some output records process and other output records have never processed, the
unprocessed records send 0. For that reason, I suggest to process every S7plc
output record at initialization with field(PINI,"YES"). The first package is
sent to the PLC after all PINI records have finished.

Note that it is not possible to sent "half" buffers. When the IOC boots, the
buffer is filled with 0. Whenever an output record processes, it writes to the
buffer. Periodically, the driver checks if any output record has been processed.
If yes, the whole buffer (including uninitialized parts) is sent to the PLC. If
no, nothing is sent.

Dirk

Silver wrote:
> hi, all:
> 
>   I am using s7-plc driver written by Dirk, while I met a problem. while the driver connetcs to plc, it will clear the data buffer of PLC to zero. the database is like following:
> record(ao,"$(id):cmd_gap_pos_cmd") 
> {
>     field(DESC,"command gap position")
>     field(SCAN, "Passive")
>     field(DTYP,"S7plc")
>     field(OUT,"@Siemens_S7: 0/2 'T=UINT32'")
>     field(LINR,"LINEAR")
>     field(LOPR,0)
>     field(HOPR,4294967295)
>     field(EGUL,0)
>     field(EGUF,429496.7295)
>     field(DRVL,17.0000)
>     field(DRVH,140.0000)
>     field(EGU,"mm")	
>     field(PREC,"4") 
> }
>   
>   I remember the Passive mode will not write data to PLC when connecting, but why it can't work? Can anyone give some hints? thanks a lot for your help.
> 
> Best regards
> Geyang  2008-11-05
> 
> 
> 

-- 
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

Replies:
Re: question about s7-plc driver by Dirk Dirk Zimoch
References:
question about s7-plc driver by Dirk Silver

Navigate by Date:
Prev: Fast Cross-IOC Loops? Ralph Lange
Next: RE: Fast Cross-IOC Loops? Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: question about s7-plc driver by Dirk Silver
Next: Re: question about s7-plc driver by Dirk Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·