orchestrator.pr 2.34 KB
Newer Older
Maxime Perrotin's avatar
Maxime Perrotin committed
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* CIF PROCESS (295, 56), (150, 75) */
PROCESS orchestrator
/* CIF COMMENT (405, 192), (71, 35) */
COMMENT 'Hello';
    /* CIF TEXT (0, 94), (398, 312) */
    dcl seq tastE_Peek_id_list := { 1,2,3,4,5};

dcl a myEnum;

dcl fixed fixedIntList := { 1,2,3};

dcl anInt T_UInt32 :=0;

timer myTimer;
    /* CIF ENDTEXT */
    /* CIF START (708, 150), (80, 36) */
    START;
        /* CIF NEXTSTATE (713, 201), (68, 34) */
        NEXTSTATE Wait;
    /* CIF STATE (957, 345), (70, 35) */
    STATE next;
        /* CIF INPUT (930, 400), (122, 35) */
        INPUT pulse(a);
            /* CIF PROCEDURECALL (904, 450), (173, 35) */
            CALL reset_timer(mytimer);
            /* CIF NEXTSTATE (956, 500), (70, 35) */
            NEXTSTATE wait;
    ENDSTATE;
    /* CIF STATE (980, 125), (93, 35) */
    STATE timeout;
        /* CIF INPUT (965, 180), (122, 35) */
        INPUT Paramless_TC;
            /* CIF PROCEDURECALL (926, 230), (200, 35) */
            CALL SET_timer(1000, mytimer);
            /* CIF NEXTSTATE (991, 280), (70, 35) */
            NEXTSTATE next;
    ENDSTATE;
    /* CIF STATE (713, 201), (68, 34) */
    STATE Wait;
        /* CIF INPUT (461, 255), (87, 35) */
        INPUT pulse(a);
            /* CIF TASK (434, 305), (139, 40) */
            TASK seq := {0,1,0,1,0},
anint := 478;
            /* CIF PROCEDURECALL (407, 365), (193, 35) */
            CALL externalProc(anint, anint);
            /* CIF OUTPUT (447, 415), (114, 35) */
            OUTPUT telemetry(a);
            /* CIF OUTPUT (442, 465), (123, 35) */
            OUTPUT peek_list(seq);
            /* CIF OUTPUT (431, 515), (145, 35) */
            OUTPUT peek_fixed(fixed);
            /* CIF NEXTSTATE (469, 565), (70, 35) */
            NEXTSTATE next;
        /* CIF INPUT (652, 255), (122, 35) */
        INPUT Paramless_TC;
            /* CIF PROCEDURECALL (610, 305), (205, 35) */
            CALL writeln('Got Paramless TC');
            /* CIF PROCEDURECALL (613, 355), (200, 35) */
            CALL SET_timer(1000, mytimer);
            /* CIF OUTPUT (650, 405), (125, 35) */
            OUTPUT Paramless_TM;
            /* CIF NEXTSTATE (678, 455), (70, 35) */
            NEXTSTATE wait;
        /* CIF INPUT (826, 255), (90, 35) */
        INPUT mytimer;
            /* CIF NEXTSTATE (826, 305), (90, 35) */
            NEXTSTATE Timeout;
    ENDSTATE;
ENDPROCESS orchestrator;