Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PIController
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
Motion
PI
PIController
Commits
338d1abe
Commit
338d1abe
authored
Nov 21, 2022
by
DESGRANGES
Browse files
Options
Downloads
Patches
Plain Diff
[ICATHALES-415] DTT
parent
cb497d3f
No related branches found
No related tags found
1 merge request
!3
[PIController] Add PIAxis commands and attributes
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/config_PIController.txt
+0
-6
0 additions, 6 deletions
test/config_PIController.txt
test/result-test-picontroller_dtt.txt
+39
-2
39 additions, 2 deletions
test/result-test-picontroller_dtt.txt
test/test-picontroller_dtt.cfg
+26
-1
26 additions, 1 deletion
test/test-picontroller_dtt.cfg
with
65 additions
and
9 deletions
test/config_PIController.txt
+
0
−
6
View file @
338d1abe
...
...
@@ -25,16 +25,10 @@ model=(c)MOCK, SIMULATOR, 111111111, 1.0.0.0
servo=1
pos=10
vel=0.500000
ERR?
ERR?
ERR?
accel=2.000000
decel=2.000000
moving=0
ron=1
ERR?
ERR?
ERR?
err=0
limit_switch=0x9004
is_initialized=1
...
...
This diff is collapsed.
Click to expand it.
test/result-test-picontroller_dtt.txt
+
39
−
2
View file @
338d1abe
...
...
@@ -52,7 +52,7 @@ Action: WAIT state param: ['0.1'] - Check: DIFF value: MOVING delta:
last raw result: ON
last check result: True
Action: WRITE
V
elocity param: ['2.0'] - No check
Action: WRITE
v
elocity param: ['2.0'] - No check
raw result: OK
Action: WRITE acceleration param: ['2.0'] - No check
...
...
@@ -187,9 +187,46 @@ Action: READ forwardLimitSwitch param: [''] - Check: EQUAL value: 1 delta:
raw result: True
check result: True
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
PART V - Intialise the position of reference / ICATHALES-415
---------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------
Action: CMD INIT - No check
raw result: OK
------------------------
Check State is ON
------------------------
Action: READ state param: [''] - Check: EQUAL value: ON delta:
raw result: ON
check result: True
------------------------
Check InitialiseReferencePosition
------------------------
Action: CMD InitialiseReferencePosition - No check
raw result: OK
------------------------
------------------------
Wait (while state is Moving due to change position)
------------------------
Action: WAIT state param: ['0.1'] - Check: DIFF value: MOVING delta:
last raw result: ON
last check result: True
Action: READ position param: [''] - Check: EQUAL value: 0 delta:
raw result: 10.0
check result: False
Action: READ velocity param: [''] - Check: EQUAL value: 0.5 delta:
raw result: 0.5
check result: True
------------------------ END OF TEST --------------------------
---------------------------------------------------------------------
#### FINAL REPORT ####
Checks OK:
19
-- checks KO:
0
Checks OK:
22
-- checks KO:
1
---------------------------------------------------------------------
This diff is collapsed.
Click to expand it.
test/test-picontroller_dtt.cfg
+
26
−
1
View file @
338d1abe
...
...
@@ -38,7 +38,7 @@ WRITE;position;REAL;2.0;;;
@------------------------
WAIT
;state;STATE;0.1;DIFF;MOVING;
#
WRITE
;
V
elocity;REAL;2.0;;;
WRITE
;
v
elocity;REAL;2.0;;;
WRITE
;acceleration;REAL;2.0;;;
WRITE
;deceleration;REAL;2.0;;;
#
...
...
@@ -117,3 +117,28 @@ WAIT;state;STATE;0.1;DIFF;MOVING;
READ
;backwardLimitSwitch;BOOL;;EQUAL;0;
READ
;forwardLimitSwitch;BOOL;;EQUAL;1;
#
@---------------------------------------------------------------------------------------
@---------------------------------------------------------------------------------------
@
PART
V
-
Intialise
the
position
of
reference
/
ICATHALES-415
@---------------------------------------------------------------------------------------
@---------------------------------------------------------------------------------------
#
CMD
;INIT;;;;;
@------------------------
@Check
State
is
ON
@------------------------
READ
;state;STATE;;EQUAL;ON;
#
@------------------------
@Check
InitialiseReferencePosition
@------------------------
CMD
;InitialiseReferencePosition;;;;;
@------------------------
@------------------------
@Wait
(while
state
is
Moving
due
to
change
position)
@------------------------
WAIT
;state;STATE;0.1;DIFF;MOVING;
#
READ
;position;REAL;;EQUAL;0;
READ
;velocity;REAL;;EQUAL;0.5;
#
\ No newline at end of file
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