Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
d0d7f876
Commit
d0d7f876
authored
Apr 21, 2015
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb embedded plc, cross reference fix
parent
bc9c9a68
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
wb/lib/wb/src/wb_utl.cpp
wb/lib/wb/src/wb_utl.cpp
+22
-2
No files found.
wb/lib/wb/src/wb_utl.cpp
View file @
d0d7f876
...
...
@@ -11804,13 +11804,33 @@ pwr_tStatus wb_utl::utl_replace_symbol( ldh_tSesContext ldhses,
case
ldh_cPlcFoVolume
:
{
pwr_tStatus
sts
;
pwr_tOid
host
;
pwr_tCid
cid
;
sts
=
ldh_GetParent
(
ldhses
,
oid
,
&
host
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_GetParent
(
ldhses
,
host
,
&
host
);
if
(
EVEN
(
sts
))
return
sts
;
sts
=
ldh_GetObjectClass
(
ldhses
,
host
,
&
cid
);
if
(
EVEN
(
sts
))
return
sts
;
if
(
cid
==
pwr_cClass_plc
)
{
// PlcFo reference in embedded template plc
pwr_tAttrRef
*
host_arp
;
int
size
;
sts
=
ldh_GetObjectPar
(
ldhses
,
host
,
"RtBody"
,
"HostObject"
,
(
char
**
)
&
host_arp
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
arp
->
Objid
=
host_arp
->
Objid
;
arp
->
Offset
+=
host_arp
->
Offset
;
free
(
(
char
*
)
host_arp
);
}
else
arp
->
Objid
=
host
;
break
;
}
case
ldh_cPlcMainVolume
:
{
...
...
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