Station Routing
This example demonstrates the most basic Station to Station routing. There are two stations which dwell for a period of time before sending movers to the next station in the sequence
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 | MS_RUN: // ----------------------------------- OPERATING
// Station 0 Logic
IF Station[0].MoverInPosition THEN
StationTimer[0]( IN := TRUE, PT := T#1000MS );
IF StationTimer[0].Q THEN
Station[0].CurrentMover.SetVelocity( 500 );
Station[0].CurrentMover.MoveToStation( Station[1] );
END_IF
ELSE
// Reset the timer for the next mover
StationTimer[0]( IN := FALSE );
END_IF
// Station 1 Logic
IF Station[1].MoverInPosition THEN
StationTimer[1]( IN := TRUE, PT := T#2s );
IF StationTimer[1].Q THEN
// Same behavior as above, but utilizing method chaining
Station[1].CurrentMover.SetVelocity( 90 ).MoveToStation( Station[0] );
END_IF
ELSE
// Reset the timer for the next mover
StationTimer[1]( IN := FALSE );
END_IF
|