DataView.asn 1.06 KB
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
1
2
3
4
5
6
7
Lift-dataview DEFINITIONS ::=
BEGIN

UpDown		::= ENUMERATED { up (1),   down (0)  }
OnOff		::= ENUMERATED { on (1),   off (0)   }
OpenClose	::= ENUMERATED { door-open (1), door-close (0) }
Position	::= REAL (0.0 .. 100.0)
Maxime Perrotin's avatar
Maxime Perrotin committed
8
Floors		::= INTEGER { 
Maxime Perrotin's avatar
Maxime Perrotin committed
9
10
11
12
13
14
			floor-0 (10), 
			floor-1 (20), 
			floor-2 (30), 
			floor-3 (40), 
			floor-4 (50), 
			floor-5 (60) 
Maxime Perrotin's avatar
Maxime Perrotin committed
15
		    } (10 | 20 | 30 | 40 | 50 | 60)
Maxime Perrotin's avatar
Maxime Perrotin committed
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49

-- Types used for the interfacing with the Simulink model

Lift-control ::= SEQUENCE {
    direction	UpDown DEFAULT down,
    motor	OnOff  DEFAULT on,
    brake	OnOff  DEFAULT off,
    door	OpenClose
}

Lift-sensor ::= SEQUENCE {
    door-open	    BOOLEAN,
    door-closed	    BOOLEAN,
    floor-detected  BOOLEAN,
    pos-x	    Position
}

-- Types used for the user interaction

Floor-button ::= SEQUENCE {
    floor	Floors,
    direction	UpDown
}

Cabin-button ::= CHOICE {
    emergency-stop  BOOLEAN,
    floor	    Floors
}

Start-condition ::= CHOICE {
	forever     BOOLEAN,
	nb-of-cycle INTEGER (50 .. 255)
}

Maxime Perrotin's avatar
Maxime Perrotin committed
50
51
52
53
54
Status ::= SEQUENCE {
   lift Lift-sensor,
   door OpenClose
}

Maxime Perrotin's avatar
Maxime Perrotin committed
55
56
57
58
59
60
61
END