Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sample_changer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
Bliss
Tango Servers
sample_changer
Commits
a01a68d0
Commit
a01a68d0
authored
4 years ago
by
bliss administrator
Browse files
Options
Downloads
Patches
Plain Diff
Uncommitted modifications from October 2019.
parent
e0bedb9b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
SampleChangerDS/TomoSampleChanger.py
+31
-10
31 additions, 10 deletions
SampleChangerDS/TomoSampleChanger.py
SampleChangerDS/TomoSampleChanger.xmi
+4
-1
4 additions, 1 deletion
SampleChangerDS/TomoSampleChanger.xmi
with
35 additions
and
11 deletions
SampleChangerDS/TomoSampleChanger.py
+
31
−
10
View file @
a01a68d0
...
...
@@ -138,7 +138,7 @@ class TomoSampleChanger(Device):
self
.
is_error
=
True
self
.
is_moving
=
False
self
.
is_loaded
=
False
#
self.is_loaded = False
self
.
write_properties
()
#
...
...
@@ -372,10 +372,21 @@ class TomoSampleChanger(Device):
try
:
# initialise the robot access
self
.
robot
=
id19Controller
.
ID19Controller
(
controllerAssociated
=
'
id19robot
'
,
logOnController
=
False
)
self
.
robot
=
id19Controller
.
ID19Controller
(
controllerAssociated
=
'
id19robot
'
,
logOnController
=
False
)
# Normal
self
.
robot
.
cs8LibraryName
=
'
id19tomo
'
self
.
robot
.
autoFirmwareUpdate
()
self
.
robot
.
_prog_display
.
threadOnController
()
self
.
robot
.
_prog_key_handler
.
threadOnController
()
self
.
robot
.
allLightOn
()
time
.
sleep
(
1
)
self
.
robot
.
allLightOff
()
self
.
robot
.
torqueMaxAllowed
=
{
'
j1
'
:
9990
,
'
j2
'
:
9990
,
'
j3
'
:
9990
,
'
j4
'
:
9990
,
'
j5
'
:
9990
,
'
j6
'
:
9990
}
self
.
robot
.
torqueMonitor
.
threadOnController
()
# If emmergency function used, torque monitor must be reactivated.
# set the robot movements to full speed
self
.
robot
.
speed
=
100
print
(
"
Controller initialized!!!!!!!
"
)
...
...
@@ -498,7 +509,11 @@ class TomoSampleChanger(Device):
_state
=
PyTango
.
DevState
.
DISABLE
else
:
if
self
.
is_moving
==
True
:
_state
=
PyTango
.
DevState
.
MOVING
# pause mode activated
if
self
.
robot
.
power
()
==
0
:
_state
=
PyTango
.
DevState
.
PAUSE
else
:
_state
=
PyTango
.
DevState
.
MOVING
else
:
if
self
.
attr_ParkingPosition_read
==
False
:
_state
=
PyTango
.
DevState
.
FAULT
...
...
@@ -527,14 +542,17 @@ class TomoSampleChanger(Device):
if
state
==
PyTango
.
DevState
.
DISABLE
:
self
.
_status
+=
"
DISABLED
"
else
:
if
state
==
PyTango
.
DevState
.
MOVING
:
self
.
_status
+=
"
MOVING
"
self
.
_status
+=
"
\n\n
"
+
self
.
last_task
if
state
==
PyTango
.
DevState
.
PAUSE
:
self
.
_status
+=
"
PAUSE
"
else
:
if
state
==
PyTango
.
DevState
.
ON
:
self
.
_status
+=
"
ON
"
if
state
==
PyTango
.
DevState
.
MOVING
:
self
.
_status
+=
"
MOVING
"
self
.
_status
+=
"
\n\n
"
+
self
.
last_task
else
:
self
.
_status
+=
"
UNKNOWN
"
if
state
==
PyTango
.
DevState
.
ON
:
self
.
_status
+=
"
ON
"
else
:
self
.
_status
+=
"
UNKNOWN
"
self
.
_status
+=
"
\n
"
if
state
==
PyTango
.
DevState
.
FAULT
:
...
...
@@ -569,7 +587,10 @@ class TomoSampleChanger(Device):
self
.
_status
+=
"
\n
Reading of the robot status failed
\n
"
self
.
_status
+=
"
\n
"
self
.
_status
+=
str
(
self
.
state_error
)
else
:
if
state
==
PyTango
.
DevState
.
PAUSE
:
self
.
_status
+=
"
\n
Go to the robot teach pendant and follows instructions
\n
"
self
.
set_status
(
self
.
_status
)
return
self
.
_status
...
...
This diff is collapsed.
Click to expand it.
SampleChangerDS/TomoSampleChanger.xmi
+
4
−
1
View file @
a01a68d0
...
...
@@ -211,10 +211,13 @@
<states
name=
"MOVING"
description=
"Moving to load, unload or align"
>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</states>
<states
name=
"PAUSE"
description=
"Waiting for restart"
>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</states>
<states
name=
"FAULT"
description=
"Requested movement failed."
>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</states>
<states
name=
"DISABLE"
description=
"annot move due to active interlock condition."
>
<states
name=
"DISABLE"
description=
"
C
annot move due to active interlock condition."
>
<status
abstract=
"false"
inherited=
"false"
concrete=
"true"
concreteHere=
"true"
/>
</states>
<preferences
docHome=
"./doc_html"
makefileHome=
"/segfs/tango/cppserver/env"
/>
...
...
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