Set metadata for plc variables.
r2118 | ffr | 2007-08-16 15:42:07 +1000 (Thu, 16 Aug 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
01890b5cff
commit
530436b257
@@ -1,12 +1,9 @@
|
|||||||
namespace eval plc {
|
namespace eval plc {
|
||||||
proc status_hpath_setup {parent} {
|
proc set_sobj_attributes {} {
|
||||||
set plcPath $parent/plc
|
|
||||||
hmake $plcPath spy none;
|
|
||||||
hsetprop $plcPath type part;
|
|
||||||
set objlist [sicslist match plc_*];
|
set objlist [sicslist match plc_*];
|
||||||
foreach v $objlist {
|
foreach v $objlist {
|
||||||
if { [SplitReply [sicslist $v type]]== "SicsVariable"} {
|
if { [SplitReply [sicslist $v type]]== "SicsVariable"} {
|
||||||
hattach $plcPath $v [string replace $v 0 3];
|
::utility::mkData $v [string replace $v 0 3] plc privilege user control true data false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user