11-8 Fibre-Optic Network
Network Programming
Trio Motion Technology
Examples of network programming
Example 1
Consider a four axis machine which is 30m long. The operator has need to make
machine adjustments at either end of the machine, thus requiring two stations
for operator input. This can be achieved using a Motion Coordinator, four Servo
Daughter Boards and two membrane keypads. The two keypads and the Motion
Coordinator will be networked together so input from both keypads is given to
the Motion Coordinator and any resulting change in machine parameters is dis-
played at either end of the machine.
The network should be connected as shown below.
Network Example 1
The program could look something like this:
length=2
' Set offset on first keypad to 2, i.e. send key press to MC
SEND(10,2,11)
' Set offset on second keypad to 1, i.e. send key press to MC
SEND(11,2,10)
' Clear first display & make cursor invisible
PRINT #10,CHR(12);CHR(14);CHR(20)
' Clear second display & make cursor invisible
PRINT #11,CHR(12);CHR(14);CHR(20)
' setup display
PRINT #10,"SPEED:":PRINT #10,"LENGTH:"
PRINT #11,"SPEED:":PRINT #11,"LENGTH:"
REPEAT
IF KEY#3 THEN GOSUB read_key ELSE GOSUB do_motion
UNTIL FALSE
ENCODER
V+ V- R
0v
5 4 3 2 1
9 8 7 6
ENCODER
V+ V- R
0v
5 4 3 2 1
9 8 7 6
Trio
8
9
10
11
12
13
14
15
0
OKNET
STATUS
1
2
3
4
5
6
7
Trio Motion Technology
4
4
4
6
6
6
Trio Motion Technology