Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Factory_VGR
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
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
fischertechnik examples
Training models
Factory_VGR
Commits
017cabfb
Commit
017cabfb
authored
2 years ago
by
ft-Demo
Browse files
Options
Downloads
Patches
Plain Diff
commit by robo pro coding
parent
74c9fa11
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/GUI.blockly
+250
-259
250 additions, 259 deletions
lib/GUI.blockly
lib/GUI.py
+18
-12
18 additions, 12 deletions
lib/GUI.py
lib/VGR.blockly
+0
-7
0 additions, 7 deletions
lib/VGR.blockly
lib/VGR.py
+0
-1
0 additions, 1 deletion
lib/VGR.py
with
268 additions
and
279 deletions
lib/GUI.blockly
+
250
−
259
View file @
017cabfb
This diff is collapsed.
Click to expand it.
lib/GUI.py
+
18
−
12
View file @
017cabfb
...
...
@@ -43,6 +43,7 @@ def loop_th():
global
_tr0
,
_tr
,
_dg
,
Loop
while
True
:
if
Loop
:
grip
()
display
.
set_attr
(
"
txt_button_acknowledge.enabled
"
,
str
(
False
).
lower
())
display
.
set_attr
(
"
txt_button_park.enabled
"
,
str
(
False
).
lower
())
display
.
set_attr
(
"
txt_button_test.enabled
"
,
str
(
False
).
lower
())
...
...
@@ -51,20 +52,13 @@ def loop_th():
display
.
set_attr
(
"
txt_button_pos0.enabled
"
,
str
(
False
).
lower
())
display
.
set_attr
(
"
txt_button_pos1.enabled
"
,
str
(
False
).
lower
())
display
.
set_attr
(
"
txt_button_pos2.enabled
"
,
str
(
False
).
lower
())
moveAbs_VGR_P123_name
(
'
SLD white
'
)
setDownPickUp
()
moveAbs_VGR_P123_name
(
'
SLD red
'
)
release
()
moveRel_VGR_S123
(
0
,
150
,
0
)
time
.
sleep
(
1
)
moveRel_VGR_S123
(
0
,
-
150
,
0
)
grip
()
moveRel_VGR_S123
(
0
,
150
,
0
)
setDownPickUp
()
moveAbs_VGR_P123_name
(
'
SLD blue
'
)
release
()
moveRel_VGR_S123
(
0
,
-
150
,
0
)
setDownPickUp
()
time
.
sleep
(
1
)
moveRel_VGR_S123
(
0
,
-
150
,
0
)
grip
()
moveRel_VGR_S123
(
0
,
150
,
0
)
display
.
set_attr
(
"
txt_button_acknowledge.enabled
"
,
str
(
True
).
lower
())
display
.
set_attr
(
"
txt_button_park.enabled
"
,
str
(
True
).
lower
())
display
.
set_attr
(
"
txt_button_test.enabled
"
,
str
(
True
).
lower
())
...
...
@@ -73,7 +67,19 @@ def loop_th():
display
.
set_attr
(
"
txt_button_pos0.enabled
"
,
str
(
True
).
lower
())
display
.
set_attr
(
"
txt_button_pos1.enabled
"
,
str
(
True
).
lower
())
display
.
set_attr
(
"
txt_button_pos2.enabled
"
,
str
(
True
).
lower
())
time
.
sleep
(
1
)
release
()
def
setDownPickUp
():
global
_tr0
,
_tr
,
_dg
,
Loop
moveRel_VGR_S123
(
0
,
50
,
0
)
release
()
time
.
sleep
(
1
)
moveRel_VGR_S123
(
0
,
-
200
,
0
)
time
.
sleep
(
1
)
moveRel_VGR_S123
(
0
,
200
,
0
)
grip
()
moveRel_VGR_S123
(
0
,
-
200
,
0
)
def
on_txt_button_grip_clicked
(
event
):
...
...
This diff is collapsed.
Click to expand it.
lib/VGR.blockly
+
0
−
7
View file @
017cabfb
...
...
@@ -447,13 +447,6 @@
<field name="NUM">300</field>
</shadow>
</value>
<next>
<block type="import_function_noreturn" id="3RjX:N;bsRitY|QUV(Tq">
<mutation parentId="lLp,7M[A#R-Sg7jVc:u("/>
<field name="name">moveRef_VGR_S23</field>
<data>lLp,7M[A#R-Sg7jVc:u(</data>
</block>
</next>
</block>
</next>
</block>
...
...
This diff is collapsed.
Click to expand it.
lib/VGR.py
+
0
−
1
View file @
017cabfb
...
...
@@ -76,7 +76,6 @@ def grip():
time
.
sleep
(
0.2
)
TXT_VGR_M_O8_magnetic_valve
.
on
()
time
.
sleep
(
0.3
)
moveRef_VGR_S23
()
def
release
():
...
...
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