Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
2c205e25
Commit
2c205e25
authored
4 years ago
by
Thomas Juerges
Browse files
Options
Downloads
Patches
Plain Diff
Modify attributes and calls to match Paulus' OPC-US server
parent
5bd509db
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RCUSCC/RCUSCC/RCUSCC.py
+341
-519
341 additions, 519 deletions
RCUSCC/RCUSCC/RCUSCC.py
with
341 additions
and
519 deletions
RCUSCC/RCUSCC/RCUSCC.py
+
341
−
519
View file @
2c205e25
...
@@ -22,6 +22,7 @@ from tango import AttrQuality, DispLevel, DevState
...
@@ -22,6 +22,7 @@ from tango import AttrQuality, DispLevel, DevState
from
tango
import
AttrWriteType
,
PipeWriteType
from
tango
import
AttrWriteType
,
PipeWriteType
# Additional import
# Additional import
# PROTECTED REGION ID(RCUSCC.additionnal_import) ENABLED START #
# PROTECTED REGION ID(RCUSCC.additionnal_import) ENABLED START #
import
sys
import
opcua
import
opcua
import
traceback
import
traceback
# PROTECTED REGION END # // RCUSCC.additionnal_import
# PROTECTED REGION END # // RCUSCC.additionnal_import
...
@@ -71,150 +72,105 @@ class RCUSCC(Device):
...
@@ -71,150 +72,105 @@ class RCUSCC(Device):
# Attributes
# Attributes
# ----------
# ----------
time_offset_rw
=
attribute
(
RCU01_Att1_R
=
attribute
(
dtype
=
'
DevLong64
'
,
dtype
=
'
DevLong64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
time_offset_r
=
attribute
(
RCU01_Att1_RW
=
attribute
(
dtype
=
'
DevLong64
'
,
dtype
=
'
DevLong64
'
,
)
RCU_00_Att0_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_Att0_RW
=
attribute
(
dtype
=
'
DevDouble
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU_00_Att1_R
=
attribute
(
RCU01_Att2_R
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevLong64
'
,
)
RCU_00_Att1_RW
=
attribute
(
dtype
=
'
DevDouble
'
,
access
=
AttrWriteType
.
READ_WRITE
,
)
RCU_00_Att2_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
)
RCU
_0
0_Att2_RW
=
attribute
(
RCU0
1
_Att2_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Pwr_dig
_R
=
attribute
(
RCU
01_Att3
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_Pwr_dig
_RW
=
attribute
(
RCU
01_Att3
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Pwr_Ant0
_R
=
attribute
(
RCU
01_Band1
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_Pwr_Ant0
_RW
=
attribute
(
RCU
01_Band1
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Pwr_Ant1
_R
=
attribute
(
RCU
01_Band2
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_Pwr_Ant1
_RW
=
attribute
(
RCU
01_Band2
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Pwr_Ant2
_R
=
attribute
(
RCU
01_Band3
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_Pwr_Ant2
_RW
=
attribute
(
RCU
01_Band3
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Band0
_R
=
attribute
(
RCU
01_Dither1_Frequency
_R
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
)
)
RCU
_00_Band0
_RW
=
attribute
(
RCU
01_Dither1_Frequency
_RW
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Band1
_R
=
attribute
(
RCU
01_Dither2_Frequency
_R
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
)
)
RCU
_00_Band1
_RW
=
attribute
(
RCU
01_Dither2_Frequency
_RW
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_Band2
_R
=
attribute
(
RCU
01_LED0
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_Band2
_RW
=
attribute
(
RCU
01_LED0
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_LED0
_R
=
attribute
(
RCU
01_Pwr_dig
_R
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
)
)
RCU
_00_LED0
_RW
=
attribute
(
RCU
01_Pwr_dig
_RW
=
attribute
(
dtype
=
'
Dev
Double
'
,
dtype
=
'
Dev
Long64
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU
_00_LED1
_R
=
attribute
(
RCU
01_Temp
_R
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
)
)
RCU
_00_LED1
_RW
=
attribute
(
RCU
01_Temp
_RW
=
attribute
(
dtype
=
'
DevDouble
'
,
dtype
=
'
DevDouble
'
,
access
=
AttrWriteType
.
READ_WRITE
,
access
=
AttrWriteType
.
READ_WRITE
,
)
)
RCU_00_ADC_lock0_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_ADC_lock1_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_ADC_lock2_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_V_2v5_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_I_Ant0_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_I_Ant1_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
RCU_00_I_Ant2_R
=
attribute
(
dtype
=
'
DevDouble
'
,
)
# ---------------
# ---------------
...
@@ -227,109 +183,76 @@ class RCUSCC(Device):
...
@@ -227,109 +183,76 @@ class RCUSCC(Device):
# PROTECTED REGION ID(RCUSCC.init_device) ENABLED START #
# PROTECTED REGION ID(RCUSCC.init_device) ENABLED START #
self
.
set_state
(
DevState
.
INIT
)
self
.
set_state
(
DevState
.
INIT
)
# Init the dict that contains attribute to OPC-UA MP/CP mappings.
# Init the dict tha
RCU00_Att3_R
t contains attribute to OPC-UA MP/CP mappings.
self
.
attribute_mapping
=
{}
self
.
attribute_mapping
=
{}
# Set default values in the RW/R attributes and add them to
# Set default values in the RW/R attributes and add them to
# the mapping.
# the mapping.
self
.
_
time_offset_rw
=
0
self
.
_
RCU01_Att1_R
=
0
self
.
attribute_mapping
[
"
_time_offset_rw
"
]
=
{}
self
.
attribute_mapping
[
"
RCU01_Att1_R
"
]
=
{}
self
.
_
time_offset_r
=
0
self
.
_
RCU01_Att1_RW
=
0
self
.
attribute_mapping
[
"
_time_offset_r
"
]
=
{}
self
.
attribute_mapping
[
"
RCU01_Att1_RW
"
]
=
{}
self
.
_RCU
_0
0_Att
0
_R
=
0
self
.
_RCU0
1
_Att
2
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
0
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU0
1
_Att
2
_R
"
]
=
{}
self
.
_RCU
_0
0_Att
0
_RW
=
0
self
.
_RCU0
1
_Att
2
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
0
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU0
1
_Att
2
_RW
"
]
=
{}
self
.
_RCU
_0
0_Att
1
_R
=
0
self
.
_RCU0
1
_Att
3
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
1
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU0
1
_Att
3
_R
"
]
=
{}
self
.
_RCU
_0
0_Att
1
_RW
=
0
self
.
_RCU0
1
_Att
3
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
1
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU0
1
_Att
3
_RW
"
]
=
{}
self
.
_RCU
_00_Att2
_R
=
0
self
.
_RCU
01_Band1
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Att2
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band1
_R
"
]
=
{}
self
.
_RCU
_00_Att2
_RW
=
0
self
.
_RCU
01_Band1
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Att2
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band1
_RW
"
]
=
{}
self
.
_RCU
_00_Pwr_dig
_R
=
0
self
.
_RCU
01_Band2
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_dig
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band2
_R
"
]
=
{}
self
.
_RCU
_00_Pwr_dig
_RW
=
0
self
.
_RCU
01_Band2
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_dig
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band2
_RW
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant0
_R
=
0
self
.
_RCU
01_Band3
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant0
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band3
_R
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant0
_RW
=
0
self
.
_RCU
01_Band3
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant0
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Band3
_RW
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant1
_R
=
0
self
.
_RCU
01_Dither1_Frequency
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant1
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Dither1_Frequency
_R
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant1
_RW
=
0
self
.
_RCU
01_Dither1_Frequency
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant1
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Dither1_Frequency
_RW
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant2
_R
=
0
self
.
_RCU
01_Dither2_Frequency
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant2
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Dither2_Frequency
_R
"
]
=
{}
self
.
_RCU
_00_Pwr_Ant2
_RW
=
0
self
.
_RCU
01_Dither2_Frequency
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant2
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Dither2_Frequency
_RW
"
]
=
{}
self
.
_RCU
_00_Band
0_R
=
0
self
.
_RCU
01_LED
0_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Band
0_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_LED
0_R
"
]
=
{}
self
.
_RCU
_00_Band
0_RW
=
0
self
.
_RCU
01_LED
0_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Band
0_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_LED
0_RW
"
]
=
{}
self
.
_RCU
_00_Band1
_R
=
0
self
.
_RCU
01_Pwr_dig
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Band1
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Pwr_dig
_R
"
]
=
{}
self
.
_RCU
_00_Band1
_RW
=
0
self
.
_RCU
01_Pwr_dig
_RW
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Band1
_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Pwr_dig
_RW
"
]
=
{}
self
.
_RCU
_00_Band2
_R
=
0
self
.
_RCU
01_Temp
_R
=
0
self
.
attribute_mapping
[
"
_
RCU
_00_Band2
_R
"
]
=
{}
self
.
attribute_mapping
[
"
RCU
01_Temp
_R
"
]
=
{}
self
.
_RCU_00_Band2_RW
=
0
self
.
_RCU01_Temp_RW
=
0
self
.
attribute_mapping
[
"
_RCU_00_Band2_RW
"
]
=
{}
self
.
attribute_mapping
[
"
RCU01_Temp_RW
"
]
=
{}
self
.
_RCU_00_LED0_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_LED0_R
"
]
=
{}
self
.
_RCU_00_LED0_RW
=
0
self
.
attribute_mapping
[
"
_RCU_00_LED0_RW
"
]
=
{}
self
.
_RCU_00_LED1_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_LED1_R
"
]
=
{}
self
.
_RCU_00_LED1_RW
=
0
self
.
attribute_mapping
[
"
_RCU_00_LED1_RW
"
]
=
{}
self
.
_RCU_00_ADC_lock0_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock0_R
"
]
=
{}
self
.
_RCU_00_ADC_lock1_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock1_R
"
]
=
{}
self
.
_RCU_00_ADC_lock2_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock2_R
"
]
=
{}
self
.
_RCU_00_V_2v5_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_V_2v5_R
"
]
=
{}
self
.
_RCU_00_I_Ant0_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_I_Ant0_R
"
]
=
{}
self
.
_RCU_00_I_Ant1_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_I_Ant1_R
"
]
=
{}
self
.
_RCU_00_I_Ant2_R
=
0
self
.
attribute_mapping
[
"
_RCU_00_I_Ant2_R
"
]
=
{}
# Set defaults to property values.
# Set defaults to property values.
...
@@ -347,74 +270,58 @@ class RCUSCC(Device):
...
@@ -347,74 +270,58 @@ class RCUSCC(Device):
self
.
name_space_index
=
2
self
.
name_space_index
=
2
self
.
obj_node
=
self
.
client
.
get_objects_node
()
self
.
obj_node
=
self
.
client
.
get_objects_node
()
self
.
pcc_node
=
self
.
pcc_node
.
get_child
([
"
{}:PCC
"
.
format
(
self
.
name_space_index
)])
self
.
debug_stream
(
"
Mapping OPC-UA MP/CP to attributes...
"
)
self
.
debug_stream
(
"
Mapping OPC-UA MP/CP to attributes...
"
)
self
.
attribute_mapping
[
"
_time_offset_rw
"
]
=
self
.
obj_node
.
get_child
([
"
{}:time_offset
"
.
format
(
self
.
name_space_index
),
"
{}:time_offset_RW
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU01_Att1_R
"
]
=
self
.
pcc_node
.
get_child
([
"
{}:RCU01_Att1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_time_offset_r
"
]
=
self
.
obj_node
.
get_child
([
"
{}:time_offset
"
.
format
(
self
.
name_space_index
),
"
{}:time_offset_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
0
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_0
0_Att
0
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU0
1
_Att
1
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU0
1
_Att
1
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
0
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_0
0_Att
0
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU0
1
_Att
2
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU0
1
_Att
2
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
1
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_0
0_Att
1
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU0
1
_Att
3
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU0
1
_Att
3
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att1_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_0
0_Att1_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU0
1
_Att1_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU0
1
_Att1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_0
0_Att
2
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_0
0_Att
2
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU0
1
_Att
1
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU0
1
_Att
1
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Att2
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Att2
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band1
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band1
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_dig
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_dig
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band1
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band1
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_dig
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_dig
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band2
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band2
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant0
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant0
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band2
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band2
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant0
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant0
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band3
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band3
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant1
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant1
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Band3
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Band3
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant1
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant1
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Dither1_Frequency
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Dither1_Frequency
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant2
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant2
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Dither1_Frequency
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Dither1_Frequency
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Pwr_Ant2
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Pwr_Ant2
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Dither2_Frequency
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Dither2_Frequency
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band0
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Band0
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Dither2_Frequency
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Dither2_Frequency
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band
0_R
W
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU
_00_Band
0_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_LED
0_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU
01_LED
0_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band1_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU
_00_Band1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_LED0_RW
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU
01_LED0_RW
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band1
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Band1
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Pwr_dig
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Pwr_dig
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band2
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Band2
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Pwr_dig
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:
_
RCU
01_Pwr_dig
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_Band2
_R
W
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_Band2
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Temp
_R
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Temp
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_LED0
_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_LED0
_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_Temp
_R
W
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_Temp
_R
W
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_LED0_RW
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_LED0_RW
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_RCU_off
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_RCU_off
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_
RCU
_00_LED1_R
"
]
=
self
.
obj
_node
.
get_child
([
"
{}:RCU
_00_LED1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
RCU
01_RCU_on
"
]
=
self
.
pcc
_node
.
get_child
([
"
{}:RCU
01_RCU_on
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_LED1_RW
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_LED1_RW
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock0_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_ADC_lock0_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock1_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_ADC_lock1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock2_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_ADC_lock2_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_V_2v5_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_V_2v5_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_I_Ant0_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_I_Ant0_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_I_Ant1_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_I_Ant1_R
"
.
format
(
self
.
name_space_index
)])
self
.
attribute_mapping
[
"
_RCU_00_I_Ant2_R
"
]
=
self
.
obj_node
.
get_child
([
"
{}:RCU_00_I_Ant2_R
"
.
format
(
self
.
name_space_index
)])
self
.
debug_stream
(
"
Mapping OPC-UA MP/CP to attributes done.
"
)
self
.
debug_stream
(
"
Mapping OPC-UA MP/CP to attributes done.
"
)
self
.
set_state
(
DevState
.
ON
)
self
.
set_state
(
DevState
.
ON
)
...
@@ -449,325 +356,216 @@ class RCUSCC(Device):
...
@@ -449,325 +356,216 @@ class RCUSCC(Device):
# Attributes methods
# Attributes methods
# ------------------
# ------------------
def
read_time_offset_rw
(
self
):
def
read_RCU01_Att1_R
(
self
):
# PROTECTED REGION ID(RCUSCC.time_offset_rw_read) ENABLED START #
# PROTECTED REGION ID(RCUSCC.RCU01_Att1_R_read) ENABLED START #
"""
Return the time_offset_rw attribute.
"""
"""
Return the RCU01_Att1_R attribute.
"""
return
self
.
_time_offset_rw
self
.
_RCU01_Att1_R
=
self
.
attribute_mapping
[
"
RCU01_Att1_R
"
].
get_value
()
# PROTECTED REGION END # // RCUSCC.time_offset_rw_read
return
self
.
_RCU01_Att1_R
# PROTECTED REGION END # // RCUSCC.RCU01_Att1_R_read
def
write_time_offset_rw
(
self
,
value
):
# PROTECTED REGION ID(RCUSCC.time_offset_rw_write) ENABLED START #
def
read_RCU01_Att1_RW
(
self
):
"""
Set the time_offset_rw attribute.
"""
# PROTECTED REGION ID(RCUSCC.RCU01_Att1_RW_read) ENABLED START #
self
.
attribute_mapping
[
"
_time_offset_rw
"
].
set_value
(
value
)
"""
Return the RCU01_Att1_R attribute.
"""
self
.
_time_offset_rw
=
value
self
.
_RCU01_Att1_RW
=
self
.
attribute_mapping
[
"
RCU01_Att1_RW
"
].
get_value
()
# PROTECTED REGION END # // RCUSCC.time_offset_rw_write
return
self
.
_RCU01_Att1_RW
# PROTECTED REGION END # // RCUSCC.RCU01_Att1_RW_read
def
read_time_offset_r
(
self
):
# PROTECTED REGION ID(RCUSCC.time_offset_r_read) ENABLED START #
def
write_RCU01_Att1_RW
(
self
,
value
):
"""
Return the time_offset_r attribute.
"""
# PROTECTED REGION ID(RCUSCC.RCU01_Att1_RW_write) ENABLED START #
self
.
_time_offset_r
=
self
.
attribute_mapping
[
"
_time_offset_r
"
].
get_value
()
"""
Set the RCU01_Att1_RW attribute.
"""
return
self
.
_time_offset_r
self
.
attribute_mapping
[
"
RCU01_Att1_RW
"
].
set_value
(
value
)
# PROTECTED REGION END # // RCUSCC.time_offset_r_read
self
.
_RCU01_Att1_RW
=
value
# PROTECTED REGION END # // RCUSCC.RCU01_Att1_RW_write
def
read_RCU_00_Att0_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_Att0_R_read) ENABLED START #
def
read_RCU01_Att2_R
(
self
):
"""
Return the RCU_00_Att0_R attribute.
"""
# PROTECTED REGION ID(RCUSCC.RCU01_Att2_R_read) ENABLED START #
self
.
_RCU_00_Att0_R
=
self
.
attribute_mapping
[
"
_RCU_00_Att0_R
"
].
get_value
()
"""
Return the RCU01_Att2_R attribute.
"""
return
self
.
_RCU_00_Att0_R
self
.
_RCU01_Att2_R
=
self
.
attribute_mapping
[
"
RCU01_Att2_R
"
].
get_value
()
# PROTECTED REGION END # // RCUSCC.RCU_00_Att0_R_read
return
self
.
_RCU01_Att2_R
# PROTECTED REGION END # // RCUSCC.RCU01_Att2_R_read
def
read_RCU_00_Att0_RW
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_Att0_RW_read) ENABLED START #
def
read_RCU01_Att2_RW
(
self
):
"""
Return the RCU_00_Att0_RW attribute.
"""
# PROTECTED REGION ID(RCUSCC.RCU01_Att2_RW_read) ENABLED START #
return
self
.
_RCU_00_Att0_RW
"""
Return the RCU01_Att2_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att0_RW_read
self
.
_RCU01_Att2_RW
=
self
.
attribute_mapping
[
"
RCU01_Att2_RW
"
].
get_value
()
return
self
.
_RCU01_Att2_RW
def
write_RCU_00_Att0_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Att2_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Att0_RW_write) ENABLED START #
"""
Set the RCU_00_Att0_RW attribute.
"""
def
write_RCU01_Att2_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Att0_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Att2_RW_write) ENABLED START #
self
.
_RCU_00_Att0_RW
=
value
"""
Set the RCU01_Att2_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att0_RW_write
self
.
attribute_mapping
[
"
RCU01_Att2_RW
"
].
set_value
(
value
)
self
.
_RCU01_Att2_RW
=
value
def
read_RCU_00_Att1_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Att2_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Att1_R_read) ENABLED START #
"""
Return the RCU_00_Att1_R attribute.
"""
def
read_RCU01_Att3_R
(
self
):
self
.
_RCU_00_Att1_R
=
self
.
attribute_mapping
[
"
_RCU_00_Att1_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Att3_R_read) ENABLED START #
return
self
.
_RCU_00_Att1_R
"""
Return the RCU01_Att3_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att1_R_read
self
.
_RCU01_Att3_R
=
self
.
attribute_mapping
[
"
RCU01_Att3_R
"
].
get_value
()
return
self
.
_RCU01_Att3_R
def
read_RCU_00_Att1_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Att3_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Att1_RW_read) ENABLED START #
"""
Return the RCU_00_Att1_RW attribute.
"""
def
read_RCU01_Att3_RW
(
self
):
self
.
_RCU_00_Att1_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Att1_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Att3_RW_read) ENABLED START #
return
self
.
_RCU_00_Att1_RW
"""
Return the RCU01_Att3_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att1_RW_read
self
.
_RCU01_Att3_RW
=
self
.
attribute_mapping
[
"
RCU01_Att3_RW
"
].
get_value
()
return
self
.
_RCU01_Att3_RW
def
write_RCU_00_Att1_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Att3_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Att1_RW_write) ENABLED START #
"""
Set the RCU_00_Att1_RW attribute.
"""
def
write_RCU01_Att3_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Att1_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Att3_RW_write) ENABLED START #
self
.
_RCU_00_Att1_RW
=
value
"""
Set the RCU01_Att3_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att1_RW_write
self
.
attribute_mapping
[
"
RCU01_Att3_RW
"
].
set_value
(
value
)
self
.
_RCU01_Att3_RW
=
value
def
read_RCU_00_Att2_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Att3_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Att2_R_read) ENABLED START #
"""
Return the RCU_00_Att2_R attribute.
"""
def
read_RCU01_Band1_R
(
self
):
self
.
_RCU_00_Att2_R
=
self
.
attribute_mapping
[
"
_RCU_00_Att2_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Band1_R_read) ENABLED START #
return
self
.
_RCU_00_Att2_R
"""
Return the RCU01_Band1_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att2_R_read
self
.
_RCU01_Band1_R
=
self
.
attribute_mapping
[
"
RCU01_Band1_R
"
].
get_value
()
return
self
.
_RCU01_Band1_R
def
read_RCU_00_Att2_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band1_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Att2_RW_read) ENABLED START #
"""
Return the RCU_00_Att2_RW attribute.
"""
def
read_RCU01_Band1_RW
(
self
):
self
.
_RCU_00_Att2_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Att2_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Band1_RW_read) ENABLED START #
return
self
.
_RCU_00_Att2_RW
"""
Return the RCU01_Band1_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att2_RW_read
self
.
_RCU01_Band1_RW
=
self
.
attribute_mapping
[
"
RCU01_Band1_RW
"
].
get_value
()
return
self
.
_RCU01_Band1_RW
def
write_RCU_00_Att2_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band1_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Att2_RW_write) ENABLED START #
"""
Set the RCU_00_Att2_RW attribute.
"""
def
write_RCU01_Band1_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Att2_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Band1_RW_write) ENABLED START #
self
.
_RCU_00_Att2_RW
=
value
"""
Set the RCU01_Band1_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Att2_RW_write
self
.
attribute_mapping
[
"
RCU01_Band1_RW
"
].
set_value
(
value
)
self
.
_RCU01_Band1_RW
=
value
def
read_RCU_00_Pwr_dig_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band1_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_dig_R_read) ENABLED START #
"""
Return the RCU_00_Pwr_dig_R attribute.
"""
def
read_RCU01_Band2_R
(
self
):
self
.
_RCU_00_Pwr_dig_R
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_dig_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Band2_R_read) ENABLED START #
return
self
.
_RCU_00_Pwr_dig_R
"""
Return the RCU01_Band2_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_dig_R_read
self
.
_RCU01_Band2_R
=
self
.
attribute_mapping
[
"
RCU01_Band2_R
"
].
get_value
()
return
self
.
_RCU01_Band2_R
def
read_RCU_00_Pwr_dig_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band2_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_dig_RW_read) ENABLED START #
"""
Return the RCU_00_Pwr_dig_RW attribute.
"""
def
read_RCU01_Band2_RW
(
self
):
self
.
_RCU_00_Pwr_dig_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_dig_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Band2_RW_read) ENABLED START #
return
self
.
_RCU_00_Pwr_dig_RW
"""
Return the RCU01_Band2_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_dig_RW_read
self
.
_RCU01_Band2_RW
=
self
.
attribute_mapping
[
"
RCU01_Band2_RW
"
].
get_value
()
return
self
.
_RCU01_Band2_RW
def
write_RCU_00_Pwr_dig_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band2_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_dig_RW_write) ENABLED START #
"""
Set the RCU_00_Pwr_dig_RW attribute.
"""
def
write_RCU01_Band2_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Pwr_dig_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Band2_RW_write) ENABLED START #
self
.
_RCU_00_Pwr_dig_RW
=
value
"""
Set the RCU01_Band2_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_dig_RW_write
self
.
attribute_mapping
[
"
RCU01_Band2_RW
"
].
set_value
(
value
)
self
.
_RCU01_Band2_RW
=
value
def
read_RCU_00_Pwr_Ant0_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Band2_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant0_R_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant0_R attribute.
"""
def
read_RCU01_Dither1_Frequency_R
(
self
):
self
.
_RCU_00_Pwr_Ant0_R
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant0_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Dither1_Frequency_R_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant0_R
"""
Return the RCU01_Dither1_Frequency_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant0_R_read
self
.
_RCU01_Dither1_Frequency_R
=
self
.
attribute_mapping
[
"
RCU01_Dither1_Frequency_R
"
].
get_value
()
return
self
.
_RCU01_Dither1_Frequency_R
def
read_RCU_00_Pwr_Ant0_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither1_Frequency_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant0_RW_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant0_RW attribute.
"""
def
read_RCU01_Dither1_Frequency_RW
(
self
):
self
.
_RCU_00_Pwr_Ant0_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant0_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Dither1_Frequency_RW_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant0_RW
"""
Return the RCU01_Dither1_Frequency_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant0_RW_read
self
.
_RCU01_Dither1_Frequency_RW
=
self
.
attribute_mapping
[
"
RCU01_Dither1_Frequency_RW
"
].
get_value
()
return
self
.
_RCU01_Dither1_Frequency_RW
def
write_RCU_00_Pwr_Ant0_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither1_Frequency_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant0_RW_write) ENABLED START #
"""
Set the RCU_00_Pwr_Ant0_RW attribute.
"""
def
write_RCU01_Dither1_Frequency_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant0_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Dither1_Frequency_RW_write) ENABLED START #
self
.
_RCU_00_Pwr_Ant0_RW
=
value
"""
Set the RCU01_Dither1_Frequency_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant0_RW_write
self
.
attribute_mapping
[
"
RCU01_Dither1_Frequency_RW
"
].
set_value
(
value
)
self
.
_RCU01_Dither1_Frequency_RW
=
value
def
read_RCU_00_Pwr_Ant1_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither1_Frequency_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant1_R_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant1_R attribute.
"""
def
read_RCU01_Dither2_Frequency_R
(
self
):
self
.
_RCU_00_Pwr_Ant1_R
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant1_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Dither2_Frequency_R_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant1_R
"""
Return the RCU01_Dither2_Frequency_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant1_R_read
self
.
_RCU01_Dither2_Frequency_R
=
self
.
attribute_mapping
[
"
RCU01_Dither2_Frequency_R
"
].
get_value
()
return
self
.
_RCU01_Dither2_Frequency_R
def
read_RCU_00_Pwr_Ant1_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither2_Frequency_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant1_RW_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant1_RW attribute.
"""
def
read_RCU01_Dither2_Frequency_RW
(
self
):
self
.
_RCU_00_Pwr_Ant1_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant1_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Dither2_Frequency_RW_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant1_RW
"""
Return the RCU01_Dither2_Frequency_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant1_RW_read
self
.
_RCU01_Dither2_Frequency_RW
=
self
.
attribute_mapping
[
"
RCU01_Dither2_Frequency_RW
"
].
get_value
()
return
self
.
_RCU01_Dither2_Frequency_RW
def
write_RCU_00_Pwr_Ant1_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither2_Frequency_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant1_RW_write) ENABLED START #
"""
Set the RCU_00_Pwr_Ant1_RW attribute.
"""
def
write_RCU01_Dither2_Frequency_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant1_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Dither2_Frequency_RW_write) ENABLED START #
self
.
_RCU_00_Pwr_Ant1_RW
=
value
"""
Set the RCU01_Dither2_Frequency_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant1_RW_write
self
.
attribute_mapping
[
"
RCU01_Dither2_Frequency_RW
"
].
set_value
(
value
)
self
.
_RCU01_Dither2_Frequency_RW
=
value
def
read_RCU_00_Pwr_Ant2_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Dither2_Frequency_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant2_R_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant2_R attribute.
"""
def
read_RCU01_LED0_R
(
self
):
self
.
_RCU_00_Pwr_Ant2_R
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant2_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_LED0_R_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant2_R
"""
Return the RCU01_LED0_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant2_R_read
self
.
_RCU01_LED0_R
=
self
.
attribute_mapping
[
"
RCU01_LED0_R
"
].
get_value
()
return
self
.
_RCU01_LED0_R
def
read_RCU_00_Pwr_Ant2_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_LED0_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant2_RW_read) ENABLED START #
"""
Return the RCU_00_Pwr_Ant2_RW attribute.
"""
def
read_RCU01_LED0_RW
(
self
):
self
.
_RCU_00_Pwr_Ant2_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant2_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_LED0_RW_read) ENABLED START #
return
self
.
_RCU_00_Pwr_Ant2_RW
"""
Return the RCU01_LED0_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant2_RW_read
self
.
_RCU01_LED0_RW
=
self
.
attribute_mapping
[
"
RCU01_LED0_RW
"
].
get_value
()
return
self
.
_RCU01_LED0_RW
def
write_RCU_00_Pwr_Ant2_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_LED0_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Pwr_Ant2_RW_write) ENABLED START #
"""
Set the RCU_00_Pwr_Ant2_RW attribute.
"""
def
write_RCU01_LED0_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Pwr_Ant2_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_LED0_RW_write) ENABLED START #
self
.
_RCU_00_Pwr_Ant2_RW
=
value
"""
Set the RCU01_LED0_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Pwr_Ant2_RW_write
self
.
attribute_mapping
[
"
RCU01_LED0_RW
"
].
set_value
(
value
)
self
.
_RCU01_LED0_RW
=
value
def
read_RCU_00_Band0_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_LED0_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Band0_R_read) ENABLED START #
"""
Return the RCU_00_Band0_R attribute.
"""
def
read_RCU01_Pwr_dig_R
(
self
):
self
.
_RCU_00_Band0_R
=
self
.
attribute_mapping
[
"
_RCU_00_Band0_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Pwr_dig_R_read) ENABLED START #
return
self
.
_RCU_00_Band0_R
"""
Return the RCU01_Pwr_dig_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band0_R_read
self
.
_RCU01_Pwr_dig_R
=
self
.
attribute_mapping
[
"
RCU01_Pwr_dig_R
"
].
get_value
()
return
self
.
_RCU01_Pwr_dig_R
def
read_RCU_00_Band0_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Pwr_dig_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Band0_RW_read) ENABLED START #
"""
Return the RCU_00_Band0_RW attribute.
"""
def
read_RCU01_Pwr_dig_RW
(
self
):
self
.
_RCU_00_Band0_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Band0_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Pwr_dig_RW_read) ENABLED START #
return
self
.
_RCU_00_Band0_RW
"""
Return the RCU01_Pwr_dig_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band0_RW_read
self
.
_RCU01_Pwr_dig_RW
=
self
.
attribute_mapping
[
"
RCU01_Pwr_dig_RW
"
].
get_value
()
return
self
.
_RCU01_Pwr_dig_RW
def
write_RCU_00_Band0_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Pwr_dig_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Band0_RW_write) ENABLED START #
"""
Set the RCU_00_Band0_RW attribute.
"""
def
write_RCU01_Pwr_dig_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Band0_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Pwr_dig_RW_write) ENABLED START #
self
.
_RCU_00_Band0_RW
=
value
"""
Set the RCU01_Pwr_dig_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band0_RW_write
self
.
attribute_mapping
[
"
RCU01_Pwr_dig_RW
"
].
set_value
(
value
)
self
.
_RCU01_Pwr_dig_RW
=
value
def
read_RCU_00_Band1_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Pwr_dig_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Band1_R_read) ENABLED START #
"""
Return the RCU_00_Band1_R attribute.
"""
def
read_RCU01_Temp_R
(
self
):
self
.
_RCU_00_Band1_R
=
self
.
attribute_mapping
[
"
_RCU_00_Band1_R
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Temp_R_read) ENABLED START #
return
self
.
_RCU_00_Band1_R
"""
Return the RCU01_Temp_R attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band1_R_read
self
.
_RCU01_Temp_R
=
self
.
attribute_mapping
[
"
RCU01_Temp_R
"
].
get_value
()
return
self
.
_RCU01_Temp_R
def
read_RCU_00_Band1_RW
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Temp_R_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Band1_RW_read) ENABLED START #
"""
Return the RCU_00_Band1_RW attribute.
"""
def
read_RCU01_Temp_RW
(
self
):
self
.
_RCU_00_Band1_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Band1_RW
"
].
get_value
()
# PROTECTED REGION ID(RCUSCC.RCU01_Temp_RW_read) ENABLED START #
return
self
.
_RCU_00_Band1_RW
"""
Return the RCU01_Temp_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band1_RW_read
self
.
_RCU01_Temp_RW
=
self
.
attribute_mapping
[
"
RCU01_Temp_RW
"
].
get_value
()
return
self
.
_RCU01_Temp_RW
def
write_RCU_00_Band1_RW
(
self
,
value
):
# PROTECTED REGION END # // RCUSCC.RCU01_Temp_RW_read
# PROTECTED REGION ID(RCUSCC.RCU_00_Band1_RW_write) ENABLED START #
"""
Set the RCU_00_Band1_RW attribute.
"""
def
write_RCU01_Temp_RW
(
self
,
value
):
self
.
attribute_mapping
[
"
_RCU_00_Band1_RW
"
].
set_value
(
value
)
# PROTECTED REGION ID(RCUSCC.RCU01_Temp_RW_write) ENABLED START #
self
.
_RCU_00_Band1_RW
=
value
"""
Set the RCU01_Temp_RW attribute.
"""
# PROTECTED REGION END # // RCUSCC.RCU_00_Band1_RW_write
self
.
attribute_mapping
[
"
RCU01_Temp_RW
"
].
set_value
(
value
)
self
.
_RCU01_Temp_RW
=
value
def
read_RCU_00_Band2_R
(
self
):
# PROTECTED REGION END # // RCUSCC.RCU01_Temp_RW_write
# PROTECTED REGION ID(RCUSCC.RCU_00_Band2_R_read) ENABLED START #
"""
Return the RCU_00_Band2_R attribute.
"""
self
.
_RCU_00_Band2_R
=
self
.
attribute_mapping
[
"
_RCU_00_Band2_R
"
].
get_value
()
return
self
.
_RCU_00_Band2_R
# PROTECTED REGION END # // RCUSCC.RCU_00_Band2_R_read
def
read_RCU_00_Band2_RW
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_Band2_RW_read) ENABLED START #
"""
Return the RCU_00_Band2_RW attribute.
"""
self
.
_RCU_00_Band2_RW
=
self
.
attribute_mapping
[
"
_RCU_00_Band2_RW
"
].
get_value
()
return
self
.
_RCU_00_Band2_RW
# PROTECTED REGION END # // RCUSCC.RCU_00_Band2_RW_read
def
write_RCU_00_Band2_RW
(
self
,
value
):
# PROTECTED REGION ID(RCUSCC.RCU_00_Band2_RW_write) ENABLED START #
"""
Set the RCU_00_Band2_RW attribute.
"""
self
.
attribute_mapping
[
"
_RCU_00_Band2_RW
"
].
set_value
(
value
)
self
.
_RCU_00_Band2_RW
=
value
# PROTECTED REGION END # // RCUSCC.RCU_00_Band2_RW_write
def
read_RCU_00_LED0_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED0_R_read) ENABLED START #
"""
Return the RCU_00_LED0_R attribute.
"""
self
.
_RCU_00_LED0_R
=
self
.
attribute_mapping
[
"
_RCU_00_LED0_R
"
].
get_value
()
return
self
.
_RCU_00_LED0_R
# PROTECTED REGION END # // RCUSCC.RCU_00_LED0_R_read
def
read_RCU_00_LED0_RW
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED0_RW_read) ENABLED START #
"""
Return the RCU_00_LED0_RW attribute.
"""
self
.
_RCU_00_LED0_RW
=
self
.
attribute_mapping
[
"
_RCU_00_LED0_RW
"
].
get_value
()
return
self
.
_RCU_00_LED0_RW
# PROTECTED REGION END # // RCUSCC.RCU_00_LED0_RW_read
def
write_RCU_00_LED0_RW
(
self
,
value
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED0_RW_write) ENABLED START #
"""
Set the RCU_00_LED0_RW attribute.
"""
self
.
attribute_mapping
[
"
_RCU_00_LED0_RW
"
].
set_value
(
value
)
self
.
_RCU_00_LED0_RW
=
value
# PROTECTED REGION END # // RCUSCC.RCU_00_LED0_RW_write
def
read_RCU_00_LED1_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED1_R_read) ENABLED START #
"""
Return the RCU_00_LED1_R attribute.
"""
self
.
_RCU_00_LED1_R
=
self
.
attribute_mapping
[
"
_RCU_00_LED1_R
"
].
get_value
()
return
self
.
_RCU_00_LED1_R
# PROTECTED REGION END # // RCUSCC.RCU_00_LED1_R_read
def
read_RCU_00_LED1_RW
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED1_RW_read) ENABLED START #
"""
Return the RCU_00_LED1_RW attribute.
"""
self
.
_RCU_00_LED1_RW
=
self
.
attribute_mapping
[
"
_RCU_00_LED1_RW
"
].
get_value
()
return
self
.
_RCU_00_LED1_RW
# PROTECTED REGION END # // RCUSCC.RCU_00_LED1_RW_read
def
write_RCU_00_LED1_RW
(
self
,
value
):
# PROTECTED REGION ID(RCUSCC.RCU_00_LED1_RW_write) ENABLED START #
"""
Set the RCU_00_LED1_RW attribute.
"""
self
.
attribute_mapping
[
"
_RCU_00_LED1_RW
"
].
set_value
(
value
)
self
.
_RCU_00_LED1_RW
=
value
# PROTECTED REGION END # // RCUSCC.RCU_00_LED1_RW_write
def
read_RCU_00_ADC_lock0_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_ADC_lock0_R_read) ENABLED START #
"""
Return the RCU_00_ADC_lock0_R attribute.
"""
self
.
_RCU_00_ADC_lock0_R
=
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock0_R
"
].
get_value
()
return
self
.
_RCU_00_ADC_lock0_R
# PROTECTED REGION END # // RCUSCC.RCU_00_ADC_lock0_R_read
def
read_RCU_00_ADC_lock1_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_ADC_lock1_R_read) ENABLED START #
"""
Return the RCU_00_ADC_lock1_R attribute.
"""
self
.
_RCU_00_ADC_lock1_R
=
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock1_R
"
].
get_value
()
return
self
.
_RCU_00_ADC_lock1_R
# PROTECTED REGION END # // RCUSCC.RCU_00_ADC_lock1_R_read
def
read_RCU_00_ADC_lock2_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_ADC_lock2_R_read) ENABLED START #
"""
Return the RCU_00_ADC_lock2_R attribute.
"""
self
.
_RCU_00_ADC_lock2_R
=
self
.
attribute_mapping
[
"
_RCU_00_ADC_lock2_R
"
].
get_value
()
return
self
.
_RCU_00_ADC_lock2_R
# PROTECTED REGION END # // RCUSCC.RCU_00_ADC_lock2_R_read
def
read_RCU_00_V_2v5_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_V_2v5_R_read) ENABLED START #
"""
Return the RCU_00_V_2v5_R attribute.
"""
self
.
_RCU_00_V_2v5_R
=
self
.
attribute_mapping
[
"
_RCU_00_V_2v5_R
"
].
get_value
()
return
self
.
_RCU_00_V_2v5_R
# PROTECTED REGION END # // RCUSCC.RCU_00_V_2v5_R_read
def
read_RCU_00_I_Ant0_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_I_Ant0_R_read) ENABLED START #
"""
Return the RCU_00_I_Ant0_R attribute.
"""
self
.
_RCU_00_I_Ant0_R
=
self
.
attribute_mapping
[
"
_RCU_00_I_Ant0_R
"
].
get_value
()
return
self
.
_RCU_00_I_Ant0_R
# PROTECTED REGION END # // RCUSCC.RCU_00_I_Ant0_R_read
def
read_RCU_00_I_Ant1_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_I_Ant1_R_read) ENABLED START #
"""
Return the RCU_00_I_Ant1_R attribute.
"""
self
.
_RCU_00_I_Ant1_R
=
self
.
attribute_mapping
[
"
_RCU_00_I_Ant1_R
"
].
get_value
()
return
self
.
_RCU_00_I_Ant1_R
# PROTECTED REGION END # // RCUSCC.RCU_00_I_Ant1_R_read
def
read_RCU_00_I_Ant2_R
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU_00_I_Ant2_R_read) ENABLED START #
"""
Return the RCU_00_I_Ant2_R attribute.
"""
self
.
_RCU_00_I_Ant2_R
=
self
.
attribute_mapping
[
"
_RCU_00_I_Ant2_R
"
].
get_value
()
return
self
.
_RCU_00_I_Ant2_R
# PROTECTED REGION END # // RCUSCC.RCU_00_I_Ant2_R_read
# --------
# --------
# Commands
# Commands
...
@@ -809,6 +607,30 @@ class RCUSCC(Device):
...
@@ -809,6 +607,30 @@ class RCUSCC(Device):
self
.
set_state
(
DevState
.
INIT
)
self
.
set_state
(
DevState
.
INIT
)
# PROTECTED REGION END # // RCUSCC.Init
# PROTECTED REGION END # // RCUSCC.Init
@command
(
)
@DebugIt
()
def
RCU01_RCU_off
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU01_RCU_off) ENABLED START #
"""
:return:None
"""
self
.
attribute_mapping
[
"
RCU01_RCU_off
"
]()
# PROTECTED REGION END # // RCUSCC.RCU01_RCU_off
@command
(
)
@DebugIt
()
def
RCU01_RCU_on
(
self
):
# PROTECTED REGION ID(RCUSCC.RCU01_RCU_on) ENABLED START #
"""
:return:None
"""
self
.
attribute_mapping
[
"
RCU01_RCU_on
"
]()
# PROTECTED REGION END # // RCUSCC.RCU01_RCU_on
# ----------
# ----------
# Run server
# Run server
# ----------
# ----------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment