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  2008  2009  2010  2011  <20122013  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  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: CARS modbus output record initialization
From: John Dobbins <[email protected]>
To: EPICS Tech-Talk <[email protected]>
Date: Fri, 3 Feb 2012 14:51:30 +0000
I am using the CARS modbus device support with a WAGO I/O System (controller 750-341)

One thing I am having trouble getting to work is output record initialization. This is an old version of modbus support R1-2, asyn R4-9, base R3.14.9

Specifically, for modbus function code 6 I create a block

# Write 1 register,  Function code=6
drvModbusAsynConfigure("WAGO_OUTS", "WAGO", 6, 0, 4, 0,    1, "WAGO_750_341")


There are four analog output records attached to this block which look like

record(ao,"wagoTest_out_0") {
    field(DTYP,"asynInt32")
    field(OUT, "@asynMask(WAGO_OUTS 0 -16 1000)")
    field(LINR,"LINEAR")
    field(EGUL,"-10")
    field(EGUF,"10")
    field(LOPR,"-10")
    field(HOPR,"10")
    field(PREC, "3")
}


 When the IOC starst up only the first of the four records is initialized with the value currently in the controller.

All four records show UDF = 0, the second has a non-zero but incorrect value, the third and fourth have the value zero.

Thanks for you advice.

John Dobbins

Cornell University





Replies:
RE: CARS modbus output record initialization Mark Rivers

Navigate by Date:
Prev: RE: errors in vxWorks-6.9/target/h(eader) files when building base 3.14.12.1 Vesna Samardzic-Boban
Next: RE: CARS modbus output record initialization Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: asyn reading to waveform records Szalata, Zenon M.
Next: RE: CARS modbus output record initialization Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·