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
29e0f70d
Commit
29e0f70d
authored
Jan 25, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LockAttribute added to sup objects to inhibit the plc compiler to set Attribute
parent
a11530ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
10 deletions
+31
-10
src/wbl/pwrb/src/pwrb_c_asup.wb_load
src/wbl/pwrb/src/pwrb_c_asup.wb_load
+11
-0
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
+11
-0
wb/lib/wb/src/wb_gcg.cpp
wb/lib/wb/src/wb_gcg.cpp
+9
-10
No files found.
src/wbl/pwrb/src/pwrb_c_asup.wb_load
View file @
29e0f70d
...
...
@@ -676,6 +676,17 @@ SObject pwrb:Class
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! 'Attribute' is assigned a value that should not be changed.
! Normally the 'Attribute' value is fetched from the object connected
! to the In input pin. If LockAttribute is set, and Attribute is
! assigned a value, this value will not be changed by the compiler.
!*/
Object LockAttribute $Intern 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object PlcNode $Buffer 2
Body SysBody
Attr Class = pwr_eClass_PlcNode
...
...
src/wbl/pwrb/src/pwrb_c_dsup.wb_load
View file @
29e0f70d
...
...
@@ -638,6 +638,17 @@ SObject pwrb:Class
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
!/**
! 'Attribute' is assigned a value that should not be changed.
! Normally the 'Attribute' value is fetched from the object connected
! to the In input pin. If LockAttribute is set, and Attribute is
! assigned a value, this value will not be changed by the compiler.
!*/
Object LockAttribute $Intern 3
Body SysBody
Attr TypeRef = "pwrs:Type-$Boolean"
EndBody
EndObject
Object PlcNode $Buffer 2
Body SysBody
Attr Class = pwr_eClass_PlcNode
...
...
wb/lib/wb/src/wb_gcg.cpp
View file @
29e0f70d
...
...
@@ -578,6 +578,8 @@ static int gcg_check_attrref(
static
int
gcg_is_in_focode
(
gcg_ctx
gcgctx
,
vldh_t_node
node
);
/*_Methods defined for this module_______________________________________*/
...
...
@@ -8880,6 +8882,7 @@ int gcg_comp_m25( gcg_ctx gcgctx, vldh_t_node node)
ldh_sParDef
output_bodydef
;
pwr_sAttrRef
*
a_ptr
;
pwr_sAttrRef
aref
;
pwr_tBoolean
*
lock_ptr
;
int
keep
=
0
;
int
size
;
gcg_t_nocondef
nocondef
[
2
];
...
...
@@ -8945,17 +8948,14 @@ int gcg_comp_m25( gcg_ctx gcgctx, vldh_t_node node)
if
(
EVEN
(
sts
))
return
sts
;
}
else
{
#if 0
// Removed 2007-05-28 cs, Attribute is not updated if connection is changed !!
pwr_tOid parent;
sts = ldh_GetParent( gcgctx->ldhses, aref.Objid, &parent);
// Check if attribute is locked
sts
=
ldh_GetObjectPar
(
gcgctx
->
ldhses
,
node
->
ln
.
oid
,
"DevBody"
,
"LockAttribute"
,
(
char
**
)
&
lock_ptr
,
&
size
);
if
(
ODD
(
sts
))
{
if ( !gcg_is_window( gcgctx, parent)) {
/* Keep this attribute */
if
(
*
lock_ptr
)
keep
=
1
;
}
free
(
(
char
*
)
lock_ptr
);
}
#endif
}
}
if
(
!
keep
)
{
...
...
@@ -15902,7 +15902,7 @@ static pwr_tStatus gcg_replace_ref( gcg_ctx gcgctx, pwr_sAttrRef *attrref,
return
GSX__SUCCESS
;
}
#if 0 // Not used any mor
d
#if 0 // Not used any mor
e
static int gcg_is_window( gcg_ctx gcgctx, pwr_tOid oid)
{
pwr_sPlcWindow *windbuffer;
...
...
@@ -15921,7 +15921,6 @@ static int gcg_is_window( gcg_ctx gcgctx, pwr_tOid oid)
}
#endif
/*************************************************************************
*
* Set compilation manager for all nodes in a window.
...
...
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