Commit a6955f90 authored by Pavel Vainerman's avatar Pavel Vainerman

minor optimization

parent e00d8589
...@@ -18,6 +18,11 @@ ...@@ -18,6 +18,11 @@
<DumpStateTime name="10"/><!-- [] --> <DumpStateTime name="10"/><!-- [] -->
<SleepTickMS name="500"/><!-- [] --> <SleepTickMS name="500"/><!-- [] -->
<ServicesSection name="Services"/>
<NameService host="localhost" port="2809"/>
<SizeOfMessageQueue name="2000"/>
<LocalIOR name="1"/>
<!-- Debug, logs --> <!-- Debug, logs -->
<UniSetDebug name="unideb" levels="crit,warn" file=""/> <UniSetDebug name="unideb" levels="crit,warn" file=""/>
...@@ -25,9 +30,9 @@ ...@@ -25,9 +30,9 @@
<ConfDir name=""/> <ConfDir name=""/>
<DataDir name=""/> <DataDir name=""/>
<BinDir name=""/> <BinDir name=""/>
<LogDir name=""/> <LogDir name="/home/pv/tmp/"/>
<DocDir name=""/> <DocDir name=""/>
<LockDir name=""/> <LockDir name="/home/pv/tmp/"/>
<Services> <Services>
<LocalTimeService name="TimeService" MaxCountTimers="100" AskLifeTimeSEC="10"/> <LocalTimeService name="TimeService" MaxCountTimers="100" AskLifeTimeSEC="10"/>
...@@ -83,6 +88,8 @@ ...@@ -83,6 +88,8 @@
<HeartBeatTime time_msec="5000"/> <HeartBeatTime time_msec="5000"/>
<IOControl name="IOControl" />
<ObjectsMap idfromfile="0"> <ObjectsMap idfromfile="0">
<!-- <!--
'sensors' 'sensors'
...@@ -122,6 +129,10 @@ ...@@ -122,6 +129,10 @@
<item name="RS_Test15_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="rtu" mbaddr="0x01" mbfunc="0x03" mbreg="0xD" rs="1" /> <item name="RS_Test15_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="rtu" mbaddr="0x01" mbfunc="0x03" mbreg="0xD" rs="1" />
<item name="RS_Test16_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="mtr" mtrtype="F1" mbaddr="0x05" mbfunc="0x03" mbreg="0x10" rs="1" /> <item name="RS_Test16_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="mtr" mtrtype="F1" mbaddr="0x05" mbfunc="0x03" mbreg="0x10" rs="1" />
<item name="RS_Test17_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="rtu" mbaddr="0x01" mbfunc="0x03" mbreg="0x10" rs="1" /> <item name="RS_Test17_S" textname=" 2" node="" iotype="DI" priority="Medium" mbtype="rtu" mbaddr="0x01" mbfunc="0x03" mbreg="0x10" rs="1" />
<item name="IO_Test1_S" textname="io test" node="" iotype="DO" priority="Medium" io="1"/>
<item name="IO_Test2_S" textname="io test" node="" iotype="DI" priority="Medium" io="1"/>
<item name="IO_Test3_S" textname="io test" node="" iotype="AO" priority="Medium" io="1"/>
<item name="IO_Test4_S" textname="io test" node="" iotype="AI" priority="Medium" io="1"/>
<item name="Input6_S" textname=" 6" node="" iotype="DI" priority="Medium"> <item name="Input6_S" textname=" 6" node="" iotype="DI" priority="Medium">
<depends> <depends>
......
...@@ -30,7 +30,7 @@ int main(int argc, char **argv) ...@@ -30,7 +30,7 @@ int main(int argc, char **argv)
string logfilename = conf->getArgParam("--io-logfile","iocontrol.log"); string logfilename = conf->getArgParam("--io-logfile","iocontrol.log");
string logname( conf->getLogDir() + logfilename ); string logname( conf->getLogDir() + logfilename );
dlog.logFile( logname.c_str() ); dlog.logFile( logname.c_str() );
unideb.logFile( logname.c_str() ); unideb.logFile( logname.c_str() );
ObjectId shmID = DefaultObjectId; ObjectId shmID = DefaultObjectId;
string sID = conf->getArgParam("--smemory-id"); string sID = conf->getArgParam("--smemory-id");
......
...@@ -1874,6 +1874,5 @@ void RTUExchange::updateRTU188( RegMap::iterator& it ) ...@@ -1874,6 +1874,5 @@ void RTUExchange::updateRTU188( RegMap::iterator& it )
dlog[Debug::LEVEL3] << myname << "(updateMTR): catch ..." << endl; dlog[Debug::LEVEL3] << myname << "(updateMTR): catch ..." << endl;
} }
} }
} }
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
...@@ -4,22 +4,21 @@ ulimit -Sc 10000000 ...@@ -4,22 +4,21 @@ ulimit -Sc 10000000
START=uniset-start.sh START=uniset-start.sh
${START} -f ./uniset-smemory-plus --smemory-id SharedMemory --confile test.xml \ ${START} -f ./uniset-smemory-plus --smemory-id SharedMemory --confile test.xml \
--unideb-add-levels info,crit,warn,level9,system \ --unideb-add-levels info,crit,warn,level9,system,level3,level2,level1 \
--add-io \ --add-io \
--io-force 1 \ --io-name IOControl \
--io-name IOControl1 \
--io-polltime 100 \ --io-polltime 100 \
--io-s-filter-field io \ --io-s-filter-field io \
--io-s-filter-value ts \ --io-s-filter-value 1 \
--iodev1 /dev/null --iodev1 /dev/null \
--iodev2 /dev/null \ --iodev2 /dev/null \
--io-test-lamp TS_TestLamp_S \ --io-test-lamp RS_Test9_S \
--io-heartbeat-id _31_11_AS \ --io-heartbeat-id AI_AS \
--io-sm-ready-test-sid TestMode_S \ --io-sm-ready-test-sid RS_Test9_S
--add-rtu \ # --add-rtu \
--rtu-device /dev/cbsideA1 \ # --rs-dev /dev/cbsideA1 \
--rtu-id RTUExchange \ # --rs-id RTUExchange \
--add-mbslave \ # --add-mbslave \
#--skip-rtu1 --skip-rtu2 --skip-can --dlog-add-levels info,warn,crit #--skip-rtu1 --skip-rtu2 --skip-can --dlog-add-levels info,warn,crit
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment