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: modbus R2-4 write 32bit int with modbus function 16
From: Fabian <[email protected]>
To: [email protected]
Date: Fri, 31 Aug 2012 18:39:37 +0200
Hello all,

im trying to write a huge number which ist splitted into 2 Words (4
bytes) via modbus. But it doesn't work because I receive an asyn error.

epics> dbpf IOC01MINI8:RTC_SP 0
DBR_LONG:           0         0x0                
epics> 2012/08/31 18:14:45.105 drvModbusAsyn::writeUInt32D port
mini8_RTC_SP invalid request for Modbus function 16
2012/08/31 18:14:45.105 IOC01MINI8:RTC_SP devAsynUInt32Digital process
error

I use the longout.template as epics record, and got asyn 4-20
The configuration for the port is here:

#drvModbusAsynConfigure(portName,         tcpPortName, slaveAddress,    
modbusFunction, modbusStartAddress, modbusLength, dataType, pollMsec,
plcType);
drvModbusAsynConfigure("mini8_RTC_SP",        "mini8_1",     1,       
 16,          40293,          2,            6,      1000,   
 "EuroTherm-mini8") #0x9d65

*any ideas would be appreciated.*
<http://www.healthboards.com/boards/lung-respiratory-disorders-copd/834289-any-ideas-would-appreciated-post4676978.html?highlight=aware+of+my+breathing#4676978>

Replies:
RE: modbus R2-4 write 32bit int with modbus function 16 Mark Rivers

Navigate by Date:
Prev: Re: put to disabled records and monitors Andrew Johnson
Next: RE: modbus R2-4 write 32bit int with modbus function 16 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: retrun value (thread id) for seq() Benjamin Franksen
Next: RE: modbus R2-4 write 32bit int with modbus function 16 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 ·