File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ <h3>Using Joystick Button
24
24
</ h3 >
25
25
< div class ="brief "> How to use joystick buttons.</ div >
26
26
</ div >
27
+
27
28
< div class ="example " data-file ="doublesolenoud.xml ">
28
29
< h3 > Double Solenoid
29
30
< div class ="pull-right inline-block ">
@@ -33,6 +34,15 @@ <h3>Double Solenoid
33
34
< div class ="brief "> How to use a joystick button to control a double solenoid pneumatic valve.</ div >
34
35
</ div >
35
36
37
+ < div class ="example " data-file ="limitswitch.xml ">
38
+ < h3 > Limit Switch
39
+ < div class ="pull-right inline-block ">
40
+ < button type ="button " class ="btn btn-success load "> Load</ button >
41
+ </ div >
42
+ </ h3 >
43
+ < div class ="brief "> How to use a limit switch to control a motor.</ div >
44
+ </ div >
45
+
36
46
</ div >
37
47
< div class ="modal-footer ">
38
48
< button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
Original file line number Diff line number Diff line change
1
+ <xml >
2
+ <block type =" init_declare" id =" 131" deletable =" false" x =" 2" y =" 19" >
3
+ <statement name =" WHAT" >
4
+ <block type =" declare_motor_controller" id =" 146" >
5
+ <field name =" NAME" >Roller1</field >
6
+ <field name =" CONTROLLER_TYPE" >Victor</field >
7
+ <field name =" PORT" >1</field >
8
+ <next >
9
+ <block type =" declare_digital_input" id =" 152" >
10
+ <field name =" NAME" >LimitSwitch1</field >
11
+ <field name =" PORT" >1</field >
12
+ </block >
13
+ </next >
14
+ </block >
15
+ </statement >
16
+ </block >
17
+ <block type =" teleop_init" id =" 134" deletable =" false" x =" 4" y =" 137" ></block >
18
+ <block type =" auto_init" id =" 132" deletable =" false" x =" 466" y =" 122" ></block >
19
+ <block type =" auto_perodic" id =" 133" deletable =" false" x =" 466" y =" 191" ></block >
20
+ <block type =" teleop_perodic" id =" 135" deletable =" false" x =" 7" y =" 223" >
21
+ <statement name =" WHAT" >
22
+ <block type =" controls_if" id =" 159" inline =" false" >
23
+ <mutation else =" 1" ></mutation >
24
+ <value name =" IF0" >
25
+ <block type =" get_digital_input_value" id =" 162" >
26
+ <field name =" NAME" >LimitSwitch1</field >
27
+ </block >
28
+ </value >
29
+ <statement name =" DO0" >
30
+ <block type =" move_motor_controller" id =" 188" inline =" true" >
31
+ <field name =" NAME" >Roller1</field >
32
+ <value name =" SPEED" >
33
+ <block type =" math_number" id =" 189" >
34
+ <field name =" NUM" >1</field >
35
+ </block >
36
+ </value >
37
+ </block >
38
+ </statement >
39
+ <statement name =" ELSE" >
40
+ <block type =" stop_motor_controller" id =" 177" >
41
+ <field name =" NAME" >Roller1</field >
42
+ </block >
43
+ </statement >
44
+ </block >
45
+ </statement >
46
+ </block >
47
+ </xml >
You can’t perform that action at this time.
0 commit comments