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
7205a833
Commit
7205a833
authored
May 29, 2009
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change property: rtuVType --> vtype
parent
b5990858
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
test.xml
conf/test.xml
+1
-1
RTUExchange.cc
extentions/RTUExchange/RTUExchange.cc
+1
-2
No files found.
conf/test.xml
View file @
7205a833
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
mbtype=
"rtu"
mbaddr=
"0x01"
mbfunc=
"0x06"
mbreg=
"0x02"
rs=
"2"
default=
"10"
/>
mbtype=
"rtu"
mbaddr=
"0x01"
mbfunc=
"0x06"
mbreg=
"0x02"
rs=
"2"
default=
"10"
/>
/>
/>
<item
name=
"AI_AS"
textname=
"Analog input"
node=
""
iotype=
"AI"
default=
"378"
priority=
"Medium"
<item
name=
"AI_AS"
textname=
"Analog input"
node=
""
iotype=
"AI"
default=
"378"
priority=
"Medium"
mbtype=
"rtu"
mbaddr=
"0x01"
mbfunc=
"0x04"
mbreg=
"0x01"
rs=
"1"
rtuVT
ype=
"F2"
precision=
"45"
>
mbtype=
"rtu"
mbaddr=
"0x01"
mbfunc=
"0x04"
mbreg=
"0x01"
rs=
"1"
vt
ype=
"F2"
precision=
"45"
>
<consumers>
<consumers>
<consumer
name=
"TestProc"
type=
"objects"
cfilter=
"test1"
/>
<consumer
name=
"TestProc"
type=
"objects"
cfilter=
"test1"
/>
<consumer
name=
"PLCProcessor"
type=
"objects"
/>
<consumer
name=
"PLCProcessor"
type=
"objects"
/>
...
...
extentions/RTUExchange/RTUExchange.cc
View file @
7205a833
...
@@ -663,7 +663,6 @@ void RTUExchange::processingMessage(UniSetTypes::VoidMessage *msg)
...
@@ -663,7 +663,6 @@ void RTUExchange::processingMessage(UniSetTypes::VoidMessage *msg)
UniSetTypes
::
SystemMessage
sm
(
msg
);
UniSetTypes
::
SystemMessage
sm
(
msg
);
sysCommand
(
&
sm
);
sysCommand
(
&
sm
);
}
}
break
;
break
;
case
Message
:
:
Timer
:
case
Message
:
:
Timer
:
...
@@ -1083,7 +1082,7 @@ bool RTUExchange::initRTUitem( UniXML_iterator& it, RSProperty& p )
...
@@ -1083,7 +1082,7 @@ bool RTUExchange::initRTUitem( UniXML_iterator& it, RSProperty& p )
p
.
nbit
=
UniSetTypes
::
uni_atoi
(
nb
.
c_str
());
p
.
nbit
=
UniSetTypes
::
uni_atoi
(
nb
.
c_str
());
}
}
string
vt
(
it
.
getProp
(
"
rtuVT
ype"
));
string
vt
(
it
.
getProp
(
"
vt
ype"
));
if
(
vt
.
empty
()
)
if
(
vt
.
empty
()
)
{
{
p
.
rnum
=
VTypes
::
wsize
(
VTypes
::
vtUnknown
);
p
.
rnum
=
VTypes
::
wsize
(
VTypes
::
vtUnknown
);
...
...
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