![Zaber T-JOY Скачать руководство пользователя страница 19](http://html1.mh-extra.com/html/zaber/t-joy/t-joy_user-manual_916676019.webp)
Copyright © Zaber Technologies Inc.
Example 2: Programming two keys to control the motion of an additional unit:
You can program two keys to control the motion of an additional unit. In the following sequence of
commands, key 1 and key 2 are programmed to control unit 5, an additional unit beyond units 2, 3, and 4
which are controlled by joystick manipulation. After executing this sequence of instructions, key 1 can be
used to move unit 5 in the positive direction, slowly at first, but faster if you hold the key down for longer
than 1 second. Key 2 will exhibit the identical behavior but with motion in the negative direction. When
either key is released the motion will stop. Assuming that the joystick is unit #1, the programming sequence
is as follows:
Unit
Command
Data
Explanation of command
1
30
11
Program key 1, event 1 to trigger the instruction…
5
22
1000
…“Unit 5, Move at Constant Velocity, 1000”
1
30
12
Program key 1, event 2 to trigger the instruction…
5
23
0
…“Unit 5, Stop”
1
30
13
Program key 1, event 3 to trigger the instruction…
5
22
4000
…“Unit 5, Move at Constant Velocity, 4000”
1
30
14
Program key 1, event 4 to trigger the instruction…
1
23
0
…“Unit 5, Stop”
1
30
21
Program key 2, event 1 to trigger the instruction…
5
22
-1000
…“Unit 5, Move at Constant Velocity, -1000”
1
30
22
Program key 2, event 2 to trigger the instruction…
5
23
0
…“Unit 5, Stop”
1
30
23
Program key 2, event 3 to trigger the instruction…
5
22
-4000
…“Unit 5, Move at Constant Velocity, -4000”
1
30
24
Program key 2, event 4 to trigger the instruction…
5
23
0
…“Unit 5, Stop”
Page 19 of 32