Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
d6518de3
Commit
d6518de3
authored
Nov 01, 2009
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add docs for MBTCPMaster
parent
21f127a6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
32 deletions
+76
-32
MBTCPMaster.cc
extensions/MBTCPMaster/MBTCPMaster.cc
+3
-3
MBTCPMaster.h
extensions/MBTCPMaster/MBTCPMaster.h
+66
-22
SharedMemory.h
extensions/SharedMemory/SharedMemory.h
+2
-2
VTypes.h
extensions/include/VTypes.h
+5
-5
No files found.
extensions/MBTCPMaster/MBTCPMaster.cc
View file @
d6518de3
...
...
@@ -56,9 +56,9 @@ no_extimer(false)
throw
UniSetTypes
::
SystemError
(
myname
+
"(MBMaster): Unknown inet port...(Use: "
+
tmp
+
")"
);
recv_timeout
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-recv-timeout"
,
it
.
getProp
(
"recv_timeout"
),
5
0
);
recv_timeout
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-recv-timeout"
,
it
.
getProp
(
"recv_timeout"
),
200
0
);
int
alltout
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-all-timeout"
,
it
.
getProp
(
"all_timeout"
),
2
000
);
int
alltout
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-all-timeout"
,
it
.
getProp
(
"all_timeout"
),
5
000
);
ptAllNotRespond
.
setTiming
(
alltout
);
noQueryOptimization
=
conf
->
getArgInt
(
"--"
+
prefix
+
"-no-query-optimization"
,
it
.
getProp
(
"no_query_optimization"
));
...
...
@@ -68,7 +68,7 @@ no_extimer(false)
polltime
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-polltime"
,
it
.
getProp
(
"polltime"
),
100
);
initPause
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-initPause"
,
it
.
getProp
(
"initPause"
),
300
0
);
initPause
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-initPause"
,
it
.
getProp
(
"initPause"
),
5
0
);
force
=
conf
->
getArgInt
(
"--"
+
prefix
+
"-force"
,
it
.
getProp
(
"force"
));
force_out
=
conf
->
getArgInt
(
"--"
+
prefix
+
"-force-out"
,
it
.
getProp
(
"force_out"
));
...
...
extensions/MBTCPMaster/MBTCPMaster.h
View file @
d6518de3
...
...
@@ -22,54 +22,98 @@
- \ref sec_MBTCP_Comm
- \ref sec_MBTCP_Conf
- \ref sec_MBTCP_ConfList
\section sec_MBTCP_Comm ModbusTCP master
(/) RTU-,
TCP-.
<sensors>. . \ref sec_MBTCP_Conf
\b
<sensors>. . \ref sec_MBTCP_Conf
\
b --xxx-name
\
section sec_MBTCP_Conf ModbusTCP master
IP- \b gateway_iaddr
\b --xxx-gateway-iaddr.
.
\b gateway_port
\b --xxx-gateway-port. \b 502.
\par
ϣ , ݣ ,
.
:
\code
<MBMaster1 name="MBMaster1" gateway_iaddr="127.0.0.1" gateway_port="30000" polltime="200">
<DeviceList>
<item addr="0x01" respondSensor="RTU1_Not_Respond_FS" timeout="2000" invert="1"/>
<item addr="0x02" respondSensor="RTU2_Respond_FS" timeout="2000" invert="0"/>
</DeviceList>
</MBMaster1>
\endcode
<DeviceList> RTU-.
\b --xxx-recv-timeout \b recv_timeout
- \b addr - ,
- \b timeout msec - ,
- \b invert - . "1" \b .
- \b respondSensor - .
\
b --xxx-all-timeout \b all_timeout
\
par
\b --xxx-no-query-optimization \b no_query_optimization
.
\b xxx="mbtcp".
:
\b --xxx-
poll-time \b poll_time
\b --xxx-
name ID - .
\b --xxx-init-time \b init_time
IP- \b gateway_iaddr
\b --xxx-gateway-iaddr.
\b --xxx-force \b foce
\b gateway_port
\b --xxx-gateway-port. \b 502.
\b --xxx-
force-out \b foce_out
\b --xxx-
recv-timeout \b recv_timeout msec - ɣ . 2000 .
\b --xxx-reg-from-id \b reg_from_id
\b --xxx-all-timeout \b all_timeout msec -
( ģ )
\b --xxx-
heartbeat-id \b heartbeat_id
\b --xxx-
no-query-optimization \b no_query_optimization - [1|0]
\b --xxx-heartbeat-max \b heartbeat_max
, / .
, \b mbfunc .
\b --xxx-activate-timeout msec . 2000.
\b --xxx-filter-field
\b --xxx-filter-value
\b --xxx-poll-time \b poll_time msec - . 100 .
\b --xxx-initPause \b initPause msec - , . 50 .
\b --xxx-force \b foce [1|0]
- 1 - SharedMemory
- 0 -
\b --xxx-force-out \b foce_out [1|0]
- 1 - SharedMemory
- 0 -
\b --xxx-reg-from-id \b reg_from_id [1|0]
- 1 -
- 0 - tcp_mbreg
\b --xxx-heartbeat-id \b heartbeat_id ID - "" (. \ref sec_SM_HeartBeat)
\b --xxx-heartbeat-max \b heartbeat_max val - ޣ "".
\section sec_MBTCP_Conf ModbusTCP master
\b --xxx-activate-timeout msec . 2000. - SharedMemory .
\section sec_MBTCP_ConfList ModbusTCP master
<sensors> .
:
\b --xxx-filter-field -
\b --xxx-filter-value - . .
, ,
.
\warning , .
:
\code
<sensors name="Sensors">
...
...
...
@@ -79,6 +123,7 @@
...
</sensors>
\endcode
:
- \b tcp_mbtype - [rtu] - ۣ .
- \b tcp_mbaddr - RTU-.
...
...
@@ -97,7 +142,6 @@
\warning . \a nbit \a nbyte.
*/
// -----------------------------------------------------------------------------
/*!
...
...
extensions/SharedMemory/SharedMemory.h
View file @
d6518de3
...
...
@@ -12,7 +12,7 @@
#include "WDTInterface.h"
// -----------------------------------------------------------------------------
/*! \page page_SharedMemory
/*! \page page_SharedMemory
(SharedMemory)
\section sec_SM_Common SharedMemory
...
...
@@ -72,7 +72,7 @@
\par (depends)
\code
--d-filter-field - "" (depends)
--d-filter-field - "" (depends)
--d-filter-value - . .
\endcode
... ... ...
...
...
extensions/include/VTypes.h
View file @
d6518de3
...
...
@@ -16,11 +16,11 @@ namespace VTypes
enum
VType
{
vtUnknown
,
vtF2
,
/*!< (4 ) */
vtF4
,
/*!< 8- */
vtByte
,
/*!< */
vtUnsigned
,
/*!< */
vtSigned
/*!< */
vtF2
,
/*!< (4 )
. \b "F2".
*/
vtF4
,
/*!< 8-
. \b "F4".
*/
vtByte
,
/*!<
. \b "byte".
*/
vtUnsigned
,
/*!<
. \b "unsigned".
*/
vtSigned
/*!<
. \b "signed".
*/
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
const
VType
&
vt
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment