Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CryoCooler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software Control System
Tango devices
Temperature
CryoCooler
Commits
280d0b79
Commit
280d0b79
authored
Feb 28, 2017
by
Jacques Gouno
Browse files
Options
Downloads
Patches
Plain Diff
TANGODEVIC-1676: updated code - CryoCoolerIneterface.cpp
parent
aaba0bfd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/CryoCoolerInterface.cpp
+54
-1
54 additions, 1 deletion
src/CryoCoolerInterface.cpp
with
54 additions
and
1 deletion
src/CryoCoolerInterface.cpp
+
54
−
1
View file @
280d0b79
...
...
@@ -625,6 +625,59 @@ namespace CryoCooler_ns
//-----------------------------------------------
void
CryoCoolerInterface
::
periodic_job_i
(
void
)
{
DEBUG_STREAM
<<
"CryoCoolerInterface::periodic_job_i trying to read PLC Data "
<<
std
::
endl
;
long
l_com_error
=
0
;
#ifdef _DB_SEGMENTATION_BY_104_
//- hwp_rd_start is alive
if
(
hwp_rd_start
)
{
l_com_error
+=
hwp_rd_start
->
get_com_error
();
this
->
com_state
=
hwp_rd_start
->
get_com_state
();
if
(
com_state
==
HWProxy_ns
::
HWP_COMMUNICATION_ERROR
)
{
this
->
com_status
=
hwp_rd_start
->
get_com_status
();
this
->
last_error
=
hwp_rd_start
->
get_last_error
();
return
;
}
}
//- hwp_rd_end is alive
if
(
hwp_rd_end
)
{
l_com_error
+=
hwp_rd_end
->
get_com_error
();
this
->
com_state
=
hwp_rd_end
->
get_com_state
();
if
(
com_state
==
HWProxy_ns
::
HWP_COMMUNICATION_ERROR
)
{
this
->
com_status
=
hwp_rd_end
->
get_com_status
();
this
->
last_error
=
hwp_rd_end
->
get_last_error
();
return
;
}
}
#else
if
(
hwp
)
{
l_com_error
+=
hwp
->
get_com_error
();
this
->
com_state
=
hwp
->
get_com_state
();
if
(
com_state
==
HWProxy_ns
::
HWP_COMMUNICATION_ERROR
)
{
this
->
com_status
=
hwp
->
get_com_status
();
this
->
last_error
=
hwp
->
get_last_error
();
return
;
}
}
#endif
//- hwp_wr is alive
if
(
hwp_wr
)
{
l_com_error
+=
hwp_wr
->
get_com_error
();
this
->
com_state
=
hwp_wr
->
get_com_state
();
if
(
com_state
==
HWProxy_ns
::
HWP_COMMUNICATION_ERROR
)
{
this
->
com_status
=
hwp_wr
->
get_com_status
();
this
->
last_error
=
hwp_wr
->
get_last_error
();
return
;
}
}
this
->
com_error
=
l_com_error
;
}
}
//- namespace
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